Document general use of test-wrapper and test-wrapper-env.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2
3         * manual/install.texi (Configuring and compiling): Document
4         general use of test-wrapper and test-wrapper-env.
5         * INSTALL: Regenerated.
6
7         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
8         (__fma): Do not extract and scale down low bits on after-rounding
9         systems when result rounded to normal precision would have normal
10         exponent.
11         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
12         (__fmal): Do not extract and scale down low bits on after-rounding
13         systems when result rounded to normal precision would have normal
14         exponent.
15         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
16         (__fmal): Do not extract and scale down low bits on after-rounding
17         systems when result rounded to normal precision would have normal
18         exponent.
19         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
20         macro.
21         (fma_test): Add more tests.
22         (fma_test_towardzero): Likewise.
23         (fma_test_downward): Likewise.
24         (fma_test_upward): Likewise.
25
26 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
27
28         * sysdeps/i386/tininess.h: Renamed to ...
29         * sysdeps/x86/tininess.h: This.
30         * sysdeps/x86_64/tininess.h: Removed.
31
32 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
33
34         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
35         input.  Use $(build-program-cmd).
36         ($(objpfx)tst-array1-static.out): Likewise.
37         ($(objpfx)tst-array2.out): Likewise.
38         ($(objpfx)tst-array3.out): Likewise.
39         ($(objpfx)tst-array4.out): Likewise.
40         ($(objpfx)tst-array5.out): Likewise.
41         ($(objpfx)tst-array5-static.out): Likewise.
42
43 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
44
45         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
46         if defined.
47
48         * nss/nsswitch.h (nss_interface_function): Provide new
49         macro for use with NSS functions.
50         * grp/initgroups.c: Use new macro.
51         * nss/getXXbyYY.c: Likewise.
52         * nss/getXXbyYY_r.c: Likewise.
53         * nss/getXXent.c: Likewise.
54         * nss/getXXent_r.c: Likewise.
55         * sysdeps/posix/getaddrinfo.c: Likewise.
56
57 2012-10-30  Andreas Jaeger  <aj@suse.de>
58
59         * po/ru.po: Update Russion translation from translation project.
60
61 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
62
63         [BZ #14152]
64         [BZ #14783]
65         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
66         result and shift together with sticky bit instead of replicating
67         round-to-nearest rounding.
68         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
71         missing underflow exceptions.
72         (fma_test_towardzero): Add more tests.
73         (fma_test_downward): Likewise.
74         (fma_test_upward): Likewise.
75
76         [BZ #14047]
77         * sysdeps/generic/tininess.h: New file.
78         * sysdeps/i386/tininess.h: Likewise.
79         * sysdeps/sh/tininess.h: Likewise.
80         * sysdeps/x86_64/tininess.h: Likewise.
81         * stdlib/tst-strtod-underflow.c: Likewise.
82         * stdlib/tst-tininess.c: Likewise.
83         * stdlib/strtod_l.c: Include <tininess.h>.
84         (round_and_return): Do not set errno for exact underflow cases.
85         Force an underflow exception when setting errno for underflow.
86         Determine underflow based on rounding to normal precision if
87         TININESS_AFTER_ROUNDING.
88         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
89         ERANGE for exact underflow cases.
90         * stdlib/Makefile (tests): Add tst-tininess and
91         tst-strtod-underflow.
92         ($(objpfx)tst-tininess): Use $(link-libm).
93         ($(objpfx)tst-strtod-underflow): Likewise.
94
95 2012-10-30  Andreas Jaeger  <aj@suse.de>
96
97         [BZ#14767]
98         * elf/Makefile (tests): Remove conditional for have-initfini-array
99         since this is now always required and the variable does not exist
100         anymore.
101         (tests-static): Likewise.
102         (modules-names): Likewise.
103
104         * po/eo.po: Add Esperanto translation from translation project.
105
106         * elf/tst-array1.c (fini_array): Make writeable so that it can be
107         merged with constructor/destructor.
108         (init_array): Likewise.
109         * elf/tst-array2dep.c (fini_array): Likewise.
110         (init_array): Likewise.
111
112 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
113
114         * manual/message.texi: Delete @cartouche tags.
115
116 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
117
118         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
119         EOPNOTSUPP.
120         * sysdeps/mach/hurd/fsync.c: Likewise.
121
122         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
123         [_POSIX_REALTIME_SIGNALS]: Change condition to
124         [_POSIX_REALTIME_SIGNALS > 0].
125
126 2012-10-27  Andreas Jaeger  <aj@suse.de>
127
128         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
129         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
130         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
131         [__WORDSIZE != 64]: Likewise.
132
133 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
134
135         *  iconvdata/tst-table.sh: Remove ${SHELL}.
136         *  iconvdata/tst-tables.sh: Likewise.
137
138 2012-10-25  David S. Miller  <davem@davemloft.net>
139
140         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
141         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
142         of strtoull.
143
144         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
145         ifunc-impl-list.c
146         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
147         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
148         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
149         file.
150
151 2012-10-25  Roland McGrath  <roland@hack.frob.com>
152
153         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
154         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
155         __getdirentries.
156
157 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
158             Jim Blandy  <jimb@codesourcery.com>
159
160         * scripts/cross-test-ssh.sh: New file.
161         * manual/install.texi (Configuring and compiling): Document use of
162         cross-test-ssh.sh.
163         * INSTALL: Regenerated.
164
165 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
166
167         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
168         EOPNOTSUPP.
169
170 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
171
172         * Makeconfig (run-program-prefix): Fix comment.
173
174 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
175             Jim Blandy  <jimb@codesourcery.com>
176
177         * Makeconfig (test-wrapper): New variable,
178         (test-wrapper-env): Likewise.
179         [$(cross-compiling) = yes && $(test-wrapper) != ""]
180         (run-built-tests): Define to yes.
181         (run-program-prefix): Use $(test-wrapper).
182         (built-program-cmd): Likewise.
183         * Rules (make-test-out): Use $(test-wrapper-env) and
184         $(host-built-program-cmd).
185         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
186         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
187         tst-pathopt.sh.
188         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
189         $(test-wrapper-env) to tst-rtld-load-self.sh.
190         ($(objpfx)order2.out): Use $(test-wrapper).
191         ($(objpfx)tst-initorder.out): Likewise.
192         ($(objpfx)tst-initorder2.out): Likewise.
193         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
194         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
195         (test_wrapper_env): New variable.  Use it to run ld.so.
196         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
197         Use it to run ld.so.
198         (test_wrapper_env): Likewise.
199         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
200         $(test-wrapper) to run-iconv-test.sh.
201         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
202         (ICONV): Use $test_wrapper.
203         * posix/Makefile ($(objpfx)globtest.out): Pass
204         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
205         globtest.sh, not $(run-program-prefix).
206         * posix/globtest.sh (run_via_rtld_prefix): New variable.
207         (test_wrapper): Likewise.
208         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
209         set together with run_via_rtld_prefix.
210         (run_program_prefix): Define in terms of test_wrapper and
211         run_via_rtld_prefix.
212
213 2012-10-24  Roland McGrath  <roland@hack.frob.com>
214
215         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
216         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
217         Targets removed.
218
219         [BZ #14743]
220         * include/time.h: Remove librt_hidden_proto (clock_gettime).
221         Declare __clock_getres, __clock_gettime, __clock_settime,
222         __clock_nanosleep, and __clock_getcpuclockid.
223         * rt/clock_gettime.c: Define __clock_gettime as an alias.
224         Remove librt_hidden_def (clock_gettime).
225         * sysdeps/unix/clock_gettime.c: Likewise.
226         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
227         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
228         * rt/clock_getres.c: Define __clock_getres as an alias.
229         * sysdeps/posix/clock_getres.c: Likewise.
230         * rt/clock_settime.c: Define __clock_settime as an alias.
231         * sysdeps/unix/clock_settime.c: Likewise.
232         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
233         * sysdeps/unix/clock_nanosleep.c: Likewise.
234         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
235         * rt/clock-compat.c: New file.
236         * rt/Makefile (librt-routines): Add clock-compat and move
237         $(clock-routines) to ...
238         (routines): ... here, new variable.
239         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
240         Don't add get_clockfreq here.
241         * rt/Versions (libc: GLIBC_2.17): New version set.
242         Add clock_* symbols here.
243         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
244         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
245         (GLIBC_2.17): Add clock_* symbols.
246         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
247         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
248         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
249         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
250         Likewise.
251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
252         Likewise.
253         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
256         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
257         * NEWS: Mention the move.
258
259         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
260         Use __open, __read, __close rather than their public counterparts.
261         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
262         (__get_clockfreq_via_cpuinfo): Likewise.
263         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
264         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
265
266         * config.h.in (HAVE_IFUNC): New #undef.
267         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
268         was successful.
269         * configure: Regenerated.
270
271 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
272
273         * configure.in: Move READELF check to start of file.
274         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
275         libc_cv_asm_gnu_indirect_function in the process.
276         * configure: Regenerated.
277
278 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
279
280         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
281         send the output to /dev/null.
282         (libc_cv_cc_with_libunwind): Likewise.
283         (libc_cv_as_noexecstack): Likewise.
284         * configure: Regenerate.
285
286 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
287
288         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
289
290         * posix/globtest.sh (TMPDIR): Do not set.
291         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
292         (testout): Likewise.
293
294 2012-10-24  Andreas Jaeger  <aj@suse.de>
295
296         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
297         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
298         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
299         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
300         posix_fadvise64, posix_fallocate64.
301
302         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
303         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
304         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
305         Likewise.
306         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
307         Likewise.
308         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
309
310         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
311         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
312         <bits/fcntl-linux.h>.
313         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
314
315         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
316         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
317         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
318         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
319         [__WORDSIZE != 64]: Likewise.
320
321 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
322
323         * Makeconfig (run-built-tests): New variable.
324         * Rules [$(cross-compiling) = yes]: Change condition to
325         [$(run-built-tests) = no].
326         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
327         to [$(run-built-tests) = yes].
328         * elf/Makefile [$(cross-compiling) = no]: Likewise
329         * grp/Makefile [$(cross-compiling) = no]: Likewise.
330         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
331         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
332         * intl/Makefile [$(cross-compiling) = no]: Likewise.
333         * io/Makefile [$(cross-compiling) = no]: Likewise.
334         * libio/Makefile [$(cross-compiling) = no]: Likewise.
335         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
336         * misc/Makefile [$(cross-compiling) = no]: Likewise.
337         * posix/Makefile [$(cross-compiling) = no]: Likewise.
338         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
339         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
340         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
341         * string/Makefile [$(cross-compiling) = no]: Likewise.
342
343         * posix/Makefile ($(objpfx)globtest.out): Pass
344         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
345         $(rtld-installed-name).
346         * posix/globtest.sh (elf_objpfx): Remove variable.
347         (rtld_installed_name): Likewise.
348         (library_path): Likewise.
349         (run_program_prefix): New variable.  Use for running globtest
350         binary.
351
352 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
353             Joseph Myers  <joseph@codesourcery.com>
354
355         * Makeconfig (host-built-program-cmd): New variable.
356         * elf/Makefile (tst-stackguard1-ARGS): Use
357         $(host-built-program-cmd).
358         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
359         (tst-spawn-ARGS): Likewise.
360         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
361
362 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
363             Jim Blandy  <jimb@codesourcery.com>
364
365         * Makeconfig (run-via-rtld-prefix): New variable.
366         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
367         (built-program-cmd): Likewise.
368
369 2012-10-22  Andreas Jaeger  <aj@suse.de>
370
371         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
372         __O_RSYNC if it exists, otherwise to O_SYNC.
373
374 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
375             Joseph Myers  <joseph@codesourcery.com>
376
377         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
378         /dev/null.
379         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
380         from /dev/null
381         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
382         /dev/null.
383
384 2012-10-22  Andreas Jaeger  <aj@suse.de>
385
386         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
387         Define always.
388         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
389
390         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
391         bits/fcntl-linux.h.
392
393         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
394         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
395
396         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
397         to __O_LARGEFILE.
398         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
399         to __O_LARGEFILE.
400
401 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
402             Joseph Myers  <joseph@codesourcery.com>
403
404         * config.make.in (NM): New variable.
405
406 2012-10-21  Andreas Jaeger  <aj@suse.de>
407
408         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
409         definitions and declarations that are provided by
410         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
411
412 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
413
414         [BZ #14683]
415         * elf/Makefile (tests-static): Add tst-leaks1-static.
416         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
417         ($(objpfx)tst-leaks1-static): New rule.
418         ($(objpfx)tst-leaks1-static-mem): Likewise.
419         (tst-leaks1-static-ENV): New macro.
420         * elf/dl-open.c (dl_open_worker): Check the main application
421         only if SHARED is defined.
422         * elf/tst-leaks1-static.c: New file.
423
424 2012-10-20  Andreas Jaeger  <aj@suse.de>
425
426         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
427         generic values for Linux.
428         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
429         and declarations that are provided by <bits/fcntl-linux.h> and
430         include <bits/fcntl-linux.h>.
431         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
432         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
433
434 2012-10-20  Roland McGrath  <roland@hack.frob.com>
435
436         * io/fcntl.h: Move include of <bits/types.h> to the top and
437         include it unconditionally.
438
439 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
440
441         * wcsmbs/Makefile (tests-ifunc): New variable.
442         (tests): Add $(tests-ifunc).
443         * wcsmbs/test-wcschr-ifunc.c: New file.
444         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
445         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
446         * wcsmbs/test-wcslen-ifunc.c: Likewise.
447         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
448         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
449
450         * string/Makefile (tests-ifunc): New variable.
451         (tests): Add $(tests-ifunc).
452         * string/test-memccpy.c (TEST_NAME): New macro.
453         * string/test-memchr.c (TEST_NAME): Likewise.
454         * string/test-memcmp.c (TEST_NAME): Likewise.
455         * string/test-memcpy.c (TEST_NAME): Likewise.
456         * string/test-memmem.c (TEST_NAME): Likewise.
457         * string/test-memmove.c (TEST_NAME): Likewise.
458         * string/test-memset.c (TEST_NAME): Likewise.
459         * string/test-rawmemchr.c (TEST_NAME): Likewise.
460         * string/test-stpcpy.c (TEST_NAME): Likewise.
461         * string/test-stpncpy.c (TEST_NAME): Likewise.
462         * string/test-strcasecmp.c (TEST_NAME): Likewise.
463         * string/test-strcasestr.c (TEST_NAME): Likewise.
464         * string/test-strcat.c (TEST_NAME): Likewise.
465         * string/test-strchr.c (TEST_NAME): Likewise.
466         * string/test-strcmp.c(TEST_NAME): Likewise.
467         * string/test-strcpy.c (TEST_NAME): Likewise.
468         * string/test-strcspn.c (TEST_NAME): Likewise.
469         * string/test-strlen.c (TEST_NAME): Likewise.
470         * string/test-strncasecmp.c (TEST_NAME): Likewise.
471         * string/test-strncmp.c (TEST_NAME): Likewise.
472         * string/test-strncpy.c (TEST_NAME): Likewise.
473         * string/test-strnlen.c (TEST_NAME): Likewise.
474         * string/test-strpbrk.c (TEST_NAME): Likewise.
475         * string/test-strrchr.c (TEST_NAME): Likewise.
476         * string/test-strspn.c (TEST_NAME): Likewise.
477         * string/test-strstr.c (TEST_NAME): Likewise.
478         * string/test-bcopy-ifunc.c: New file.
479         * string/test-bzero-ifunc.c: Likewise.
480         * string/test-memccpy-ifunc.c: Likewise.
481         * string/test-memchr-ifunc.c: Likewise.
482         * string/test-memcmp-ifunc.c: Likewise.
483         * string/test-memcpy-ifunc.c: Likewise.
484         * string/test-memmem-ifunc.c: Likewise.
485         * string/test-memmove-ifunc.c: Likewise.
486         * string/test-mempcpy-ifunc.c: Likewise.
487         * string/test-memset-ifunc.c: Likewise.
488         * string/test-rawmemchr-ifunc.c: Likewise.
489         * string/test-stpcpy-ifunc.c: Likewise.
490         * string/test-stpncpy-ifunc.c: Likewise.
491         * string/test-strcasecmp-ifunc.c: Likewise.
492         * string/test-strcasestr-ifunc.c: Likewise.
493         * string/test-strcat-ifunc.c: Likewise.
494         * string/test-strchr-ifunc.c: Likewise.
495         * string/test-strchrnul-ifunc.c: Likewise.
496         * string/test-strcmp-ifunc.c: Likewise.
497         * string/test-strcpy-ifunc.c: Likewise.
498         * string/test-strcspn-ifunc.c: Likewise.
499         * string/test-strlen-ifunc.c: Likewise.
500         * string/test-strncasecmp-ifunc.c: Likewise.
501         * string/test-strncat-ifunc.c: Likewise.
502         * string/test-strncmp-ifunc.c: Likewise.
503         * string/test-strncpy-ifunc.c: Likewise.
504         * string/test-strnlen-ifunc.c: Likewise.
505         * string/test-strpbrk-ifunc.c: Likewise.
506         * string/test-strrchr-ifunc.c: Likewise.
507         * string/test-strspn-ifunc.c: Likewise.
508         * string/test-strstr-ifunc.c: Likewise.
509
510         * debug/Makefile (tests-ifunc): New variable.
511         (tests): Add $(tests-ifunc).
512         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
513         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
514         * debug/test-stpcpy_chk-ifunc.c: New file.
515         * debug/test-strcpy_chk-ifunc.c: Likewise.
516
517 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
518
519         [BZ #13601]
520         * elf/dl-load.c (open_verify): Retry read if the entire ELF
521         header is not read in.
522
523 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
524
525         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
526         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
527         directly.  Pass built executable to script as
528         $(built-program-cmd).
529         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
530         $testprogram without using LD_LIBRARY_PATH and $ldso.
531
532         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
533         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
534         $(rtld-installed-name).
535         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
536         (rtld_installed_name): Likewise.
537         (library_path): Likewise.
538         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
539         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
540         $(run-program-prefix) to tst-tables.sh.
541         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
542         it to run tst-table-from and tst-table-to.
543         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
544         Pass it to tst-table.sh.
545         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
546         $(run-program-prefix) to tst-gettext.sh.
547         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
548         tst-translit.sh.
549         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
550         tst-gettext2.sh.
551         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
552         to run tst-gettext.
553         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
554         to run tst-gettext2.
555         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
556         to run tst-translit.
557         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
558         $(run-program-prefix) to tst-mtrace.sh.
559         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
560         to run tst-mtrace.
561         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
562         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
563         $(rtld-installed-name).
564         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
565         (rtld_installed_name): Likewise.
566         (run_program_prefix): New variable.  Use it to run wordexp-test.
567
568         * Makeconfig (ARCH): Remove all definitions.
569         (machine): Likewise.
570         [ARCH]: Remove conditional code.
571         [!objdir]: Give error.
572         [!objdir] (objpfx): Remove.
573         [!objdir] (common-objpfx): Likewise.
574         [!objdir] (common-objdir): Likewise.
575         * configure.in (config_makefile): Remove.  Hardcode Makefile in
576         AC_CONFIG_FILES call.
577         * configure: Regenerated.
578
579         [BZ #13888]
580         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
581         or TMPDIR.
582         (testout): Likewise.
583
584         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
585         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
586         $(rtld-installed-name).
587         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
588         (rtld_installed_name): Likwise.
589         (runit): Remove function.
590         (run_getconf): New variable,  Use it for running getconf binary.
591
592 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
593
594         [BZ #14716]
595         * string/test-memmem.c (check_result): New function.
596         (do_one_test): Use it.
597         (check1): New function.
598         (test_main): Use it.
599
600 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
601
602         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
603
604 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
605
606         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
607         (_G_LSEEK64): Likewise.
608         (_G_MMAP64): Likewise.
609         (_G_FSTAT64): Likewise.
610         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
611         (_G_LSEEK64): Likewise.
612         (_G_MMAP64): Likewise.
613         (_G_FSTAT64): Likewise.
614         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
615         unconditional.  Call __mmap64 directly.
616         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
617         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
618         __lseek64 directly.
619         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
620         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
621         __mmap64 directly.
622         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
623         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
624         __lseek64 directly.
625         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
626         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
627         __lseek64 directly.
628         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
629         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
630         __lseek64 directly.
631         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
632         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
633         __fxstat64 directly.
634         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
635         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
636         unconditional.
637         (freopen64) [!_G_OPEN64]: Remove conditional code.
638         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
639         unconditional.
640         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
641         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
642         unconditional.
643         (ftello64) [!_G_LSEEK64]: Remove conditional code.
644         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
645         unconditional.
646         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
647         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
648         unconditional.
649         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
650         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
651         unconditional.
652         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
653         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
654         unconditional.
655         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
656         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
657         unconditional.
658         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
659
660 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
661
662         [BZ #12140]
663         * manual/memory.texi (Malloc Tunable Parameters): Add note
664         about free list pointers overwriting some perturb bytes.
665         Wording suggested by Roland McGrath.
666
667 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
668
669         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
670         (lgamma_test): Likewise.
671         (tgamma_test): Likewise.
672
673 2012-10-16  Florian Weimer  <fweimer@redhat.com>
674
675         [BZ #14700]
676         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
677         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
678
679 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
680
681         * NEWS: Mention BZ #14716.
682         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
683         when removing AVAILABLE1_USES_J macro.
684
685 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
686
687         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
688         (__bswap_64): __uint64_t for unsigned 64-bit int.
689
690 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
691
692         * include/string.h (memmem): Declare libc hidden alias.
693         * string/memmem.c (memmem): Define libc hidden alias.
694         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
695         __read, __close instead of open, read, close.
696
697 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
698
699         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
700         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
701         global and hidden.
702         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
703         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
704         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
705         Likewise.
706         (__rawmemchr_sse2): Likewise.
707         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
708         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
709         (__strchr_sse2): Likewise.
710         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
711         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
712         (__strcasecmp_sse2): Likewise.
713         (__strncasecmp_sse2): Likewise.
714         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
715         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
716         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
717         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
718         (__strrchr_sse2): Likewise.
719         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
720         ifunc-impl-list.c.
721         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
722         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
723         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
724         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
725         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
726         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
727         * sysdeps/x86_64/multiarch/memset.S: Likewise.
728         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
729         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
730         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
731         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
732         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
733         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
734         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
735         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
736         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
737         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
738         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
739         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
740         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
741         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
742         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
743         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
744         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
745         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
746         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
747         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
748         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
749         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
750         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
751
752         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
753         global and hidden.
754         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
755         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
756         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
757         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
758         Likewise.
759         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
760         Likewise.
761         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
762         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
763         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
764         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
765         ifunc-impl-list.c.
766         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
767         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
768         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
769         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
770         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
771         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
772         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
773         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
774         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
775         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
776         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
777         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
778         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
779         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
780         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
781         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
782         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
783         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
784         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
785         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
786         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
787         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
788         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
789         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
790         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
791         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
792         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
793         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
794         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
795         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
796         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
797         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
798         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
799         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
800         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
801         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
802         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
803         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
804         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
805         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
806         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
807
808         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
809         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
810         * include/ifunc-impl-list.h: New file.
811         * misc/ifunc-impl-list.c: Likewise.
812         * misc/Makefile (routines): Add ifunc-impl-list.
813         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
814         * string/test-string.h: Include <ifunc-impl-list.h>.
815         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
816         impl_array): New variables.
817         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
818         are defined.
819         (test_init): Call __libc_ifunc_impl_list to initialize
820         func_list if TEST_IFUNC and TEST_NAME are defined.
821
822         * string/Makefile (strop-tests): Add bcopy and bzero.
823         * string/test-bcopy.c: New file.
824         * string/test-bzero.c: Likewise.
825         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
826         defined.
827         * string/test-memset.c: Support bzero test if TEST_BZERO is
828         defined.
829         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
830         __libc_memmove.
831         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
832         __libc_memset.
833         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
834         of memset.
835
836 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
837
838         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
839         * configure: Regenerated.
840
841         * Makeconfig (+link-static-before-libc): Don't include
842         $(link-static-libc).
843
844         * libio/libio.h (_IO_pos_t): Remove.
845
846 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
847
848         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
849         McGrath.
850
851 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
852
853         * crypt/crypt-entry.c: Include fips-private.h.
854         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
855         * crypt/md5c-test.c (main): Tolerate disabled MD5.
856         * sysdeps/unix/sysv/linux/fips-private.h: New file.
857         * sysdeps/generic/fips-private.h: New file, dummy fallback.
858
859 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
860
861         * crypt/crypt-private.h: Include stdbool.h.
862         (_ufc_setup_salt_r): Return bool.
863         * crypt/crypt-entry.c: Include errno.h.
864         (__crypt_r): Return NULL with EINVAL for bad salt.
865         * crypt/crypt_util.c (bad_for_salt): New.
866         (_ufc_setup_salt_r): Check that salt is long enough and within
867         the specified alphabet.
868         * crypt/badsalttest.c: New file.
869         * crypt/Makefile (tests): Add it.
870         ($(objpfx)badsalttest): New.
871
872 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
873
874         * NEWS: Add entry for BZ #14602.
875
876 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
877
878         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
879         type-generic.
880         * math/libm-test.inc: Update comment listing what functions and
881         macros are tested.
882         (isgreater_test): New function.
883         (isgreaterequal_test): Likewise.
884         (isless_test): Likewise.
885         (islessequal_test): Likewise.
886         (islessgreater_test): Likewise.
887         (isunordered_test): Likewise.
888         (main): Call the new functions.
889
890 2012-10-09  Roland McGrath  <roland@hack.frob.com>
891
892         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
893         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
894         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
895         * sysdeps/i386/configure: Regenerated.
896         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
897         * sysdeps/mach/configure: Regenerated.
898         * sysdeps/mach/hurd/configure: Regenerated.
899         * sysdeps/powerpc/configure: Regenerated.
900         * sysdeps/powerpc/powerpc32/configure: Regenerated.
901         * sysdeps/powerpc/powerpc64/configure: Regenerated.
902         * sysdeps/s390/s390-32/configure: Regenerated.
903         * sysdeps/s390/s390-64/configure: Regenerated.
904         * sysdeps/sh/configure: Regenerated.
905         * sysdeps/sparc/configure: Regenerated.
906         * sysdeps/unix/sysv/linux/configure: Regenerated.
907         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
908         * sysdeps/x86_64/configure: Regenerated.
909
910         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
911         defined.  Don't check if MAP is NULL.
912
913 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
914
915         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
916         (_G_stat64): Likewise.
917         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
918         (_G_stat64): Likewise.
919         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
920         instead of struct _G_stat64.
921         * libio/fileops.c (mmap_remap_check): Likewise.
922         (decide_maybe_mmap): Likewise.
923         (_IO_new_file_seekoff): Likewise.
924         (_IO_file_stat): Likewise.
925         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
926         _G_off64_t.
927         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
928         instead of struct _G_stat64.
929         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
930
931 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
932
933         [BZ #14602]
934         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
935         Replace with ...
936         (CHECK_EOL): New macro.
937         (two_way_short_needle): Check beginning of haystack for EOL.  Use
938         CHECK_EOL.
939         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
940         Replace with CHECK_EOL.
941         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
942         Replace with CHECK_EOL.
943
944 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
945
946         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
947         type-generic.
948         * math/libm-test.inc: Update comment listing what functions and
949         macros are tested.
950         (finite_test): New function.
951         (isinf_test): Likewise.
952         (isnan_test): Likewise.
953         (fpclassify_test): Test subnormal input.
954         (isfinite_test): Likewise.
955         (isnormal_test): Likewise.
956         (main): Call the new functions.
957
958 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
959
960         [BZ #14660]
961         * Makerules (%.dynsym): Force C locale when running
962         $(OBJDUMP) --dynamic-syms.
963
964 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
965
966         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
967         <stdint.h>.
968
969 2012-10-06  David S. Miller  <davem@davemloft.net>
970
971         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
972         upper 32-bits of the length value in %o2 since we use branch-on-register
973         tests which consider the entire 64-bit register.
974
975 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
976
977         * string/test-strstr.c (check2): Add a test for page boundary.
978
979 2012-10-05  David S. Miller  <davem@davemloft.net>
980
981         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
982         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
983         file.
984         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
985         sysdep_routines.
986         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
987         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
988         and bzero when HWCAP_SPARC_CRYPTO is present.
989
990 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
991
992         [BZ #14602]
993         * string/test-strstr.c (check2): New function.
994         (test_main): Call check2.
995
996         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
997         and bug-strchr1.
998         * string/bug-strcasestr1.c (do_test): Moved to ...
999         * string/test-strcasestr.c (check1): Here.  New function.
1000         (do_one_test): Break out result checking code into ...
1001         (check_result): This.  New function.
1002         (do_one_test): Call check_result.
1003         (test_main): Call check1.
1004         * string/bug-strchr1.c (do_test): Moved to ...
1005         * string/test-strchr.c (check1): Here.  New function.
1006         (do_one_test): Break out result checking code into ...
1007         (check_result): This.  New function.
1008         (do_one_test): Call check_result.
1009         (test_main): Call check1.
1010         * string/bug-strstr1.c (main): Moved to ...
1011         * string/test-strchr.c (check1): Here.  New function.
1012         (do_one_test): Break out result checking code into ...
1013         (check_result): This.  New function.
1014         (do_one_test): Call check_result.
1015         (test_main): Call check1.
1016         * string/bug-strcasestr1.c: Removed.
1017         * string/bug-strchr1.c: Likewise.
1018         * string/bug-strstr1.c: Likewise.
1019
1020         * elf/Makefile (dl-routines): Add hwcaps.
1021         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1022         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1023         (_dl_important_hwcaps): Moved to ...
1024         * elf/dl-hwcaps.c: Here.  New file.
1025         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1026
1027         [BZ #14557]
1028         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1029         if IS_IN_rtld isn't defined.
1030
1031         * elf/dl-support.c (_dl_sysinfo_map): New.
1032         Include "get-dynamic-info.h" and "setup-vdso.h".
1033         (_dl_non_dynamic_init): Call setup_vdso.
1034         * elf/dynamic-link.h: Don't include <assert.h>.
1035         (elf_get_dynamic_info): Moved to ...
1036         * elf/get-dynamic-info.h: Here.  New file.
1037         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1038         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1039         * elf/setup-vdso.h: Here.  New file.
1040         * elf/rtld.c: Include "setup-vdso.h".
1041         (dl_main): Call setup_vdso.
1042
1043 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1044
1045         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1046         creal in comment listing functions tested.  List finite, isinf,
1047         isnan, isless, islessequal, isgreater, isgreaterequal,
1048         islessgreater, isunordered, lgamma_r and pow10 as functions and
1049         macros not tested.  Mention which functions not tested are aliases
1050         for other functions.  Fix typo.  Note that signs of NaNs are not
1051         tested.
1052
1053         * scripts/config.guess: Update from config.git.
1054         * scripts/config.sub: Likewise.
1055
1056 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1057
1058         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1059         * misc/madvise.c (madvise): Renamed to __madvise.
1060         Make madvise a weak alias.
1061         * include/sys/mman.h: Declare __madvise.
1062         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1063         * sysdeps/unix/syscalls.list
1064         (madvise): Make __madvise the strong name, and madvise a weak alias.
1065         * sysdeps/unix/sysv/linux/syscalls.list
1066         (madvise, mmap): Remove redundant entries.
1067         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1068         * malloc/malloc.c (mtrim): Likewise.
1069         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1070
1071 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1072
1073         * sysdeps/mach/hurd/dl-cache.c: File removed.
1074         * config.h.in (USE_LDCONFIG): New #undef.
1075         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1076         * configure: Regenerated.
1077         * elf/Makefile (dl-routines): Add dl-cache only under
1078         [$(use-ldconfig) = yes].
1079         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1080         cache on [USE_LDCONFIG].
1081         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1082         [USE_LDCONFIG].
1083         * elf/rtld.c (dl_main): Likewise.
1084
1085 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1086
1087         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1088         _SC_LEVEL4_CACHE_LINESIZE.
1089
1090 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1091
1092         * sysdeps/unix/bsd/confstr.h: File removed.
1093
1094 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1095
1096         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1097         sys/sdt-config.h.
1098
1099 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1100
1101         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1102         Make 'mapoff' field ElfW(Off) rather than off_t.
1103
1104 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1105
1106         * nscd/Makefile: Remove nscd-cflags and all its users.
1107         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1108         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1109
1110         [BZ #10631]
1111         * malloc.c (malloc_printerr): Clarify error message.
1112
1113 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1114
1115         [BZ #14648]
1116         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1117         Set bit_FMA_Usable if FMA is supported.
1118         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1119         macro.
1120         (bit_FMA4_Usable): Updated.
1121         (index_FMA_Usable): New macro.
1122         (CPUID_FMA): Likewise
1123         (HAS_FMA): Defined with bit_FMA_Usable.
1124
1125 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1126
1127         * bits/types.h (__swblk_t): Type removed.
1128         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1129         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1130         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1131         (__SWBLK_T_TYPE): Likewise.
1132         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1133         (__SWBLK_T_TYPE): Likewise.
1134         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1135         (__SWBLK_T_TYPE): Likewise.
1136         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1137         (__SWBLK_T_TYPE): Likewise.
1138
1139 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1140             Honza Horak <hhorak@redhat.com>
1141
1142         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1143         (xdr_mapname): Use YPMAXMAP as maxsize.
1144         (xdr_peername): Use YPMAXPEER as maxsize.
1145         (xdr_keydat): Use YPAXRECORD as maxsize.
1146         (xdr_valdat): Use YPMAXRECORD as maxsize.
1147
1148 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1149
1150         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1151
1152         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1153         * csu/init-first.c: ... here.
1154         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1155         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1156         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1157         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1158         * sysdeps/i386/init-first.c: File removed.
1159         * sysdeps/sh/init-first.c: File removed.
1160
1161 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1162
1163         [BZ #14645]
1164         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1165         if x * y might underflow to zero and z is zero.
1166         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1167         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1168         * math/libm-test.inc (min_subnorm_value): New variable.
1169         (fma_test): Add more tests.
1170         (fma_test_towardzero): Likewise.
1171         (fma_test_downward): Likewise
1172         (fma_test_upward): Likewise.
1173         (initialize): Set min_subnorm_value.
1174
1175 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1176
1177         [BZ #14638]
1178         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1179         0 + 0.
1180         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1181         mode for addition resulting in exact zero.
1182         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1183         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1184         exact 0 + 0.
1185         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1186         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1187         * math/libm-test.inc (fma_test): Add more tests.
1188         (fma_test_towardzero): New function.
1189         (fma_test_downward): Likewise.
1190         (fma_test_upward): Likewise.
1191         (main): Call the new functions.
1192
1193 2012-09-28  David S. Miller  <davem@davemloft.net>
1194
1195         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1196
1197 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1198
1199         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1200         instead of SIGALRM.
1201
1202         * sysdeps/gnu/_G_config.h: Moved to ...
1203         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1204         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1205         * sysdeps/generic/_G_config.h: ... here.
1206
1207         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1208
1209         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1210
1211         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1212         Conditionalize target on [libnss_test1.so-version].
1213
1214         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1215
1216         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1217         (elfobjdir): Move out of conditionals.
1218
1219         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1220         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1221         (__nss_lookup_function): Conditionalize label remove_from_tree on
1222         [!DO_STATIC_NSS || SHARED], matching its only use.
1223
1224 2012-09-28  David S. Miller  <davem@davemloft.net>
1225
1226         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1227         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1228         file.
1229         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1230         sysdep_routines.
1231         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1232         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1233         when HWCAP_SPARC_CRYPTO is present.
1234
1235 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1236
1237         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1238
1239 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1240
1241         [BZ #6530]
1242         * stdio-common/vfprintf.c (process_string_arg): Revert
1243         2000-07-22 change.
1244
1245 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1246
1247         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1248         for testcase.
1249         * stdio-common/tst-sprintf.c: Include <locale.h>
1250         (main): Test sprintf's handling of incomplete multibyte
1251         characters.
1252
1253 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1254
1255         * elf/dl-runtime.c (VERSYMIDX): Removed.
1256         * elf/dl-version.c (VERSYMIDX): Likewise.
1257         * elf/do-rel.h (VERSYMIDX): Likewise.
1258         (VALIDX): Likewise.
1259         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1260         * elf/rtld.c (VALIDX): Likewise.
1261         (ADDRIDX): Likewise.
1262         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1263         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1264         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1265         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1266         (VALIDX): Likewise.
1267         (ADDRIDX): Likewise.
1268
1269 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1270
1271         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1272
1273 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1274
1275         [BZ #11438]
1276         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1277         to global scope.
1278         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1279         addresses are in the same scope as 192.0.2/24.
1280         * posix/gai.conf: Document new scope table defaults.
1281
1282 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1283
1284         [BZ #5298]
1285         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1286         for ftell.  Compute offsets from write pointers instead.
1287         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1288
1289 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1290
1291         [BZ #14543]
1292         * libio/Makefile (tests): New test case tst-fseek.
1293         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1294         combination works in wide mode.
1295         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1296         state when the external buffer state changes.
1297
1298 2012-09-27  David S. Miller  <davem@davemloft.net>
1299
1300         [BZ #14376]
1301         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1302         pass reloc->r_addend in as the 'high' argument to
1303         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1304
1305         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1306
1307 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1308
1309         * rt/tst-aio2.c: Include <pthread.h>.
1310         * rt/tst-aio3.c: Likewise.
1311
1312 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1313
1314         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1315
1316 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1317
1318         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1319         contents on [SHARED].
1320
1321 2012-09-26  Marek Polacek  <polacek@redhat.com>
1322
1323         [BZ #14530]
1324         [BZ #13741]
1325         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1326         for C++ and GCC <4.3 as well as for non GCC compilers.
1327
1328 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1329
1330         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1331
1332 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1333
1334         * Makefile.in (all, install): Declare with .PHONY.
1335         Reported by Michael Hope <michael.hope@linaro.org>.
1336
1337 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1338
1339         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1340         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1341         system header.
1342         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1343         Likewise.
1344         (sydep_routines): Add the new and the internal functions.
1345         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1346         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1348         (GLIBC_2.17): Add the new function.
1349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1350         (GLIBC_2.17): Likewise.
1351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1352         (GLIBC_2.17): Likewise.
1353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1354         (GLIBC_2.17): Likewise.
1355         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1356
1357 2012-09-25  Alan Modra  <amodra@gmail.com>
1358
1359         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1360         Add release barrier before setting once_control to say
1361         initialisation is done.  Add hints on lwarx.  Use macro in
1362         place of isync.
1363         (clear_once_control): Add release barrier.
1364
1365 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1366
1367         [BZ #13629]
1368         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1369         specially.
1370         * math/s_clog10.c (__clog10): Likewise.
1371         * math/s_clog10f.c (__clog10f): Likewise.
1372         * math/s_clog10l.c (__clog10l): Likewise.
1373         * math/s_clogf.c (__clogf): Likewise.
1374         * math/s_clogl.c (__clogl): Likewise.
1375         * math/Makefile (libm-calls): Add x2y2m1.
1376         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1377         (__x2y2m1): Likewise.
1378         (__x2y2m1l): Likewise.
1379         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1380         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1381         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1382         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1383         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1384         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1385         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1386         * sysdeps/i386/fpu/libm-test-ulps: Update.
1387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1388
1389         [BZ #14621]
1390         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1391         int as type of variable DEPTH.
1392         (glob): Use size_t instead of int as type of variables NEWCOUNT
1393         and OLD_PATHC.
1394
1395 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1396
1397         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1398         Add s_sincosf-sse2.
1399         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1400         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1401         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1402         macros for using routine as __sincosf_ia32.
1403         Use macro for function declaration and weak_alias.
1404         * sysdeps/i386/fpu/libm-test-ulps: Update.
1405
1406         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1407         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1408
1409         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1410         subnormal argument.
1411         * math/s_cexpf.c (__cexpf): Likewise.
1412         * math/s_csinf.c (__csinf): Likewise.
1413         * math/s_csinhf.c (__csinhf): Likewise.
1414         * math/s_ctanf.c (__ctanf): Likewise.
1415         * math/s_ctanhf.c (__ctanhf): Likewise.
1416         * math/s_ccosh.c (__ccoshf): Likewise.
1417         * math/s_cexp.c (__cexpl): Likewise.
1418         * math/s_csin.c (__csin): Likewise.
1419         * math/s_csinh.c (__csinh): Likewise.
1420         * math/s_ctan.c (__ctan): Likewise.
1421         * math/s_ctanh.c (ctanh): Likewise.
1422         * math/s_ccoshl.c (__ccoshl): Likewise.
1423         * math/s_cexpl.c (__cexpl): Likewise.
1424         * math/s_csinl.c (__csinl): Likewise.
1425         * math/s_csinhl.c (__csinhl): Likewise.
1426         * math/s_ctanl.c (__ctanl): Likewise.
1427         * math/s_ctanhl.c (__ctanhl): Likewise.
1428
1429 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1430
1431         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1432         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1433         (_IO_off_t): Define to __off_t, not _G_off_t.
1434         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1435         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1436         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1437         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1438         type of __dummy and __dummy2 fields.
1439         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1440         (_G_ssize_t): Likewise.
1441         (_G_off_t): Likewise.
1442         (_G_pid_t): Likewise.
1443         (_G_uid_t): Likewise.
1444         (_G_wchar_t): Likewise.
1445         (_G_wint_t): Likewise.
1446         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1447         (_G_ssize_t): Likewise.
1448         (_G_off_t): Likewise.
1449         (_G_pid_t): Likewise.
1450         (_G_uid_t): Likewise.
1451         (_G_wchar_t): Likewise.
1452         (_G_wint_t): Likewise.
1453         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1454         (_G_ssize_t): Likewise.
1455         (_G_off_t): Likewise.
1456         (_G_pid_t): Likewise.
1457         (_G_uid_t): Likewise.
1458         (_G_wchar_t): Likewise.
1459         (_G_wint_t): Likewise.
1460
1461 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1462
1463         * malloc/arena.c: Include malloc-sysdep.h.
1464         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1465         is sufficient to shrink the heap or an unmap is needed.
1466         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1467         new function check_may_shrink_heap.
1468         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1469         new function check_may_shrink_heap.
1470
1471 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1472
1473         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1474         comments.
1475
1476 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1477
1478         * catgets/test-gencat.sh: Add "set -e".
1479         * elf/tst-pathopt.sh: Likewise.
1480         * grp/tst_fgetgrent.sh: Likewise.
1481         * iconvdata/run-iconv-test.sh: Likewise.
1482         * intl/tst-gettext.sh: Likewise.
1483         * intl/tst-gettext2.sh: Likewise.
1484         * intl/tst-gettext4.sh: Likewise.
1485         * intl/tst-gettext6.sh: Likewise.
1486         * intl/tst-translit.sh: Likewise.
1487         * io/ftwtest-sh: Likewise.
1488         * libio/test-freopen.sh: Likewise.
1489         * malloc/tst-mtrace.sh: Likewise.
1490         * posix/globtest.sh: Likewise.
1491         * posix/tst-getconf.sh: Likewise.
1492         * posix/wordexp-tst.sh: Likewise.
1493         * stdio-common/tst-printf.sh: Likewise.
1494         * stdio-common/tst-unbputc.sh: Likewise.
1495         * stdlib/tst-fmtmsg.sh: Likewise.
1496         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1497         * catgets/Makefile: Do not specify -e option when running
1498         testsuite shell scripts.
1499         * elf/Makefile: Likewise.
1500         * grp/Makefile: Likewise.
1501         * iconvdata/Makefile: Likewise.
1502         * intl/Makefile: Likewise.
1503         * io/Makefile: Likewise.
1504         * libio/Makefile: Likewise.
1505         * malloc/Makefile: Likewise.
1506         * posix/Makefile: Likewise.
1507         * stdio-common/Makefile: Likewise.
1508         * stdlib/Makefile: Likewise.
1509         * sysdeps/x86_64/Makefile: Likewise.
1510
1511         * io/ftwtest-sh: Add copyright header.
1512         * posix/globtest.sh: Likewise.
1513         * posix/tst-getconf.sh: Likewise.
1514         * posix/wordexp-tst.sh: Likewise.
1515         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1516
1517 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1518
1519         [BZ #13679]
1520         * Makeconfig (+link): Defined as $(+link-static) if
1521         $(build-shared) isn't yes.
1522         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1523         isn't yes.
1524         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1525
1526         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1527
1528         [BZ #14562]
1529         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1530         new chunk size with MALLOC_ALIGN_MASK.
1531
1532 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1533
1534         [BZ #5044]
1535         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1536         <rounding-mode.h>.
1537         (__printf_fphex): Determine rounding using get_rounding_mode and
1538         round_away.
1539         * stdio-common/tst-printf-round.c (struct hex_test): New
1540         structure.
1541         (hex_tests): New variable.
1542         (test_hex_in_one_mode): New function.
1543         (do_test): Also run tests for hex float output.
1544
1545 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1546
1547         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1548         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1549         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1550         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1551         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1552         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1553         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1554         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1555
1556 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1557
1558         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1559         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1560         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1561         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1562
1563 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1564
1565         [BZ #14579]
1566         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1567         mode only.
1568         * elf/tst-rtld-load-self.sh: New test.
1569         * elf/Makefile: Run it.
1570
1571 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1572
1573         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1574         (tst-writev-ENV): Remove.
1575         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1576
1577 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1578
1579         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1580
1581 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1582
1583         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1584         unconditional.
1585         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1586         Likewise.
1587         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1588         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1589         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1590         Likewise.
1591
1592 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1593
1594         [BZ #14587]
1595         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1596         * config.make.in (have-cpp-asm-debuginfo): Removed.
1597         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1598         * configure: Regenerated.
1599
1600 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1601
1602         [BZ #5044]
1603         * stdio-common/printf_fp.c: Include <stdbool.h> and
1604         <rounding-mode.h>.
1605         (___printf_fp): Determine rounding using get_rounding_mode and
1606         round_away.
1607         * stdio-common/tst-printf-round.c: New file.
1608         * stdio-common/Makefile (tests): Add tst-printf-round.
1609         (link-libm): New variable.
1610         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1611
1612 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1613
1614         [BZ #14576]
1615         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1616         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1617         Likewise.
1618         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1619         Likewise.
1620
1621 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1622
1623         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1624         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1625         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1626         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1627
1628 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1629
1630         [BZ #14518]
1631         * include/rounding-mode.h: New file.
1632         * sysdeps/generic/get-rounding-mode.h: Likewise.
1633         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1634         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1635         (MAX_VALUE): New macro.
1636         (MIN_VALUE): Likewise.
1637         (overflow_value): New function.
1638         (underflow_value): Likewise.
1639         (round_and_return): Use overflow_value and underflow_value to
1640         determine return values in overflow and underflow cases.  Use
1641         round_away to determine rounding depending on rounding mode.
1642         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1643         determine return values in overflow and underflow cases.
1644         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1645         (struct test_results): New structure.
1646         (struct test): Use struct test_results to store expected results
1647         for all rounding modes.
1648         (TEST): Include expected results for all rounding modes.
1649         (test_in_one_mode): New function.
1650         (do_test): Use test_in_one_mode to compute and check results.
1651         Check results for all rounding modes.
1652         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1653         $(link-libm).
1654
1655 2012-12-09  Allan McRae  <allan@archlinux.org>
1656
1657         * sysdeps/i386/fpu/libm-test-ulps: Update
1658
1659 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1660
1661         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1662         (_G_int32_t): Likewise.
1663         (_G_uint16_t): Likewise.
1664         (_G_uint32_t): Likewise.
1665         (_G_HAVE_BOOL): Likewise.
1666         (_G_HAVE_ATEXIT): Likewise.
1667         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1668         (_G_HAVE_IO_FILE_OPEN): Likewise.
1669         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1670         (_G_int32_t): Likewise.
1671         (_G_uint16_t): Likewise.
1672         (_G_uint32_t): Likewise.
1673         (_G_HAVE_BOOL): Likewise.
1674         (_G_HAVE_ATEXIT): Likewise.
1675         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1676         (_G_HAVE_IO_FILE_OPEN): Likewise.
1677         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1678         (_G_int32_t): Likewise.
1679         (_G_uint16_t): Likewise.
1680         (_G_uint32_t): Likewise.
1681         (_G_HAVE_BOOL): Likewise.
1682         (_G_HAVE_ATEXIT): Likewise.
1683         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1684         (_G_HAVE_IO_FILE_OPEN): Likewise.
1685
1686 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1687
1688         * csu/libc-tls.c: Update copyright years.
1689
1690 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1691
1692         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1693         [!_G_USING_THUNKS]: Remove conditional code.
1694         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1695         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1696
1697         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1698         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1699         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1700         (_G_VTABLE_LABEL_PREFIX): Likewise.
1701         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1702         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1703         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1704         (_G_VTABLE_LABEL_PREFIX): Likewise.
1705         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1706         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1707         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1708         (_G_VTABLE_LABEL_PREFIX): Likewise.
1709         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1710
1711 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1712
1713         * libio/Makefile: Include ../Makeconfig before tests.
1714         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1715         only if $(build-shared) is yes.
1716
1717         * iconv/gconv_db.c: Update copyright years.
1718
1719 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1720
1721         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1722         unwind info if defined PIC. Fix special cases description.
1723         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1724
1725         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1726         DP_HI_MASK entry.
1727         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1728
1729 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1730
1731         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1732
1733         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1734         is NULL.
1735
1736         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1737         (LDLIBS-tst-chk4): This.
1738         (LDFLAGS-tst-chk5): Renamed to ...
1739         (LDLIBS-tst-chk5): This.
1740         (LDFLAGS-tst-chk6): Renamed to ...
1741         (LDLIBS-tst-chk6): This.
1742         (LDFLAGS-tst-lfschk4): Renamed to ...
1743         (LDLIBS-tst-lfschk4): This.
1744         (LDFLAGS-tst-lfschk5): Renamed to ...
1745         (LDLIBS-tst-lfschk5): This.
1746         (LDFLAGS-tst-lfschk6): Renamed to ...
1747         (LDLIBS-tst-lfschk6): This.
1748
1749         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1750         on $(common-objpfx)soversions.mk.
1751
1752 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1753
1754         [BZ #10014]
1755         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1756         example host name.
1757
1758 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1759
1760         * malloc/arena.c (arena_get_retry): New function that gets
1761         another arena for the caller to try its request on.
1762         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1763         current arena cannot fulfill the request.
1764         (__libc_memalign): Likewise.
1765         (__libc_memalign): Likewise.
1766         (__libc_pvalloc): Likewise.
1767         (__libc_calloc): Likewise.
1768
1769 2012-09-05  John Tobey  <john.tobey@gmail.com>
1770
1771         [BZ #13542]
1772         * manual/arith.texi (Operations on Complex): Fix description
1773         of carg branch cut.
1774
1775 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1776
1777         [BZ #10014]
1778         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1779         host name.
1780
1781         [BZ #10038]
1782         * manual/memory.texi (Memory): Make order of menu items match
1783         order of sections.
1784
1785 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1786
1787         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1788         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1789         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1790
1791 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1792
1793         * csu/libc-tls.c (static_dtv): Renamed to ...
1794         (_dl_static_dtv): This.  Make it global.
1795         (_dl_initial_dtv): Removed.
1796         (__libc_setup_tls): Updated.
1797         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1798         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1799         DL_INITIAL_DTV.
1800
1801 2012-09-06  Petr Machata  <pmachata@redhat.com>
1802
1803         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1804         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1805         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1806         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1807
1808 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1809
1810         [BZ #14545]
1811         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1812         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1813         freeing dtv[-1].
1814
1815 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1816
1817         [BZ #14544]
1818         * Makeconfig (link-static-before-libc): Replace $(+prector)
1819         with $(+prectorT).
1820         (link-static-after-libc): Replace $(+postctor) with
1821         $(+postctorT).
1822         (link-bounded): Replace $(+prector)/$(+postctor) with
1823         $(+prectorT)/$(+postctorT).
1824         (+prectorT): New macro.
1825         (+postctorT): Likewise.
1826
1827 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1828
1829         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1830         (round_str): Handle values above the maximum for IBM long double
1831         as inexact.
1832         * stdlib/tst-strtod-round.c (tests): Regenerated.
1833
1834 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1835
1836         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1837         assembler flag.
1838         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1839         zarch_nohighgprs around the zarch optimized routines.
1840         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1841         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1842         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1843         for zarch.
1844
1845 2012-09-05  David S. Miller  <davem@davemloft.net>
1846
1847         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1848
1849         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1850         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1851         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1852         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1853         entries.
1854
1855 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1856
1857         * malloc/arena.c: Fold copyright years.
1858         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1859
1860 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1861
1862         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1863
1864 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1865
1866         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1867
1868 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1869
1870         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1871         change internal state upon failure.
1872
1873 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1874
1875         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1876         * malloc/memusage.c (mmap): Likewise.
1877         (mmap64, mremap): Likewise.  Adjust name in comment.
1878
1879 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1880
1881         * libio/fileops.c: Fix typos in comments.
1882         * libio/oldfileops.c: Likewise.
1883         * libio/wfileops.c: Likewise.
1884
1885 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1886
1887         [BZ #1349]
1888         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1889         (tst-malloc-usable-ENV): Set environment for test case.
1890         * malloc/hooks.c (malloc_check_get_size): New function to get
1891         requested size.
1892         * malloc/malloc.c (musable): Use malloc_check_get_size.
1893         * malloc/tst-malloc-usable.c: New test case.
1894
1895 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1896
1897         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1898
1899 2012-09-05  Allan McRae  <allan@archlinux.org>
1900
1901         [BZ #13966]
1902         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1903         determine header location.
1904         * configure: Regenerated.
1905
1906 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1907
1908         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1909         float format.
1910         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1911         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1912         format.
1913         (test): Regenerate.
1914
1915 2012-09-04  David S. Miller  <davem@davemloft.net>
1916
1917         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1918         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1919         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1920
1921 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1922
1923         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1924         failures.
1925
1926         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1927
1928 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1929
1930         [BZ #9914]
1931         * libio/iogetdelim.c: Include <limits.h>.
1932         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1933         + len + 1 would overflow.
1934
1935 2012-09-03  Andreas Jaeger  <aj@suse.de>
1936
1937         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1938         * sysdeps/i386/fpu/libm-test-ulps: Update.
1939
1940 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1941
1942         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1943         Add s_sinf-sse2, s_conf-sse2.
1944
1945         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1946         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1947         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1948         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1949
1950         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1951         for using routine as __sinf_ia32.
1952         Use macro for function declaration and weak_alias.
1953         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1954         for using routine as __cosf_ia32.
1955         Use macro for function declaration and weak_alias.
1956
1957         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1958         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1959
1960         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1961         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1962         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1963
1964         * math/libm-test.inc (cos_test): Add more test cases.
1965         (sin_test): Likewise.
1966         (sincos_test): Likewise.
1967
1968 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1969
1970         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1971         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1972         hidden.
1973         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1974
1975 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1976
1977         [BZ #14538]
1978         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1979         first element of the GOT.
1980         (elf_machine_load_address): Return the difference between
1981         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1982
1983 2012-09-01  Allan McRae  <allan@archlinux.org>
1984
1985         [BZ #13412]
1986         * configure.in (AWK): Require gawk version 3.0 or later.
1987         * configure: Regenerated.
1988
1989 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1990
1991         * sysdeps/unix/sysv/linux/kernel-features.h
1992         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1993         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1994         [__NR_clock_getres]: Make code unconditional.
1995         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1996         (clock_getcpuclockid): Remove code left unreachable by removal of
1997         conditionals.
1998         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1999         code unconditional.
2000         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2001         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2002         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2003         Make code unconditional.
2004         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2005         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2006         * sysdeps/unix/sysv/linux/clock_settime.c
2007         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2008         conditional code.
2009         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2010         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2011
2012 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2013
2014         [BZ #14476]
2015         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2016         scripts/test-installation.pl.
2017
2018         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2019         and $ld_so_version if it is set.
2020
2021 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2022
2023         [BZ #14516]
2024         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2025         failure if reading from procfs failed.
2026         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2027
2028 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2029
2030         * sysdeps/unix/sysv/linux/kernel-features.h
2031         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2032         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2033         Remove conditional code.
2034         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2035         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2036         Remove conditional code.
2037         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2038         * sysdeps/unix/sysv/linux/i386/fxstat.c
2039         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2040         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2041         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2042         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2043         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2044         * sysdeps/unix/sysv/linux/i386/lxstat.c
2045         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2046         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2047         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2048         Remove conditional code.
2049         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2050         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2051         Remove conditional code.
2052         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2053         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2054         <kernel-features.h>.
2055         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2056         Remove.
2057         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2058         Remove conditional code.
2059         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2060         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2061         Remove conditional.
2062
2063 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2064
2065         [BZ #5400]
2066         * NEWS: Add fixed bug number.
2067
2068 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2069
2070         [BZ #14519]
2071         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2072         underflowing exponent in case of negative sign.
2073         * stdlib/tst-strtod-round-data: Add more tests.
2074         * stdlib/tst-strtod-round.c (tests): Regenerated.
2075
2076         [BZ #3479]
2077         * stdlib/strtod_l.c (NDIG): Remove.
2078         (HEXNDIG): Likewise.
2079         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2080         smallest representable value.
2081         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2082         lie within an exact representation of 1/2 ulp of the result.
2083         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2084         unconditionally.
2085         (TENS_P9_IDX): Define unconditionally.
2086         (TENS_P9_SIZE): Likewise.
2087         (TENS_P10_IDX): Likewise.
2088         (TENS_P10_SIZE): Likewise.
2089         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2090         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2091         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2092         entries for 10^2^13 and 10^2^14.
2093         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2094         (TENS_P13_IDX): Define.
2095         (TENS_P13_SIZE): Likewise.
2096         (TENS_P14_IDX): Likewise.
2097         (TENS_P14_SIZE): Likewise.
2098         (_fpioconst_pow10): Change array size to
2099         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2100         unconditional.
2101         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2102         1024]: Add entries for 10^2^13 and 10^2^14.
2103         [LAST_POW10 > _LAST_POW10]: Remove #error.
2104         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2105         (_fpioconst_pow10): Change array size to
2106         FPIOCONST_POW10_ARRAY_SIZE.
2107         * stdlib/gen-fpioconst.c: New file.
2108         * stdlib/gen-tst-strtod-round.c: Likewise.
2109         * stdlib/tst-strtod-round-data: Likewise.
2110         * stdlib/tst-strtod-round.c: Likewise.
2111         * stdlib/Makefile (tests): Add tst-strtod-round.
2112
2113         [BZ #14459]
2114         * stdlib/strtod_l.c: Include <stdint.h>.
2115         (NDEBUG): Do not define.
2116         (round_and_return): Change EXPONENT parameter to type intmax_t.
2117         Rearrange calculations to avoid internal overflow possibilities.
2118         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2119         Rearrange calculations to avoid internal overflow possibilities.
2120         Assert that number fits inside MPNSIZE limbs.
2121         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2122         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2123         calculations and add assertions to avoid internal overflow
2124         possibilities.  Add casts to avoid signed/unsigned operations.
2125         * stdlib/tst-strtod-overflow.c: New file.
2126         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2127
2128 2012-08-25  Marek Polacek  <polacek@redhat.com>
2129
2130         * time/time.h: Fix some typos in comments.
2131
2132 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2133
2134         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2135         * posix/tst-rfc3484-2.c: Likewise.
2136         * posix/tst-rfc3484-3.c: Likewise.
2137
2138 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2139
2140         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2141         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2142
2143 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2144
2145         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2146         #include of fxstatat64.c.
2147
2148 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2149
2150         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2151         * shadow/getspent_r.c: Likewise.
2152         * shadow/getspnam.c: Likewise.
2153         * shadow/getspnam_r.c: Likewise.
2154         * gshadow/getsgent.c: Likewise.
2155         * gshadow/getsgent_r.c: Likewise.
2156         * gshadow/getsgnam.c: Likewise.
2157         * gshadow/getsgnam_r.c: Likewise.
2158         * inet/getnetbyad.c: Likewise.
2159         * inet/getnetbyad_r.c: Likewise.
2160         * inet/getnetbynm.c: Likewise.
2161         * inet/getnetbynm_r.c: Likewise.
2162         * inet/getnetent.c: Likewise.
2163         * inet/getnetent_r.c: Likewise.
2164         * inet/getproto.c: Likewise.
2165         * inet/getproto_r.c: Likewise.
2166         * inet/getprtent.c: Likewise.
2167         * inet/getprtent_r.c: Likewise.
2168         * inet/getprtname.c: Likewise.
2169         * inet/getprtname_r.c: Likewise.
2170         * inet/getrpcbyname.c: Likewise.
2171         * inet/getrpcbyname_r.c: Likewise.
2172         * inet/getrpcbynumber.c: Likewise.
2173         * inet/getrpcbynumber_r.c: Likewise.
2174         * inet/getrpcent.c: Likewise.
2175         * inet/getrpcent_r.c: Likewise.
2176         * inet/getaliasent.c: Likewise.
2177         * inet/getaliasent_r.c: Likewise.
2178         * inet/getaliasname.c: Likewise.
2179         * inet/getaliasname_r.c: Likewise.
2180         * nscd/getgrgid_r.c: Likewise.
2181         * nscd/getgrnam_r.c: Likewise.
2182         * nscd/gethstbyad_r.c: Likewise.
2183         * nscd/gethstbynm3_r.c: Likewise.
2184         * nscd/getpwnam_r.c: Likewise.
2185         * nscd/getpwuid_r.c: Likewise.
2186         * nscd/getsrvbynm_r.c: Likewise.
2187         * nscd/getsrvbypt_r.c: Likewise.
2188         * nscd/gai.c: Likewise.
2189
2190         * configure.in (build_nscd): New substituted variable, set
2191         by --disable-build-nscd and defaults to $use_nscd.
2192         * configure: Regenerated.
2193         * config.make.in (build-nscd): New substituted variable.
2194         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2195         Change conditional to require [$(build-nscd) = yes] as well.
2196         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2197
2198         [BZ# 13696]
2199         * configure.in (use_nscd): New substituted variable, set by
2200         --disable-nscd.  If enabled, define USE_NSCD.
2201         * configure: Regenerated.
2202         * config.h.in: Add USE_NSCD.
2203         * config.make.in (use-nscd): New substituted variable.
2204         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2205         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2206         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2207         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2208         (CFLAGS-getgrnam_r.c): Likewise.
2209         (CFLAGS-initgroups.c): Likewise.
2210         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2211         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2212         Variables removed.
2213         * inet/getnetgrent_r.c
2214         (nscd_setnetgrent): New function, broken out of ...
2215         (setnetgrent): ... here.  Call it.
2216         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2217         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2218         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2219         * nscd/Makefile (routines, aux): Move definitions after include of
2220         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2221         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2222         Conditionalize on [USE_NSCD].
2223         (is_nscd, nscd_init_cb): Likewise.
2224         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2225         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2226         * nss/nss_db/db-init.c: Likewise.
2227         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2228         [USE_NSCD].
2229         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2230         (make_request): Use it.
2231         (cache_valid_p): New function.
2232         (__check_pf): Use it.
2233         * NEWS: Add item for --disable-nscd.
2234
2235 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2236
2237         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2238         to support sed >= 4.2.1-20-ga9bf076.
2239         * configure: Regenerated.
2240
2241 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2242
2243         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2244         Conditionalize whole body on [IREL].
2245
2246 2012-08-22  Jeff Law <law@redhat.com>
2247
2248         [BZ #14505]
2249         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2250         if the family is PF_UNSPEC.
2251
2252 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2253
2254         * Makerules (lib-version): Rename from V.
2255         (install-lib-nosubdir): Change V to lib-version.
2256
2257 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2258
2259         [BZ #14252]
2260         * powerpc32/power6/wcschr.c: New file.
2261         * powerpc32/power6/wcscpy.c: New file.
2262         * powerpc32/power6/wcsrchr.c: New file.
2263         * powerpc64/power6/wcschr.c: New file.
2264         * powerpc64/power6/wcscpy.c: New file.
2265         * powerpc64/power6/wcsrchr.c: New file.
2266
2267 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2268
2269         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2270         (two_way_short_needle): Use it.
2271         * string/strstr.c (AVAILABLE1_USES_J): Define.
2272         * string/strcasestr.c: Likewise.
2273
2274         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2275         array references.
2276         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2277
2278         [BZ #11607]
2279         * NEWS: Add an entry.
2280         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2281         define their defaults.
2282         (two_way_short_needle): Detect end-of-string on-the-fly.
2283         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2284         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2285         * string/bug-strcasestr1.c: New test.
2286         * string/Makefile: Run it.
2287
2288 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2289
2290         [BZ #11607]
2291         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2292         the first character.
2293
2294 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2295
2296         * csu/elf-init.c (__libc_csu_irel): Function removed.
2297         * csu/libc-start.c (apply_irel): New function.
2298         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2299
2300 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2301
2302         * sysdeps/unix/sysv/linux/kernel-features.h
2303         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2304         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2305         <kernel-features.h>.
2306         [__NR_fadvise64_64]: Make code unconditional.
2307         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2308         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2309         !__NR_fadvise64_64)]: Likewise.
2310         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2311         !__NR_fadvise64_64))]: Likewise.
2312         [__NR_fadvise64]: Make code unconditional.
2313         [!__NR_fadvise64]: Remove conditional code.
2314         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2315         <kernel-features.h>.
2316         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2317         unconditional.
2318         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2319         conditional code.
2320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2321         not include <kernel-features.h>.
2322         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2323         unconditional.
2324         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2325         conditional code.
2326         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2327         include <kernel-features.h>.
2328         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2329         unconditional.
2330         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2331         conditional code.
2332
2333 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2334
2335         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2336         slight instruction rearrangements per scrollpipe analysis.
2337         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2338
2339 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2340
2341         * manual/syslog.texi (syslog; vsyslog, closelog):
2342         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2343         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2344
2345         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2346         DSOCAPS to match condition on defining it.
2347
2348 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2349
2350         * sysdeps/unix/sysv/linux/kernel-features.h
2351         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2353         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2354         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2356         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2357         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2358         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2359         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2360         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2361
2362         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2363         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2364
2365         * sysdeps/unix/sysv/linux/kernel-features.h
2366         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2367         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2368         unconditional.
2369         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2370         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2371         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2372         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2373         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2374         Make code unconditional.
2375         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2376         (__mmap64) [!__NR_mmap2]: Likewise.
2377         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2378         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2379         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2380         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2381         [__NR_mmap2]: Make code unconditional.
2382         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2383         (__mmap64) [!__NR_mmap2]: Likewise.
2384
2385 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2386
2387         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2388
2389 2012-08-18  Andreas Jaeger  <aj@suse.de>
2390
2391         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2392
2393 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2394
2395         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2396         * include/unistd.h (__have_sock_cloexec): Likewise.
2397         (__have_pipe2): Likewise.
2398         (__have_dup3): Likewise.
2399
2400 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2401
2402         [BZ #9685]
2403         * include/unistd.h (__have_pipe2): Change define into an extern int.
2404         (__have_dup3): Likewise.
2405         * socket/have_sock_cloexec.c: Include fcntl.h.
2406         (__have_pipe2): New variable.
2407         (__have_dup3): Likewise.
2408
2409 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2410
2411         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2412
2413 2012-08-17  Marek Polacek  <polacek@redhat.com>
2414
2415         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2416         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2417
2418 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2419
2420         * configure.in: Add AC_SUBST for sysheaders.
2421         * configure: Regenerated.
2422         * config.make.in (sysheaders): New substituted variable.
2423
2424         * sysdeps/unix/mkfifo.c: Moved ...
2425         * sysdeps/posix/mkfifo.c: ... here.
2426         * sysdeps/unix/mkfifoat.c: Moved ...
2427         * sysdeps/posix/mkfifoat.c: ... here.
2428
2429         * sysdeps/unix/utime.c: Moved ...
2430         * sysdeps/posix/utime.c: ... here.
2431
2432         * sysdeps/unix/time.c: Moved ...
2433         * sysdeps/posix/time.c: ... here.
2434         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2435         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2436
2437         * sysdeps/unix/nice.c: Moved ...
2438         * sysdeps/posix/nice.c: ... here.
2439
2440         * sysdeps/unix/alarm.c: Moved ...
2441         * sysdeps/posix/alarm.c: ... here.
2442
2443         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2444
2445 2012-08-17  Jeff Law <law@redhat.com>
2446
2447         * intl/Makefile (codeset_mo): New variable.
2448         ($(codeset_mo)): New target.
2449         (tst-codeset.out): Depend on that.  Remove explicit rule.
2450         (tst-gettext3.out, tst-gettext5.out): Likewise.
2451         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2452         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2453         * intl/tst-codeset.sh: Remove.
2454         * intl/tst-gettext3.sh: Likewise.
2455         * intl/tst-gettext5.sh: Likewise.
2456
2457 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2458
2459         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2460         * sysdeps/unix/syscalls.list: ... here.
2461
2462         * sysdeps/posix/getaddrinfo.c
2463         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2464         (gaiconf_init, gaiconf_reload): Use them.
2465         [!_STATBUF_ST_NSEC]
2466         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2467         Define using time_t rather than struct timespec.
2468
2469         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2470         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2471         Macros removed.
2472         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2473         [!NO_THREADS].
2474         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2475         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2476         Likewise.
2477
2478         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2479         __libc_cleanup_push argument.
2480
2481         * bits/param.h: New file.
2482         * misc/sys/param.h: New file.
2483         * include/sys/param.h: New file.
2484         * misc/Makefile (headers): Add bits/param.h.
2485         * sysdeps/generic/sys/param.h: File removed.
2486         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2487         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2488         * sysdeps/mach/hurd/bits/param.h: New file.
2489         * sysdeps/mach/hurd/sys/param.h: New file.
2490
2491         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2492         last change.
2493
2494         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2495         [_IO_MTSAFE_IO].
2496         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2497         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2498         New macros.
2499
2500         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2501         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2502         rather than -D_IO_MTSAFE_IO conditionally.
2503         * stdio-common/Makefile (CPPFLAGS): Likewise.
2504         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2505         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2506         Use $(libio-mtsafe).
2507         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2508         of -D_IO_MTSAFE_IO.
2509         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2510         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2511         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2512         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2513         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2514         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2515         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2516         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2517         (CFLAGS-fread_u_chk.c): Likewise.
2518         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2519         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2520         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2521         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2522         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2523         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2524         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2525         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2526         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2527
2528         * libio/Makefile: Test [$(libc-reentrant) = yes]
2529         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2530
2531         * Makeconfig
2532         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2533         * sysdeps/pthread/configure: File removed.
2534         * sysdeps/pthread/Makeconfig: New file.
2535         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2536         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2537
2538 2012-08-16  Gary Benson  <gbenson@redhat.com>
2539
2540         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2541         unmapping the first object in a namespace.
2542
2543 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2544
2545         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2546         (__internal_setnetgrent): ... this.  Add internal_function to
2547         definition.  Add libc_hidden_def.
2548         (setnetgrent): Update caller.
2549         (internal_endnetgrent): Renamed to ...
2550         (__internal_endnetgrent): ... this.  Add internal_function to
2551         definition.  Add libc_hidden_def.
2552         (endnetgrent): Update caller.
2553         (internal_getnetgrent_r): Renamed to ...
2554         (__internal_getnetgrent_r): ... this.  Add internal_function to
2555         definition.  Add libc_hidden_def.
2556         (__getnetgrent_r): Update caller.
2557         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2558
2559 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2560
2561         * stdlib/longlong.h: Update from GCC.
2562
2563 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2564
2565         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2566         on _QL, which is set by umul_ppmm but never used.
2567         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2568         variables, which are set by GMP macros but never used.
2569         * stdio-common/_itowa.c (_itowa): Likewise.
2570         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2571         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2572
2573 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2574
2575         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2576         struct La_sh_regs is not constant.
2577         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2578         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2579         and struct La_sparc64_regs are not constant.
2580
2581 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2582
2583         * sysdeps/unix/sysv/linux/kernel-features.h
2584         (__ASSUME_POSIX_TIMERS): Remove.
2585         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2586         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2587         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2588         Make code unconditional.
2589         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2590         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2591         Make code unconditional.
2592         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2593         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2594         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2595         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2596         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2597         Make code unconditional.
2598         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2599         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2600         (__libc_missing_posix_timers): Remove.
2601
2602 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2603
2604         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2605         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2606
2607         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2608
2609         * elf/dl-sym.c: Include <stdlib.h>.
2610
2611         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2612         constants, which avoids warnings in 32-bit builds.
2613
2614         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2615         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2616
2617         * misc/lseek.c: File moved to ...
2618         * io/lseek.c: ... here.
2619
2620         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2621
2622         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2623         shifting LEN more than 31 bits at once.
2624
2625 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2626
2627         [BZ #14195]
2628         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2629         segmentation fault for a case of two empty input strings.
2630         * string/test-strncasecmp.c (check1): Renamed to...
2631         (bz12205): ...this.
2632         (bz14195): Add new testcase for two empty input strings and N > 0.
2633         (test_main): Call new testcase, adapt for renamed function.
2634
2635 2012-08-15  Andreas Jaeger  <aj@suse.de>
2636
2637         [BZ #14090]
2638         * crypt/md5test2.c: New test, based on test supplied by Serge
2639         Belyshev <belyshev@depni.sinp.msu.ru>.
2640         * crypt/Makefile (xtests): Add md5test-giant..
2641         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2642
2643 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2644
2645         [BZ #14090]
2646         * crypt/md5.c (md5_process_block): Don't assume the buffer
2647         length is less than 2**32.
2648         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2649         length is less than 2**64.
2650
2651 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2652
2653         * string/str-two-way.h: Include <sys/param.h>.
2654         (MAX): Macro removed.
2655
2656         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2657         Move #define and #undef of memmove to just before and after
2658         including <string.h>.
2659
2660         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2661         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2662         and after including <string.h>.  Move declarations of
2663         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2664         to before #include "string/memmove.c".
2665
2666         * include/dirent.h: Declare __getdirentries.
2667
2668         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2669         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2670
2671 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2672
2673         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2674         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2675         * sysdeps/i386/configure: Regenerated.
2676         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2677         STABS_CURRENT_FILE, and STABS_FUN.
2678         (END): Remove call to STABS_FUN_END.
2679         (STABS_CURRENT_FILE1): Delete.
2680         (STABS_CURRENT_FILE): Likewise.
2681         (STABS_FUN): Likewise.
2682         (STABS_FUN_END): Likewise.
2683         (STABS_FUN2): Likewise.
2684         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2685         * sysdeps/x86_64/configure: Regenerated.
2686
2687 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2688
2689         * elf/dl-open.c: Include <atomic.h>.
2690         * elf/dl-lookup.c: Likewise.
2691
2692 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2693
2694         * sysdeps/unix/sysv/linux/kernel-features.h
2695         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2696         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2697         unconditionally.
2698         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2699         unconditionally.
2700         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2701         condition on __ASSUME_CLONE_THREAD_FLAGS.
2702
2703 2012-08-14  Andreas Jaeger  <aj@suse.de>
2704
2705         * sysdeps/i386/fpu/libm-test-ulps: Update.
2706
2707 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2708
2709         * include/atomic.h (atomic_exchange_and_add): Split into ...
2710         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2711         New atomic macros.
2712
2713 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2714
2715         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2716
2717 2012-08-13  Jeff Law <law@redhat.com>
2718
2719         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2720         null byte in the output string.
2721
2722 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2723
2724         * sysdeps/unix/sysv/linux/kernel-features.h
2725         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2726         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2727         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2728         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2729         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2730         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2731         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2732
2733 2012-08-09  Jeff Law <law@redhat.com>
2734
2735         [BZ #13939]
2736         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2737         When avoid_arena is set, don't retry in the that arena.  Pick the
2738         next one, whatever it might be.
2739         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2740         (arena_lock): Pass in new parameter to arena_get2.
2741         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2742         arena_get2.
2743         (__libc_malloc): Unify retrying after main arena failure with
2744         __libc_memalign version.
2745         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2746
2747 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2748
2749         [BZ #14166]
2750         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2751         to __redirect_strstr.
2752         (__strstr_sse42): Use typeof __redirect_strstr.
2753         (__strstr_ia32): Likewise.
2754         (__libc_strstr): New prototype.
2755         (strstr): Renamed to ...
2756         (__libc_strstr): This.
2757         (strstr): New strong alias of __libc_strstr.
2758         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2759         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2760         __redirect_time.
2761         Include <time.h>.
2762         (__libc_time): New prototype.
2763         (time_ifunc): Replace time with __libc_time.
2764         (time): New strong alias and hidden definition of __libc_time.
2765         (__GI_time): Remove strong alias.
2766         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2767         Include <stddef.h>.
2768         (memmove): Redefined to __redirect_memmove.
2769         (__memmove_sse2): Use typeof __redirect_memmove.
2770         (__memmove_ssse3): Likewise.
2771         (__memmove_ssse3_back): Likewise.
2772         (__libc_memmove): New prototype.
2773         (memmove): Renamed to ...
2774         (__libc_memmove): This.
2775         (memmove): New strong alias of __libc_memmove.
2776
2777 2012-08-08  Mark Salter  <msalter@redhat.com>
2778
2779         * elf/elf.h
2780         (R_MN10300_TLS_GD): Define.
2781         (R_MN10300_TLS_LD): Likewise.
2782         (R_MN10300_TLS_LDO): Likewise.
2783         (R_MN10300_TLS_GOTIE): Likewise.
2784         (R_MN10300_TLS_IE): Likewise.
2785         (R_MN10300_TLS_LE): Likewise.
2786         (R_MN10300_TLS_DTPMOD): Likewise.
2787         (R_MN10300_TLS_DTPOFF): Likewise.
2788         (R_MN10300_TLS_TPOFF): Likewise.
2789         (R_MN10300_SYM_DIFF): Likewise.
2790         (R_MN10300_ALIGN): Likewise.
2791         (R_MN10300_NUM): Update.
2792
2793 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2794
2795         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2796         Remove.
2797
2798 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2799
2800         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2801
2802         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2803         sysdeps/unix -> sysdeps/posix move.
2804         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2805
2806 2012-08-07      Allan McRae     <allan@archlinux.org>
2807
2808         [BZ #14303]
2809         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2810         (SUNOS_CPP): Likewise.
2811         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2812         not found.
2813         (open_input): Call CPP using execvp.
2814
2815 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2816
2817         * sysdeps/unix/sysv/linux/kernel-features.h
2818         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2819         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2820         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2821         (__ASSUME_WAITID_SYSCALL): Likewise.
2822         * sysdeps/unix/sysv/linux/dl-execstack.c
2823         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2824         code unconditional.
2825         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2826         conditional code.
2827         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2828         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2829         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2830         code.
2831         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2832         unconditional.
2833         [__ASSUME_WAITID_SYSCALL]: Likewise.
2834         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2835
2836 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2837
2838         * sysdeps/unix/closedir.c: Renamed to ...
2839         * sysdeps/posix/closedir.c: ... here.
2840         * sysdeps/unix/dirfd.c: Renamed to ...
2841         * sysdeps/posix/dirfd.c: ... here.
2842         * sysdeps/unix/dirstream.h: Renamed to ...
2843         * sysdeps/posix/dirstream.h: ... here.
2844         * sysdeps/unix/fdopendir.c: Renamed to ...
2845         * sysdeps/posix/fdopendir.c: ... here.
2846         * sysdeps/unix/opendir.c: Renamed to ...
2847         * sysdeps/posix/opendir.c: ... here.
2848         * sysdeps/unix/readdir.c: Renamed to ...
2849         * sysdeps/posix/readdir.c: ... here.
2850         * sysdeps/unix/readdir_r.c: Renamed to ...
2851         * sysdeps/posix/readdir_r.c: ... here.
2852         * sysdeps/unix/rewinddir.c: Renamed to ...
2853         * sysdeps/posix/rewinddir.c: ... here.
2854         * sysdeps/unix/seekdir.c: Renamed to ...
2855         * sysdeps/posix/seekdir.c: ... here.
2856         * sysdeps/unix/telldir.c: Renamed to ...
2857         * sysdeps/posix/telldir.c: ... here.
2858         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2859         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2860         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2861         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2862
2863         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2864         * bits/fcntl.h: ... here.
2865
2866         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2867         not 0.
2868         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2869         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2870         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2871         (struct flock): Move l_start, l_len to the beginning.
2872         Use __pid_t for l_pid.
2873         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2874         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2875         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2876         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2877         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2878         [__USE_LARGEFILE64] (struct flock64): New type.
2879         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2880
2881         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2882         * bits/dirent.h: ... here.
2883
2884         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2885         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2886
2887 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2888
2889         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2890         Change from 2.6.0 to 2.6.16.
2891         * sysdeps/unix/sysv/linux/configure: Regenerated.
2892         * sysdeps/unix/sysv/linux/kernel-features.h
2893         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2894         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2895         version.
2896         (__ASSUME_UTIMES): Likewise.
2897         (__ASSUME_CLONE_STOPPED): Remove.
2898         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2899         architectures, not kernel version.
2900         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2901         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2902         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2903         (__ASSUME_WAITID_SYSCALL): Likewise.
2904         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2905         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2906         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2907         refer to older versions.
2908
2909 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2910
2911         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2912         Define alphasort64 as an alias.
2913         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2914         Define versionsort64 as an alias.
2915         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2916         Define scandir64 as an alias.
2917         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2918         Define scandirat64 as an alias.
2919         * dirent/alphasort64.c (alphasort64):
2920         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2921         * dirent/versionsort64.c: Likewise.
2922         * dirent/scandir64.c: Likewise.
2923         * dirent/scandirat64.c: Likewise.
2924         * sysdeps/wordsize-64/alphasort.c: File removed.
2925         * sysdeps/wordsize-64/alphasort64.c: File removed.
2926         * sysdeps/wordsize-64/scandir.c: File removed.
2927         * sysdeps/wordsize-64/scandir64.c: File removed.
2928         * sysdeps/wordsize-64/scandirat.c: File removed.
2929         * sysdeps/wordsize-64/scandirat64.c: File removed.
2930         * sysdeps/wordsize-64/versionsort.c: File removed.
2931         * sysdeps/wordsize-64/versionsort64.c: File removed.
2932         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2933         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2934         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2935         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2936         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2937         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2938         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2939         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2940
2941         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2942         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2943         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2944         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2945         [defined __arch64__ || defined __sparcv9]
2946         (__INO_T_MATCHES_INO64_T): New macro.
2947         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2948         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2949         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2950         * sysdeps/unix/sysv/linux/bits/dirent.h
2951         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2952         (_DIRENT_MATCHES_DIRENT64): New macro.
2953
2954         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2955         Define lockf64 as an alias.
2956         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2957         Define fseeko64 as an alias.
2958         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2959         Define ftello64 as an alias.
2960         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2961         Define _IO_fgetpos64 and fgetpos64 as aliases.
2962         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2963         Define _IO_fsetpos64 and fsetpos64 as aliases.
2964         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2965         Conditionalize body on this.
2966         * libio/fseeko64.c: Likewise.
2967         * libio/ftello64.c: Likewise.
2968         * libio/iofgetpos64.c: Likewise.
2969         * libio/iofsetpos64.c: Likewise.
2970         * sysdeps/wordsize-64/lockf.c: File removed.
2971         * sysdeps/wordsize-64/lockf64.c: File removed.
2972         * sysdeps/wordsize-64/fseeko.c: File removed.
2973         * sysdeps/wordsize-64/fseeko64.c: File removed.
2974         * sysdeps/wordsize-64/ftello.c: File removed.
2975         * sysdeps/wordsize-64/ftello64.c: File removed.
2976         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2977         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2978         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2979         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2980         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2981         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2982         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2983         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2984         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2985         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2986         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2987         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2988         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2989         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2990
2991         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2992         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2993         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2994         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2995         [defined __arch64__ || defined __sparcv9]
2996         (__OFF_T_MATCHES_OFF64_T): New macro.
2997         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2998         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2999         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3000         (__OFF_T_MATCHES_OFF64_T): New macro.
3001
3002 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3003
3004         * stdlib/secure-getenv.c (__secure_getenv): Replace
3005         GLIBC_2_16 with GLIBC_2_17.
3006
3007 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3008
3009         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3010         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3011
3012 2012-08-03  David S. Miller  <davem@davemloft.net>
3013
3014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3015
3016 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3017
3018         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3019         Remove.
3020         (__ASSUME_CORRECT_SI_PID): Likewise.
3021         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3022         (__ASSUME_TMPFS_NAME): Likewise.
3023         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3024         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3025         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3026         (HAVE_AUX_SECURE): Make definition unconditional.
3027         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3028         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3029
3030 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3031
3032         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3033         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3034         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3035         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3036         __eloop_threshold instead of SYMLOOP_MAX.
3037
3038         * sysdeps/generic/eloop-threshold.h: New file.
3039         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3040         of MAXSYMLINKS.
3041         * elf/chroot_canon.c (chroot_canon): Likewise.
3042
3043 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3044
3045         [BZ #13717]
3046         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3047         Change to 2.6.0 everywhere.
3048         * sysdeps/unix/sysv/linux/configure: Regenerated.
3049         * sysdeps/unix/sysv/linux/kernel-features.h
3050         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3051         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3052         kernel versions.
3053         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3054         (__ASSUME_FUTEX_REQUEUE): Remove.
3055         (__ASSUME_STATFS64): Define unconditionally.
3056         (__ASSUME_AT_SECURE): Likewise.
3057         (__ASSUME_CORRECT_SI_PID): Likewise.
3058         (__ASSUME_TGKILL): Define without depending on kernel version for
3059         i386.
3060         (__ASSUME_UTIMES): Likewise.
3061         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3062         kernel version.
3063         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3064         (__ASSUME_TMPFS_NAME): Likewise.
3065         * README: Update reference to Linux kernel versions.
3066
3067 2012-08-02  Marek Polacek  <polacek@redhat.com>
3068
3069         [BZ# 14150]
3070         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3071         libc_cv_asm_type_prefix with %.
3072         * configure: Regenerated.
3073         * include/libc-symbols.h: Remove comment about
3074         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3075         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3076         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3077         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3078         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3079         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3080         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3081         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3082         * elf/tst-unique2mod1.c: Likewise.
3083         * elf/tst-unique1mod2.c: Likewise.
3084         * elf/tst-unique1mod1.c: Likewise.
3085         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3086         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3087         Replace ASM_TYPE_DIRECTIVE with .type.
3088         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3089         * sysdeps/i386/sysdep.h: Likewise.
3090         * sysdeps/x86_64/sysdep.h: Likewise.
3091         * sysdeps/sh/sysdep.h: Likewise.
3092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3093         Do not define ASM_TYPE_DIRECTIVE.
3094         * sysdeps/powerpc/sysdep.h: Likewise.
3095         * sysdeps/powerpc/powerpc32/sysdep.h:
3096         Replace ASM_TYPE_DIRECTIVE with .type.
3097         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3098         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3099         * sysdeps/i386/fpu/e_powf.S: Likewise.
3100         * sysdeps/i386/fpu/e_expl.S: Likewise.
3101         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3102         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3103         * sysdeps/i386/fpu/e_pow.S: Likewise.
3104         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3105         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3106         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3107         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3108         * sysdeps/i386/fpu/e_log2.S: Likewise.
3109         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3110         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3111         * sysdeps/i386/fpu/e_powl.S: Likewise.
3112         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3113         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3114         * sysdeps/i386/fpu/e_logl.S: Likewise.
3115         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3116         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3117         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3118         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3119         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3120         * sysdeps/i386/fpu/e_log.S: Likewise.
3121         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3122         * sysdeps/i386/fpu/e_logf.S: Likewise.
3123         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3124         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3125         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3126         * sysdeps/i386/fpu/e_log10.S: Likewise.
3127         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3128         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3129         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3130         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3131         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3132         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3133         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3134         * sysdeps/i386/i686/strtok.S: Likewise.
3135         * sysdeps/i386/i386-mcount.S: Likewise.
3136         * sysdeps/i386/strtok.S: Likewise.
3137         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3138         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3139         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3140         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3141         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3142         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3143         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3144         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3145         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3146         * sysdeps/x86_64/_mcount.S: Likewise.
3147         * sysdeps/x86_64/strtok.S: Likewise.
3148         * sysdeps/sh/_mcount.S: Likewise.
3149
3150 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3151
3152         * libio/iofopen.c: Include <fcntl.h>.
3153         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3154         (_IO_fopen64, fopen64): Define as aliases.
3155         * libio/iofopen64.c: Include <fcntl.h>.
3156         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3157         Conditionalize body on this.
3158         * sysdeps/wordsize-64/iofopen.c: File removed.
3159         * sysdeps/wordsize-64/iofopen64.c: File removed.
3160
3161 2012-08-01  Marek Polacek  <polacek@redhat.com>
3162
3163         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3164         Use dlfcn directly instead of a variable.
3165         (binfmt-subdir): Do not define.
3166         (dlfcn): Likewise.
3167
3168 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3169
3170         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3171         Remove all definitions.
3172         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3173         <kernel-features.h>.
3174         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3175         (miss_F_GETOWN_EX): Remove all definitions.
3176         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3177         macro definition.
3178         [!__ASSUME_FCNTL64]: Remove conditional code.
3179         [__ASSUME_FCNTL64]: Make code unconditional.
3180         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3181         <kernel-features.h>.
3182         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3183         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3184         (lockf64) [__NR_fcntl64]: Make code unconditional.
3185         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3186
3187         * sysdeps/unix/sysv/linux/kernel-features.h
3188         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3189         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3190         Make code unconditional.
3191         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3192         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3194         [__NR_vfork]: Make code unconditional.
3195         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3196         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3198         [__NR_vfork]: Make code unconditional.
3199         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3200         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3201
3202 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3203
3204         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3205         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3206
3207         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3208         Define mkstemp64 as an alias.
3209         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3210         Define mkstemps64 as an alias.
3211         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3212         Define mkostemp64 as an alias.
3213         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3214         Define mkostemps64 as an alias.
3215         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3216         Conditionalize body on this.
3217         * misc/mkostemp64.c: Likewise.
3218         * misc/mkostemps64.c: Likewise.
3219         * misc/mkstemps64.c: Likewise.
3220         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3221         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3222         * sysdeps/wordsize-64/mkostemp.c: File removed.
3223         * sysdeps/wordsize-64/mkstemp.c: File removed.
3224         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3225         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3226         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3227         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3228
3229         [BZ #14138]
3230         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3231         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3232         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3233         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3234
3235         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3236         compat_symbol macros from <shlib-compat.h> rather than the underlying
3237         default_symbol_version and symbol_version macros, so that DEFAULT
3238         lines in shlib-versions are respected.
3239         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3240
3241 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3242
3243         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3244         Declare with warn_unused_result.
3245         (setgid, setregid, setegid, setresgid): Likewise.
3246         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3247         Likewise.
3248         * WUR-REPORT: Remove set*id functions.
3249
3250 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3251
3252         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3253
3254 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3255
3256         * include/sys/socket.h (__libc_accept, __libc_accept4):
3257         Add attribute_hidden.
3258         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3259
3260         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3261         use of PTR_MANGLE.
3262         * inet/getnetgrent_r.c (setup): Likewise.
3263
3264         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3265
3266 2012-07-31  David S. Miller  <davem@davemloft.net>
3267
3268         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3269
3270 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3271
3272         [BZ #13629]
3273         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3274         value between 1.0 and 2.0 and smaller part has absolute value less
3275         than 1.0.
3276         * math/s_clog10.c (__clog10): Likewise.
3277         * math/s_clog10f.c (__clog10f): Likewise.
3278         * math/s_clog10l.c (__clog10l): Likewise.
3279         * math/s_clogf.c (__clogf): Likewise.
3280         * math/s_clogl.c (__clogl): Likewise.
3281         * math/libm-test.inc (clog_test): Add more tests.
3282         (clog10_test): Likewise.
3283         * sysdeps/i386/fpu/libm-test-ulps: Update.
3284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3285
3286 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3287
3288         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3289         Exit with zero in case no suitable GID is found, and write a
3290         message to standard error.
3291
3292 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3293
3294         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3295         rather than to 1.
3296         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3297         (MAXPATHLEN): Removed.
3298         (NOGROUP, NODEV): New macros.
3299         (setbit, clrbit, isset, isclr): New macros.
3300         (howmany, roundup, powerof2): New macros.
3301         (DEV_BSIZE): New macro.
3302
3303         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3304         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3305
3306         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3307         definition on [!__NO_LONG_DOUBLE_MATH].
3308
3309         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3310         PTR_MANGLE and PTR_DEMANGLE.
3311
3312         * socket/accept4.c (accept4): Rename to __libc_accept4.
3313         Define accept4 as a weak alias.
3314
3315         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3316         on [_DIRENT_HAVE_D_TYPE].
3317         * io/ftw.c (ftw_dir): Likewise.
3318
3319         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3320
3321         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3322
3323         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3324         Use the BSD numbers rather than the arbitrary ones we had.
3325         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3326         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3327         (SIGXCPU, SIGXFSZ): New macros.
3328         (_NSIG): Now 32.
3329
3330         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3331         initializer on [_LIBC_REENTRANT].
3332
3333         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3334         definitions inside [_POSIX_MAPPED_FILES].
3335
3336         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3337
3338         * dirent/opendir.c: Include <fcntl.h>.
3339
3340         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3341         (__libc_getspecific): Likewise.
3342         (__libc_key_create): Likewise.
3343
3344         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3345         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3346         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3347         (tmpfile64): Define as alias.
3348         * sysdeps/wordsize-64/tmpfile.c: File removed.
3349         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3350         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3351         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3352
3353         * stdio-common/vfscanf.c: Include <stdbool.h>.
3354         * nss/makedb.c: Likewise.
3355         * stdio-common/_i18n_number.h: Likewise.
3356         * argp/argp-help.c: Likewise.
3357         * posix/wordexp.c: Likewise.
3358         * sysdeps/posix/spawni.c: Likewise.
3359         * nss/nss_files/files-initgroups.c: Likewise.
3360         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3361         * nss/nss_files/files-initgroups.c: Likewise.
3362         * nss/nss_db/db-netgrp.c: Likewise.
3363         * nss/nss_db/db-initgroups.c: Likewise.
3364         * io/fchmodat.c: Include <sys/stat.h>.
3365
3366         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3367         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3368
3369         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3370         [HAVE_MMAP].
3371
3372         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3373         Add multiple inclusion protection.
3374
3375 2012-07-27  David S. Miller  <davem@davemloft.net>
3376
3377         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3378
3379 2012-07-27  Gary Benson  <gbenson@redhat.com>
3380
3381         [BZ #14298]
3382         * elf/rtld.c: Include <stap-probe.h>.
3383         (dl_main): Added static probes "init_start" and "init_complete".
3384         * elf/dl-load.c: Include <stap-probe.h>.
3385         (lose): Take new parameter "nsid".
3386         Added static probe "map_failed".
3387         (_dl_map_object_from_fd): Pass namespace id to lose.
3388         Added static probe "map_start".
3389         (open_verify): Pass namespace id to lose.
3390         * elf/dl-open.c: Include <stap-probe.h>.
3391         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3392         and "reloc_complete".
3393         * elf/dl-close.c: Include <stap-probe.h>.
3394         (_dl_close_worker): Added static probes "unmap_start" and
3395         "unmap_complete".
3396         * elf/rtld-debugger-interface.txt: New file documenting the above.
3397
3398 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3399
3400         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3401         rather than a string variable.
3402         * sunrpc/rpc_main.c (h_output): Likewise.
3403         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3404
3405 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3406
3407         * inet/check_native.c: New file.
3408
3409 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3410
3411         [BZ #13629]
3412         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3413         if larger part has absolute value 1.0.
3414         * math/s_clog10.c (__clog10): Likewise.
3415         * math/s_clog10f.c (__clog10f): Likewise.
3416         * math/s_clog10l.c (__clog10l): Likewise.
3417         * math/s_clogf.c (__clogf): Likewise.
3418         * math/s_clogl.c (__clogl): Likewise.
3419         * math/libm-test.inc (clog_test): Add more tests.
3420         (clog10_test): Likewise.
3421         * sysdeps/i386/fpu/libm-test-ulps: Update.
3422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3423
3424         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3425         (pltexit): Likewise.
3426         (La_regs): Likewise.
3427         (La_retval): Likewise.
3428         (int_retval): Likewise.
3429         Update #error for removed macros to refer only to definitions in
3430         tst-audit.h.
3431         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3432         macro.
3433         (pltexit): Likewise.
3434         (La_regs): Likewise.
3435         (La_retval): Likewise.
3436         (int_retval): Likewise.
3437         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3438         macro.
3439         (pltexit): Likewise.
3440         (La_regs): Likewise.
3441         (La_retval): Likewise.
3442         (int_retval): Likewise.
3443         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3444         macro.
3445         (pltexit): Likewise.
3446         (La_regs): Likewise.
3447         (La_retval): Likewise.
3448         (int_retval): Likewise.
3449         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3450         macro.
3451         (pltexit): Likewise.
3452         (La_regs): Likewise.
3453         (La_retval): Likewise.
3454         (int_retval): Likewise.
3455         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3456         macro.
3457         (pltexit): Likewise.
3458         (La_regs): Likewise.
3459         (La_retval): Likewise.
3460         (int_retval): Likewise.
3461         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3462         macro.
3463         (pltexit): Likewise.
3464         (La_regs): Likewise.
3465         (La_retval): Likewise.
3466         (int_retval): Likewise.
3467         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3468         macro definitions in tst-audit.h.
3469         * sysdeps/i386/tst-audit.h: New file.
3470         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3471         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3472         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3473         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3474         * sysdeps/sh/tst-audit.h: Likewise.
3475         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3476         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3477         * sysdeps/x86_64/tst-audit.h: Likewise.
3478
3479 2012-07-26  Andreas Jaeger  <aj@suse.de>
3480
3481         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3482         ptrace.
3483
3484         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3485         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3486         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3487         PTRACE_O_MASK.
3488         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3489         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3490         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3491
3492         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3493         value.
3494
3495         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3496         _sigsys.
3497         (si_call_addr, si_syscall, si_arch): Define new macro.
3498         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3499         _sigsys.
3500         (si_call_addr, si_syscall, si_arch): Define new marcro.
3501         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3502         _sigsys.
3503         (si_call_addr, si_syscall, si_arch): Define new macro.
3504         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3505         _sigsys.
3506         (si_call_addr, si_syscall, si_arch): Define new macro.
3507
3508 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3509
3510         [BZ #13717]
3511         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3512         Change to 2.4.21 where previously 2.4.1.
3513         * sysdeps/unix/sysv/linux/configure: Regenerated.
3514         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3515         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3516         Linux kernel version.
3517         (__ASSUME_STD_AUXV): Remove.
3518         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3519         kernel version.
3520         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3521         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3522         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3523         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3524         (__ASSUME_NETLINK_SUPPORT): Likewise.
3525         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3526         (__no_netlink_support): Remove conditional definition.
3527         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3528         Remove.
3529         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3530         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3531         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3532         (if_nameindex_ioctl): Remove.
3533         (if_nameindex_netlink): Do not handle __no_netlink_support.
3534         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3535         code.
3536         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3537         Remove conditional code.
3538         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3539         code.
3540         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3541         unconditional.
3542         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3543         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3544         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3545         Remove.
3546         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3547         [!__ASSUME_STD_AUXV]: Remove conditional code.
3548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3549         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3550         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3552         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3553         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3554         code.
3555         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3557         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3558         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3559         conditional code.
3560         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3562         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3563         code.
3564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3565         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3566         conditional code.
3567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3568         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3569         code unconditional.
3570         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3571         conditional code.
3572         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3573         unconditional.
3574         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3575         conditional code.
3576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3577         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3578         unconditional.
3579         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3580         conditional code.
3581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3582         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3583         code unconditional.
3584         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3585         conditional code.
3586         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3587         unconditional.
3588         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3589         conditional code.
3590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3591         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3592         code unconditional.
3593         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3594         conditional code.
3595         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3596         unconditional.
3597         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3598         conditional code.
3599
3600 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3601
3602         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3603         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3604         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3605         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3606         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3607         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3608         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3609         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3610         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3611         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3612         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3613         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3614         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3615         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3616         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3617         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3618         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3619         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3620         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3621         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3622         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3623         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3624         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3625
3626 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3627
3628         * Versions.def: Add GLIBC_2.17.
3629         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3630         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3631         Introduce __libc_secure_getenv.
3632         * stdlib/Versions (2.17): Add secure_getenv
3633         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3634         * stdlib/secure-getenv.c: Rename __secure_getenv to
3635         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3636         symbol __secure_getenv for GLIBC_2.0.
3637         * stdlib/tst-secure-getenv.c: New.
3638         * stdlib/Makefile (tests): Add testcase.
3639         * manual/startup.texi (Environment Access): Document
3640         secure_getenv.
3641         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3642         __libc_secure_getenv.
3643         * inet/ruserpass.c (ruserpass): Likewise.
3644         * malloc/mtrace.c (mtrace): Likewise.
3645         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3646         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3647         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3648         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3649         HAVE_SECURE_GETENV.
3650         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3651         __secure_getenv to __libc_secure_getenv.
3652         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3654         Likewise.
3655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3656         Likewise.
3657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3658         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3659         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3660         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3661         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3662         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3663         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3664
3665 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3666
3667         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3668         (struct La_i86_retval): Likewise.
3669         (struct La_x86_64_regs): Likewise.
3670         (struct La_x86_64_retval): Likewise.
3671         (struct La_x32_regs): Likewise.
3672         (struct La_x32_retval): Likewise.
3673         (struct La_ppc32_regs): Likewise.
3674         (struct La_ppc32_retval): Likewise.
3675         (struct La_ppc64_regs): Likewise.
3676         (struct La_ppc64_retval): Likewise.
3677         (struct La_sh_regs): Likewise.
3678         (struct La_sh_retval): Likewise.
3679         (struct La_s390_32_regs): Likewise.
3680         (struct La_s390_32_retval): Likewise.
3681         (struct La_s390_64_regs): Likewise.
3682         (struct La_s390_64_retval): Likewise.
3683         (struct La_sparc32_regs): Likewise.
3684         (struct La_sparc32_retval): Likewise.
3685         (struct La_sparc64_regs): Likewise.
3686         (struct La_sparc64_retval): Likewise.
3687         (struct audit_ifaces): Remove architecture-specific pltenter and
3688         pltexit members.
3689         * sysdeps/i386/ldsodefs.h: New file.
3690         * sysdeps/powerpc/ldsodefs.h: Likewise.
3691         * sysdeps/s390/ldsodefs.h: Likewise.
3692         * sysdeps/sh/ldsodefs.h: Likewise.
3693         * sysdeps/sparc/ldsodefs.h: Likewise.
3694         * sysdeps/x86_64/ldsodefs.h: Likewise.
3695
3696 2012-07-25  Marek Polacek  <polacek@redhat.com>
3697
3698         [BZ #6808]
3699         * math/libm-test.inc (yn_test): Add another test.
3700         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3701         to ERANGE when the result is +-Inf.
3702         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3703         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3704         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3705         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3706
3707 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3708
3709         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3710         equal to 0.
3711         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3712         clock_t.
3713         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3714
3715 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3716
3717         * configure.in <sysdeps resolving>: Correct printing
3718         Implies_before.
3719         * configure: Regenerate.
3720
3721 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3722
3723         * math/w_ilogb.c: Include <limits.h>.
3724         * math/w_ilogbl.c: Likewise.
3725
3726 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3727
3728         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3729         va_copy.  Document allowing for unavailable va_copy only as
3730         pre-C99 compatibility.
3731         * manual/string.texi (Copying and Concatenation): Use va_copy
3732         instead of __va_copy in concat example.
3733
3734 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3735
3736         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3737         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3738         it if not null.
3739
3740         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3741         with O_NOLINK passed to __file_name_lookup.
3742
3743         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3744         with O_NOLINK passed to __file_name_lookup.
3745
3746         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3747         negative N or less than NGIDS.
3748
3749         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3750         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3751         enough.  Use memcpy instead of strncpy.
3752
3753 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3754
3755         * elf/Makefile (check-data): Remove.
3756         (localplt.data): New vpath directive.
3757         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3758         instead of $(check-data).
3759         * scripts/data/localplt-generic.data: Move to ...
3760         * sysdeps/generic/localplt.data: ... here.
3761         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3762         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3763         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3765         ... here.
3766         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3768         ... here.
3769         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3770         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3771         ... here.
3772         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3773         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3774         ... here.
3775         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3776         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3777         ... here.
3778         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3779         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3780         ... here.
3781
3782 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3783
3784         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3785         PPC32 and PPC64 files.
3786         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3787         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3788
3789 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3790
3791         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3792         __makecontext_ret to ...
3793         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3794         ... here and call exit if uc_link is NULL.  New file.
3795         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3796         __makecontext_ret.S.
3797         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3798         __makecontext_ret to ...
3799         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3800         ... here and call exit if uc_link is NULL.  New file.
3801         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3802         __makecontext_ret.S.
3803
3804 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3805
3806         * elf/elf.h (R_390_IRELATIVE): New definition.
3807         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3808         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3809         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3810         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3811         (elf_machine_lazy_rel): Likewise.
3812         * sysdeps/s390/dl-irel.h: New file.
3813         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3814         * sysdeps/s390/s390-64/memset.S: New asm code.
3815         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3816         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3817         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3818         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3819         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3820         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3821         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3822         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3823         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3824         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3825         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3826         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3827         * sysdeps/s390/s390-32/memset.S: New asm code.
3828         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3829
3830 2012-07-17  Marek Polacek  <polacek@redhat.com>
3831
3832         [BZ #14349]
3833         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3834         * sysdeps/s390/s390-64/configure.in: Likewise.
3835         * sysdeps/sparc/configure.in: Likewise.
3836         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3837         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3838         * sysdeps/i386/configure.in: Likewise.
3839         * sysdeps/x86_64/configure.in: Likewise.
3840         * sysdeps/sh/configure.in: Likewise.
3841         * sysdeps/s390/s390-32/configure: Regenerated.
3842         * sysdeps/s390/s390-64/configure: Likewise.
3843         * sysdeps/x86_64/configure: Likewise.
3844         * sysdeps/sh/configure: Likewise.
3845         * sysdeps/powerpc/powerpc64/configure: Likewise.
3846         * sysdeps/powerpc/powerpc32/configure: Likewise.
3847         * sysdeps/sparc/configure: Likwise.
3848         * sysdeps/i386/configure: Likewise.
3849
3850         * elf/dl-open.c: Comment fixes.
3851
3852 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3853
3854         * Makefile [CXX] (check-data): Remove.
3855         [CXX] (c++-types.data): New vpath directive.
3856         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3857         vpath.  Do not allow for C++ type data being missing.
3858         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3859         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3860         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3861         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3862         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3863         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3864         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3866         ... here.
3867         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3869         ... here.
3870         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3872         ... here.
3873         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3875         ... here.
3876         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3878         ... here.
3879         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3881         ... here.
3882         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3883         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3884         ... here.
3885         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3887
3888         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3889         definitions to architecture-specific files.
3890         (TLS_IE): Likewise.
3891         (TLS_LD): Likewise.
3892         (TLS_GD): Likewise.
3893         * sysdeps/i386/tls-macros.h: New file.
3894         * sysdeps/powerpc/tls-macros.h: Likewise.
3895         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3896         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3897         * sysdeps/sh/tls-macros.h: Likewise.
3898         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3899         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3900         * sysdeps/x86_64/tls-macros.h: Likewise.
3901
3902 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3903
3904         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3905         zero value for regular exit case.
3906
3907         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3908         (__start_context): Preserve zero value for regular exit case.
3909
3910 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3911             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3912
3913         * manual/setjmp.texi (setcontext): Clarify normal process
3914         termination when uc_link is the null pointer.
3915         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3916         exit call.
3917
3918 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3919
3920         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3921         preprocessor.  Test for each exception mask separately.
3922
3923 2012-07-16  Andreas Jaeger  <aj@suse.de>
3924
3925         * po/ru.po: Update from translation team.
3926
3927 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3928
3929         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3930         equal to 0.
3931         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3932         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3933         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3934         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3935         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3936
3937 2012-07-13  Andreas Jaeger  <aj@suse.de>
3938
3939         * po/fr.po: Update from translation team.
3940
3941 2012-07-12  Marek Polacek  <polacek@redhat.com>
3942
3943         [BZ #14173]
3944         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3945         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3946         loop condition.
3947
3948 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3949
3950         [BZ #13717]
3951         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3952         Change to 2.4.1 where previously 2.4.0.
3953         * sysdeps/unix/sysv/linux/configure: Regenerated.
3954         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3955         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3956         version.
3957         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3958         (__ASSUME_AT_CLKTCK): Remove.
3959         (__ASSUME_AT_PAGESIZE): Likewise.
3960         (__ASSUME_AT_XID): Likewise.
3961         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3962         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3963         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3964         unconditionally.
3965         (HAVE_AUX_PAGESIZE): Likewise.
3966         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3967         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3968         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3969
3970 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3971
3972         [BZ #14307]
3973         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3974         the temporary buffer used to invoke __gethostbyname2_r,
3975         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3976         host_data / struct gaih_addrtuple.
3977         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3978         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3979         header file nss/nsswitch.h.
3980         * nss/nsswitch.h (global scope): Add definition of implementation
3981         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3982         resolv/nss_dns/dns-host.c).
3983
3984 2012-07-11  Andreas Jaeger  <aj@suse.de>
3985
3986         * po/fr.po: Update from translation team.
3987
3988         * po/sv.po: Update from translation team
3989         * po/fr.po: Another update from translation team.
3990
3991 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3992
3993         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3994         for subnormals or multiply small sinh result by itself.
3995         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3996         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3997
3998 2012-07-11  David S. Miller  <davem@davemloft.net>
3999
4000         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4001
4002 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4003
4004         [BZ #14347]
4005         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4006         (INTERNAL_MARK): Shift it here.
4007
4008 2012-07-10  Marek Polacek  <polacek@redhat.com>
4009
4010         [BZ #14151]
4011         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4012         libc_cv_asm_global_directive with .globl.
4013         * configure: Regenerated.
4014         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4015         with .globl.
4016         * sysdeps/i386/configure: Regenerated.
4017         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4018         with .globl.
4019         * sysdeps/x86_64/configure: Regenerated.
4020         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4021         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4022         * elf/tst-unique2mod2.c: Likewise.
4023         * elf/tst-unique2mod1.c: Likewise.
4024         * elf/tst-unique1mod2.c: Likewise.
4025         * elf/tst-unique1mod1.c: Likewise.
4026         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4027         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4028         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4029         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4030         * sysdeps/mach/sysdep.h: Likewise.
4031         * sysdeps/i386/sysdep.h: Likewise.
4032         * sysdeps/i386/i386-mcount.S: Likewise.
4033         * sysdeps/x86_64/_mcount.S: Likewise.
4034         * sysdeps/x86_64/sysdep.h: Likewise.
4035         * sysdeps/sh/_mcount.S: Likewise.
4036         * sysdeps/sh/sysdep.h: Likewise.
4037         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4038         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4039         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4040         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4041         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4042         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4043         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4044         * locale/localeinfo.h: Likewise.
4045         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4046         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4047
4048 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4049
4050         [BZ #14336]
4051         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4052         system".
4053         * manual/message.texi (The Uniforum approach): Likewise.
4054         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4055         (glibc iconv Implementation): Likewise.
4056
4057 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4058
4059         [BZ #14337]
4060         * math/s_clog.c (__clog): Avoid scaling a value down where that
4061         could result in underflow.
4062         * math/s_clog10.c (__clog10): Likewise.
4063         * math/s_clog10f.c (__clog10f): Likewise.
4064         * math/s_clog10l.c (__clog10l): Likewise.
4065         * math/s_clogf.c (__clogf): Likewise.
4066         * math/s_clogl.c (__clogl): Likewise.
4067         * math/libm-test.inc (clog_test): Add more tests.
4068         (clog10_test): Likewise.
4069         * sysdeps/i386/fpu/libm-test-ulps: Update.
4070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4071
4072 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4073
4074         [BZ #14283]
4075         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4076         by 7 not 8 to examine high bit of fractional part.
4077
4078         [BZ #14042]
4079         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4080         for call to __mcount_internal.
4081         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4082         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4083         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4084
4085 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4086
4087         [BZ #14154]
4088         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4089         approximation for values within 0x1p-13f of an odd multiple of
4090         pi/4.
4091         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4092         exception.  Add more tests.
4093         * sysdeps/i386/fpu/libm-test-ulps: Update.
4094
4095         [BZ #6778]
4096         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4097         inputs and return -1 for them.  Do not check for +Inf in case not
4098         reachable for +Inf.
4099         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4100         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4101         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4102         and return -1 for them.  Do not check for +Inf in case not
4103         reachable for +Inf.
4104         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4105         define.
4106         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4107         and return -1 for them.  Do not check for +Inf in case not
4108         reachable for +Inf.
4109         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4110         spurious underflow.
4111         * sysdeps/i386/fpu/libm-test-ulps: Update.
4112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4113
4114 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4115
4116         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4117
4118 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4119
4120         [BZ #14157]
4121         [BZ #14331]
4122         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4123         could result in spurious underflow.  Scale down values above
4124         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4125         * math/s_csqrtf.c (__csqrtf): Likewise.
4126         * math/s_csqrtl.c (__csqrtl): Likewise.
4127         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4128         spurious underflow.
4129         * sysdeps/i386/fpu/libm-test-ulps: Update.
4130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4131
4132 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4133
4134         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4135         xopen-msg.sed.
4136         * catgets/xopen-msg.awk: New file.
4137         * catgets/xopen-msg.sed: Removed.
4138
4139         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4140         po2text.sed.
4141         * intl/po2test.awk: New file.
4142         * intl/po2test.sed: Removed.
4143
4144 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4145
4146         [BZ #14328]
4147         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4148         or multiply small sinh result by itself.
4149         * math/s_ctanf.c (__ctanf): Likewise.
4150         * math/s_ctanh.c (__ctanh): Likewise.
4151         * math/s_ctanhf.c (__ctanhf): Likewise.
4152         * math/s_ctanhl.c (__ctanhl): Likewise.
4153         * math/s_ctanl.c (__ctanl): Likewise.
4154         * math/libm-test.inc (ctan_test_tonearest): New function.
4155         (ctan_test_towardzero): Likewise.
4156         (ctan_test_downward): Likewise.
4157         (ctan_test_upward): Likewise.
4158         (ctanh_test_tonearest): Likewise.
4159         (ctanh_test_towardzero): Likewise.
4160         (ctanh_test_downward): Likewise.
4161         (ctanh_test_upward): Likewise.
4162         (main): Call these new functions.
4163         * sysdeps/i386/fpu/libm-test-ulps: Update.
4164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4165
4166 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4167
4168         * .gitignore: Delete /ports entry.
4169
4170 2012-07-03  Andreas Jaeger  <aj@suse.de>
4171
4172         * po/bg.po: Update from translation team.
4173         * po/cs.po: Likewise.
4174         * po/de.po: Likewise.
4175         * po/hr.po: Likewise.
4176         * po/nl.pl: Likewise.
4177         * po/pl.po: Likewise.
4178         * po/vi.po: Likewise.
4179
4180 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4181
4182         * Makeconfig [!+link] (+link-before-libc): New variable.
4183         [!+link] (+link-after-libc): Likewise.
4184         [!+link] (+link-tests): Likewise.
4185         [!+link] (+link): Define in terms of $(+link-before-libc) and
4186         $(+link-after-libc).
4187         [!+link-static] (+link-static-before-libc): New variable.
4188         [!+link-static] (+link-static-after-libc): Likewise.
4189         [!+link-static] (+link-static-tests): Likewise.
4190         [!+link-static] (+link-static): Define in terms of
4191         $(+link-static-before-libc) and $(+link-static-after-libc).
4192         [build-shared] (link-libc-before-gnulib): New variable.
4193         [build-shared] (link-libc-tests): Likewise.
4194         [build-shared] (link-libc): Define in terms of
4195         $(link-libc-before-gnulib).
4196         [!build-shared] (link-libc-tests): New variable.
4197         (link-libc-static-tests): New variable.
4198         [!gnulib] (gnulib-arch): New variable.
4199         [!gnulib] (gnulib-tests): Likewise.
4200         [!gnulib] (static-gnulib-arch): Likewise.
4201         [!gnulib] (static-gnulib-tests): Likewise.
4202         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4203         Define with "=" instead of ":=".
4204         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4205         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4206         * Rules (binaries-all-notests): New variable.
4207         (binaries-all-tests): Likewise.
4208         (binaries-static-notests): Likewise.
4209         (binaries-static-tests): Likewise.
4210         (binaries-all): Define using $(binaries-all-notests) and
4211         $(binaries-all-tests).
4212         (binaries-static): Define using $(binaries-static-notests) and
4213         $(binaries-static-tests).
4214         (binaries-shared-tests): New variable.
4215         (binaries-shared-notests): Likewise.
4216         (binaries-shared): Remove variable.
4217         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4218         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4219         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4220         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4221         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4222         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4223         * elf/Makefile (sln-modules): New variable.
4224         (extra-objs): Add $(sln-modules:=.o).
4225         (ldconfig-modules): Add static-stubs.
4226         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4227         * elf/static-stubs.c: New file.
4228
4229         [BZ #14283]
4230         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4231         by 7 not 8 to examine high bit of fractional part.  Use volatile
4232         variables when splitting into final array of floats if
4233         __FLT_EVAL_METHOD__ != 0.
4234         * math/libm-test.inc (cos_test): Add another test.
4235         (sin_test): Likewise.
4236         * sysdeps/i386/fpu/libm-test-ulps: Update.
4237
4238         [BZ #14273]
4239         * math/libm-test.inc (cosh_test): Add more tests.
4240
4241         * version.h (RELEASE): Set to "development".
4242         (VERSION): Set to "2.16.90".
4243
4244 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4245
4246         * NEWS: Update copyright. Remove last-updated date.
4247         Mention math library bug fixes and timezone data changes.
4248         * README: Mention GNU/Hurd, x32, and HPPA support status.
4249
4250 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4251
4252         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4253
4254 2012-06-27  Andreas Jaeger  <aj@suse.de>
4255
4256         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4257
4258 2012-06-25  Andreas Jaeger  <aj@suse.de>
4259
4260         * sysdeps/s390/fpu/libm-test-ulps: Update.
4261
4262 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4263             Thomas Schwinge  <thomas@codesourcery.com>
4264
4265         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4266         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4267         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4268         fanotify_mark.
4269
4270 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4271
4272         * sysdeps/mach/start.c: Remove file.
4273         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4274         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4275         * sysdeps/sh/init-first.c: Likewise.
4276
4277         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4278         registers for frame unwinding purposes, add CFI directives.
4279         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4280         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4281         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4282         Likewise.
4283
4284         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4285         __fortify_fail returning.
4286         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4287
4288         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4289         sysdeps/sh/____longjmp_chk.S.
4290         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4291         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4292         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4293         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4294
4295         * sysdeps/sh/abort-instr.h: New file.
4296         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4297         process in case exit returns.
4298
4299         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4300         initialize the GOT register before use.
4301
4302         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4303         calculation of ARGC > 4.
4304
4305         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4306         meaningful names to some local labels.
4307
4308 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4309             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4310
4311         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4312         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4313         (__arch_compare_and_exchange_val_16_acq): Likewise.
4314         (__arch_compare_and_exchange_val_32_acq): Likewise.
4315         (atomic_exchange_and_add): Fix gUSA sequence.
4316         (atomic_add): Likewise.
4317         (atomic_add_negative): Likewise.
4318         (atomic_add_zero): Likewise.
4319         (atomic_bit_test_set): Likewise.
4320
4321 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4322
4323         [BZ #13579]
4324         * include/link.h (struct link_map): Add l_free_initfini.
4325         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4326         l_initfini.
4327         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4328         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4329         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4330         set.
4331
4332 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4333
4334         * configure.in: Use AC_LANG_SOURCE.
4335         * configure: Regenerate.
4336
4337 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4338
4339         * configure.in (libc_cv_localstatedir): New substituted variable.
4340         * configure: Regenerated.
4341         * config.make.in (localstatedir): New variable, substituted from
4342         libc_cv_localstatedir.
4343         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4344         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4345         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4346         * sysdeps/gnu/configure: Regenerated.
4347
4348 2012-06-21  Jeff Law  <law@redhat.com>
4349
4350         [BZ #14277]
4351         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4352         free.  Simplify list management for _LIBC case.
4353
4354 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4355
4356         [BZ #14273]
4357         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4358         Clear sign bit of 64-bit integer value before comparing against
4359         overflow value.
4360
4361         * sysdeps/mach/configure: Regenerated.
4362
4363 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4364
4365         [BZ #14278]
4366         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4367
4368 2012-06-21  Jeff Law  <law@redhat.com>
4369
4370         [BZ #13882]
4371         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4372         uint16_t for elements in the "seen" array to avoid char overflows.
4373         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4374         * elf/dl-open.c (dl_open_worker): Likewise.
4375
4376 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4377
4378         * scripts/list-sources.sh: Scan PORTS for translations.
4379         * po/libc.pot: Regenerated.
4380
4381 2012-06-21  Andreas Jaeger  <aj@suse.de>
4382
4383         [BZ #12194]
4384         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4385         warning.
4386         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4387         * bits/byteswap-16.h (__bswap_16): Likewise.
4388         * bits/byteswap.h (__bswap_constant_16): Likewise.
4389
4390 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4391
4392         [BZ #14117]
4393         * sysdeps/i386/fpu_control.h: Removed.
4394         * sysdeps/x86_64/fpu_control.h: Moved to ...
4395         * sysdeps/x86/fpu_control.h: Here.
4396
4397         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4398         (_FPU_SETCW): Likewise.
4399
4400 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4401
4402         [BZ #14117]
4403         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4404         * sysdeps/x86/fpu/bits/mathinline.h: This.
4405         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4406
4407         [BZ #14050]
4408         [BZ #14117]
4409         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4410         functions if __x86_64__ is defined.
4411
4412 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4413
4414         * string/endian.h: Add !__ASSEMBLER__ condition for including
4415         conversion interfaces.
4416
4417 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4418
4419         [BZ #14241]
4420         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4421         of ABS(x) in calculating zero to negative powers other than odd
4422         integers.
4423         * math/libm-test.inc (pow_test): Add more tests.
4424
4425 2012-06-15  Andreas Jaeger  <aj@suse.de>
4426
4427         * manual/contrib.texi (Contributors): Update entry of Liubov
4428         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4429         Machado Filho.
4430
4431 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4432
4433         * string/string.h: Add __wur to GNU version of strerror_r.
4434
4435 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4436
4437         [BZ #14229]
4438         * string/Makefile (tests): Add tst-strtok_r.
4439         * string/tst-strtok_r.c: New file.
4440         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4441         RAX_LP/RDX_LP on SAVE_PTR.
4442
4443 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4444
4445         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4446
4447 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4448
4449         * libm_test.inc (csqrt_test): Allow more spurious underflow
4450         exceptions.
4451         (j0_test): Likewise.
4452         (j1_test): Likewise.
4453         (y0_test): Likewise.
4454         (y1_test): Likewise.
4455
4456 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4457
4458         * po/Makefile (libc.pot): Use UTF-8 charset.
4459
4460 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4461
4462         [BZ #14210]
4463         Suppress sign-conversion warning from FD_SET.
4464         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4465         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4466         not unsigned long int.
4467         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4468
4469 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4470
4471         [BZ #14050]
4472         [BZ #14117]
4473         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4474         __extern_always_inline instead of __extern_inline.
4475         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4476         (__signbit): Likewise.
4477         (__signbitl): Support C++ namespace.
4478         (lrintf): New inline function.
4479         (lrint): Likewise.
4480         (llrintf): Likewise.
4481         (llrint): Likewise.
4482         (fmaxf): Likewise.
4483         (fmax): Likewise.
4484         (fminf): Likewise.
4485         (fmin): Likewise.
4486         (rint): Likewise.
4487         (rintf): Likewise.
4488         (ceil): Likewise.
4489         (ceilf): Likewise.
4490         (floor): Likewise.
4491         (floorf): Likewise.
4492         (nearbyint): Likewise.
4493         (nearbyintf): Likewise.
4494
4495 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4496
4497         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4498         non-default versions.
4499
4500 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4501
4502         [BZ #14218]
4503         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4504
4505 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4506
4507         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4508         (FE_UPWARD, FE_DOWNWARD): Don't define.
4509         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4510         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4511
4512         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4513         reading it.
4514         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4515         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4516
4517 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4518
4519         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4520         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4521         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4522         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4523
4524 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4525
4526         [BZ #14117]
4527         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4528         * sysdeps/i386/fpu/Implies: New file.
4529         * sysdeps/x86_64/fpu/Implies: Likewise.
4530         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4531         * sysdeps/x86/fpu/bits/fenv.h: This.
4532
4533         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4534         __SSE_MATH__.
4535
4536 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4537
4538         [BZ #14134]
4539         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4540         character 0xffff that matches the last element of the
4541         conversion table.
4542
4543 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4544
4545         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4546         fmodl commit.
4547
4548 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4549
4550         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4551         values higher than 25.6283.
4552
4553 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4554
4555         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4556         subnormal exponent extraction and add some __builtin_expect.
4557         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4558         Fix for subnormal mantissa calculation.
4559
4560 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4561
4562         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4563         cpu2 is -1 and errno is not ENOSYS.
4564
4565 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4566
4567         [BZ #14117]
4568         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4569         * sysdeps/x86/bits/string.h: This.
4570         * sysdeps/x86_64/bits/string.h: Removed.
4571
4572         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4573         if not compiling for x86-64, but compiling for >= i486.
4574
4575         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4576         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4577
4578         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4579         New macro from Linux kernel 3.4.0.
4580         (FP_XSTATE_MAGIC2): Likewise.
4581         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4582         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4583         (struct _fpx_sw_bytes): New struct.
4584         (struct _xsave_hdr): Likewise.
4585         (struct _ymmh_state): Likewise.
4586         (struct _xstate): Likewise.
4587
4588         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4589         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4590         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4591         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4592         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4593         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4594
4595         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4596         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4597         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4598         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4599         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4600         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4601
4602 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4603
4604         [BZ #13743]
4605         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4606         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4607         (sysdep_headers): Include sys/platform/ppc.h.
4608         * sysdeps/powerpc/test-gettimebase.c: Test for
4609         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4610         * manual/Makefile (appendices): Include platform.texi.
4611         * manual/contrib.texi (Contributors): Update @node pointers.
4612         * manual/maint.texi (Maintenance): Likewise.
4613         (Platform): New node.
4614         * manual/platform.texi: New file.  Document the new features.
4615
4616 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4617             Jakub Jelinek  <jakub@redhat.com>
4618
4619         [BZ #14188]
4620         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4621         where __builtin_expect is unavailable.
4622
4623 2012-06-03  David S. Miller  <davem@davemloft.net>
4624
4625         * stdlib/longlong.h: Updated from GCC.
4626
4627 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4628
4629         [BZ #14042]
4630         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4631         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4632         __mcount_internal.
4633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4634         (GLIBC_2.16): Likewise.
4635
4636 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4637
4638         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4639
4640 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4641
4642         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4643         (default-abi): New variable.
4644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4645         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4646         variable.
4647         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4648         Likewise.
4649         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4650         Likewise.
4651         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4652         Likewise.
4653
4654         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4655         definition.  Document in comment.
4656
4657 2012-06-01  David S. Miller  <davem@davemloft.net>
4658
4659         * stdlib/longlong.h: Updated from GCC.
4660
4661 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4662
4663         [BZ #14117]
4664         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4665         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4666         sys/debugreg.h sys/io.h here.
4667         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4668         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4669         sys/io.h.
4670         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4671         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4672         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4673         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4674         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4675         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4676
4677         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4678         Define only if __x86_64__ is defined.
4679
4680 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4681
4682         [BZ #14048]
4683         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4684         Use int64_t for variable i.
4685         * math/libm-test.inc (fmod_test): Add more tests.
4686
4687         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4688         z computation is not scheduled after fetestexcept.
4689         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4690         Use math_force_eval instead of asm to ensure calculation scheduled
4691         before exception test.
4692         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4693         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4694
4695 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4696
4697         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4698         computation is not scheduled after fetestexcept.
4699
4700 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4701
4702         [BZ #14117]
4703         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4704         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4705
4706 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4707
4708         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4709         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4710
4711 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4712
4713         [BZ #14117]
4714         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4715         <bits/wordsize.h>.
4716         (__WCHAR_MIN): Support __WORDSIZE == 64.
4717         (__WCHAR_MAX): Likewise.
4718
4719         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4720         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4721
4722         [BZ #14183]
4723         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4724         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4725
4726         [BZ #14117]
4727         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4728         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4729
4730         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4731         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4732
4733         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4734         Defined to 1 if __x86_64__ isn't defined.
4735         (_STAT_VER_LINUX_OLD): New.
4736         (st_atime): Remove duplicate.
4737         (st_mtime): Likewise.
4738         (st_ctime): Likewise.
4739
4740 2012-05-31  David S. Miller  <davem@davemloft.net>
4741
4742         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4743         entries.
4744
4745 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4746
4747         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4748         gen-libm-test.pl.
4749
4750         [BZ #14132]
4751         * elf/dl-reloc.c: Include <_itoa.h>.
4752         (_dl_reloc_bad_type): Remove use of INTUSE.
4753         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4754         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4755         * stdio-common/psiginfo.c (psiginfo): Likewise.
4756         * stdio-common/psignal.c (psignal): Likewise.
4757         * string/strsignal.c (strsignal): Likewise.
4758         * include/signal.h (_sys_siglist): Declare hidden proto.
4759         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4760         INTVARDEF with libc_hidden_data_def.
4761         * stdio-common/itoa-udigits.c: Likewise.
4762         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4763         (_itoa_lower_digits_internal): Remove declaration.
4764         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4765         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4766         (_sys_sigabbrev_internal): Remove aliases.
4767         (_sys_siglist): Define hidden alias.
4768
4769 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4770
4771         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4772         bits/sysctl.h.
4773
4774 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4775
4776         [BZ #14117]
4777         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4778         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4779
4780         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4781         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4782         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4783         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4784         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4785         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4786
4787         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4788         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4789         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4790
4791         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4792         with __addr.
4793         (insw): Likewise.
4794         (insl): Likewise.
4795         (outsb): Likewise.
4796         (outsw): Likewise.
4797         (outsl): Likewise.
4798
4799         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4800         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4801         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4802
4803         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4804         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4805         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4806         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4807         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4808         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4809
4810         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4811         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4812
4813         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4814         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4815
4816         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4817         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4818         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4819
4820         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4821         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4822         to ...
4823         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4824
4825         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4826         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4827         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4828
4829         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4830         for x86-64.
4831         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4832
4833 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4834
4835         * math/math.h (M_El): Use two more decimal places.
4836         (M_LOG2El): Likewise.
4837         (M_LOG10El): Likewise.
4838         (M_LN2l): Likewise.
4839         (M_LN10l): Likewise.
4840         (M_PIl): Likewise.
4841         (M_PI_2l): Likewise.
4842         (M_PI_4l): Likewise.
4843         (M_1_PIl): Likewise.
4844         (M_2_PIl): Likewise.
4845         (M_2_SQRTPIl): Likewise.
4846         (M_SQRT2l): Likewise.
4847         (M_SQRT1_2l): Likewise.
4848
4849 2012-05-31  David S. Miller  <davem@davemloft.net>
4850
4851         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4852         values between float registers.
4853         * sysdeps/sparc/sparc64/memset.S: Likewise.
4854         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4855
4856 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4857
4858         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4859         -D_FORTIFY_SOURCE=1.
4860         (CPPFLAGS-tst-longjmp_chk.c): Define.
4861         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4862         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4863         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4864         CFLAGS-tst-wchar-h.c.
4865
4866 2012-05-31  Marek Polacek  <polacek@redhat.com>
4867
4868         [BZ #14132]
4869         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4870         __endmntent_internal): Remove declaration.
4871         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4872         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4873         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4874
4875 2012-05-30  David S. Miller  <davem@davemloft.net>
4876
4877         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4878         (___Q_simulate_exceptions): Use real FP ops rather than writing
4879         into the %fsr.
4880         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4881         Likewise.
4882
4883 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4884
4885         [BZ #14117]
4886         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4887         * sysdeps/x86/bits/xtitypes.h: This.
4888
4889         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4890         * sysdeps/x86/bits/wordsize.h: This.
4891
4892         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4893         * sysdeps/x86/bits/huge_vall.h: This.
4894
4895         * sysdeps/i386/bits/select.h: Removed.
4896         * sysdeps/x86_64/bits/select.h: Renamed to ...
4897         * sysdeps/x86/bits/select.h: This.
4898
4899         * sysdeps/i386/bits/setjmp.h: Removed.
4900         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4901         * sysdeps/x86/bits/setjmp.h: This.
4902
4903         * sysdeps/i386/bits/mathdef.h: Removed.
4904         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4905         * sysdeps/x86/bits/mathdef.h: This.
4906
4907 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4908
4909         [BZ #14132]
4910         * include/sys/socket.h (__connect_internal)
4911         (__libc_sa_len_internal): Remove declaration.
4912         (__connect, __libc_sa_len): Declare hidden_proto.
4913         (SA_LEN): Remove use of INTUSE.
4914         * socket/connect.c: Add libc_hidden_def.
4915         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4916         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4917         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4918         alias.
4919         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4920         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4921         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4922         of adding _internal alias.
4923
4924 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4925
4926         [BZ #14117]
4927         * sysdeps/i386/bits/link.h: Removed.
4928         * sysdeps/i386/bits/linkmap.h: Likewise.
4929         * sysdeps/x86_64/bits/link.h: Renamed to ...
4930         * sysdeps/x86/bits/link.h: This.
4931         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4932         * sysdeps/x86/bits/linkmap.h: This.
4933
4934         * sysdeps/i386/bits/endian.h: Removed.
4935         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4936         * sysdeps/x86/bits/endian.h: This.
4937
4938         * sysdeps/i386/bits/byteswap.h: Removed.
4939         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4940         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4941         * sysdeps/x86/bits/byteswap.h: This.
4942         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4943         * sysdeps/x86/bits/byteswap-16.h: This.
4944         * sysdeps/i386/Implies: Add x86.
4945         * sysdeps/x86_64/Implies: Likewise.
4946
4947 2012-05-30  David S. Miller  <davem@davemloft.net>
4948
4949         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4950         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4951         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4952         (FP_TRAPPING_EXCEPTIONS): Define.
4953         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4954         (FP_TRAPPING_EXCEPTIONS): Define.
4955         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4956         subnormals only when inexact has been signalled or underflow
4957         exceptions are enabled.
4958         (_FP_PACK_CANONICAL): Likewise.
4959
4960 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4961
4962         [BZ #14183]
4963         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4964         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4965
4966 2012-05-30  Richard Henderson  <rth@twiddle.net>
4967
4968         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4969         with #ifndef NOT_IN_libc.
4970
4971         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4972         marked to avoid plt entry.
4973
4974 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4975
4976         [BZ #14112]
4977         * Makeconfig (default-abi): New macro.
4978         (abi-includes): Likewise.
4979         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4980         $(abi-$(default-abi)-lib-soname) for soname if defined.
4981         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4982         abi-variants.
4983         * Makefile (installed-stubs): Likewise.
4984         * include/stubs-biarch.h: Removed.
4985         * scripts/lib-names.awk: Only handle one library at a time.
4986         * scripts/soversions.awk: Remove WORDSIZE support.
4987         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4988         entries.
4989         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4990         Removed.
4991         (syscall-list-default-condition): Likewise.
4992         (syscall-list-default-condition): Likewise.
4993         (syscall-list-includes): Likewise.
4994         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4995         syscall-list-* with abi-*.  Handle undefined abi-variants.
4996         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4997         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4998         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4999         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5000         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5001         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5002         Removed.
5003         (syscall-list-32-options): Likewise.
5004         (syscall-list-32-condition): Likewise.
5005         (syscall-list-64-options): Likewise.
5006         (syscall-list-64-condition): Likewise.
5007         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5008         macro.
5009         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5010         Renamed to ...
5011         (abi-*): This.
5012         (abi-64-ld-soname): New macro.
5013         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5014         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5015         Renamed to ...
5016         (abi-*): This.
5017         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5018         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5019
5020 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5021
5022         * sysdeps/unix/sysv/linux/kernel-features.h
5023         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5024         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5025         include <kernel-features.h>.
5026         [!__NR_ftruncate64]: Remove conditional code.
5027         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5028         [__NR_ftruncate64]: Make code unconditional.
5029         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5030         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5031         include <kernel-features.h>.
5032         [!__NR_ftruncate64]: Remove conditional code.
5033         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5034         [__NR_ftruncate64]: Make code unconditional.
5035         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5037         include <kernel-features.h>.
5038         [!__NR_ftruncate64]: Remove conditional code.
5039         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5040         [__NR_ftruncate64]: Make code unconditional.
5041         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5043         include <kernel-features.h>.
5044         [!__NR_ftruncate64]: Remove conditional code.
5045         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5046         [__NR_ftruncate64]: Make code unconditional.
5047         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5048
5049         * configure.in (libc_cv_fpie): Weaken to a compile test using
5050         LIBC_TRY_CC_OPTION.
5051         * configure: Regenerated.
5052
5053 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5054
5055         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5058         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5059         Refreshed.
5060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5062         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5065         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5066         Refreshed.
5067
5068 2012-05-27  David S. Miller  <davem@davemloft.net>
5069
5070         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5071         (___Q_zero): New.
5072         (__Q_simulate_exceptions): Return void.  Change to simulate
5073         exceptions by writing into the %fsr.
5074         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5075         (__Qp_handle_exceptions): Likewise.
5076         (numbers): Delete.
5077         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5078         __Qp_handle_exceptions.
5079         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5080         __Qp_handle_exceptions.
5081         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5082         as unused and give dummy FP_RND_NEAREST initializer.
5083         (FP_INHIBIT_RESULTS): Define.
5084         (___Q_simulate_exceptions): Update declaration.
5085         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5086         formatting.
5087         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5088         as unused and give dummy FP_RND_NEAREST initializer.
5089         (__Qp_handle_exceptions): Update declaration.
5090         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5091         formatting.
5092
5093 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5094
5095         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5096         the temporary FPU control word.
5097         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5098         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5099         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5100         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5101         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5102         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5103         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5104         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5105         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5106         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5107         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5108
5109 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5110
5111         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5112         fields.
5113
5114 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5115
5116         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5117         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5118         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5119         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5120         Likewise.
5121         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5122         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5123         Likewise.
5124
5125 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5126
5127         * po/h.po: Update from translation team.
5128
5129 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5130
5131         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5132
5133         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5134         handling of denormals.
5135         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5136         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5137         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5138         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5139         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5140         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5141         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5142         Likewise.
5143
5144 2012-05-26  Marek Polacek  <polacek@redhat.com>
5145
5146         [BZ #14152]
5147         * math/libm-test.inc (fma_test): Don't always expect underflow
5148         exception.
5149
5150 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5151
5152         [BZ #12416]
5153         * elf/tst-execstack.c: Include stackinfo.h.
5154         (do_test): Adjust test case to ensure that pthread_getattr_np
5155         behaviour remains the same after marking stack executable.
5156
5157 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5158
5159         * sysdeps/unix/sysv/linux/kernel-features.h
5160         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5161         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5162         kernel-features.h.
5163         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5164         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5165         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5166         kernel-features.h.
5167         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5168         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5169
5170 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5171
5172         * configure.in: Define the default includes to being none.
5173         * configure: Regenerated.
5174
5175 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5176
5177         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5178         * sysdeps/x86_64/setjmp.S: Likewise.
5179         * sysdeps/i386/bsd-setjmp.S: Likewise.
5180         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5181         * sysdeps/i386/setjmp.S: Likewise.
5182         * sysdeps/i386/__longjmp.S: Likewise.
5183         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5184         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5185
5186         * include/stap-probe.h: New file.
5187         * configure.in: Handle --enable-systemtap.
5188         * configure: Regenerated.
5189         * config.h.in (USE_STAP_PROBE): New #undef.
5190         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5191         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5192         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5193
5194 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5195
5196         [BZ #13717]
5197         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5198         to 2.4.0 where earlier.
5199         * sysdeps/unix/sysv/linux/configure: Regenerated.
5200         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5201         <kernel-features.h>.
5202         [__ASSUME_32BITUIDS]: Make code unconditional.
5203         [!__ASSUME_32BITUIDS]: Remove conditional code.
5204         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5205         <kernel-features.h>.
5206         [__ASSUME_32BITUIDS]: Make code unconditional.
5207         [!__ASSUME_32BITUIDS]: Remove conditional code.
5208         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5209         [__ASSUME_32BITUIDS]: Make code unconditional.
5210         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5211         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5212         <kernel-features.h>.
5213         [__ASSUME_32BITUIDS]: Make code unconditional.
5214         [!__ASSUME_32BITUIDS]: Remove conditional code.
5215         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5216         <kernel-features.h>.
5217         [__ASSUME_32BITUIDS]: Make code unconditional.
5218         [!__ASSUME_32BITUIDS]: Remove conditional code.
5219         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5220         <kernel-features.h>.
5221         [__ASSUME_32BITUIDS]: Make code unconditional.
5222         [!__ASSUME_32BITUIDS]: Remove conditional code.
5223         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5224         <kernel-features.h>.
5225         [__ASSUME_32BITUIDS]: Make code unconditional.
5226         [!__ASSUME_32BITUIDS]: Remove conditional code.
5227         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5228         <kernel-features.h>.
5229         [__ASSUME_32BITUIDS]: Make code unconditional.
5230         [!__ASSUME_32BITUIDS]: Remove conditional code.
5231         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5232         <kernel-features.h>.
5233         [__ASSUME_32BITUIDS]: Make code unconditional.
5234         [!__ASSUME_32BITUIDS]: Remove conditional code.
5235         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5236         <kernel-features.h>.
5237         [__ASSUME_32BITUIDS]: Make code unconditional.
5238         [!__ASSUME_32BITUIDS]: Remove conditional code.
5239         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5240         <kernel-features.h>.
5241         [__ASSUME_32BITUIDS]: Make code unconditional.
5242         [!__ASSUME_32BITUIDS]: Remove conditional code.
5243         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5244         <kernel-features.h>.
5245         [__ASSUME_32BITUIDS]: Make code unconditional.
5246         [!__ASSUME_32BITUIDS]: Remove conditional code.
5247         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5248         <kernel-features.h>.
5249         [__ASSUME_32BITUIDS]: Make code unconditional.
5250         [!__ASSUME_32BITUIDS]: Remove conditional code.
5251         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5252         <kernel-features.h>.
5253         [__NR_setresgid] (__setresgid): Do not declare.
5254         [__ASSUME_32BITUIDS]: Make code unconditional.
5255         [!__ASSUME_32BITUIDS]: Remove conditional code.
5256         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5257         <kernel-features.h>.
5258         [__NR_setresuid] (__setresuid): Do not declare.
5259         [__ASSUME_32BITUIDS]: Make code unconditional.
5260         [!__ASSUME_32BITUIDS]: Remove conditional code.
5261         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5262         <kernel-features.h>.
5263         [__ASSUME_32BITUIDS]: Make code unconditional.
5264         [!__ASSUME_32BITUIDS]: Remove conditional code.
5265         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5266         <kernel-features.h>.
5267         [__ASSUME_32BITUIDS]: Make code unconditional.
5268         [!__ASSUME_32BITUIDS]: Remove conditional code.
5269         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5270         <kernel-features.h>.
5271         [__ASSUME_32BITUIDS]: Make code unconditional.
5272         [!__ASSUME_32BITUIDS]: Remove conditional code.
5273         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5274         <kernel-features.h>.
5275         [__ASSUME_32BITUIDS]: Make code unconditional.
5276         [!__ASSUME_32BITUIDS]: Remove conditional code.
5277         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5278         <kernel-features.h>.
5279         [__ASSUME_32BITUIDS]: Make code unconditional.
5280         [!__ASSUME_32BITUIDS]: Remove conditional code.
5281         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5282         <kernel-features.h>.
5283         [__ASSUME_32BITUIDS]: Make code unconditional.
5284         [!__ASSUME_32BITUIDS]: Remove conditional code.
5285         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5286         <kernel-features.h>.
5287         [__ASSUME_32BITUIDS]: Make code unconditional.
5288         [!__ASSUME_32BITUIDS]: Remove conditional code.
5289         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5290         <kernel-features.h>.
5291         [__ASSUME_32BITUIDS]: Make code unconditional.
5292         [!__ASSUME_32BITUIDS]: Remove conditional code.
5293         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5294         <kernel-features.h>.
5295         [__ASSUME_32BITUIDS]: Make code unconditional.
5296         [!__ASSUME_32BITUIDS]: Remove conditional code.
5297         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5298         <kernel-features.h>.
5299         [__ASSUME_32BITUIDS]: Make code unconditional.
5300         [!__ASSUME_32BITUIDS]: Remove conditional code.
5301         * sysdeps/unix/sysv/linux/kernel-features.h
5302         (__ASSUME_SETRESUID_SYSCALL): Remove.
5303         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5304         (__ASSUME_32BITUIDS): Likewise.
5305         (__ASSUME_LDT_WORKS): Likewise.
5306         (__ASSUME_O_DIRECTORY): Likewise.
5307         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5308         architecture but not kernel version.
5309         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5310         (__ASSUME_MMAP2_SYSCALL): Likewise.
5311         (__ASSUME_STAT64_SYSCALL): Likewise.
5312         (__ASSUME_IPC64): Likewise.
5313         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5314         <kernel-features.h>.
5315         [__ASSUME_32BITUIDS]: Make code unconditional.
5316         [!__ASSUME_32BITUIDS]: Remove conditional code.
5317         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5318         <kernel-features.h>.
5319         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5320         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5321         132096]: Remove conditional code.
5322         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5323         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5324         <kernel-features.h>.
5325         [__ASSUME_32BITUIDS]: Make code unconditional.
5326         [!__ASSUME_32BITUIDS]: Remove conditional code.
5327         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5328         <kernel-features.h>.
5329         [__ASSUME_32BITUIDS]: Make code unconditional.
5330         [!__ASSUME_32BITUIDS]: Remove conditional code.
5331         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5332         <kernel-features.h>.
5333         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5334         unconditional.
5335         (__setresgid): Do not declare.
5336         [__ASSUME_32BITUIDS]: Make code unconditional.
5337         [!__ASSUME_32BITUIDS]: Remove conditional code.
5338         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5339         <kernel-features.h>.
5340         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5341         unconditional.
5342         (__setresuid): Do not declare.
5343         [__ASSUME_32BITUIDS]: Make code unconditional.
5344         [!__ASSUME_32BITUIDS]: Remove conditional code.
5345         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5346         <kernel-features.h>.
5347         [__ASSUME_32BITUIDS]: Make code unconditional.
5348         [!__ASSUME_32BITUIDS]: Remove conditional code.
5349         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5350         <kernel-features.h>.
5351         [__ASSUME_32BITUIDS]: Make code unconditional.
5352         [!__ASSUME_32BITUIDS]: Remove conditional code.
5353
5354 2012-05-25  Richard Henderson  <rth@twiddle.net>
5355
5356         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5357         dl_hwcap to ifunc resolver.
5358         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5359         elf_ifunc_invoke.
5360         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5361         dl_hwcap to ifunc resolver.
5362         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5363
5364 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5365
5366         [BZ #14153]
5367         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5368         for |x| <= 2**-26, not 2**-57.
5369         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5370         exception.
5371
5372 2012-05-24  Jeff Law  <law@redhat.com>
5373
5374         * stdio-common/Makefile (tests): Add bug25.
5375         * stdio-common/bug25.c: New test.
5376
5377 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5378
5379         [BZ #13576]
5380         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5381         multiple of MALLOC_ALIGNMENT in size.
5382         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5383
5384 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5385
5386         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5387         Require >= 256.
5388         (FILENAME_MAX): Use macro-int-constant.
5389         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5390         (_IOFBF): Use macro-int-constant.
5391         (_IOLBF): Likewise.
5392         (_IONBF): Likewise.
5393         (SEEK_CUR): Likewise.
5394         (SEEK_END): Likewise.
5395         (SEEK_SET): Likewise.
5396         (TMP_MAX): Likewise.
5397         (EOF): Use macro-int-constant.  Require < 0.
5398         (NULL): Use macro-constant.  Require == 0.
5399         (stdin): Require type to be FILE *.
5400         (stdout): Likewise.
5401         (stderr): Likewise.
5402         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5403         macro-int-constant.
5404         (EXIT_SUCCESS): Likewise.
5405         (NULL): Use macro-constant.  Require == 0.
5406         (RAND_MAX): Use macro-int-constant.
5407         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5408         [C99-based standards] (strtof): Require function.
5409         [C99-based standards] (strtold): Likewise.
5410         [C99-based standards] (strtoll): Likewise.
5411         [C99-based standards] (strtoull): Likewise.
5412         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5413         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5414         [ISO || ISO99 || ISO11] (math.h): Likewise.
5415         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5416         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5417         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5418
5419 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5420
5421         [BZ #14132]
5422         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5423         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5424         * intl/dgettext.c (DCGETTEXT): Likewise.
5425         * intl/gettext.c (DCGETTEXT): Likewise.
5426         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5427         * posix/regex_internal.h (gettext): Likewise.
5428         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5429         Remove declaration.
5430         * include/argz.h (__argz_count_internal)
5431         (__argz_stringify_internal): Remove declaration.
5432         (__argz_count, __argz_stringify): Declare hidden proto.
5433         * intl/dcgettext.c: Remove use of INTDEF.
5434         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5435         * string/argz-stringify.c: Likewise.
5436         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5437         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5438         Declare hidden proto.
5439         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5440         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5441         Declare hidden proto.
5442         * include/stdio.h (__asprintf_internal): Don't declare.
5443         (__asprintf): Don't define as macro.  Declare hidden proto.
5444         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5445         (__fsetlocking): Declare hidden proto.
5446         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5447         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5448         hidden proto.
5449         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5450         (_IO_setlinebuf): Remove use of INTUSE.
5451         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5452         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5453         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5454         Remove declaration.
5455         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5456         (_IO_do_flush): Remove use of INTUSE.
5457         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5458         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5459         (_IO_adjust_column, _IO_least_wmarker)
5460         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5461         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5462         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5463         (_IO_default_doallocate, _IO_wdefault_doallocate)
5464         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5465         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5466         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5467         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5468         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5469         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5470         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5471         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5472         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5473         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5474         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5475         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5476         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5477         proto.
5478         (_IO_flush_all_internal, _IO_adjust_column_internal)
5479         (_IO_default_uflow_internal, _IO_default_finish_internal)
5480         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5481         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5482         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5483         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5484         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5485         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5486         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5487         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5488         (_IO_file_close_internal, _IO_file_close_it_internal)
5489         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5490         (_IO_file_init_internal, _IO_file_attach_internal)
5491         (_IO_file_fopen_internal, _IO_file_read_internal)
5492         (_IO_file_sync_internal, _IO_file_seek_internal)
5493         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5494         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5495         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5496         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5497         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5498         (_IO_list_all_internal, _IO_link_in_internal)
5499         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5500         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5501         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5502         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5503         (_IO_do_write_internal, _IO_padn_internal)
5504         (_IO_getline_info_internal, _IO_getline_internal)
5505         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5506         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5507         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5508         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5509         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5510         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5511         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5512         with libc_hidden_ver, remove use of INTUSE.
5513         * libio/genops.c: Likewise.
5514         * libio/freopen.c: Likewise.
5515         * libio/freopen64.c: Likewise.
5516         * libio/iofclose.c: Likewise.
5517         * libio/iofdopen.c: Likewise.
5518         * libio/iofflush.c: Likewise.
5519         * libio/iofflush_u.c: Likewise.
5520         * libio/iofgets.c: Likewise.
5521         * libio/iofgets_u.c: Likewise.
5522         * libio/iofopen.c: Likewise.
5523         * libio/iofopncook.c: Likewise.
5524         * libio/iofread.c: Likewise.
5525         * libio/iofread_u.c: Likewise.
5526         * libio/ioftell.c: Likewise.
5527         * libio/iofwrite.c: Likewise.
5528         * libio/iogetline.c: Likewise.
5529         * libio/iogets.c: Likewise.
5530         * libio/iogetwline.c: Likewise.
5531         * libio/iopadn.c: Likewise.
5532         * libio/iopopen.c: Likewise.
5533         * libio/ioseekoff.c: Likewise.
5534         * libio/ioseekpos.c: Likewise.
5535         * libio/iosetbuffer.c: Likewise.
5536         * libio/iosetvbuf.c: Likewise.
5537         * libio/ioungetc.c: Likewise.
5538         * libio/ioungetwc.c: Likewise.
5539         * libio/iovdprintf.c: Likewise.
5540         * libio/iovsprintf.c: Likewise.
5541         * libio/iovsscanf.c: Likewise.
5542         * libio/memstream.c: Likewise.
5543         * libio/obprintf.c: Likewise.
5544         * libio/oldfileops.c: Likewise.
5545         * libio/oldiofclose.c: Likewise.
5546         * libio/oldiofdopen.c: Likewise.
5547         * libio/oldiofopen.c: Likewise.
5548         * libio/oldiopopen.c: Likewise.
5549         * libio/oldstdfiles.c: Likewise.
5550         * libio/putc.c: Likewise.
5551         * libio/setbuf.c: Likewise.
5552         * libio/setlinebuf.c: Likewise.
5553         * libio/stdfiles.c: Likewise.
5554         * libio/strops.c: Likewise.
5555         * libio/vasprintf.c: Likewise.
5556         * libio/vscanf.c: Likewise.
5557         * libio/vsnprintf.c: Likewise.
5558         * libio/vswprintf.c: Likewise.
5559         * libio/wfiledoalloc.c: Likewise.
5560         * libio/wfileops.c: Likewise.
5561         * libio/wgenops.c: Likewise.
5562         * libio/wmemstream.c: Likewise.
5563         * libio/wstrops.c: Likewise.
5564         * libio/__fpurge.c: Likewise.
5565         * libio/__fsetlocking.c: Likewise.
5566         * assert/assert.c: Likewise.
5567         * debug/fgets_chk.c: Likewise.
5568         * debug/fgets_u_chk.c: Likewise.
5569         * debug/fread_chk.c: Likewise.
5570         * debug/fread_u_chk.c: Likewise.
5571         * debug/gets_chk.c: Likewise.
5572         * debug/obprintf_chk.c: Likewise.
5573         * debug/vasprintf_chk.c: Likewise.
5574         * debug/vdprintf_chk.c: Likewise.
5575         * debug/vsnprintf_chk.c: Likewise.
5576         * debug/vsprintf_chk.c: Likewise.
5577         * malloc/mtrace.c: Likewise.
5578         * misc/error.c: Likewise.
5579         * misc/syslog.c: Likewise.
5580         * stdio-common/asprintf.c: Likewise.
5581         * stdio-common/fxprintf.c: Likewise.
5582         * stdio-common/getw.c: Likewise.
5583         * stdio-common/isoc99_fscanf.c: Likewise.
5584         * stdio-common/isoc99_scanf.c: Likewise.
5585         * stdio-common/isoc99_vfscanf.c: Likewise.
5586         * stdio-common/isoc99_vscanf.c: Likewise.
5587         * stdio-common/isoc99_vsscanf.c: Likewise.
5588         * stdio-common/printf-prs.c: Likewise.
5589         * stdio-common/printf_fp.c: Likewise.
5590         * stdio-common/printf_fphex.c: Likewise.
5591         * stdio-common/printf_size.c: Likewise.
5592         * stdio-common/putw.c: Likewise.
5593         * stdio-common/scanf.c: Likewise.
5594         * stdio-common/sprintf.c: Likewise.
5595         * stdio-common/tmpfile.c: Likewise.
5596         * stdio-common/vfprintf.c: Likewise.
5597         * stdio-common/vfscanf.c: Likewise.
5598         * stdlib/strfmon_l.c: Likewise.
5599         * sunrpc/openchild.c: Likewise.
5600         * sunrpc/xdr_stdio.c: Likewise.
5601         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5602         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5603
5604 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5605
5606         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5607
5608         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5609         in the third column, to generate for the shared library an IFUNC
5610         that uses _dl_vdso_vsym.
5611         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5612         * Makeconfig (object-suffixes-noshared): New variable.
5613
5614         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5615         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5616         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5617         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5618
5619         [BZ #14132]
5620         * include/sys/time.h (__gettimeofday): Remove macro.
5621         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5622         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5623         Remove INTDEF.
5624         (__gettimeofday): Add libc_hidden_def.
5625         (gettimeofday): Add libc_hidden_weak.
5626         * sysdeps/mach/gettimeofday.c: Likewise.
5627         * sysdeps/posix/gettimeofday.c: Likewise.
5628         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5629         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5630         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5631         (__gettimeofday_internal): Remove strong_alias.
5632         (__gettimeofday): Add libc_hidden_def.
5633         (gettimeofday): Add libc_hidden_weak.
5634         * sysdeps/unix/syscalls.list (gettimeofday):
5635         Remove __gettimeofday_internal alias.
5636
5637 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5638             H.J. Lu  <hongjiu.lu@intel.com>
5639
5640         [BZ #12495]
5641         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5642         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5643         (largebin_index_32_big): New.
5644         (largebin_index): Use it for 16-byte alignment.
5645         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5646         correction with front_misalign.
5647
5648 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5649
5650         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5651         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5652         Likewise.
5653         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5654         Likewise.
5655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5656         Likewise.
5657         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5658         Likewise.
5659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5660         Likewise.
5661         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5662         Likewise.
5663         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5664         Likewise.
5665         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5666         Likewise.
5667         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5668         Likewise.
5669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5670         Likewise.
5671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5672         Likewise.
5673         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5674         Likewise.
5675
5676         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5677         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5678
5679 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5680
5681         [BZ #10846]
5682         [BZ #14036]
5683         * math/libm-test.inc (exp_test): Add test from bug 14036.
5684         (pow_test): Add test from bug 10846.
5685
5686         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5687         and other flags.
5688         (special_function): Do not include flags in test name.
5689         (parse_args): Likewise.
5690         * sysdeps/i386/fpu/libm-test-ulps: Update.
5691         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5692         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5693         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5695
5696         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5697         exceptions.
5698         * math/libm-test.inc ("Philosophy"): Update comment about
5699         exception testing.
5700         (UNDERFLOW_EXCEPTION): New macro.
5701         (UNDERFLOW_EXCEPTION_OK): Likewise.
5702         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5703         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5704         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5705         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5706         (INVALID_EXCEPTION_OK): Update value.
5707         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5708         (OVERFLOW_EXCEPTION_OK): Likewise.
5709         (IGNORE_ZERO_INF_SIGN): Likewise.
5710         (test_exceptions): Handle underflow exceptions.
5711         (acos_test): Update for underflow exception expectations.
5712         (cexp_test): Likewise.
5713         (clog_test): Likewise.
5714         (clog10_test): Likewise.
5715         (csqrt_test): Likewise.
5716         (ctan_test): Likewise.
5717         (ctanh_test): Likewise.
5718         (exp_test): Likewise.
5719         (exp10_test): Likewise.
5720         (exp2_test): Likewise.
5721         (expm1_test): Likewise.
5722         (fma_test): Likewise.
5723         (j0_test): Likewise.
5724         (jn_test): Likewise.
5725         (nexttoward_test): Likewise.
5726         (pow_test): Likewise.
5727         (scalbn_test): Likewise.
5728         (scalbln_test): Likewise.
5729         (tan_test): Likewise.
5730         (y1_test): Likewise.
5731         * sysdeps/i386/fpu/libm-test-ulps: Update.
5732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5733
5734 2012-05-23  David S. Miller  <davem@davemloft.net>
5735
5736         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5737         (__libc_sigaction): Remove unused local variables.
5738
5739 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5740
5741         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5742
5743 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5744
5745         mktime: avoid signed integer overflow
5746         * time/mktime.c (__mktime_internal): Do not mishandle the case
5747         where diff == INT_MIN.
5748
5749         mktime: simplify computation of average
5750         * time/mktime.c (ranged_convert): Use new time_t_avg function
5751         instead of rolling our own (probably-slower) code.
5752
5753         mktime: do not assume signed right shift propagates sign bit
5754         * time/mktime.c (isdst_differ): New static function.
5755         (__mktime_internal): No need to normalize tm_isdst now.
5756         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5757         tm_isdst values.
5758
5759         mktime: merge another wrapv change from gnulib
5760         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5761         from some compilers.
5762
5763         mktime: remove incorrect attempt at unusual arithmetics
5764         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5765         The code didn't really work on such machines anyway.
5766         (TYPE_MINIMUM): Assume two's complement.
5767         (twos_complement_arithmetic): Verify that long_int and time_t
5768         are two's complement (or unsigned, in the latter case).
5769
5770         mktime: check signed shifts on long_int and time_t, too
5771         * time/mktime.c (SHR): Check that shifts work as desired
5772         on the types long_int and time_t too, as SHR is used on
5773         such types.
5774
5775         mktime: do not assume 'long' is wide enough
5776         * time/mktime.c (verify): Move decl up.
5777         (long_int): New type.
5778         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5779         to remove assumption in the code that 'long' is wide enough to
5780         store year values.  This assumption is not true on x32 and on
5781         some non-glibc platforms.
5782
5783         mktime: merge wrapv change from gnulib
5784         * time/mktime.c (WRAPV): New macro.
5785         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5786         (guess_time_tm, __mktime_internal): Do not assume that signed
5787         integer overflow wraps around; modern compilers generate code
5788         where this assumption is no longer valid.
5789
5790 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5791
5792         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5793         Replace "jmp L(pseudo_end)" with "ret".
5794         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5795         Likewise.
5796
5797 2012-05-23  Andreas Jaeger  <aj@suse.de>
5798
5799         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5800         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5801
5802 2012-05-23  Andreas Jaeger  <aj@suse.de>
5803             Maximilian Attems  <max@stro.at>
5804
5805         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5806         New macros.
5807
5808 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5809
5810         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5811         code so that pseudo_end is just ret and the stack pointer is
5812         correct also for static library in error case.
5813
5814 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5815
5816         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5817         move to syscalls.list.
5818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5822
5823         * manual/install.texi (Running make install): Do not mention Linux
5824         kernel version for which pt_chown is not needed.
5825         (Linux): Do not mention problems with nscd with 2.0 kernels.
5826         * INSTALL: Regenerated.
5827
5828 2012-05-23  Andreas Jaeger  <aj@suse.de>
5829
5830         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5831         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5832         macro.
5833         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5834         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5835         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5836         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5837         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5838         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5839         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5840         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5841         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5842         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5843         * sysdeps/unix/sysv/linux/bits/in.h
5844         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5845
5846 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5847
5848         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5849         (PREPARE_VERSION): Just use assert instead, it will be elided
5850         under [NDEBUG] anyway.
5851
5852 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5853
5854         * sysdeps/unix/sysv/linux/Makefile: Include
5855         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5856         (sysdep_routines): Remove sysctl.
5857         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5858         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5859         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5860         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5861         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5862
5863 2012-05-22  Andreas Jaeger  <aj@suse.de>
5864
5865         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5866         that pseudo_end is just ret and the stack pointer is correct also
5867         for static library in error case.
5868
5869 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5870
5871         [BZ #14122]
5872         * nss/nsswitch.c (defconfig_entries): New variable.
5873         (__nss_database_lookup): Don't leak defconfig entries.
5874         (nss_parse_service_list): Don't leak on error paths.
5875         (free_database_entries): New function.
5876         (free_defconfig): New function.
5877         (free_mem): Move common code to free_database_entries.
5878
5879 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5880
5881         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5882         Add arch_prctl.
5883         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5884
5885         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5886         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5887         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5888         New macro.
5889         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5890         (INTERNAL_SYSCALL_TYPES): Likewise.
5891         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5892         (LOAD_REGS_TYPES_[1-6]): Likewise.
5893         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5894         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5895
5896 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5897
5898         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5899         copysignl for GLIBC_2_0.
5900         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5901         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5902         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5903         logbl for GLIBC_2_0.
5904         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5905         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5906
5907 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5908
5909         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5910         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5911
5912         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5913         Use "neg %eax".
5914
5915         * time/mktime.c: Update copyright years.
5916
5917 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5918
5919         mktime: merge comment-quoting-style change from gnulib
5920         * time/mktime.c: Quote 'like this' in comments.
5921         The GNU coding standards suggest that we no longer quote `like this',
5922         as "`" and "'" are typically rendered asymmetrically nowadays.
5923         The typical gnulib style is to quote 'like this' when quoting
5924         code, and "like this" when quoting English.
5925
5926         * time/mktime.c (compile-command): Add "-I.".
5927
5928         mktime: merge mktime-internal.h change from gnulib
5929         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5930
5931         mktime: merge time_r change from gnulib
5932         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5933
5934         mktime: merge DEBUG change from gnulib
5935         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5936         case system <time.h> has a #define.
5937
5938         mktime: merge <sys/types.h> change from gnulib
5939         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5940         since <time.t> is now guaranteed to define time_t.
5941
5942         mktime: merge HAVE_CONFIG_H change from gnulib
5943         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5944
5945 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5946
5947         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5948         Use "neg %eax".
5949
5950         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5951         __rlim_t cast.
5952         (struct rusage): Use anonymous union to pad each field to
5953         __syscall_slong_t.
5954
5955 2012-05-21  David S. Miller  <davem@davemloft.net>
5956
5957         * Makefules (o-iterator): Remove .s cases.
5958         (compile-command.s): Delete.
5959         (COMPILE.s): Delete.
5960         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5961
5962 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5963
5964         * configure.in (libc_cv_predef_stack_protector): Only consider
5965         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5966         * configure: Regenerated.
5967
5968 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5969
5970         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5971         New macro.  Use R*LP on int and pointer.
5972         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5973         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5974         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5975         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5976
5977         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5978         [__WORDSIZE_TIME64_COMPAT32] instead of
5979         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5980         (struct utmp): Likewise.
5981         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5982         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5983         Renamed to ...
5984         (__WORDSIZE_TIME64_COMPAT32): This.
5985         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5986         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5987         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5988         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5989         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5990         (__WORDSIZE_TIME64_COMPAT32): New macro.
5991
5992 2012-05-21  Andreas Jaeger  <aj@suse.de>
5993
5994         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5995         only if [SHARED]. Add prototype for __wcschr_ia32.
5996
5997 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5998
5999         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6000         of %rbp unmolested in the jmp_buf while mangling the low bits.
6001         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6002         unmolested high bits of %rbp while demangling the low bits.
6003         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6004
6005 2012-05-21  Andreas Jaeger  <aj@suse.de>
6006
6007         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6008         * sunrpc/svc_simple.c: Use it for registerrpc.
6009         * sunrpc/xcrypt.c: Use it for passwd2des.
6010
6011         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6012
6013 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6014
6015         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6016         Don't define if [__SYSCALL_WORDSIZE != 32].
6017         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6018         New macro.
6019
6020 2012-05-21  Bruno Haible  <bruno@clisp.org>
6021             Andreas Jaeger  <aj@suse.de>
6022
6023         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6024         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6025         inptr and inend for must_buffer_ch.
6026         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6027         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6028         * stdio-common/Makefile (tests): Remove bug15.
6029         (bug15-ENV): Remove macro.
6030         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6031         anymore.
6032
6033 2012-05-19  Andreas Jaeger  <aj@suse.de>
6034             Roland McGrath  <roland@hack.frob.com>
6035
6036         * manual/contrib.texi: Completely rewritten. It contains now an
6037         alphabetical list of contributors and their contributions.
6038
6039 2012-05-21  Richard Henderson  <rth@twiddle.net>
6040
6041         * misc/getauxval.c (__getauxval): Use unsigned long int.
6042         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6043         (getauxval): Use unsigned long int.
6044
6045 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6048
6049 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6050
6051         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6052         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6053         __alignof__ (long double).
6054
6055 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6056
6057         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6058
6059 2012-05-20  Richard Henderson  <rth@twiddle.net>
6060
6061         * misc/getauxval.c: New file.
6062         * misc/sys/auxv.h: New file.
6063         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6064         (routines): Add getauxval.
6065         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6066         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6067         * elf/dl-sysdep.c (_dl_auxv): Remove.
6068         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6069         * elf/dl-support.c (_dl_auxv): New variable.
6070         (_dl_aux_init): Initialize it.
6071         * manual/startup.texi (Auxiliary Vector): New node.
6072         * sysdeps/generic/bits/hwcap.h: New file.
6073         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6074         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6075         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6076         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6077         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6078         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6080         Update.
6081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6083         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6084         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6086         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6087         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6088         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6089
6090 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6091
6092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6093
6094 2012-05-19  David S. Miller  <davem@davemloft.net>
6095
6096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6097
6098 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6099
6100         [BZ #14123]
6101         * math/s_ccosh.c: Include <float.h>
6102         (__ccosh): Avoid internal overflow calculating sinh and cosh
6103         values before multiplying by sin and cos values.
6104         * math/s_ccoshf.c: Likewise.
6105         * math/s_ccoshl.c: Likewise.
6106         * math/s_csin.c: Likewise.
6107         * math/s_csinf.c: Likewise.
6108         * math/s_csinl.c: Likewise.
6109         * math/s_csinh.c: Likewise.
6110         * math/s_csinhf.c: Likewise.
6111         * math/s_csinhl.c: Likewise.
6112         * math/libm-test.inc (ccos_test): Add more tests.
6113         (ccosh_test): Likewise.
6114         (csin_test): Likewise.
6115         (csinh_test): Likewise.
6116         * sysdeps/i386/fpu/libm-test-ulps: Update.
6117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6118
6119 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6120
6121         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6122         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6123
6124         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6125
6126 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6127
6128         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6129         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6130         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6131         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6132         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6133         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6134         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6135         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6136         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6137         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6138         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6139         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6140         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6141         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6142         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6143         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6144         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6145         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6146         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6147         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6148         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6149         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6150         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6151         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6152         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6153         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6154         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6155         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6156         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6157         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6158         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6159
6160 2012-05-18  Andreas Jaeger  <aj@suse.de>
6161
6162         * csu/.gitignore: Delete.
6163
6164 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6165
6166         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6167         (timex): Use __syscall_slong_t.
6168
6169 2012-05-18  Andreas Jaeger  <aj@suse.de>
6170             Carlos O'Donell  <carlos_odonell@mentor.com>
6171
6172         * manual/install.texi (Configuring and compiling): Update
6173         description about files modified in the source directory.
6174         * INSTALL: Regenerated.
6175
6176 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6177
6178         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6179         value.  Use "or" to set return value to -1.
6180         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6181         negate return value.
6182
6183 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6184
6185         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6186         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6187         failure if the compiler has Graphite support disabled.
6188         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6189         Likewise.
6190         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6191         CFLAGS-memmove.c): Likewise.
6192         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6193         Likewise.
6194
6195 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6196
6197         * sysdeps/x86_64/x32/_itoa.h: New file.
6198
6199         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6200         getdents system call only if kernel and user dirents have the
6201         same d_ino and d_off.
6202
6203         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6204         LLONG_MAX != LONG_MAX.
6205         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6206         (_fitoa_word): Likewise.
6207
6208         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6209         years.
6210         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6211         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6212         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6213
6214         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6215         include <bits/wordsize.h>.  Check __x86_64__ instead of
6216         __WORDSIZE.
6217         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6218         if __x86_64__ is defined.  Use anonymous union on fpstate.
6219
6220         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6221         anonymous union.
6222
6223 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6224
6225         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6226         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6227         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6228         Refer to _rtld_local_ro instead of _rtld_global_ro.
6229         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6230         Likewise.
6231         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6232         Likewise.
6233         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6234         Likewise.
6235         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6236         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6237         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6238
6239         * sysdeps/powerpc/powerpc32/dl-machine.c
6240         (__elf_machine_runtime_setup) [PROF]: Don't reference
6241         _dl_prof_resolve.
6242
6243 2012-05-18  Andreas Jaeger  <aj@suse.de>
6244
6245         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6246         function only available for GCCs before 3.4 since GCC 3.4
6247         introduced a builtin.
6248         (lrint): Likewise.
6249         (llrintf): Likewise.
6250         (llrint): Likewise.
6251         (fmaxf): Likewise.
6252         (fmax): Likewise.
6253         (fminf): Likewise.
6254         (fmin): Likewise.
6255         (rint): Likewise.
6256         (rintf): Likewise.
6257         (nearbyint): Likewise.
6258         (nearbyintf): Likewise.
6259         (ceil): Likewise.
6260         (ceilf): Likewise.
6261         (floor): Likewise.
6262         (floorf): Likewise.
6263
6264 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6265
6266         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6267         on both fields and cast pointer to __syscall_ulong_t.
6268
6269         * bits/types.h (__fsword_t): New type.
6270         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6271         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6272         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6273         (__FSWORD_T_TYPE): Likewise.
6274         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6275         (__FSWORD_T_TYPE): Likewise.
6276         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6277         (__FSWORD_T_TYPE): Likewise.
6278         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6279         (__FSWORD_T_TYPE): Likewise.
6280         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6281         __SWORD_TYPE with __fsword_t.
6282         (statfs64): Likewise.
6283
6284 2012-05-17  David S. Miller  <davem@davemloft.net>
6285
6286         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6287
6288 2012-05-17  Andreas Jaeger  <aj@suse.de>
6289
6290         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6291         warning.
6292
6293 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6294
6295         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6296
6297 2012-05-17  Andreas Jaeger  <aj@suse.de>
6298
6299         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6300         when it is used.
6301
6302 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6303
6304         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6305
6306 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6307
6308         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6309         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6310
6311 2012-05-17  Andreas Jaeger  <aj@suse.de>
6312             Carlos O'Donell  <carlos_odonell@mentor.com>
6313
6314         [BZ #14059]
6315         * sysdeps/x86_64/multiarch/init-arch.h
6316         (bit_YMM_Usable): Rename to...
6317         (bit_AVX_Usable): ... this.
6318         (bit_FMA4_Usable): New macro.
6319         (bit_XMM_state): New macro.
6320         (bit_YMM_state): New macro.
6321         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6322         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6323         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6324         (CPUID_OSXSAVE): New macro.
6325         (CPUID_AVX): New macro.
6326         (CPUID_FMA4): New macro.
6327         (index_YMM_Usable): Rename to...
6328         (index_AVX_Usable): ... this.
6329         (HAS_AVX): Use HAS_ARCH_FEATURE.
6330         (HAS_FMA4): Likewise.
6331         (HAS_YMM_USABLE): Remove.
6332         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6333         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6334         are present.
6335         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6336         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6337         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6338         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6339         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6340
6341 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6342
6343         * math/libm-test.c: Support platforms without multiple rounding modes.
6344         * math/bug-nextafter.c: Support platforms without FP exceptions.
6345         * math/bug-nexttoward.c: Likewise.
6346         * math/test-fenv.c: Likewise.
6347         * math/test-misc.c: Likewise.
6348         * stdlib/bug-getcontext.c: Likewise.
6349
6350 2012-05-17  Andreas Jaeger  <aj@suse.de>
6351
6352         * manual/examples/search.c (critter_cmp): Change signature to
6353         avoid warnings.
6354         * manual/string.texi (Collation Functions): Likewise.
6355
6356 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6357
6358         * bits/types.h: Fold copyright years.
6359         * bits/typesizes.h: Likewise.
6360         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6361         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6362         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6363         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6364         * time/time.h: Likewise.
6365
6366 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6367
6368         [BZ #208]
6369         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6370         in instead of returning them.  Return void.
6371         (__libc_mallinfo): Accumulate over all arenas.
6372         (__malloc_stats): Adjust for change in int_mallinfo interface.
6373
6374 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6375
6376         [BZ #10375]
6377         * configure.in (NM): Add AC_CHECK_TOOL for it.
6378         (libc_extra_cflags): New substituted variable.
6379         Check for -fstack-protector being used implicitly.
6380         * configure: Regenerated.
6381         * config.make.in (config-extra-cflags): New variable,
6382         gets @libc_extra_cflags@.
6383         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6384
6385         [BZ #10375]
6386         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6387         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6388         * configure: Regenerated.
6389         * config.make.in (CPPUNDEFS): New substituted variable.
6390         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6391         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6392         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6393
6394 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6395
6396         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6397         (mq_attr): Use __syscall_slong_t.
6398
6399 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6400
6401         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6402         Check __x86_64__ instead of __WORDSIZE.
6403         (_STAT_VER_LINUX): Likewise.
6404         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6405         __syscall_ulong_t and __syscall_slong_t.
6406         (stat64): Likewise.
6407
6408 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6409
6410         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6411
6412 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6413
6414         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6415
6416 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6417
6418         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6419         __syscall_ulong_t.
6420
6421         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6422         include <bits/wordsize.h>.  Check __x86_64__ instead of
6423         __WORDSIZE.
6424         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6425         defined.
6426         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6427
6428         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6429         include <bits/wordsize.h>.  Check __x86_64__ instead of
6430         __WORDSIZE.
6431         (user_regs_struct): Use "__extension__ unsigned long long"
6432         instead of "unsigned long" if __x86_64__ is defined.
6433         (user): Likewise.  Pad after pointer field if __ILP32__ is
6434         defined.
6435
6436 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6437
6438         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6439         versions 5 to 9.
6440         * configure: Regenerated.
6441         * manual/install.texi (texinfo): Increase version requirement to
6442         4.5 or later.
6443         * INSTALL: Regenerated.
6444
6445         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6446
6447 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6448
6449         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6450
6451         * sysdeps/x86_64/x32/ffs.c: New file.
6452
6453         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6454         __syscall_ulong_t.
6455         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6456         defined.  Use __syscall_ulong_t.
6457         (shminfo): Use __syscall_ulong_t.
6458         (shm_info): Likewise.
6459
6460         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6461         __syscall_ulong_t.
6462
6463         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6464         <bits/wordsize.h>.
6465         (msgqnum_t): Use __syscall_ulong_t.
6466         (msglen_t): Likewise.
6467         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6468         __syscall_ulong_t.
6469
6470         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6471         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6472
6473         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6474
6475         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6476         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6477
6478         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6479         __syscall_slong_t.
6480
6481         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6482         include <bits/wordsize.h>.  Check __x86_64__ instead of
6483         __WORDSIZE.
6484
6485         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6486         "unsigned long long int" if __x86_64__ is defined.
6487         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6488
6489         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6490         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6491         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6492
6493         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6494         <stdint.h>.
6495         (GET_PC): Cast to uintptr_t first.
6496         (GET_FRAME): Likewise.
6497         (GET_STACK): Likewise.
6498
6499         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6500         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6501         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6502         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6503         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6504         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6505         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6506         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6507         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6508         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6509         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6510         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6512         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6513         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6514         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6515         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6516         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6517         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6518         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6519         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6520         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6521         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6522         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6523         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6524         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6525         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6526         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6527         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6528
6529 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6530
6531         * Makerules (+depfiles): Also collect depfiles from .oS in
6532         $(extra-objs).
6533         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6534         .oS, $(libnldbl-routines)).
6535
6536         * Makerules (native-compile-mkdep-flags): Define.
6537         * sunrpc/Makefile (extra-objs): Add $(addprefix
6538         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6539         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6540         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6541         calling $(make-target-directory).
6542
6543 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6544
6545         * bits/types.h (__snseconds_t): Removed.
6546         * time/time.h (struct timespec): Replace __snseconds_t with
6547         __syscall_slong_t.
6548         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6549         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6550         Likewise.
6551         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6552         (__SNSECONDS_T_TYPE): Likewise.
6553         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6554         (__SNSECONDS_T_TYPE): Likewise.
6555         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6556         (__SNSECONDS_T_TYPE): Likewise.
6557
6558 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6559
6560         * sysdeps/mach/hurd/bits/typesizes.h
6561         (__SYSCALL_SLONG_TYPE): New macro.
6562         (__SYSCALL_ULONG_TYPE): Likewise.
6563
6564 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6565
6566         * bits/types.h (__syscall_slong_t): New type.
6567         (__syscall_ulong_t): Likewise.
6568
6569         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6570         (__SYSCALL_ULONG_TYPE): Likewise.
6571         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6572         (__SYSCALL_SLONG_TYPE): Likewise.
6573         (__SYSCALL_ULONG_TYPE): Likewise.
6574         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6575         (__SYSCALL_SLONG_TYPE): Likewise.
6576         (__SYSCALL_ULONG_TYPE): Likewise.
6577         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6578         (__SYSCALL_SLONG_TYPE): Likewise.
6579         (__SYSCALL_ULONG_TYPE): Likewise.
6580
6581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6582
6583         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6584         Add sigaltstack-offsets.sym.
6585         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6586         <sigaltstack-offsets.h>.
6587         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6588         longjmp_msg pointer.
6589         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6590         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6591         signal stack.
6592         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6593
6594 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6595
6596         * elf/stackguard-macros.h: Remove file.
6597         * sysdeps/generic/stackguard-macros.h: New file.
6598         * sysdeps/i386/stackguard-macros.h: Likewise.
6599         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6600         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6601         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6602         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6603         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6604         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6605         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6606         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6607         <elf/stackguard-macros.h>.
6608
6609         [BZ #14109]
6610         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6611         __aligned__ in attribute.
6612         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6613         (gregset_t): Likewise.
6614
6615 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6616
6617         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6618         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6619         * sysdeps/x86_64/x32/Implies-after: New file.
6620
6621 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6622
6623         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6624         and access return value for _dl_profile_fixup.  Use R10_LP to
6625         load frame size.
6626
6627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6630
6631 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6632
6633         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6634         * sysdeps/x86_64/x32/sysdep.h: New file.
6635
6636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6637
6638         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6639         * sysdeps/x86_64/setjmp.S: Likewise.
6640
6641 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6642
6643         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6644         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6645         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6646         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6647         remove unused global constant.
6648
6649 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6650
6651         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6652         include of <not-cancel.h>.
6653
6654 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6655
6656         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6657
6658 2012-05-15  Jeff Law  <law@redhat.com>
6659             Andreas Jaeger  <aj@suse.de>
6660
6661         [BZ #13594]
6662         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6663         out from...
6664         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6665         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6666         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6667         code changing __hst_map_handle.map.
6668
6669 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6670
6671         * configure.in (sysnames): Look for Implies-before and Implies-after
6672         files.
6673         * configure: Regenerated.
6674
6675 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6676
6677         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6678         8-byte data alignment with LP_SIZE alignment.
6679
6680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6681
6682         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6683         into R10_LP.
6684
6685 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6686
6687         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6688
6689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6690
6691         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6692         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6693         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6694         Likewise.
6695         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6696
6697 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6698
6699         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6700         (stackinfo_sub_sp): Likewise.
6701
6702 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6703
6704         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6705         RAX_LP.
6706
6707 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6708
6709         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6710         into R*_LP.
6711
6712 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6713
6714         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6715         sizes into R*_LP.
6716
6717 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6718
6719         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6720
6721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6722
6723         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6724         into R11_LP and load __x86_64_shared_cache_size_half into
6725         R8_LP.
6726
6727 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6728
6729         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6730         R8_LP.
6731
6732 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6733
6734         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6735         logb for POWER7.
6736         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6737         logbf for POWER7.
6738         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6739         logbl for POWER7.
6740         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6741         powerpc32/power7/fpu/s_logb.c via #include.
6742         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6743         powerpc32/power7/fpu/s_logbf.c via #include.
6744         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6745         powerpc32/power7/fpu/s_logbl.c via #include.
6746
6747 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6748
6749         * README.libm: Remove file.
6750
6751 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6752
6753         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6754         count for x32.  Use R*_LP and omit operand-size suffix.
6755
6756 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6757
6758         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6759         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6760         * sysdeps/x86_64/x32/shlib-versions: New file.
6761
6762 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6763
6764         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6765         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6766         Use _dl_fatal_printf instead.
6767
6768 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6769
6770         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6771         set if not set by the user.  Do not allow for being unset.
6772         * sysdeps/unix/sysv/linux/configure: Regenerated.
6773
6774 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6775
6776         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6777         the `q' suffix from lea and replace .quad with ASM_ADDR.
6778
6779 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6782         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6783         instead of $17.
6784         (PTR_DEMANGLE): Likewise.
6785
6786 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6787
6788         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6789         (LP_OP): Likewise.
6790         (ASM_ADDR): Likewise.
6791         (RAX_LP): Likewise.
6792         (RBP_LP): Likewise.
6793         (RBX_LP): Likewise.
6794         (RCX_LP): Likewise.
6795         (RDI_LP): Likewise.
6796         (RSI_LP): Likewise.
6797         (RSP_LP): Likewise.
6798         (R8_LP): Likewise.
6799         (R9_LP): Likewise.
6800         (R10_LP): Likewise.
6801         (R10_LP): Likewise.
6802         (R11_LP): Likewise.
6803         (R12_LP): Likewise.
6804         (R13_LP): Likewise.
6805         (R14_LP): Likewise.
6806         (R15_LP): Likewise.
6807
6808 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6809
6810         * sysdeps/x86_64/x32/dl-machine.h: New file.
6811
6812 2012-05-14  Andreas Jaeger  <aj@suse.de>
6813
6814         * manual/Makefile (subdir): Remove export of subdir.
6815         (all): Remove target.
6816         (.PHONY): Remove all from list.
6817         (mkinstalldirs): Remove.
6818         (.PHONY): Remove installdirs from list.
6819         ($(inst_infodir)/libc.info): Use make-target-directory.
6820         (installdirs): Remove.
6821         (subdir_%): Remove.
6822         (glibc-targets): Remove.
6823         (lib): Remove.
6824         (stubs): Remove.
6825         ($(objpfx)stubs ../po/manual.pot): Remove.
6826         ($(objpfx)stamp%): Remove.
6827         (make-target-directory): Remove.
6828         (subdir_install): Remove.
6829         (routines): Remove.
6830         (aux): Remove.
6831         (sources): Remove.
6832         (objects): Remove.
6833         (headers): Remove.
6834
6835         [BZ #13750]
6836         * manual/.gitignore: Remove, it's not needed anymore.
6837         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6838         all files in it.
6839         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6840         directory.
6841         (texis): Renamed to $(objpfx)texis.
6842         (texis-path): New, contains path to generated files.
6843         (chapters.%): Use texis-path for complete path, add extra argument
6844         libc-texinfo.sh.
6845         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6846         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6847         (summary,texi, stamp-summary): Use complete path of
6848         files. Generate files in build dir.
6849         (dir-add.texi): Build in build dir.
6850         (libm-err.texi,stamp-libm-err): Likewise.
6851         (version.texi, stamp-version): Likewise.
6852         (.%c.texi): Likewise.
6853         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6854         (mostlyclean): Remove target.
6855         (realclean): Remove target.
6856         (generated): Add new variable with contents from mostlyclean and
6857         realclean, remove entries duplicated in common-mostlyclean, add
6858         stamp-libm-err and stamp-version.
6859         (generated-dirs): Add libc directory.
6860         ($(inst_infodir)/libc.info): Install files from build dir.
6861
6862         * manual/install.texi (Configuring and compiling): Adjust since
6863         the info files are not part of the tar ball anymore.
6864
6865 2012-05-14  Andreas Jaeger  <aj@suse.de>
6866
6867         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6868         variable.
6869
6870 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6871
6872         [BZ #13717]
6873         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6874         to 2.2.0 where earlier.
6875         * sysdeps/unix/sysv/linux/configure: Regenerated.
6876         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6877         Remove conditional code.
6878         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6879         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6880         Remove conditional code.
6881         [!__NR_lchown]: Likewise.
6882         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6883         [__NR_lchown]: Likewise.
6884         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6885         comment referencing __ASSUME_LCHOWN_SYSCALL.
6886         * sysdeps/unix/sysv/linux/i386/sigaction.c
6887         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6888         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6889         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6890         Remove conditional code.
6891         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6892         (__protocol_available): Remove #if 0 code.
6893         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6894         conditional code.
6895         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6896         * sysdeps/unix/sysv/linux/kernel-features.h
6897         (__ASSUME_GETCWD_SYSCALL): Don't define.
6898         (__ASSUME_REALTIME_SIGNALS): Likewise.
6899         (__ASSUME_PREAD_SYSCALL): Likewise.
6900         (__ASSUME_PWRITE_SYSCALL): Likewise.
6901         (__ASSUME_POLL_SYSCALL): Likewise.
6902         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6903         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6904         non-SPARC.
6905         (__ASSUME_SIOCGIFNAME): Don't define.
6906         (__ASSUME_MSG_NOSIGNAL): Likewise.
6907         (__ASSUME_SENDFILE): Define unconditionally.
6908         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6909         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6910         conditional code.
6911         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6912         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6913         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6914         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6915         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6916         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6917         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6919         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6920         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6922         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6923         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6925         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6926         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6928         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6929         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6931         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6932         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6934         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6935         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6937         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6938         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6940         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6941         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6942         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6943         Remove conditional code.
6944         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6945         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6946         Remove conditional code.
6947         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6948         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6949         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6950         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6951         Remove conditional code.
6952         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6953         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6954         Remove conditional code.
6955         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6956         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6957         Remove conditional code.
6958         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6959         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6960         Remove conditional code.
6961         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6962         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6963         Remove conditional code.
6964         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6965         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6966         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6967         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6968         * sysdeps/unix/sysv/linux/sigaction.c
6969         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6970         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6971         * sysdeps/unix/sysv/linux/sigpending.c
6972         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6973         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6974         * sysdeps/unix/sysv/linux/sigprocmask.c
6975         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6976         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6977         * sysdeps/unix/sysv/linux/sigsuspend.c
6978         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6979         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6980         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6981         (__libc_missing_rt_sigs): Remove.
6982         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6983         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6984         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6985         Remove conditional code.
6986         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6987         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6988         return 1.
6989         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6990         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6991         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6992         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6993
6994 2012-05-14  Andreas Jaeger  <aj@suse.de>
6995
6996         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6997         it's not used in glibc.
6998         (__coshm1): Likewise.
6999         (__acosh1p): Likewise.
7000         (__sgn): Likewise.
7001
7002         * manual/string.texi (Copying and Concatenation): Add missing
7003         variable in concat example.
7004         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7005
7006 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7007
7008         [BZ #14103]
7009         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7010         __builtin_clzl with __builtin_clzll.
7011
7012 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7013
7014         [BZ #14104]
7015         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7016         libc_freeres_ptr.
7017
7018 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7019
7020         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7021         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7022         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7023         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7024
7025 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7026
7027         * NEWS: Update ia64 info.
7028
7029 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7030
7031         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7032         used as bcopy.
7033
7034 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7035
7036         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7037         * sysdeps/unix/syscalls.list (dup3): Likewise.
7038         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7039         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7040
7041 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7042
7043         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7044         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7045
7046 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7047
7048         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7049         thread pointer.
7050         (TLS_IE): Use mov/add instead of movq/addq to load thread
7051         pointer.
7052         (TLS_GD_PREFIX): New.
7053         (TLS_GD): Use it.
7054
7055 2012-05-11  David S. Miller  <davem@davemloft.net>
7056
7057         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7058         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7059         (_FPU_SETCW): Likewise.
7060
7061 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7062
7063         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7064         is 32-byte aligned.
7065
7066 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7067
7068         [BZ #11837]
7069         * iconvdata/gb18030.c: Update tables.
7070         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7071         characters specially.
7072         (BODY for TO_LOOP): Add encoding of missing ranges.
7073
7074 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7075
7076         [BZ #13673]
7077         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7078         * sysdeps/mach/hurd/dup3.c: Likewise.
7079         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7080         * sysdeps/powerpc/memmove.c:: Likewise.
7081
7082 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7083
7084         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7085         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7086
7087 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7088
7089         * elf/elf.h (R_X86_64_RELATIVE64): New.
7090         (R_X86_64_NUM): Updated.
7091         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7092         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7093         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7094         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7095         tst-quad1pie tst-quad2pie
7096         (modules-names): Add tst-quadmod1 tst-quadmod2.
7097         ($(objpfx)tst-quad1): New dependency.
7098         ($(objpfx)tst-quad2): Likewise.
7099         ($(objpfx)tst-quad1pie): Likewise.
7100         ($(objpfx)tst-quad2pie): Likewise.
7101         * sysdeps/x86_64/tst-quad1.c: New file.
7102         * sysdeps/x86_64/tst-quad1pie.c: New file.
7103         * sysdeps/x86_64/tst-quad2.c: Likewise.
7104         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7105         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7106         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7107         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7108         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7109
7110 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7111
7112         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7113         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7114         * streams/stropts.h (t_scalar_t): Define type.
7115
7116         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7117         (_PATH_PRESERVE): Set to "/var/lib".
7118         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7119
7120         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7121         instead of int.
7122
7123         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7124         if __dir_mkfile succeeded.
7125
7126         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7127         checking for _hurd_dtablesize.  Unlock it right after having
7128         finished _hurd_dtable allocation.
7129
7130 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7131
7132         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7133         * sysdeps/mach/hurd/configure: Regenerated.
7134         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7135         special-casing to...
7136         * sysdeps/gnu/configure.in: ... this new file.
7137         * sysdeps/unix/sysv/linux/configure: Regenerated.
7138         * sysdeps/gnu/configure: New generated file.
7139
7140         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7141         for Linux: use nsec instead of usec, as well as:
7142         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7143         members of type struct timespec.
7144         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7145         New macros.
7146         (struct stat64): Likewise.
7147         (_STATBUF_ST_NSEC): New macro.
7148         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7149
7150         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7151         __strtoul_internal rather than strtoul.
7152
7153 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7154
7155         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7156         and reject them.
7157
7158 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7159
7160         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7161         which preserves existing values.
7162         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7163
7164 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7165
7166         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7167         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7168         greater than FD_SETSIZE.
7169
7170 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7171
7172         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7173         allocated, call __vm_protect to finish enabling the existing space, and
7174         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7175         allocate the remainder.
7176
7177 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7178
7179         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7180         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7181
7182 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7183
7184         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7185         sysdeps/mach/hurd/readlink.c.
7186
7187         * posix/tst-sysconf.c (posix_options): Only use
7188         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7189         _POSIX_SYNCHRONIZED_IO when they are defined
7190         * sysdeps/mach/hurd/bits/posix_opt.h:
7191         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7192         (_XOPEN_REALTIME): Undefine macro.
7193         (_XOPEN_REALTIME_THREADS): Undefine macro.
7194         (_XOPEN_SHM): Undefine macro.
7195         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7196         macro to -1.
7197         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7198         macro to -1.
7199         (_POSIX_ASYNC_IO): Undefine macro.
7200         (_POSIX_PRIORITIZED_IO): Undefine macro.
7201         (_POSIX_SPIN_LOCKS): Define macro to -1.
7202
7203         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7204         SA_NODEFER, SA_RESETHAND.
7205         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7206         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7207         F_DUPFD_CLOEXEC.
7208
7209 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7210
7211         * elf/Makefile (pldd-modules): Define unconditionally.
7212
7213 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7214
7215         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7216
7217 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7218
7219         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7220         Return ENOENT when name is empty.
7221         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7222
7223 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7224
7225         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7226
7227         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7228
7229 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7230
7231         Fix mlock in all cases except non-readable pages.
7232         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7233         instead of VM_PROT_ALL as parameter to __vm_wire function.
7234
7235         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7236         (__mkdir): When path is `/', just fail with EEXIST.
7237         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7238
7239 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7240
7241         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7242         <sys/uio.h> (for writev).
7243         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7244         and <sys/param.h> (for MIN).
7245
7246 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7247
7248         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7249         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7250         if interrupted.
7251
7252 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7253
7254         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7255         Depend on against $(link-rpcuserlibs).
7256
7257 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7258
7259         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7260         (__libc_stack_end): Do not use attribute_relro.
7261         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7262         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7263         to libthread-provided value.
7264         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7265         attribute_relro.
7266
7267 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7268
7269         [BZ #3748]
7270         * bits/libc-lock.h (__libc_once_get): New macro.
7271         * sysdeps/mach/bits/libc-lock.h: Likewise.
7272         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7273         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7274         instead of using implementation details.
7275
7276         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7277         * libio/freopen.c: Likewise.
7278         * libio/freopen64.c: Likewise.
7279         * misc/syslog.c: Likewise.
7280         * nscd/connections.c: Likewise.
7281         * nscd/netgroupcache.c: Likewise.
7282         * sysdeps/posix/getcwd.c: Likewise.
7283
7284 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7285
7286         * math/w_ilogbf.c: Add #include <limits.h>.
7287
7288 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7289
7290         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7291         path instead of returning without unlocking.
7292
7293         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7294         immediate-write ioctls.
7295         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7296
7297 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7298
7299         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7300         __builtin_frame_address instead of making assumptions about the
7301         location of the return address relative to DATA.  Force early load of
7302         the return address.
7303         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7304         __builtin_frame_address.
7305
7306         dup3 for GNU Hurd.
7307         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7308         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7309         implement dup3 and do some further code clean-ups.
7310         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7311         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7312
7313 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7314
7315         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7316
7317         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7318         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7319         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7320         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7321         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7322         d->port.lock.
7323
7324         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7325         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7326         when handler == SIG_ERR, not when handler != SIG_ERR.
7327
7328 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7329
7330         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7331         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7332         definitions.
7333
7334         accept4 for GNU Hurd.
7335         * include/sys/socket.h (__libc_accept4): New prototype.
7336         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7337         to implement __libc_accept4.
7338         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7339         __libc_accept4.
7340         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7341
7342         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7343         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7344         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7345         signal-defines.sym.
7346
7347 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7348
7349         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7350
7351 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7352
7353         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7354         assertion on O_CLOEXEC flag.
7355         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7356         * hurd/intern-fd.c: Likewise.
7357         * hurd/port2fd.c: Likewise.
7358
7359 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7360
7361         [BZ #3906]
7362         * bits/in.h (IPV6_PKTINFO): Define new macro.
7363         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7364
7365 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7366
7367         [BZ #13954]
7368         [BZ #13955]
7369         [BZ #13956]
7370         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7371         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7372         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7373         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7374         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7375         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7376         * math/libm-test.inc (logb_test) : Additional logb tests.
7377
7378 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7379             Andreas Jaeger  <aj@suse.de>
7380
7381         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7382         * configure: Regenerated.
7383         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7384         * config.make.in (link-obsolete-rpc): New substituted variable.
7385         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7386         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7387         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7388         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7389         so that libc.a contains the symbols.
7390         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7391         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7392         * sunrpc/auth_none.c: Likewise.
7393         * sunrpc/auth_unix.c: Likewise.
7394         * sunrpc/authdes_prot.c: Likewise.
7395         * sunrpc/authuxprot.c: Likewise.
7396         * sunrpc/clnt_gen.c: Likewise.
7397         * sunrpc/clnt_perr.c: Likewise.
7398         * sunrpc/clnt_raw.c: Likewise.
7399         * sunrpc/clnt_simp.c: Likewise.
7400         * sunrpc/clnt_tcp.c: Likewise.
7401         * sunrpc/clnt_udp.c: Likewise.
7402         * sunrpc/clnt_unix.c: Likewise.
7403         * sunrpc/des_crypt.c: Likewise.
7404         * sunrpc/des_soft.c: Likewise.
7405         * sunrpc/get_myaddr.c: Likewise.
7406         * sunrpc/key_call.c: Likewise.
7407         * sunrpc/key_prot.c: Likewise.
7408         * sunrpc/netname.c: Likewise.
7409         * sunrpc/pm_getmaps.c: Likewise.
7410         * sunrpc/pm_getport.c: Likewise.
7411         * sunrpc/pmap_clnt.c: Likewise.
7412         * sunrpc/pmap_prot.c: Likewise.
7413         * sunrpc/pmap_prot2.c: Likewise.
7414         * sunrpc/pmap_rmt.c: Likewise.
7415         * sunrpc/publickey.c: Likewise.
7416         * sunrpc/rpc_cmsg.c: Likewise.
7417         * sunrpc/rpc_common.c: Likewise.
7418         * sunrpc/rpc_dtable.c: Likewise.
7419         * sunrpc/rpc_prot.c: Likewise.
7420         * sunrpc/rpc_thread.c: Likewise.
7421         * sunrpc/rtime.c: Likewise.
7422         * sunrpc/svc.c: Likewise.
7423         * sunrpc/svc_auth.c: Likewise.
7424         * sunrpc/svc_raw.c: Likewise.
7425         * sunrpc/svc_run.c: Likewise.
7426         * sunrpc/svc_tcp.c: Likewise.
7427         * sunrpc/svc_udp.c: Likewise.
7428         * sunrpc/svc_unix.c: Likewise.
7429         * sunrpc/svcauth_des.c: Likewise.
7430         * sunrpc/xcrypt.c: Likewise.
7431         * sunrpc/xdr.c: Likewise.
7432         * sunrpc/xdr_array.c: Likewise.
7433         * sunrpc/xdr_float.c: Likewise.
7434         * sunrpc/xdr_intXX_t.c: Likewise.
7435         * sunrpc/xdr_mem.c: Likewise.
7436         * sunrpc/xdr_rec.c: Likewise.
7437         * sunrpc/xdr_ref.c: Likewise.
7438         * sunrpc/xdr_sizeof.c: Likewise.
7439         * sunrpc/xdr_stdio.c: Likewise.
7440
7441 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7442
7443         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7444         change.  Update copyright years.
7445
7446 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7447
7448         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7449
7450 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7451             Joseph Myers  <joseph@codesourcery.com>
7452             Paul Pluzhnikov  <ppluzhnikov@google.com>
7453
7454         [BZ #14012]
7455         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7456         requiring rpcgen.
7457         [cross-compiling] (extra-libs): Likewise.
7458         [cross-compiling] (extra-libs-others): Likewise.
7459         [cross-compiling] (librpcsvc-routines): Likewise.
7460         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7461         [cross-compiling] (omit-deps): Likewise.
7462         (sunrpc-CPPFLAGS): New variable.
7463         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7464         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7465         (cross-rpcgen-objs): New variable.
7466         (extra-objs): Append $(cross-rpcgen-objs).
7467         ($(cross-rpcgen-objs)): New rule.
7468         ($(objpfx)cross-rpcgen): Likewise.
7469         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7470         comment.
7471         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7472         ($(objpfx)x%.stmp): Likewise.
7473         * sunrpc/proto.h [IS_IN_build] (_): Define.
7474         [IS_IN_build] (_libc_intl_domainname): Likewise.
7475
7476 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7477
7478         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7479         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7480         and R_X86_64_TPOFF64.
7481
7482 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7483
7484         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7485         sysdeps/unix/sysv/syscalls.list.
7486         (stime): Likewise.
7487         (utime): Likewise.
7488         * sysdeps/unix/sysv/syscalls.list: Remove file.
7489
7490 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7491
7492         [BZ #3440]
7493         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7494         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7495         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7496         (__LC_IDENTIFICATION): Make these macros useful in #if
7497         expressions, as required by C99.
7498
7499 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7500
7501         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7502         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7503         after this.
7504
7505 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7506
7507         * stdlib/longlong.h: Updated from GCC.
7508
7509 2012-05-09  Andreas Jaeger  <aj@suse.de>
7510
7511         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7512         default is first entry.
7513         (run_mode): Set type.
7514         (main): Remove informal message about syslog.
7515         (options): Fix typo.
7516
7517         [BZ #14053]
7518         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7519         to asm.
7520         (lrint): Likewise.
7521         (llrintf): Likewise.
7522         (llrint): Likewise.
7523         (rint): Likewise.
7524         (rintf): Likewise.
7525         (nearbyint): Likewise.
7526         (nearbyintf): Likewise.
7527
7528 2012-05-09  Andreas Jaeger  <aj@suse.de>
7529             Pedro Alves  <palves@redhat.com>
7530
7531         * nscd/nscd.c (run_mode): Use enum.
7532         (main): Cleanup coding style issue.
7533
7534 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7535             Andreas Jaeger  <aj@suse.de>
7536
7537         * nscd/nscd.c (go_background): Replaced with...
7538         (run_mode): ... this.
7539         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7540         (options): Add -F --foreground.
7541         (main): Implement it.
7542         (parse_opt): Parse it.
7543
7544 2012-05-09  Andreas Jaeger  <aj@suse.de>
7545
7546         [BZ #14083]
7547         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7548         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7549         -Wconversion warning.
7550         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7551         Likewise.
7552
7553 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7554
7555         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7556         == 0.
7557         (LC_ALL): Use macro-int-constant.
7558         (LC_COLLATE): Likewise.
7559         (LC_CTYPE): Likewise.
7560         (LC_MESSAGES): Likewise.
7561         (LC_MONETARY): Likewise.
7562         (LC_NUMERIC): Likewise.
7563         (LC_TIME): Likewise.
7564         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7565         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7566         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7567         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7568         Specify type.
7569         [C99-based standards] (float_t): Expect type.
7570         [C99-based standards] (double_t): Expect type.
7571         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7572         type.
7573         [C99-based standards] (HUGE_VALL): Likewise.
7574         [C99-based standards] (INFINITY): Likewise.
7575         [C99-based standards] (NAN): Likewise.
7576         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7577         [C99-based standards] (FP_NAN): Likewise.
7578         [C99-based standards] (FP_NORMAL): Likewise.
7579         [C99-based standards] (FP_SUBNORMAL): Likewise.
7580         [C99-based standards] (FP_ZERO): Likewise.
7581         [C99-based standards] (FP_FAST_FMA): Use
7582         optional-macro-int-constant.  Specify type.  Require == 1.
7583         [C99-based standards] (FP_FAST_FMAF): Likewise.
7584         [C99-based standards] (FP_FAST_FMAL): Likewise.
7585         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7586         [C99-based standards] (FP_ILOGBNAN): Likewise.
7587         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7588         Specify type.
7589         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7590         [C99-based standards] (math_errhandling): Specify type.
7591         [ISO99 || ISO11] (signgam): Do not allow.
7592         [non-C99-based standards] (copysignf): Do not allow.
7593         [non-C99-based standards] (exp2f): Likewise.
7594         [non-C99-based standards] (log2f): Likewise.
7595         [non-C99-based standards] (modff): Allow.
7596         [non-C99-based standards] (erff): Do not allow.
7597         [non-C99-based standards] (erfcf): Likewise.
7598         [non-C99-based standards] (gammaf): Likewise.
7599         [non-C99-based standards] (hypotf): Likewise.
7600         [non-C99-based standards] (j0f): Likewise.
7601         [non-C99-based standards] (j1f): Likewise.
7602         [non-C99-based standards] (jnf): Likewise.
7603         [non-C99-based standards] (lgammaf): Likewise.
7604         [non-C99-based standards] (tgammaf): Likewise.
7605         [non-C99-based standards] (y0f): Likewise.
7606         [non-C99-based standards] (y1f): Likewise.
7607         [non-C99-based standards] (ynf): Likewise.
7608         [non-C99-based standards] (isnanf): Likewise.
7609         [non-C99-based standards] (acoshf): Likewise.
7610         [non-C99-based standards] (asinhf): Likewise.
7611         [non-C99-based standards] (atanhf): Likewise.
7612         [non-C99-based standards] (cbrtf): Likewise.
7613         [non-C99-based standards] (expm1f): Likewise.
7614         [non-C99-based standards] (ilogbf): Likewise.
7615         [non-C99-based standards] (log1pf): Likewise.
7616         [non-C99-based standards] (logbf): Likewise.
7617         [non-C99-based standards] (nextafterf): Likewise.
7618         [non-C99-based standards] (remainderf): Likewise.
7619         [non-C99-based standards] (rintf): Likewise.
7620         [non-C99-based standards] (scalbf): Likewise.
7621         [non-C99-based standards] (copysignl): Likewise.
7622         [non-C99-based standards] (exp2l): Likewise.
7623         [non-C99-based standards] (log2l): Likewise.
7624         [non-C99-based standards] (modfl): Allow.
7625         [non-C99-based standards] (erfl): Do not allow.
7626         [non-C99-based standards] (erfcl): Likewise.
7627         [non-C99-based standards] (gammal): Likewise.
7628         [non-C99-based standards] (hypotl): Likewise.
7629         [non-C99-based standards] (j0l): Likewise.
7630         [non-C99-based standards] (j1l): Likewise.
7631         [non-C99-based standards] (jnl): Likewise.
7632         [non-C99-based standards] (lgammal): Likewise.
7633         [non-C99-based standards] (tgammal): Likewise.
7634         [non-C99-based standards] (y0l): Likewise.
7635         [non-C99-based standards] (y1l): Likewise.
7636         [non-C99-based standards] (ynl): Likewise.
7637         [non-C99-based standards] (isnanl): Likewise.
7638         [non-C99-based standards] (acoshl): Likewise.
7639         [non-C99-based standards] (asinhl): Likewise.
7640         [non-C99-based standards] (atanhl): Likewise.
7641         [non-C99-based standards] (cbrtl): Likewise.
7642         [non-C99-based standards] (expm1l): Likewise.
7643         [non-C99-based standards] (ilogbl): Likewise.
7644         [non-C99-based standards] (log1pl): Likewise.
7645         [non-C99-based standards] (logbl): Likewise.
7646         [non-C99-based standards] (nextafterl): Likewise.
7647         [non-C99-based standards] (remainderl): Likewise.
7648         [non-C99-based standards] (rintl): Likewise.
7649         [non-C99-based standards] (scalbl): Likewise.
7650         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7651         [non-C99-based standards] (FP_*): Do not allow.
7652         [C99-based standards] (FP_*): Change to
7653         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7654         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7655         allow.
7656         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7657         (SIG_ERR): Likewise.
7658         [X/Open-based standards] (SIG_HOLD): Likewise.
7659         (SIG_IGN): Likewise.
7660         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7661         positive value.
7662         (SIGFPE): Likewise.
7663         (SIGILL): Likewise.
7664         (SIGINT): Likewise.
7665         (SIGSEGV): Likewise.
7666         (SIGTER): Likewise.
7667         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7668         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7669         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7670         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7671         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7672         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7673         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7674         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7675         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7676         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7677         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7678         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7679         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7680         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7681         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7682         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7683         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7684         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7685         [X/Open-based standards] (SIGTRAP): Likewise.
7686         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7687         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7688         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7689         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7690         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7691         allow.
7692
7693 2012-05-08  Ian Wienand  <ianw@vmware.com>
7694
7695         [BZ #14080]
7696         * time/tzset.c (__tzset_parse_tz): Update default rules for
7697         daylight time changes in the Energy Policy Act of 2005.
7698
7699 2012-05-09  Andreas Jaeger  <aj@suse.de>
7700
7701         [BZ #13983]
7702         * elf/ldconfig.c (parse_conf): Change string to make clear that
7703         ldconfig only issued a warning if ld.so.conf does not exist.
7704
7705 2012-05-08  David S. Miller  <davem@davemloft.net>
7706
7707         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7708         movxtod instead of popping the value on the stack.
7709
7710         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7711
7712 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7713
7714         * config.h.in: Add HAVE_ARM_PCS_VFP.
7715
7716 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7717
7718         [BZ #13979]
7719         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7720         checking but the checks are disabled for any reason.
7721
7722 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7723
7724         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7725         and ELF64_R_TYPE with ELFW(R_TYPE).
7726
7727 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7728
7729         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7730         (ulimit): Likewise.
7731
7732         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7733         (settimeofday): Likewise.
7734
7735 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7736
7737         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7738         a struct th_u2 inside the union, and move tu_block/tu_code into
7739         a new th_u3 union of tu_block/tu_code inside of that.  Move
7740         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7741         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7742         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7743         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7744         (th_stuff): Change to th_u1.tu_stuff.
7745         (th_data): Define.
7746         (th_msg): Change to th_u1.th_u2.tu_data.
7747
7748 2012-05-07  David S. Miller  <davem@davemloft.net>
7749
7750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7751
7752         [BZ #14074]
7753         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7754         (SETUP_PIC_REG): Use it.
7755         (SETUP_PIC_REG_LEAF): Use it.
7756
7757 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7758
7759         [BZ #13885]
7760         [BZ #13923]
7761         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7762         USE_AS_EXPM1L.
7763         (EXPL_FINITE): Likewise.
7764         (FLDLOG): Likewise.
7765         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7766         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7767         e_expl.S.
7768         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7769         USE_AS_EXPM1L.
7770         (EXPL_FINITE): Likewise.
7771         (FLDLOG): Likewise.
7772         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7773         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7774         e_expl.S.
7775         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7776         test of -max_value argument for long double.
7777         * sysdeps/i386/fpu/libm-test-ulps: Update.
7778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7779
7780 2012-05-06  David S. Miller  <davem@davemloft.net>
7781
7782         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7783         quad soft-float symbols whose references which are compiler
7784         generated.
7785         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7786
7787 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7788
7789         [BZ #13884]
7790         [BZ #13914]
7791         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7792         USE_AS_EXP10L.
7793         (EXPL_FINITE): Likewise.
7794         (FLDLOG): Likewise.
7795         (c0): Likewise.
7796         (c1): Likewise.
7797         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7798         Adjust comments for base varying.
7799         (__expl_finite): Change alias to EXPL_FINITE.
7800         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7801         e_expl.S.
7802         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7803         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7804         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7805         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7806         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7807         USE_AS_EXP10L.
7808         (EXPL_FINITE): Likewise.
7809         (FLDLOG): Likewise.
7810         (c0): Likewise.
7811         (c1): Likewise.
7812         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7813         Adjust comments for base varying.
7814         (__expl_finite): Change alias to EXPL_FINITE.
7815         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7816         tests for bugs.
7817         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7818
7819         [BZ #14064]
7820         * math/libm-test.inc (check_float_internal): Correct ulp
7821         calculation for subnormal expected results.
7822
7823 2012-05-06  Andreas Jaeger  <aj@suse.de>
7824
7825         * Makeconfig (+math-flags): New, set to -frounding-math.
7826         (+cflags): Add +math-flags so that all of glibc gets compiled with
7827         it.
7828
7829         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7830
7831 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7832
7833         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7834         Disable one test.
7835
7836         [BZ #13787]
7837         [BZ #13922]
7838         [BZ #14036]
7839         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7840         (__ieee754_expl): Allow for and saturate large arguments.
7841         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7842         (u_threshold): Likewise.
7843         (__exp): Call __ieee754_exp before checking for overflow and
7844         underflow.
7845         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7846         (u_threshold): Likewise.
7847         (__expf): Call __ieee754_expf before checking for overflow and
7848         underflow.
7849         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7850         (u_threshold): Likewise.
7851         (__expl): Call __ieee754_expl before checking for overflow and
7852         underflow.
7853         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7854         (__ieee754_expl): Allow for and saturate large arguments.
7855         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7856         missing overflow exception on overflow.
7857         (expm1_test): Do not allow missing overflow exception on overflow.
7858
7859         * sysdeps/i386/fpu/e_expl.c: Move to ...
7860         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7861         rather than using inline asm.
7862         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7863         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7864         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7865
7866         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7867         (nice): Likewise.
7868         (poll): Likewise.
7869         (signal): Likewise.
7870         (time): Likewise.
7871         (times): Likewise.
7872
7873 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7874
7875         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7876         sysdeps/unix/common/syscalls.list.
7877         (fchmod): Likewise.
7878         (fchown): Likewise.
7879         (ftruncate): Likewise.
7880         (getrusage): Likewise.
7881         (gettimeofday): Likewise.
7882         (setpgid): Likewise.
7883         (setregid): Likewise.
7884         (setreuid): Likewise.
7885         (sigaction): Likewise.
7886         (truncate): Likewise.
7887         (vhangup): Likewise.
7888         * sysdeps/unix/common/syscalls.list: Remove file.
7889         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7890         * sysdeps/unix/sysv/linux/Implies: Likewise.
7891
7892 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7893
7894         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7896         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7897         Moved to ...
7898         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7899         Here.
7900         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7901         to ...
7902         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7903         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7904         to ...
7905         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7906         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7907         to ...
7908         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7909         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7910         to ...
7911         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7912         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7913         to ...
7914         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7915         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7916         to ...
7917         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7918         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7919         to ...
7920         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7921         Here.
7922         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7923         to ...
7924         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7925         Here.
7926         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7927         to ...
7928         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7929         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7930         Moved to ...
7931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7932         Here.
7933         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7934         to ...
7935         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7936
7937 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7938
7939         * sysdeps/unix/common/bits/dirent.h: Remove file.
7940         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7941
7942         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7943         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7944         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7945         * sysdeps/unix/bsd/isatty.c: Likewise.
7946         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7947         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7948         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7949
7950 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7951
7952         [BZ #13563]
7953         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7954         long double comparison inaccuracies.
7955         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7957
7958 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7959
7960         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7961         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7962
7963 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7964
7965         [BZ #14049]
7966         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7967         nonzero digits before rounding a hex value.
7968         * stdlib/tst-strtod.c (tests): Add another test.
7969
7970 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7971
7972         * sysdeps/s390/fpu/libm-test-ulps: Update.
7973
7974 2012-05-03  Andreas Jaeger  <aj@suse.de>
7975
7976         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7977         does not get optimized out.
7978         (malloc_opt_barrier): New.
7979
7980 2012-05-03  Andreas Jaeger  <aj@suse.de>
7981             Roland McGrath  <roland@hack.frob.com>
7982
7983         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7984         intermediate file deletion.
7985         (generated): Add .symlist files.
7986
7987 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7988
7989         [BZ #13775]
7990         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7991         Redirect under this condition.
7992         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7993         [__USE_GNU] (__dprintf_chk): Not under this condition.
7994         [__USE_GNU] (__vdprintf_chk): Likewise.
7995         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7996         under this condition.
7997         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7998         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7999         [__USE_XOPEN2K8] (vdprintf): Likewise.
8000         [__USE_GNU] (__dprintf_chk): Not under this condition.
8001         [__USE_GNU] (__vdprintf_chk): Likewise.
8002         [__USE_GNU] (dprintf): Likewise.
8003         [__USE_GNU] (vdprintf): Likewise.
8004
8005 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8006
8007         * elf/Makefile (common-generated): Set this instead of generated for
8008         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8009         $(all-built-dso)-derived lists.
8010
8011 2012-05-03  Andreas Jaeger  <aj@suse.de>
8012
8013         * sysdeps/i386/fpu/libm-test-ulps: Update.
8014
8015         * FAQ: Removed.
8016         * FAQ.in: Likewise.
8017         * scripts/gen-FAQ.pl: Likewise.
8018         * manual/install.texi (Installation): Point to online location of
8019         FAQ.
8020         * Makefile (files-for-dist): Remove FAQ.
8021         (FAQ): Remove.
8022
8023 2012-05-02  Allan McRae  <allan@archlinux.org>
8024
8025         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8026         (LDFLAGS-reldepmod5.so): Likewise.
8027         (LDFLAGS-reldep6mod1.so): Likewise.
8028         (LDFLAGS-reldep6mod4.so): Likewise.
8029         (LDFLAGS-reldep8mod3.so): Likewise.
8030         (LDFLAGS-unload4mod1.so): Likewise.
8031         (LDFLAGS-unload4mod2.so): Likewise.
8032         (LDFLAGS-tst-initorder): Likewise.
8033         (LDFLAGS-tst-initordera2.so): Likewise.
8034         (LDFLAGS-tst-initordera3.so): Likewise.
8035         (LDFLAGS-tst-initordera4.so): Likewise.
8036         (LDFLAGS-tst-initorderb2.so): Likewise.
8037         (LDFLAGS-noload): Likewise.
8038         (LDFLAGS-next): Likewise.
8039         (LDFLAGS-order2mod1.so): Likewise.
8040         (LDFLAGS-order2mod2.so): Likewise.
8041         (LDFLAGS-tst-initorder2): Likewise.
8042         (LDFLAGS-tst-initorder2a.so): Likewise.
8043         (LDFLAGS-tst-initorder2b.so): Likewise.
8044         (LDFLAGS-tst-initorder2c.so): Likewise.
8045         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8046
8047 2012-05-02  David S. Miller  <davem@davemloft.net>
8048
8049         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8050
8051 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8052
8053         [BZ #14055]
8054         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8055
8056 2012-05-02  Andreas Jaeger  <aj@suse.de>
8057
8058         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8059         since we manipulate rounding mode.
8060         (CPPFLAGS-test-idouble.c): Likewise.
8061         (CPPFLAGS-test-ifloat.c): Likewise.
8062         (CFLAGS-test-ldouble.c): Likewise.
8063         (CFLAGS-test-double.c): Likewise.
8064         (CFLAGS-test-float.c): Likewise.
8065         (CFLAGS-test-misc.c): Likewise.
8066         (CFLAGS-test-test-fenv.c): Likewise.
8067
8068 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8069
8070         [BZ #2550]
8071         [BZ #2570]
8072         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8073         comparisons to determine direction to adjust input.
8074
8075 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8076
8077         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8078         output to the target.
8079
8080         * scripts/localplt.awk: New file.
8081         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8082         (check-localplt-CFLAGS): Variable removed.
8083         ($(all-built-dso:=.jmprel)): New static pattern rule.
8084         (generated): Add those targets.
8085         (localplt-built-dso): New variable.
8086         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8087
8088         * elf/check-localplt.c: File removed.
8089
8090         * scripts/check-execstack.awk: New file.
8091         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8092         (check-execstack-CFLAGS): Variable removed.
8093         ($(objpfx)check-execstack.h): Target removed.
8094         ($(objpfx)execstack-default): New target.
8095         (generated): Add that instead of check-execstack.h.
8096         ($(all-built-dso:=.phdr)): New static pattern rule.
8097         (generated): Add those targets.
8098         * elf/check-execstack.c: File removed.
8099
8100         * scripts/check-textrel.awk: New file.
8101         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8102         (check-textrel-CFLAGS): Variable removed.
8103         (all-built-dso): Use := to define.o
8104         ($(all-built-dso:=.dyn)): New static pattern rule.
8105         (generated): Add those targets.
8106         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8107         * config.make.in (READELF): New substituted variable.
8108         * elf/check-textrel.c: File removed.
8109
8110 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8111
8112         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8113         allow.
8114         * conform/data/ctype.h-data [C99-based standards] (isblank):
8115         Expect function.
8116         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8117         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8118         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8119         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8120         Specify type.  Require positive value.
8121         (EILSEQ): Likewise.
8122         (ERANGE): Likewise.
8123         [ISO || POSIX] (EILSEQ): Do not expect.
8124         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8125         Specify type.  Require positive value.
8126         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8127         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8128         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8129         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8130         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8131         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8132         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8133         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8134         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8135         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8136         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8137         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8138         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8139         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8140         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8141         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8142         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8143         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8144         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8145         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8146         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8147         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8148         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8149         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8150         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8151         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8152         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8153         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8154         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8155         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8156         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8157         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8158         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8159         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8160         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8161         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8162         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8175         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8176         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8177         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8178         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8179         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8180         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8181         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8182         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8183         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8184         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8200         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8201         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8202         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8203         Require >= 2.
8204         (FLT_ROUNDS): Expect as macro, not constant.
8205         (FLT_MANT_DIG): Use macro-int-constant.
8206         (DBL_MANT_DIG): Likewise.
8207         (LDBL_MANT_DIG): Likewise.
8208         (FLT_DIG): Likewise.
8209         (DBL_DIG): Likewise.
8210         (LDBL_DIG): Likewise.
8211         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8212         (DBL_MIN_EXP): Likewise.
8213         (LDBL_MIN_EXP): Likewise.
8214         (FLT_MAX_EXP): Use macro-int-constant.
8215         (DBL_MAX_EXP): Likewise.
8216         (LDBL_MAX_EXP): Likewise.
8217         (FLT_MAX_10_EXP): Likewise.
8218         (DBL_MAX_10_EXP): Likewise.
8219         (LDBL_MAX_10_EXP): Likewise.
8220         (FLT_MAX): Use macro-constant.
8221         (DBL_MAX): Likewise.
8222         (LDBL_MAX): Likewise.
8223         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8224         (DBL_EPSILON): Likewise.
8225         (LDBL_EPSILON): Likewise.
8226         (FLT_MIN): Likewise.
8227         (DBL_MIN): Likewise.
8228         (LDBL_MIN): Likewise.
8229         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8230         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8231         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8232         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8233         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8234         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8235         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8236         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8237         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8238         [ISO11] (FLT_TRUE_MIN): Likewise.
8239         [ISO11] (LDBL_TRUE_MIN): Likewise.
8240         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8241         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8242         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8243         (SCHAR_MAX): Likewise.
8244         (UCHAR_MAX): Likewise.
8245         (CHAR_MIN): Likewise.
8246         (CHAR_MAX): Likewise.
8247         (MB_LEN_MAX): Use macro-int-constant.
8248         (SHRT_MIN): Use macro-int-constant.  Specify type.
8249         (SHRT_MAX): Likewise.
8250         (USHRT_MAX): Likewise.
8251         (INT_MAX): Likewise.
8252         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8253         bound negative.
8254         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8255         bound with "U".
8256         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8257         bound with "L".
8258         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8259         bound negative.  Suffix upper bound with "L".
8260         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8261         bound with "UL".
8262         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8263         Specify type.
8264         [C99-based standards] (LLONG_MAX): Likewise.
8265         [C99-based standards] (ULLONG_MAX): Likewise.
8266         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8267         == 0.
8268         [ISO11] (max_align_t): Require type.
8269         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8270
8271         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8272         from $CFLAGS, without defining away __attribute__ calls.
8273         (checknamespace): Use $CFLAGS_namespace.
8274
8275         * conform/conformtest.pl (@keywords): Only include C99 keywords
8276         for standards based on C99 or C11.
8277
8278         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8279         Disable tests.
8280         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8281         UNIX98]: Likewise.
8282
8283         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8284         usability of symbols in #if.
8285
8286         * conform/conformtest.pl: If macro or constant types start
8287         "promoted:", expect the symbol to be of the following type
8288         promoted by the integer promotions.
8289
8290         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8291         in one place.  Also handle "macro-constant".
8292
8293         * conform/conformtest.pl: Only accept expected macro values with
8294         "==".  Parse all "macro" lines in one place.
8295         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8296
8297         * conform/conformtest.pl: Handle braced types on "constant" lines
8298         instead of handling "typed-constant".
8299         * conform/data/signal.h-data: Use "constant" instead of
8300         "typed-constant".
8301
8302         * conform/conformtest.pl: Handle "optional-" at start of lines in
8303         one place rather than duplicating several cases.  Handle each
8304         format of "macro" line with initial "optional-".
8305
8306         * conform/conformtest.pl: Only accept expected constant or
8307         optional-constant values with "==".  Parse all "constant" lines in
8308         one place.  Parse all "optional-constant" lines in one place.
8309         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8310         * conform/data/fmtmsg.h-data: Likewise.
8311         * conform/data/netinet/in.h-data: Likewise.
8312         * conform/data/tar.h-data: Likewise.
8313         * conform/data/limits.h-data: Use "==" form on "constant" and
8314         "optional-constant" lines.
8315
8316         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8317         Use -std=c99 for XOPEN2K.
8318         (@knownproblems): Remove.
8319         (newtoken): Don't check %isknown.
8320
8321         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8322         Do not expect macro.
8323         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8324         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8325         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8326         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8327         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8328         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8329         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8330         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8331         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8332         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8333         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8334         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8335         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8336         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8337         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8338         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8339         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8340         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8341         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8342         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8343         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8344         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8345         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8346         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8348         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8349         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8350         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8351         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8352         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8353         [XPG3] (acosh): Likewise.
8354         [XPG3] (asinh): Likewise.
8355         [XPG3] (atanh): Likewise.
8356         [XPG3] (cbrt): Likewise.
8357         [XPG3] (expm1): Likewise.
8358         [XPG3] (ilogb): Likewise.
8359         [XPG3] (log1p): Likewise.
8360         [XPG3] (logb): Likewise.
8361         [XPG3] (nextafter): Likewise.
8362         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8363         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8364         [XPG3] (remainder): Likewise.
8365         [XPG3] (rint): Likewise.
8366         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8367         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8368         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8369         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8370         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8371         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8372         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8373         [UNIX98 || XOPEN2K] (scalb): Expect.
8374         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8375         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8376         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8377         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8378         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8379         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8380         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8381         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8382         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8383         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8384         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8511
8512         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8513         _XOPEN_SOURCE_EXTENDED for XPG4.
8514
8515         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8516
8517         * Makeconfig (localtime): Remove variable.
8518         (inst_localtime-file): Likewise.
8519
8520 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8521
8522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8523         Update.
8524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8525         Update.
8526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8527         Update.
8528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8529         Update.
8530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8531         Update.
8532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8533         Update.
8534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8535         Update.
8536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8537         Update.
8538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8539         Update.
8540
8541 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8542
8543         [BZ #2550]
8544         [BZ #2570]
8545         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8546         comparisons to determine direction to adjust input.
8547         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8548         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8549         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8550         Likewise.
8551         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8552         Likewise.
8553         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8554         Likewise.
8555         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8556         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8557         Likewise.
8558         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8559         Likewise.
8560         * math/libm-test.inc (nexttoward_test): Add more tests.
8561
8562 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8563
8564         [BZ #14040]
8565         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8566         in version GLIBC_2.1, not GLIBC_2.0.
8567         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8568         Likewise.
8569
8570 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8571
8572         [BZ #13942]
8573         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8574         (1 - x) * (1 + x).
8575         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8576         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8577         * math/libm-test.inc (acos_test): Add more tests.
8578         (asin_test): Likewise.
8579         * sysdeps/i386/fpu/libm-test-ulps: Update.
8580         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8581
8582         [BZ #14034]
8583         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8584         of square root.
8585         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8586         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8587         * math/libm-test.inc (acos_test_tonearest): New function.
8588         (acos_test_towardzero): Likewise.
8589         (acos_test_downward): Likewise.
8590         (acos_test_upward): Likewise.
8591         (asin_test_tonearest): Likewise.
8592         (asin_test_towardzero): Likewise.
8593         (asin_test_downward): Likewise.
8594         (asin_test_upward): Likewise.
8595         (main): Call the new functions.
8596         * sysdeps/i386/fpu/libm-test-ulps: Update.
8597         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8598
8599         [BZ #13884]
8600         [BZ #13924]
8601         * math/e_exp10.c: Include <float.h>.
8602         (__ieee754_exp10): Handle underflow here rather than multiplying
8603         large negative argument by M_LN10.
8604         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8605         of __ieee754_expf.
8606         * math/e_exp10l.c: Include <float.h>.
8607         (__ieee754_exp10l): Handle underflow here rather than multiplying
8608         large negative argument by M_LN10l.
8609         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8610         spurious overflow exception on underflow.
8611
8612 2012-04-29  Marek Polacek  <polacek@redhat.com>
8613
8614         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8615         (__fortify_function): New macro.
8616         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8617         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8618         __extern_always_inline.
8619         * libio/bits/stdio2.h: Likewise.
8620         * libio/bits/stdio.h: Likewise.
8621         * string/string.h: Likewise.
8622         * string/bits/string3.h: Likewise.
8623         * include/stdio.h: Likewise.
8624         * stdlib/bits/stdlib.h: Likewise.
8625         * stdlib/stdlib.h: Likewise.
8626         * rt/bits/mqueue2.h: Likewise.
8627         * rt/mqueue.h: Likewise.
8628         * posix/bits/unistd.h: Likewise.
8629         * posix/unistd.h: Likewise.
8630         * io/bits/poll2.h: Likewise.
8631         * io/bits/fcntl2.h: Likewise.
8632         * io/fcntl.h: Likewise.
8633         * io/sys/poll.h: Likewise.
8634         * misc/bits/syslog.h: Likewise.
8635         * misc/bits/syslog-ldbl.h: Likewise.
8636         * misc/sys/syslog.h: Likewise.
8637         * socket/bits/socket2.h: Likewise.
8638         * socket/sys/socket.h: Likewise.
8639         * debug/tst-chk1.c: Likewise.
8640         * wcsmbs/bits/wchar2.h: Likewise.
8641         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8642         * wcsmbs/wchar.h: Likewise.
8643
8644 2012-04-29  Andreas Jaeger  <aj@suse.de>
8645
8646         * Makerules (tests): Remove enable-check-abi protection.
8647         (check-abi-warn): Remove.
8648         (check-abi-%): Remove check-abi-warn usage.
8649
8650         * configure.in: Remove check-abi configure option.
8651         * configure: Regenerated.
8652         * config.make.in (enable-check-abi): Remove.
8653
8654 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8655
8656         [BZ #14033]
8657         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8658         double functions to double *_finite functions.
8659
8660         [BZ #13941]
8661         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8662         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8663         LDBL_MIN_EXP.
8664         * stdio-common/Makefile (tests): Add tst-sprintf3.
8665         * stdio-common/tst-sprintf3.c: New file.
8666
8667         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8668         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8669
8670 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8671
8672         * conform/conformtest.pl: Remove duplicate typed-constant
8673         handling.
8674
8675 2012-04-28  David S. Miller  <davem@davemloft.net>
8676
8677         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8678         (check-abi-%): Remove AWK script prerequisite and explicit
8679         abilist directory.
8680         (check-abi): Rewrite to just diff the symlist with the abilist.
8681         (config-tls, config-abi-config): Delete, no longer used.
8682         (update-abi-%): Remove AWK script and explicit abilist directory.
8683         (update-abi): Rewrite to simply compare and conditionally copy the
8684         symlist and the sysdep abilist file.  Remove update-abi-config
8685         checks.
8686         * abilist/ld.abilist: Remove.
8687         * abilist/libBrokenLocale.abilist: Remove.
8688         * abilist/libanl.abilist: Remove.
8689         * abilist/libcrypt.abilist: Remove.
8690         * abilist/libdl.abilist: Remove.
8691         * abilist/librt.abilist: Remove.
8692         * abilist/libthread_db.abilist: Remove.
8693         * abilist/libutil.abilist: Remove.
8694         * scripts/extract-abilist.awk: Remove.
8695         * scripts/merge-abilist.awk: Remove.
8696         * sysdeps/generic/libcidn.abilist: New file.
8697         * sysdeps/generic/libnss_compat.abilist: New file.
8698         * sysdeps/generic/libnss_db.abilist: New file.
8699         * sysdeps/generic/libnss_dns.abilist: New file.
8700         * sysdeps/generic/libnss_files.abilist: New file.
8701         * sysdeps/generic/libnss_hesiod.abilist: New file.
8702         * sysdeps/generic/libnss_nis.abilist: New file.
8703         * sysdeps/generic/libnss_nisplus.abilist: New file.
8704         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8705         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8706         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8707         file.
8708         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8709         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8710         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8711         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8712         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8713         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8714         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8715         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8716         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8717         file.
8718         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8719         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8720         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8721         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8722         file.
8723         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8724         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8725         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8726         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8727         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8728         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8729         file.
8730         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8731         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8732         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8733         file.
8734         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8735         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8736         New file.
8737         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8738         New file.
8739         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8740         New file.
8741         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8742         New file.
8743         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8744         New file.
8745         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8746         New file.
8747         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8748         New file.
8749         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8750         New file.
8751         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8752         New file.
8753         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8754         New file.
8755         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8756         New file.
8757         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8758         New file.
8759         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8760         New file.
8761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8762         file.
8763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8764         New file.
8765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8766         New file.
8767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8768         file.
8769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8770         New file.
8771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8772         New file.
8773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8774         file.
8775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8776         New file.
8777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8778         New file.
8779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8780         New file.
8781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8782         New file.
8783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8784         New file.
8785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8786         New file.
8787         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8789         file.
8790         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8791         New file.
8792         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8793         file.
8794         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8795         file.
8796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8797         file.
8798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8799         file.
8800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8801         file.
8802         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8803         New file.
8804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8805         file.
8806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8807         file.
8808         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8809         New file.
8810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8811         file.
8812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8813         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8814         file.
8815         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8816         New file.
8817         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8818         file.
8819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8820         file.
8821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8822         file.
8823         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8824         file.
8825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8826         file.
8827         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8828         New file.
8829         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8830         file.
8831         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8832         file.
8833         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8834         New file.
8835         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8836         file.
8837         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8838         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8839         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8840         file.
8841         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8842         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8843         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8844         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8845         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8846         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8847         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8848         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8849         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8850         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8851         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8853         file.
8854         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8855         New file.
8856         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8857         file.
8858         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8859         file.
8860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8861         file.
8862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8863         file.
8864         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8865         file.
8866         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8867         New file.
8868         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8869         New file.
8870         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8871         file.
8872         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8873         New file.
8874         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8875         file.
8876         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8877         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8878         file.
8879         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8880         New file.
8881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8882         file.
8883         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8884         file.
8885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8886         file.
8887         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8888         file.
8889         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8890         file.
8891         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8892         New file.
8893         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8894         New file.
8895         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8896         file.
8897         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8898         New file.
8899         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8900         file.
8901
8902 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8903
8904         * conform/conformtest.pl: Fix typo in handling typed-constant from
8905         allow-header.
8906
8907 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8908
8909         * README: Cut down references to pre-2.6 Linux kernels and
8910         Linuxthreads.  Update lists of configurations in libc and ports
8911         and sort alphabetically.  Say "or newer" with Linux kernel version
8912         requirements.
8913
8914         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8915
8916 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8917
8918         [BZ #887]
8919         * math/libm-test.inc (logb_test_downward): New test to expose
8920         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8921         rounding mode.
8922
8923 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8924
8925         [BZ #14027]
8926         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8927         to be done.
8928         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8929         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8930
8931 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8932
8933         * sysdeps/unix/i386/brk.S: Remove file.
8934         * sysdeps/unix/i386/dl-brk.S: Likewise.
8935         * sysdeps/unix/i386/pipe.S: Likewise.
8936         * sysdeps/unix/i386/sigreturn.S: Likewise.
8937         * sysdeps/unix/i386/syscall.S: Likewise.
8938         * sysdeps/unix/i386/vfork.S: Likewise.
8939         * sysdeps/unix/i386/wait.S: Likewise.
8940
8941         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8942         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8943
8944         * configure.in (arm*-none*): Do not allow without
8945         --enable-hacker-mode.
8946         (netbsd*): Remove case setting base_os.
8947         (386bsd*): Likewise.
8948         (freebsd*): Likewise.
8949         (bsdi*): Likewise.
8950         (osf*): Likewise.
8951         (sunos*): Likewise.
8952         (ultrix*): Likewise.
8953         (newsos*): Likewise.
8954         (dynix*): Likewise.
8955         (*bsd*): Likewise.
8956         (sysv*): Likewise.
8957         (isc*): Likewise.
8958         (esix*): Likewise.
8959         (sco*): Likewise.
8960         (minix*): Likewise.
8961         (irix4*): Likewise.
8962         (irix6*): Likewise.
8963         (solaris[2-9]*): Likewise.
8964         (none): Likewise.
8965         * configure: Regenerated.
8966
8967 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8968
8969         [BZ #11521]
8970         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8971         overflow or cancellation in calculating denominator.
8972         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8973         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8974         down expression to avoid unexpected rounding in newer GCCs.
8975         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8976
8977 2012-04-26  David S. Miller  <davem@davemloft.net>
8978
8979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8980         long-double compat symbols.
8981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8994
8995 2012-04-25  David S. Miller  <davem@davemloft.net>
8996
8997         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8998         HWCAP_* values only after the memory barriers have been defined.
8999         (atomic_full_barrier): Define.
9000         (atomic_read_barrier): Define.
9001         (atomic_write_barrier): Define.
9002
9003 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9004
9005         * shlib-versions: Add libgcc_s version information.
9006         * sysdeps/generic/libgcc_s.h: Remove.
9007         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9008         libgcc_s.h.
9009         * sysdeps/gnu/unwind-resume.c: Likewise.
9010         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9011
9012 2012-04-25  David S. Miller  <davem@davemloft.net>
9013
9014         * sysdeps/unix/sparc/brk.S: Delete.
9015         * sysdeps/unix/sparc/dl-brk.S: Delete.
9016         * sysdeps/unix/sparc/pipe.S: Delete.
9017         * sysdeps/unix/sparc/sysdep.S: Delete.
9018         * sysdeps/unix/sparc/sysdep.h: Delete.
9019         * sysdeps/unix/sparc/vfork.S: Delete.
9020         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9021         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9022         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9023         ret_ERRVAL, r0, r1, MOVE): Define.
9024         (JUMPTARGET): Remove.
9025         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9026         sysdeps/unix/sparc/sysdep.h
9027         (ENTRY, END): Remove.
9028         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9029
9030 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9031
9032         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9033         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9034         -DIS_IN_build.
9035
9036         * timezone/README: Update upstream location and email address for
9037         tzcode and tzdata.
9038         * timezone/zdump.c: Update from tzcode 2012b.
9039         * timezone/zic.c: Likewise.
9040
9041         * configure.in (libc_cv_as_needed): Remove test.
9042         * configure: Regenerated.
9043         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9044         conditional definition.
9045         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9046         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9047         * config.make.in (have-as-needed): Remove variable.
9048
9049 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9050             Paul Pluzhnikov  <ppluzhnikov@google.com>
9051
9052         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9053         strings correctly.
9054
9055 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9056
9057         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9058         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9059         * sysdeps/sh/strlen.S: Likewise.
9060
9061 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9062
9063         * sysdeps/unix/fork.S: Remove file.
9064         * sysdeps/unix/i386/fork.S: Likewise.
9065         * sysdeps/unix/sparc/fork.S: Likewise.
9066
9067         * sysdeps/unix/system.c: Remove file.
9068         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9069
9070         * sysdeps/unix/getegid.S: Remove file.
9071         * sysdeps/unix/geteuid.S: Likewise.
9072
9073 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9074
9075         * scripts/check-localplt.awk: New file.
9076         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9077         of diff.
9078         * scripts/data/localplt-generic.data: Add a comment.
9079
9080         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9081         NODE when __dir_mkfile failed.
9082         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9083         Reported by Ludovic Courtès <ludo@gnu.org>.
9084
9085 2012-04-24  Andreas Jaeger  <aj@suse.de>
9086
9087         * Makerules (common-clean): Also remove gen-as-const-headers
9088         files.
9089
9090 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9091
9092         * Makerules (native-compile): Do not change working directory for
9093         build.  Use $(OUTPUT_OPTION) in command.
9094         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9095
9096 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9097
9098         [BZ #13886]
9099         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9100         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9101         * math/libm-test.inc (floor_test): Add more tests.
9102         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9103
9104 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9105
9106         * sysdeps/unix/getdents.c: Remove file.
9107         * sysdeps/unix/sysv/getdents.c: Likewise.
9108         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9109
9110         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9111         sysdeps/unix/mman/syscalls.list.
9112         (mmap): Likewise.
9113         (mprotect): Likewise.
9114         (msync): Likewise.
9115         (munmap): Likewise.
9116         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9117         * sysdeps/unix/mman/syscalls.list: Remove.
9118         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9119
9120         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9121         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9122         * configure: Regenerated.
9123         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9124         $(libgcc_s_suffix).
9125         * config.make.in (libgcc_s_suffix): Remove variable.
9126
9127 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9128
9129         * sysdeps/unix/sysv/gethostname.c: Move to ...
9130         * sysdeps/posix/gethostname.c: ... here.
9131
9132         * sysdeps/unix/execve.S: Remove file.
9133
9134         * sysdeps/unix/_exit.S: Remove file.
9135
9136 2012-04-23  Andreas Jaeger  <aj@suse.de>
9137
9138         [BZ #13739]
9139         * manual/Makefile: Remove make dist support, there's no
9140         need for a stand-alone documentation tar ball.
9141         (TEXI2DVI): Define always, it's not in Makeconfig.
9142         (dist): Removed.
9143         (tar-it): Removed.
9144         (edition): Removed.
9145         (glibc-doc-$(edition).tar): Removed
9146         (%.Z): Removed.
9147         (%.gz): Removed.
9148         (%.uu): Removed.
9149         (ETAGS): Remove, it's in Makeconfig.
9150         (move-if-change): Remove, it's in Makeconfig.
9151
9152 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9153
9154         [BZ #13970]
9155         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9156         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9157         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9158         (strtod_l, strtof_l, strtold_l): Remove __wur.
9159         It is not necessarily an error to ignore strtol's return value.
9160         One can reliably look at the stored endptr to decide whether
9161         the number had valid syntax.
9162
9163 2012-04-21  Andreas Jaeger  <aj@suse.de>
9164
9165         [BZ #13739]
9166         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9167
9168 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9169
9170         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9171         * sysdeps/unix/sysv/Versions: Remove file.
9172
9173 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9174
9175         [BZ #13927]
9176         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9177
9178 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9179
9180         [BZ #7064]
9181         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9182         version from __vm86.
9183
9184 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9185
9186         * sysdeps/unix/common/lxstat.c: Remove file.
9187         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9188
9189         * sysdeps/unix/sysv/Makefile: Remove file.
9190
9191         * sysdeps/unix/sysv/direct.h: Remove file.
9192
9193         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9194         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9195         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9196         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9197         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9198         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9199         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9200
9201         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9202
9203         * sysdeps/unix/xmknod.c: Remove file.
9204         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9205
9206         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9207
9208         * sysdeps/unix/sysv/i386/time.S: Remove file.
9209
9210         * sysdeps/unix/fxstat.c: Remove file.
9211         * sysdeps/unix/xstat.c: Likewise.
9212         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9213
9214         * sysdeps/unix/sysv/sigaction.c: Remove file.
9215
9216         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9217         (sysdep_headers): Remove variable.
9218         [termio.h not in sysdep_headers] (generated): Likewise.
9219         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9220         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9221         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9222         * sysdeps/unix/sysv/tcflow.c: Likewise.
9223         * sysdeps/unix/sysv/tcflush.c: Likewise.
9224         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9225         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9226         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9227         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9228         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9229
9230         * sysdeps/unix/siglist.c: Remove file.
9231
9232         * sysdeps/unix/getppid.S: Remove file.
9233
9234         * sysdeps/unix/mkdir.c: Remove file.
9235         * sysdeps/unix/rmdir.c: Likewise.
9236
9237 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9238
9239         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9240         ERR_MAX value.
9241         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9242         errlist-compat value.
9243
9244 2012-04-18  David S. Miller  <davem@davemloft.net>
9245
9246         * sysdeps/generic/memcopy.h (reg_char): Delete.
9247         * debug/strcat_chk.c: Use char, not reg_char.
9248         * debug/strcpy_chk.c: Likewise.
9249         * debug/strncat_chk.c: Likewise.
9250         * debug/strncpy_chk.c: Likewise.
9251         * string/memchr.c: Likewise.
9252         * string/memrchr.c: Likewise.
9253         * string/rawmemchr.c: Likewise.
9254         * string/strcat.c: Likewise.
9255         * string/strchr.c: Likewise.
9256         * string/strchrnul.c: Likewise.
9257         * string/strcmp.c: Likewise.
9258         * string/strcpy.c: Likewise.
9259         * string/strncat.c: Likewise.
9260         * string/strncmp.c: Likewise.
9261         * string/strncpy.c: Likewise.
9262
9263 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9264
9265         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9266         __builtin_memcopy is called when src and dest ranges are known to not
9267         overlap.
9268
9269 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9270
9271         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9272         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9273         fwd_align_merge macro call.
9274         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9275         bwd_align_merge macro call.
9276         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9277
9278 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9279
9280         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9281         bwd_align_merge macros.
9282         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9283         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9284         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9285
9286 2012-04-18  David S. Miller  <davem@davemloft.net>
9287
9288         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9289
9290 2012-04-18  Andreas Jaeger  <aj@suse.de>
9291
9292         [BZ# 6794]
9293         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9294         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9295         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9296
9297         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9298         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9299         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9300
9301         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9302         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9303         Adjust for changed ldbl-128 files.
9304
9305         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9306         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9307         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9308
9309 2012-04-17  David S. Miller  <davem@davemloft.net>
9310
9311         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9312
9313 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9314
9315         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9316         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9317         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9318         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9319         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9320         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9321
9322 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9323
9324         [BZ #6794]
9325         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9326         * math/libm-test.inc: Add ilogb errno and exception tests.
9327         * math/w_ilogb.c: New file: ilogb wrapper.
9328         * math/w_ilogbf.c: New file: ilogbf wrapper.
9329         * math/w_ilogbl.c: New file: ilogbl wrapper.
9330         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9331         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9332         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9333         exception being thrown with 0.0 as argument.
9334         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9335         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9336         exception being thrown with 0.0 as argument.
9337         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9338         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9339         exception being thrown with 0.0 as argument.
9340         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9341         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9342         exception being thrown with 0.0 as argument.
9343         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9344         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9345         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9346         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9347         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9348         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9349         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9350         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9351         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9352
9353 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9354
9355         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9356         with altivec.
9357
9358 2012-04-16  Marek Polacek  <polacek@redhat.com>
9359
9360         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9361
9362 2012-04-16  Marek Polacek  <polacek@redhat.com>
9363
9364         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9365         operands of fdivp instruction.
9366
9367 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9368
9369         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9370         * elf/tst-auditmod3b.c: Likewise.
9371         * elf/tst-auditmod4b.c: Likewise.
9372         * elf/tst-auditmod5b.c: Likewise.
9373         * elf/tst-auditmod6b.c: Likewise.
9374         * elf/tst-auditmod6c.c: Likewise.
9375         * elf/tst-auditmod7b.c: Likewise.
9376         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9377         * sysdeps/x86_64/preconfigure.in: Likewise.
9378         * sysdeps/x86_64/preconfigure: Regenerated.
9379
9380 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9381
9382         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9383         __ILP32__.
9384
9385 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9386
9387         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9388         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9389
9390 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9391
9392         [BZ #13973]
9393         * locale/iso-639.def: Fix gl language name. Spotted by
9394         Yaron Shahrabani.
9395
9396 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9397
9398         [BZ #2074]
9399         * libio/libio.h (__io_write_fn): Update comment.
9400
9401 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9402
9403         [BZ #2074]
9404         * stdio.texi (Hook Functions): The user provided writer function
9405         is not allowed to return -1.
9406
9407 2012-04-11  David S. Miller  <davem@davemloft.net>
9408
9409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9410
9411 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9412
9413         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9414         Add a leading slash to rtkaio.
9415
9416 2012-04-11  Jim Meyering  <meyering@redhat.com>
9417
9418         [BZ #11959]
9419         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9420         It is not necessarily an error to ignore fwrite's return
9421         value.  One can reliably use ferror to test for errors after
9422         the fact.
9423
9424 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9425
9426         * bits/types.h (__snseconds_t): New type.
9427         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9428
9429         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9430         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9431         (__SNSECONDS_T_TYPE): Likewise.
9432         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9433         (__SNSECONDS_T_TYPE): Likewise.
9434         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9435         (__SNSECONDS_T_TYPE): Likewise.
9436
9437 2012-04-10  Andreas Jaeger  <aj@suse.de>
9438
9439         [BZ #2636]
9440         * manual/time.texi (Processor Time): Return type of times is
9441         elapsed real time since an arbitrary point in the past.
9442         (CPU Time): Move CLK_TCK from here...
9443         (Processor Time): ...to here.  Correct description.
9444         * manual/conf.texi (Constants for Sysconf): Correct description of
9445         _SC_CLK_TCK.
9446
9447 2012-04-10  David S. Miller  <davem@davemloft.net>
9448
9449         [BZ #13967]
9450         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9451         where the is a gap between DT_REL(A) and DT_JMPREL.
9452
9453 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9454
9455         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9456         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9457         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9458
9459 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9460
9461         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9462         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9463         (dl_main): Handle --inhibit-cache.
9464         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9465         _dl_inhibit_cache.
9466         * elf/dl-load.c (_dl_map_object): Use it.
9467         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9468
9469 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9470
9471         [BZ #13872]
9472         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9473         (__ieee754_powl): Saturate large exponents rather than testing for
9474         overflow of y*log2(x).
9475         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9476         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9477         exceptions.
9478
9479         [BZ #11521]
9480         * math/s_ctan.c: Include <float.h>.
9481         (__ctan): Avoid internal overflow or cancellation in calculating
9482         denominator.
9483         * math/s_ctanf.c: Likewise.
9484         * math/s_ctanl.c: Likewise.
9485         * math/s_ctanh.c: Likewise.
9486         * math/s_ctanhf.c: Likewise.
9487         * math/s_ctanhl.c: Likewise.
9488         * math/libm-test.inc (ctan_test): Add more tests.
9489         (ctanh_test): Likewise.
9490         * sysdeps/i386/fpu/libm-test-ulps: Update.
9491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9492
9493 2012-04-09  Andreas Jaeger  <aj@suse.de>
9494
9495         [BZ #6894]
9496         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9497         is an optional BSD extension.
9498
9499         [BZ #10254]
9500         * manual/stdio.texi (Opening Streams): Document additional fopen
9501         parameters.
9502
9503 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9504
9505         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9506         %eax without telling the compiler.
9507
9508 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9509
9510         [BZ # 13963]
9511         * manual/install.texi: Use sourceware.org.
9512
9513 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9514
9515         [BZ #13873]
9516         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9517         (__ieee754_pow): Generate overflow and underflow using huge*huge
9518         and tiny*tiny rather than just returning constant infinity or zero
9519         for large exponents.
9520         * math/libm-test.inc (pow_test): Require overflow exceptions for
9521         applicable cases of large exponents.
9522
9523         [BZ #706]
9524         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9525         (__ieee754_pow): Use iterative multiplication algorithm only for
9526         integer exponents with absolute value below 1024.  Check for odd
9527         integer exponents when using algorithm for real exponents.
9528         * math/libm-test.inc (pow_test): Add more tests.
9529         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9530
9531 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9532
9533         [BZ #13705]
9534         * math/libm-test.inc (exp_test): Do not allow overflow exception
9535         on underflow test.
9536
9537 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9538
9539         [BZ #13705]
9540         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9541         instead of __kernel_standard_f.
9542
9543 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9544
9545         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9546         * sysdeps/x86_64/memset_chk.S: Likewise.
9547
9548 2012-04-08  Andreas Jaeger  <aj@suse.de>
9549
9550         [BZ #10153]
9551         * manual/startup.texi (Environment Access): Describe return value
9552         for putenv and setenv.
9553
9554         [BZ #6895]
9555         * manual/filesys.texi (Directory Entries): Add description for
9556         DT_LNK.
9557
9558         [BZ #6890]
9559         * manual/filesys.texi (Directory Entries): Clarify that it's file
9560         system not operating system in the description of DT_UNKNOWN.
9561
9562         [BZ #6578]
9563         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9564
9565 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9566
9567         [BZ #6649]
9568         * manual/llio.texi (Opening and Closing Files): Add cross
9569         reference to explain mode argument.
9570
9571 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9572
9573         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9574         * sysdeps/x86_64/memset_chk.S: Likewise.
9575
9576 2012-04-07  David S. Miller  <davem@davemloft.net>
9577
9578         * elf/elf.h (R_SPARC_WDISP10): Define.
9579         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9580         R_SPARC_SIZE32.
9581         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9582         R_SPARC_SIZE64 and R_SPARC_H34.
9583
9584 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9585
9586         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9587         conditions and remove no longer applicable assertion.
9588
9589 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9590
9591         * bits/byteswap.h: Include <features.h>.
9592         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9593         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9594
9595 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9596
9597         * bits/byteswap.h (__bswap_16): Removed.
9598         Include <bits/byteswap-16.h> to get __bswap_16.
9599         * sysdeps/i386/bits/byteswap.h: Likewise.
9600         * sysdeps/s390/bits/byteswap.h: Likewise.
9601         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9602         * bits/byteswap-16.h: New file.
9603         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9604         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9605         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9606         * string/Makefile (headers): Add bits/byteswap-16.h.
9607
9608 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9609
9610         [BZ #13895]
9611         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9612         extra indirection.
9613         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9614         * nss/tst-nss-static.c: New.
9615
9616 2012-04-06  Robert Millan  <rmh@gnu.org>
9617
9618         [BZ #6486]
9619         * manual/llio.texi (File Position Primitive): lseek
9620         refers to WHENCE when it really means OFFSET.
9621
9622 2012-04-06  Andreas Jaeger  <aj@suse.de>
9623
9624         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9625         strncmp declarations.
9626
9627         * abilist/libc.abilist: Add __poll and __ppoll.
9628
9629 2012-04-05  David S. Miller  <davem@davemloft.net>
9630
9631         * scripts/check-local-headers.sh: Accept a host triplet in the
9632         path matched by the exclude regexp.
9633
9634         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9635         definition.
9636         * sysdeps/powerpc/powerpc32/dl-machine.h
9637         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9638         * sysdeps/s390/s390-32/dl-machine.h
9639         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9640         * sysdeps/sparc/sparc32/dl-machine.h
9641         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9642         * sysdeps/sparc/sparc64/dl-machine.h
9643         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9644
9645         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9646         lazy binding.
9647         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9648         undefined symbol errors.
9649
9650         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9651         DT_NEEDED entries.
9652
9653 2012-04-05  Michael Matz  <matz@suse.de>
9654
9655         [BZ #13592]
9656         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9657
9658 2012-04-05  Andreas Jaeger  <aj@suse.de>
9659
9660         [BZ #13908]
9661         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9662         comment.
9663
9664 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9665
9666         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9667         which ROUND is no valid rounding mode.
9668
9669 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9670
9671         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9672         read again.
9673         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9674
9675 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9676
9677         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9678         an exception using FPU order intentionally.
9679
9680 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9681
9682         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9683         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9684         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9685         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9686
9687 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9688
9689         [BZ #12340]
9690         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9691         EINVAL when BUFLEN is too smal.
9692
9693 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9694
9695         [BZ #13553]
9696         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9697         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9698
9699 2012-04-03  Andreas Jaeger  <aj@suse.de>
9700
9701         [BZ #13938]
9702         * manual/setjmp.texi (System V contexts): Fix sentence.
9703
9704         [BZ #13926]
9705         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9706         New macro for this case.
9707         [!__GNUC__] (__bswap_64): New inline function for this case.
9708         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9709         * bits/byteswap.h: Likewise.
9710         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9711         ull, guard with __GLIBC_HAVE_LONG_LONG.
9712
9713         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9714         __GLIBC_HAVE_LONG_LONG.
9715
9716         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9717         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9718
9719 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9720
9721         [BZ #13691]
9722         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9723         inptr and inend, rather than using last_ch.
9724
9725 2012-04-02  David S. Miller  <davem@davemloft.net>
9726
9727         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9728         * stdio-common/printf-parse.h (read_int): Change return type to
9729         'int', return -1 on INT_MAX overflow.
9730         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9731         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9732         overflows INT_MAX.  Check for overflow of in-format-string precision
9733         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9734         SIZE_MAX not INT_MAX for integer overflow test.
9735         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9736         skip the construct in the format string but do not record anything.
9737         * stdio-common/bug22.c: Adjust to test both width/prevision
9738         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9739         explicitly for proper errno values.
9740
9741 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9742
9743         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9744         CHAR_MAX.
9745         * string/test-strcmp.c [! WIDE]: Likewise.
9746         * time/tst-mktime2.c: Likewise for INT_MAX.
9747         * string/test-string.h: #include <sys/param.h> for MIN.
9748
9749         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9750         * sysdeps/i386/init-first.c (init): Likewise.
9751         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9752         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9753         * sysdeps/sh/init-first.c (init): Likewise.
9754
9755 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9756
9757         * po/ru.po: Update from translation team.
9758         * po/vi.po: Likewise.
9759
9760 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9761
9762         * resolv/nss_dns/dns-host.c: Merge copyright years.
9763
9764 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9765
9766         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9767         Optimize memcpy with prefetch if
9768         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9769         src, dst pointers have unequal 16 byte alignments.
9770
9771 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9772
9773         [BZ #13928]
9774         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9775         from a CNAME entry and return the minimum ttl for the query.
9776         (gaih_getanswer_slice): Likewise.
9777
9778 2012-03-30  Jeff Law  <law@redhat.com>
9779
9780         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9781         due to long keys.
9782         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9783         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9784
9785         * resolv/nss_dns/dns-host.c: Update copyright year.
9786
9787 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9788
9789         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9790         requests to save a system call.  Fix check that all bytes are sent.
9791
9792         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9793         comments for sendmmsg.
9794
9795 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9796
9797         [BZ #13691]
9798         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9799         with only 1 character between 0x0041 and 0x01b0.
9800         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9801         * wcsmbs/tst-mbsnrtowcs.c: New file.
9802
9803 2012-03-29  David S. Miller  <davem@davemloft.net>
9804
9805         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9806         small copies by hand.
9807
9808 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9809
9810         [BZ #13761]
9811         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9812         _nss_compat_initgroups_dyn): Fall back to malloc/free
9813         for large group memberships.
9814
9815 2012-03-28  David S. Miller  <davem@davemloft.net>
9816
9817         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9818         that branches into memcpy.
9819         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9820         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9821         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9822         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9823         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9824         bits.
9825         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9826         implementation too.
9827         * sysdeps/sparc/mempcpy.S: New file.
9828
9829         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9830         the IFUNC routine in the libc case.
9831         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9832
9833         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9834         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9835         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9836         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9837         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9838         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9839         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9840         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9841
9842         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9843         loop to 256 bytes instead of 64 bytes and fix test signedness.
9844
9845         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9846         * sysdeps/sparc/sparc32/Makefile: rather than here...
9847         * sysdeps/sparc/sparc64/Makefile: and here.
9848
9849 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9850
9851         * malloc/mallocbug.c: Avoid warnings about unused variables.
9852
9853 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9854
9855         [BZ #13760]
9856         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9857         in the right place. Discard and retry query if response is
9858         larger than input buffer size.
9859
9860 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9861
9862         [BZ #369]
9863         [BZ #2678]
9864         [BZ #3866]
9865         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9866         x for large integer exponent.
9867         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9868         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9869         sign of result as needed afterwards.
9870         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9871         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9872         result for underflowing pow the same as for overflow.
9873         (__kernel_standard_l): Handle powl overflow and underflow here
9874         rather than calling __kernel_standard.
9875         * math/libm-test.inc (pow_test): Add more tests.
9876
9877         [BZ #3868]
9878         [BZ #13879]
9879         [BZ #13910]
9880         [BZ #13911]
9881         [BZ #13912]
9882         [BZ #13913]
9883         [BZ #13915]
9884         [BZ #13916]
9885         [BZ #13917]
9886         [BZ #13918]
9887         [BZ #13919]
9888         [BZ #13920]
9889         [BZ #13921]
9890         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9891         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9892         (__kernel_standard_l): New function.
9893         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9894         __kernel_standard.
9895         * math/w_acosl.c (__acosl): Likewise.
9896         * math/w_asinl.c (__asinl): Likewise.
9897         * math/w_atan2l.c (__atan2l): Likewise.
9898         * math/w_atanhl.c (__atanhl): Likewise.
9899         * math/w_coshl.c (__coshl): Likewise.
9900         * math/w_exp10l.c (__exp10l): Likewise.
9901         * math/w_exp2l.c (__exp2l): Likewise.
9902         * math/w_fmodl.c (__fmodl): Likewise.
9903         * math/w_hypotl.c (__hypotl): Likewise.
9904         * math/w_j0l.c (__j0l, __y0l): Likewise.
9905         * math/w_j1l.c (__j1l, __y1l): Likewise.
9906         * math/w_jnl.c (__jnl, __ynl): Likewise.
9907         * math/w_lgammal.c (__lgammal): Likewise.
9908         * math/w_log10l.c (__log10l): Likewise.
9909         * math/w_log2l.c (__log2l): Likewise.
9910         * math/w_logl.c (__logl): Likewise.
9911         * math/w_powl.c (__powl): Likewise.
9912         * math/w_remainderl.c (__remainderl): Likewise.
9913         * math/w_scalbl.c (sysv_scalbl): Likewise.
9914         * math/w_sinhl.c (__sinhl): Likewise.
9915         * math/w_sqrtl.c (__sqrtl): Likewise.
9916         * math/w_tgammal.c (__tgammal): Likewise.
9917         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9918         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9919         * math/libm-test.inc (acos_test): Add more tests.
9920         (acosh_test): Likewise.
9921         (asin_test): Likewise.
9922         (atanh_test): Likewise.
9923         (exp_test): Likewise.
9924         (exp10_test): Likewise.
9925         (exp2_test): Likewise.
9926         (expm1_test): Likewise.
9927         (lgamma_test): Likewise.
9928         (log_test): Likewise.
9929         (log10_test): Likewise.
9930         (log1p_test): Likewise.
9931         (log2_test): Likewise.
9932         (pow_test): Do not allow some spurious overflow exceptions.
9933         (sqrt_test): Add more tests.
9934         (tgamma_test): Likewise.
9935         (y0_test): Likewise.
9936         (y1_test): Likewise.
9937         (yn_test): Likewise.
9938
9939 2012-03-27  Anton Blanchard  <anton@samba.org>
9940
9941         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9942         MAP_HUGETLB.
9943         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9944         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9945         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9946
9947 2012-03-27  David S. Miller  <davem@davemloft.net>
9948
9949         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9950
9951         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9952         have-as-vis3 check.
9953
9954 2012-03-27  Andreas Jaeger  <aj@suse.de>
9955
9956         * sysdeps/x86_64/elf/configure.in: Moved to ...
9957         * sysdeps/x86_64/configure.in: ... here.
9958         * sysdeps/x86_64/elf/start.S: Moved to ...
9959         * sysdeps/x86_64/start.S: ... here.
9960         * sysdeps/x86_64/elf/configure: Delete.
9961
9962         * sysdeps/x86_64/configure.in: Merge contents from
9963         sysdeps/i386/configure.in (without i686 check).
9964
9965         * sysdeps/i386/elf/Versions: Merge into ...
9966         * sysdeps/i386/Versions: ... this.
9967         * sysdeps/i386/elf/Versions: Delete file.
9968         * sysdeps/i386/elf/start.S: Moved to ...
9969         * sysdeps/i386/start.S: ...here.
9970         * sysdeps/i386/elf/configure.in: Merge into...
9971         * sysdeps/i386/configure.in: ...here.
9972         * sysdeps/i386/elf/configure.in: Delete file.
9973         * sysdeps/i386/elf/configure: Delete file.
9974
9975         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9976         * debug/backtracesyms.c: ... here.
9977         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9978         * debug/backtracesymsfd.c: ... here.
9979         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9980         * sysdeps/generic/ifunc-sel.h: ... here.
9981
9982         * sysdeps/unix/i386/start.c: Delete file.
9983         * sysdeps/unix/sparc/start.c: Delete file.
9984         * sysdeps/unix/start.c: Delete file.
9985
9986         * sysdeps/sh/elf/configure.in: Moved to ...
9987         * sysdeps/sh/configure.in: ... here.
9988         * sysdeps/sh/elf/start.S: Moved to ...
9989         * sysdeps/sh/start.S: ... here.
9990         * sysdeps/sh/elf/configure: Delete file.
9991
9992         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9993         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9994         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9995         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9996         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9997         * sysdeps/powerpc/powerpc64/start.S: here.
9998         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9999         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10000         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10001         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10002         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10003
10004         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10005         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10006         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10007         * sysdeps/powerpc/powerpc32/start.S: ... here.
10008         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10009         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10010         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10011
10012         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10013         * sysdeps/powerpc/ifunc-sel.h: ... here.
10014         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10015         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10016
10017         * sysdeps/sparc/elf/configure.in: Moved to ...
10018         * sysdeps/sparc/configure.in: ... here.
10019         * sysdeps/sparc/elf/configure: Delete file.
10020         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10021         * sysdeps/sparc/sparc32/start.S: ... here.
10022         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10023         * sysdeps/sparc/sparc64/start.S: ... here.
10024         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10025         * sysdeps/sparc/sparc32/Makefile: ... this.
10026         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10027         * sysdeps/sparc/sparc64/Makefile: ... this.
10028
10029         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10030         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10031         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10032         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10033         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10034         * sysdeps/s390/s390-32/setjmp.S: ... here.
10035         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10036         * sysdeps/s390/s390-32/configure.in: ... here.
10037         * sysdeps/s390/s390-32/elf/configure: Delete file.
10038         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10039         * sysdeps/s390/s390-32/start.S: ... here.
10040
10041         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10042         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10043         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10044         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10045         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10046         * sysdeps/s390/s390-64/setjmp.S: ... here.
10047         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10048         * sysdeps/s390/s390-64/configure.in: ... here
10049         * sysdeps/s390/s390-64/elf/configure: Delete file.
10050         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10051         * sysdeps/s390/s390-64/start.S: ... here.
10052         * sysdeps/s390/s390-64/elf/configure: Delete.
10053
10054         * configure.in: Remove support for elf directories in sysdeps.
10055
10056         * configure: Regenerated.
10057         * sysdeps/i386/configure: Regenerated.
10058         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10059         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10060         * sysdeps/s390/s390-32/configure: Regenerated.
10061         * sysdeps/s390/s390-64/configure: Regenerated.
10062         * sysdeps/sh/configure: Regenerated.
10063         * sysdeps/sparc/configure: Regenerated.
10064         * sysdeps/x86_64/configure: Regenerated.
10065
10066 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10067
10068         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10069
10070         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10071         denormal result into account.
10072
10073 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10074
10075         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10076         Reported by Allan McRae <allan@archlinux.org>.
10077
10078 2012-03-23  Jeff Law  <law@redhat.com>
10079
10080         * nss/getnssent.c (__nss_getent): Fix typo.
10081
10082 2012-03-23  David S. Miller  <davem@davemloft.net>
10083
10084         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10085
10086 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10087
10088         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10089         to pad to uint64_t for each field.
10090         (dl_tls_index): Replace unsigned long with uint64_t.
10091
10092 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10093         Paul Pluzhnikov  <ppluzhnikov@google.com>
10094
10095         [BZ #6528]
10096         * grp/Makefile (otherlibs): Don't set it.
10097         * inet/Makefile (otherlibs): Likewise.
10098         * login/Makefile (otherlibs): Likewise.
10099         * nscd/Makefile (otherlibs): Likewise.
10100         * posix/Makefile (otherlibs): Likewise.
10101         * pwd/Makefile (otherlibs): Likewise.
10102         * rt/Makefile (otherlibs): Likewise.
10103         * sunrpc/Makefile (otherlibs): Likewise.
10104         * nss/Makefile (otherlibs): Likewise.
10105         Add libnss_files to routines and static-only-routines.
10106         ($(objpfx)getent): Remove rule.
10107         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10108         static-only-routines.
10109
10110 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10111
10112         [BZ #13892]
10113         * math/s_cexp.c: Include <float.h>.
10114         (__cexp): Handle exp result overflowing not necessarily
10115         overflowing both real and imaginary parts of result.
10116         * math/s_cexpf.c: Likewise.
10117         * math/s_cexpl.c: Likewise.
10118         * math/libm-test.inc (cexp_test): Add more tests.
10119         * sysdeps/i386/fpu/libm-test-ulps: Update.
10120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10121
10122 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10123
10124         * include/link.h (ELFW): New macro.
10125         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10126         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10127
10128 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10129
10130         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10131         with uint64_t.
10132
10133 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10134
10135         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10136         declaration.
10137         (struct La_x32_retval): Likewise.
10138
10139 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10140
10141         * sysdeps/x86_64/preconfigure.in: New file.
10142         * sysdeps/x86_64/preconfigure: New generated file.
10143
10144 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10145
10146         [BZ #13824]
10147         * math/e_exp2l.c: Include <float.h>.
10148         (__ieee754_exp2l): Handle overflow and underflow cases
10149         separately.  Only pass fractional part of argument to
10150         __ieee754_expl.
10151         * math/libm-test.inc (exp2_test): Add more tests.
10152
10153         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10154         negating x to take absolute value.
10155         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10156         Likewise.
10157         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10158         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10159         Likewise.
10160         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10161         computing low part if x was negated.
10162         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10163
10164 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10165
10166         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10167         la_x32_gnu_pltexit.
10168         (pltexit): Cast int_retval to ptrdiff_t.
10169         * elf/tst-auditmod3b.c: Likewise.
10170         * elf/tst-auditmod4b.c: Likewise.
10171         * elf/tst-auditmod5b.c: Likewise.
10172         * elf/tst-auditmod6b.c: Likewise.
10173         * elf/tst-auditmod6c.c: Likewise.
10174         * elf/tst-auditmod7b.c: Likewise.
10175
10176         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10177         and x32_gnu_pltexit.
10178
10179         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10180         __ELF_NATIVE_CLASS.
10181         (La_x32_regs): New macro.
10182         (La_x32_retval): Likewise.
10183         (la_x32_gnu_pltenter): New function prototype.
10184         (la_x32_gnu_pltexit): Likewise.
10185
10186 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10187
10188         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10189         exponent.
10190
10191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10192
10193         * configure.in (libc_cv_cc_nofma): Check for option to disable
10194         generation of FMA instructions.
10195         * configure: Regenerate.
10196         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10197         * sysdeps/ieee754/dbl-64/Makefile: New file.
10198         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10199         Remove brandred-fma4.
10200         (CFLAGS-brandred-fma4.c): Remove.
10201         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10202         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10203         define.
10204         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10205         define.
10206
10207 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10208
10209         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10210         LLONG_MAX != LONG_MAX.
10211         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10212         (_fitoa_word): Likewise.
10213         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10214         LLONG_MAX != LONG_MAX.
10215         * stdio-common/_itowa.h: Include <_itoa.h>.
10216         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10217         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10218         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10219         only if not defined.
10220         (_ITOA_WORD_TYPE): Likewise.
10221         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10222         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10223
10224 2012-03-21  David S. Miller  <davem@davemloft.net>
10225
10226         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10227
10228 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10229
10230         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10231         of x86_64 when setting libc_cv_slibdir, libdir and
10232         libc_cv_localedir.
10233         * sysdeps/unix/sysv/linux/configure: Regenerated.
10234
10235 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10236
10237         * manual/lang.texi (Old Varargs): Remove section.
10238         (How Variadic): Update menu.
10239         (va_start): Do not mention varargs.h.
10240
10241 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10242             Joseph Myers  <joseph@codesourcery.com>
10243
10244         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10245         link test.
10246         * configure: Regenerated.
10247
10248 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10249
10250         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10251         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10252         conformtest.pl
10253
10254 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10255
10256         * NOTES: Remove.
10257         * Makefile (files-for-dist): Remove NOTES.
10258         (NOTES): Remove rule.
10259         * README: Don't refer to NOTES.
10260         * manual/creature.texi: Don't include macros.texi.
10261         * manual/intro.texi (creature.texi): Remove comment referring to
10262         NOTES.
10263
10264         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10265         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10266         * configure: Regenerated.
10267         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10268         LIBC_TRY_CC_OPTION.
10269         (libc_cv_as_i686): Likewise.
10270         (libc_cv_cc_avx): Likewise.
10271         (libc_cv_cc_sse2avx): Likewise.
10272         (libc_cv_cc_fma4): Likewise.
10273         (libc_cv_cc_novzeroupper): Likewise.
10274         * sysdeps/i386/configure: Regenerated.
10275
10276         [BZ #13883]
10277         * sysdeps/i386/fpu/s_cexp.S: Remove.
10278         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10279         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10280         * math/libm-test.inc (cexp_test): Add more tests.
10281         * sysdeps/i386/fpu/libm-test-ulps: Update.
10282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10283
10284 2012-03-21  Allan McRae  <allan@archlinux.org>
10285
10286         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10287
10288 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10289
10290         [BZ #13871]
10291         * math/w_exp2.c: Do not include <float.h>.
10292         (o_threshold, u_threshold): Remove.
10293         (__exp2): Calculate result before checking finiteness and calling
10294         __kernel_standard.
10295         * math/w_exp2f.c: Likewise.
10296         * math/w_exp2l.c: Likewise.
10297         * math/libm-test.inc (exp2_test): Require overflow exception for
10298         1e6 input.
10299
10300         [BZ #3866]
10301         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10302         range of signed 64-bit integers before using fistpll.  Remove
10303         checks for whether integers fit in mantissa bits.
10304         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10305         the range of signed 32-bit integers before using fistpl.  Remove
10306         checks for whether integers fit in mantissa bits.
10307         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10308         (__ieee754_powl): Test for y outside the range of signed 64-bit
10309         integers before using fistpll.  Reduce 64-bit values to 63-bit
10310         ones as needed.
10311         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10312         divide-by-zero is raised for zero to large negative powers.
10313         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10314         (__ieee754_powl): Test for y outside the range of signed 64-bit
10315         integers before using fistpll.  Reduce 64-bit values to 63-bit
10316         ones as needed.
10317         * math/libm-test.inc (pow_test): Add more tests.
10318
10319 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10320
10321         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10322         <stdio-common/_itoa.h>.
10323         * debug/segfault.c: Likewise.
10324         * elf/dl-cache.c: Likewise.
10325         * elf/dl-minimal.c: Likewise.
10326         * elf/dl-misc.c: Likewise.
10327         * elf/dl-sysdep.c: Likewise.
10328         * elf/dl-version.c: Likewise.
10329         * elf/rtld.c: Likewise.
10330         * hurd/hurdsock.c: Likewise.
10331         * hurd/lookup-retry.c: Likewise.
10332         * malloc/malloc.c: Likewise.
10333         * malloc/mtrace.c: Likewise.
10334         * nscd/nscd_getgr_r.c: Likewise.
10335         * nscd/nscd_getpw_r.c: Likewise.
10336         * nscd/nscd_getserv_r.c: Likewise.
10337         * posix/getopt_init.c: Likewise.
10338         * posix/wordexp.c: Likewise.
10339         * stdio-common/_itoa.c: Likewise.
10340         * stdio-common/printf_fphex.c: Likewise.
10341         * stdio-common/vfprintf.c: Likewise.
10342         * string/_strerror.c: Likewise.
10343         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10344         * sysdeps/i386/i686/hp-timing.h: Likewise.
10345         * sysdeps/mach/_strerror.c: Likewise.
10346         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10347         * sysdeps/mach/hurd/sethostid.c: Likewise.
10348         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10349         * sysdeps/mach/xpg-strerror.c: Likewise.
10350         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10351         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10352         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10353         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10354         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10355         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10356         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10357         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10358         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10359         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10360         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10361         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10362         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10363         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10364         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10365         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10366         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10367         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10368         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10369         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10370         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10371
10372         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10373
10374         * stdio-common/_itoa.h: Moved to ...
10375         * sysdeps/generic/_itoa.h: Here.
10376
10377         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10378
10379         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10380         instead of "_itoa.h" and "_itowa.h".
10381         * stdio-common/vfprintf.: Likewise.
10382
10383 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10384
10385         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10386         <bits/wordsize.h>.
10387         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10388         (__signbit): Likwise.
10389         (llrintf): Likwise.
10390         (llrint): Likwise.
10391
10392 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10393
10394         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10395         __WORDSIZE != 64.
10396
10397 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10398
10399         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10400         OVERFLOW_EXCEPTION_OK.
10401         * math/libm-test.inc ("Philosophy"): Update comment about
10402         exception testing.
10403         (OVERFLOW_EXCEPTION): Define.
10404         (OVERFLOW_EXCEPTION_OK): Likewise.
10405         (INVALID_EXCEPTION_OK): Renumber.
10406         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10407         (IGNORE_ZERO_INF_SIGN): Likewise.
10408         (test_exceptions): Handle FE_OVERFLOW.
10409         (exp10_test): Expect overflow exceptions.
10410         (exp2_test): Likewise.
10411         (expm1_test): Likewise.
10412         (nextafter_test): Likewise.
10413         (pow_test): Likewise.
10414         (scalbn_test): Likewise.
10415         (scalbln_test): Likewise.
10416
10417 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10418
10419         * sysdeps/x86_64/bits/atomic.h
10420         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10421         64bit integer.
10422         (atomic_exchange_acq): Likewise.
10423         (__arch_exchange_and_add_body): Likewise.
10424         (__arch_add_body): Likewise.
10425         (atomic_add_negative): Likewise.
10426         (atomic_add_zero): Likewise.
10427
10428 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10429
10430         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10431         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10432
10433 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10434
10435         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10436         Check __x86_64__ instead of __WORDSIZE.
10437
10438 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10439
10440         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10441
10442 2012-03-19  David S. Miller  <davem@davemloft.net>
10443
10444         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10445
10446         * sysdeps/sparc/fpu/fenv_private.h: New file.
10447         * sysdeps/sparc/fpu/math_private.h: Use it.
10448         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10449         Remove.
10450         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10451         (libc_feholdexcept_setroundl): Remove.
10452         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10453         Remove.
10454         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10455         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10456
10457 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10458
10459         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10460         int64_t instead of long int.
10461         (INSERT_WORDS64): Likwise.
10462
10463 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10464
10465         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10466         _Unwind_GetCFA return to _Unwind_Ptr first.
10467
10468 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10469
10470         [BZ #13629]
10471         * math/s_clog.c: Include <float.h>.
10472         (__clog): Scale large or subnormal inputs.
10473         * math/s_clogf.c: Likewise.
10474         * math/s_clogl.c: Likewise.
10475         * math/s_clog10.c: Include <float.h>.
10476         (M_LOG10_2): Define.
10477         (__clog10): Scale large or subnormal inputs.
10478         * math/s_clog10f.c: Likewise.
10479         * math/s_clog10l.c: Likewise.
10480         * math/libm-test.inc (clog_test): Add more tests.
10481         (clog10_test): Likewise.
10482         * sysdeps/i386/fpu/libm-test-ulps: Update.
10483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10484
10485         [BZ #11451]
10486         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10487         x and y.
10488         * math/libm-test.inc (atan2_test): Add another test.
10489
10490         * Makerules (common-objdir-compile): Remove.
10491         * sysdeps/unix/Makefile (config-generated): Do not add
10492         $(unix-generated) to variable.
10493         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10494         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10495         Remove rule.
10496         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10497         Likewise.
10498         [generic bits/local_lim.h] (before-compile): Do not append to
10499         variable.
10500         [generic bits/local_lim.h] (common-generated): Likewise.
10501         [generic sys/param.h] (before-compile): Do not append to variable.
10502         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10503         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10504         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10505         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10506         include.
10507         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10508         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10509         [generic sys/param.h] ($(addprefix
10510         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10511         [generic sys/param.h] (common-generated): Do not append to
10512         variable.
10513         [generic sys/param.h] (sysdep_headers): Likewise.
10514         [generic bits/errno.h] (before-compile): Do not append to
10515         variable.
10516         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10517         rule.
10518         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10519         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10520         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10521         [generic bits/errno.h] (common-generated): Do not append to
10522         variable.
10523         [generic bits/ioctls.h] (before-compile): Do not append to
10524         variable.
10525         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10526         rule.
10527         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10528         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10529         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10530         rule.
10531         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10532         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10533         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10534         [generic bits/ioctls.h] (common-generated): Do not append to
10535         variable.
10536         [generic sys/syscall.h] (syscall.h): Remove variable.
10537         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10538         rule.
10539         [generic sys/syscall.h] (before-compile): Do not append to
10540         variable.
10541         [generic sys/syscall.h] (common-generated): Likewise.
10542         * sysdeps/unix/errnos-tmpl.c: Remove file.
10543         * sysdeps/unix/errnos.awk: Likewise.
10544         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10545         * sysdeps/unix/ioctls.awk: Likewise.
10546         * sysdeps/unix/mk-local_lim.c: Likewise.
10547         * sysdeps/unix/snarf-ioctls: Likewise.
10548
10549 2012-03-19  Richard Henderson  <rth@twiddle.net>
10550
10551         * sysdeps/i386/fpu/fenv_private.h: New file.
10552         * sysdeps/i386/fpu/math_private.h: Use it.
10553         (math_opt_barrier, math_force_eval): Remove.
10554         (libc_feholdexcept_setround_53bit): Remove.
10555         (libc_feupdateenv_53bit): Remove.
10556         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10557         (math_opt_barrier, math_force_eval): Remove.
10558         (libc_feholdexcept): Remove.
10559         (libc_feholdexcept_setround): Remove.
10560         (libc_fetestexcept, libc_fesetenv): Remove.
10561         (libc_feupdateenv_test): Remove.
10562         (libc_feupdateenv, libc_feholdsetround): Remove.
10563         (libc_feresetround): Remove.
10564
10565         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10566         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10567
10568         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10569         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10570         (libc_feupdateenv_testl): New.
10571         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10572         (libc_feupdateenv_testf): New.
10573         (libc_feupdateenv): Use libc_feupdateenv_test.
10574         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10575         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10576
10577         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10578         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10579         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10580         (libc_feresetround_noex): New.
10581         (libc_feresetround_noexf): New.
10582         (libc_feresetround_noexl): New.
10583         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10584         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10585         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10586         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10587         SET_RESTORE_ROUND.
10588         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10589         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10590         (__cos): Likewise.
10591         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10592         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10593         SET_RESTORE_ROUND_NOEX.
10594         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10595         SET_RESTORE_ROUND_NOEXF.
10596         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10597         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10598         (libc_feholdsetroundf): New.
10599         (libc_feresetround, libc_feresetroundf): New.
10600
10601         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10602         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10603         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10604
10605         * sysdeps/generic/math_private.h: Include <fenv.h>.
10606         (default_libc_feholdexcept): New.
10607         (default_libc_feholdexcept_setround): New.
10608         (default_libc_fesetenv, default_libc_feupdateenv): New.
10609         (libc_feholdexcept): Only define if undefined.
10610         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10611         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10612         (libc_feholdexcept_setroundl): Likewise.
10613         (libc_feholdexcept_setround_53bit): Likewise.
10614         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10615         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10616         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10617         (libc_feupdateenv_53bit): Likewise.
10618         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10619         (libc_feholdexcept): Convert from macro to inline function.
10620         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10621         (libc_fesetenv, libc_feupdateenv): Likewise.
10622
10623         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10624         not previously defined.
10625         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10626         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10627         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10628         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10629         * sysdeps/ieee754/flt-32/math_private.h: New file.
10630         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10631         math_private.h below SET_FLOAT_WORD.
10632         (__isnan, __isinf_ns, __finite): Remove.
10633         (__isnanf, __isinf_nsf, __finitef): Remove.
10634
10635 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10636
10637         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10638
10639 2012-03-17  David S. Miller  <davem@davemloft.net>
10640
10641         [BZ #6471]
10642         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10643         for 2.16.
10644
10645 2012-03-16  David S. Miller  <davem@davemloft.net>
10646
10647         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10648         warnings.
10649
10650         [BZ #6471]
10651         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10652         properly.
10653         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10654         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10655         sysdep_routines when subdir is sysvipc.
10656         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10657         __getshmlba helper.
10658
10659         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10660
10661 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10662
10663         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10664         [__LP64__].
10665
10666 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10667
10668         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10669         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10670         (__lround): Renamed to ...
10671         (__llround): This.  Replace long int with long long int.
10672         Define lround functions as aliases of llround functions.
10673         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10674
10675 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10676
10677         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10678         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10679         adresses to uintptr_t.  Replace "long int" and "unsigned long
10680         int" with "greg_t" on va_arg.
10681
10682 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10683
10684         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10685         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10686
10687         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10688         Move e_machine check before EI_CLASS check.  Handle x32
10689         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10690         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10691         SKIP_EM_IA_64 and include
10692         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10693
10694         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10695         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10696         (add_system_dir): New macro.
10697
10698         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10699         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10700
10701 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10702
10703         [BZ #2551]
10704         [BZ #2552]
10705         [BZ #2553]
10706         [BZ #2554]
10707         [BZ #2562]
10708         [BZ #2563]
10709         [BZ #2565]
10710         [BZ #2566]
10711         [BZ #2576]
10712         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10713         (y0): Likewise.
10714         * math/w_j0f.c (j0f): Likewise.
10715         (y0f): Likewise.
10716         * math/w_j0l.c (__j0l): Likewise.
10717         (__y0l): Likewise.
10718         * math/w_j1.c (j1): Likewise.
10719         (y1): Likewise.
10720         * math/w_j1f.c (j1f): Likewise.
10721         (y1f): Likewise.
10722         * math/w_j1l.c (__j1l): Likewise.
10723         (__y1l): Likewise.
10724         * math/w_jn.c (jn): Likewise.
10725         (yn): Likewise.
10726         * math/w_jnf.c (jnf): Likewise.
10727         (ynf): Likewise.
10728         * math/w_jnl.c (__jnl): Likewise.
10729         (__ynl): Likewise.
10730         * math/libm-test.inc (j0_test): Add more tests.
10731         (j1_test): Likewise.
10732         (jn_test): Likewise.  Add trailing semicolon to existing test.
10733         (y0_test): Likewise.
10734         (y1_test): Likewise.
10735         * sysdeps/i386/fpu/libm-test-ulps: Update.
10736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10737
10738         [BZ #13851]
10739         [BZ #13854]
10740         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10741         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10742         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10743         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10744         (__tanl): Set errno for infinite argument.
10745         * sysdeps/i386/fpu/mptan.c: Remove.
10746         * sysdeps/i386/fpu/s_tan.S: Likewise.
10747         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10748         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10749         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10750         * math/libm-test.inc (tan_test): Add more tests and enable more
10751         tests for double and long double.
10752         * sysdeps/i386/fpu/libm-test-ulps: Update.
10753         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10754
10755 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10756
10757         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10758         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10759
10760 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10761
10762         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10763         * configure.in: Use it for both main tree and add-ons.
10764         * configure: Regenerated.
10765
10766 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10767
10768         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10769
10770 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10771
10772         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10773         in comment.
10774
10775         [BZ #13851]
10776         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10777         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10778         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10779         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10780         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10781         infinite argument.
10782         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10783         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10784         != 0 for prec == 2.
10785         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10786         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10787         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10788         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10789         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10790         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10791         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10792         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10793         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10794         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10795         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10796         * math/libm-test.inc (cos_test): Add more tests and enable more
10797         tests for long double.
10798         (sin_test): Likewise.
10799         (sincos_test): Likewise.
10800         * sysdeps/i386/fpu/libm-test-ulps: Update.
10801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10802
10803 2012-03-16  David S. Miller  <davem@davemloft.net>
10804
10805         * sysdeps/sparc/fpu/math_private.h: New file.
10806
10807 2012-03-15  David S. Miller  <davem@davemloft.net>
10808
10809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10810         file.
10811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10813         file.
10814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10815         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10816         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10817         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10818         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10819         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10820         sysdep routines.
10821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10822
10823         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10824         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10825
10826         * sysdeps/sparc/sparc-ifunc.h: New file.
10827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10828         sparc-ifunc.h
10829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10831         Likewise.
10832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10833         Likewise.
10834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10838         Likewise.
10839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10844         Likewise.
10845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10846         Likewise.
10847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10851         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10852         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10853         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10854         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10855         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10856         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10857         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10858         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10859         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10860         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10861         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10862         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10863         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10864         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10865         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10866         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10867         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10868         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10869         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10870         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10871
10872 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10873
10874         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10875         scaling.
10876         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10877
10878 2012-03-15  Andreas Jaeger  <aj@suse.de>
10879
10880         [BZ #13852]
10881         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10882         ieee754/flt-32 implementation for sin, cos and sincos.
10883         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10884         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10885         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10886         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10887         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10888         ieee754/flt-32 implementation for tan.
10889
10890         * math/libm-test.inc (cos_test): Enable some large input tests for
10891         float as well
10892         (sin_test): Likewise.
10893         (sincos_test): Likewise.
10894         (tan_test): Add tests for large input.
10895
10896         * sysdeps/i386/fpu/libm-test-ulps: Update.
10897
10898 2012-03-15  Andreas Jaeger  <aj@suse.de>
10899
10900         [BZ #13658]
10901         * math/libm-test.inc (cos_test): Add more test cases.
10902         (sin_test): Likewise.
10903         (sincos_test): Likewise.
10904
10905 2012-03-15  Andreas Jaeger  <aj@suse.de>
10906
10907         [BZ #13837]
10908         * math/libm-test.inc (cos_test): Add a test case for large input
10909         value.
10910         (sin_test): Likewise.
10911         (sincos_test): Likewise.
10912
10913 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10914         Joseph Myers  <joseph@codesourcery.com>
10915
10916         [BZ #13658]
10917         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10918         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10919         * sysdeps/i386/fpu/branred.c: Likewise.
10920         * sysdeps/i386/fpu/dosincos.c: Likewise.
10921         * sysdeps/i386/fpu/mpa.c: Likewise.
10922         * sysdeps/i386/fpu/s_cos.S: Likewise.
10923         * sysdeps/i386/fpu/s_sin.S: Likewise.
10924         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10925         * sysdeps/i386/fpu/sincos32.c: Likewise.
10926
10927         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10928         Define.
10929         (libc_feupdateenv_53bit): Define.
10930         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10931         Define.
10932         (libc_feupdateenv_53bit): Define.
10933
10934         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10935         53 bit (without extend i386 double precision).
10936
10937         * math/libm-test.inc (sincos_test): Add tests for large input.
10938         (sin): Likewise.
10939         (cos): Likewise.
10940
10941         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10942
10943 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10944
10945         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10946
10947 2012-03-15  David S. Miller  <davem@davemloft.net>
10948
10949         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10950         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10951         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10952         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10954         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10955         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10956         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10957         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10958         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10959         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10960         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10961         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10962         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10963         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10965         file.
10966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10968         file.
10969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10971         file.
10972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10974         file.
10975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10976         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10977         fmin/fmax sysdep routines.
10978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10979
10980 2012-03-14  David S. Miller  <davem@davemloft.net>
10981
10982         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10983         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10984         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10986         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10987         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10988         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10989         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10990         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10991         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10992         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10998         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11000         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11001         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11002         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11003         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11004         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11005         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11006         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11007         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11008         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11009         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11010         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11011         routines.
11012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11013         file.
11014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11016         file.
11017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11019         file.
11020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11022         file.
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11025         file.
11026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11028         file.
11029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11030         file.
11031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11032         file.
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11034         file.
11035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11036         New file.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11038         file.
11039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11040         file.
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11043         file.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11046         file.
11047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11049         file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11052         VIS3 routines.
11053
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11055         New file.
11056
11057         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11058
11059         * sysdeps/sparc/configure.in: New file.
11060         * sysdeps/sparc/configure: Generate.
11061         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11062         * configure: Regenerate.
11063         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11064         * config.make.in (have-as-vis3): New.
11065         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11066         available use -Av9d instead of -Av9a.
11067         * sysdeps/sparc/sparc64/Makefile: Likewise.
11068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11070         New file.
11071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11072         file.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11074         New file.
11075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11076         file.
11077         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11078         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11079         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11080         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11081         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11082
11083         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11084         fzeros/fnegs to load 0x80000000 into a float register instead of
11085         using the stack.
11086         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11087
11088 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11089
11090         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11091         bits/syscall.h.
11092         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11093         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11094         ($(inst_includedir)/bits/syscall.h): Remove rule.
11095         ($(objpfx)bits/syscall.d): Include instead of
11096         $(objpfx)syscall-list.d.
11097         (generated): Change syscall-list.h and syscall-list.d to
11098         bits/syscall.h and bits/syscall.d.
11099
11100 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11101
11102         [BZ #13846]
11103         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11104
11105 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11106
11107         [BZ #13841]
11108         * math/s_csqrt.c: Include <float.h>.
11109         (__csqrt): Scale large or subnormal inputs.
11110         * math/s_csqrtf.c: Likewise.
11111         * math/s_csqrtl.c: Likewise.
11112         * math/libm-test.inc (csqrt_test): Add more tests.
11113         * sysdeps/i386/fpu/libm-test-ulps: Update.
11114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11115
11116         [BZ #13840]
11117         * math/libm-test.inc (hypot_test): Add more tests.
11118
11119 2012-03-13  David S. Miller  <davem@davemloft.net>
11120
11121         [BZ #13840]
11122         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11123         double-precision for the calculation instead of scaling.
11124
11125 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11126
11127         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11128         manipulate bits before adding and subtracting TWO52[sx].
11129         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11130         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11131         Likewise.
11132         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11133
11134 2012-03-13  David S. Miller  <davem@davemloft.net>
11135
11136         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11137         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11138         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11139         rtld-global-offsets.h
11140         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11141
11142         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11143         large parameters.
11144
11145         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11146
11147         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11148         'err' in the ifdef scope in which it is actually used.
11149
11150         * nss/nss_db/db-init.c: Include string.h
11151
11152 2012-03-12  David S. Miller  <davem@davemloft.net>
11153
11154         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11155         masking out of the most significant byte of random value used.
11156         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11157         Fix coding style in previous change.
11158
11159         * sysdeps/unix/sysv/linux/kernel-features.h
11160         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11161         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11162         expression.
11163         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11164         later.
11165
11166 2012-03-11  David S. Miller  <davem@davemloft.net>
11167
11168         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11169         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11170         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11171         for 'resultvar' otherwise things get truncated on 64-bit.
11172
11173         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11174         Fix masking out of the most significant byte of random value used.
11175
11176         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11177
11178 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11179
11180         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11181
11182 2012-03-09  David S. Miller  <davem@davemloft.net>
11183
11184         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11185         variables with appropriate CPP guards.
11186         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11187         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11188         on resulting framesize and the management of the outregs buffer for pltexit.
11189         Preserve floating point return values across _dl_call_pltexit call.
11190         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11191         framesize and the management of the outregs buffer for pltexit.
11192         Preserve floating point return values across _dl_call_pltexit
11193         call.
11194         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11195         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11196         (print_exit): Fix format string for return register value.
11197
11198 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11199
11200         * sunrpc/Makefile (others): Add rpcgen.
11201         ($(objpfx)rpcgen): Remove special build rule and dependency on
11202         libc.
11203         * sunrpc/rpcgen.c: New file.
11204
11205 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11206
11207         [BZ #13673]
11208         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11209         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11210         * sysdeps/i386/crti.S: Likewise.
11211         * sysdeps/i386/crtn.S: Likewise.
11212         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11213         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11214         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11215         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11216         * sysdeps/sh/crti.S: Likewise.
11217         * sysdeps/sh/crtn.S: Likewise.
11218         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11219
11220         [BZ #13673]
11221         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11222         with URL.
11223         * locale/programs/locfile-kw.gperf: Likewise.
11224         * locale/programs/charmap-kw.h: Regenerated.
11225         * locale/programs/locfile-kw.h: Likewise.
11226
11227         [BZ #13673]
11228         * intl/plural.y: Replace FSF snail mail address with URL.
11229         * intl/plural.c: Regenerated.
11230
11231 2012-03-09  Richard Henderson  <rth@twiddle.net>
11232
11233         * include/math_private.h: Remove file.
11234         * math/math_private.h: Move file ...
11235         * sysdeps/generic/math_private.h: ... here.
11236
11237         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11238         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11239         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11240
11241         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11242         and <math_private.h>.
11243         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11244         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11245         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11246         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11247         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11248         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11249         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11250         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11251         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11252         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11253         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11254         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11255         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11256         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11257         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11258         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11259         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11260         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11261         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11262         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11267         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11268         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11269         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11270         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11331         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11332         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11333         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11334         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11335         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11336         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11337         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11338         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11339         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11340         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11341         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11342         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11343         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11344         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11345         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11346         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11347         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11348         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11349         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11350         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11351         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11352         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11353         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11354         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11357         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11358         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11361         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11362         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11363         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11365         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11366         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11367         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11368         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11370         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11371         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11372         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11376         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11377         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11378         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11379         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11380         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11381         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11382         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11383         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11384         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11385         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11386         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11387         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11388         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11389         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11390         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11391         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11392         * sysdeps/ieee754/k_standard.c: Likewise.
11393         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11394         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11395         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11396         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11397         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11508         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11512         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11513         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11515         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11520         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11525         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11541         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11542         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11543         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11553         * sysdeps/ieee754/s_lib_version.c: Likewise.
11554         * sysdeps/ieee754/s_matherr.c: Likewise.
11555         * sysdeps/ieee754/s_signgam.c: Likewise.
11556         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11557         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11558         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11559         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11560         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11561         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11562         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11563         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11564         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11565         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11566         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11567         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11568         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11569         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11570         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11571         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11572         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11573         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11574         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11575         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11576         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11577
11578 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11579
11580         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11581         * sunrpc/rpc_main.c: Likewise.
11582         * sunrpc/rpc_svcout.c: Likewise.
11583
11584 2012-03-09  David S. Miller  <davem@davemloft.net>
11585
11586         * include/math_private.h: New file.
11587
11588 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11589
11590         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11591         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11592         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11593         from <bits/socket_type.h>.
11594         (enum __socket_type): Don't define here.
11595         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11596         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11597         bits/socket_type.h.
11598
11599         [BZ #13566]
11600         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11601         checking __USE_GNU.
11602
11603         * Makerules ($(inst_includedir)/%.h): New rule.
11604         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11605         (install-others): Remove variable setting.
11606         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11607
11608 2012-03-08  Richard Henderson  <rth@twiddle.net>
11609
11610         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11611         from macro to inline function; merge with the
11612         !__LIBC_INTERNAL_MATH_INLINES version.
11613         (__ieee754_sqrtf): Likewise.
11614
11615         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11616         to inline function.
11617         (__rintf, __floor, __floorf): Likewise.
11618
11619         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11620         macro to inline function.
11621         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11622
11623         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11624         not <math/math_private.h>.
11625
11626 2012-03-08  David S. Miller  <davem@davemloft.net>
11627
11628         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11629         copyright year.
11630         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11631
11632 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11633
11634         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11635         normalization.
11636         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11637         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11638
11639 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11640
11641         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11642         be defined individually, they must be defined as a block.  Define
11643         S for printing a string instead of hidint the different by using a
11644         macro for adding the 'l'.
11645         * stdio-common/tst-fphex-wide.c: Adjust.
11646
11647 2012-03-07  Marek Polacek  <polacek@redhat.com>
11648
11649         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11650
11651 2012-03-08  Marek Polacek  <polacek@redhat.com>
11652
11653         [BZ #13806]
11654         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11655         * stdio-common/tst-fphex.c: Define a few macros to make the
11656         test reusable.  Use them.
11657         * stdio-common/tst-fphex-wide.c: New file.
11658
11659 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11660
11661         [BZ #6911]
11662         * manual/macros.texi (gnusystems): New macro.
11663         (nongnusystems): Likewise.
11664         (gnulinuxhurdsystems): Likewise.
11665         (gnuhurdsystems): Likewise..
11666         (gnulinuxsystems): Likewise.
11667         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11668         variants of the GNU system, not "GNU system".
11669         * manual/conf.texi: Likewise.
11670         * manual/errno.texi: Likewise.  Update example of errno macro
11671         expansion.
11672         * manual/filesys.texi: Likewise.
11673         (getumask): Document as specific to GNU/Hurd.
11674         * manual/install.texi: Likewise.  Reword some references to
11675         GNU/Linux.
11676         * manual/intro.texi: Likewise.
11677         * manual/io.texi: Likewise.
11678         (File Name Portability): Detail which constraints are inapplicable
11679         to all GNU systems and which are only inapplicable to GNU/Hurd.
11680         * manual/job.texi: Likewise.
11681         * manual/llio.texi: Likewise.
11682         (O_NOCTTY): Document as present on GNU/Linux.
11683         * manual/maint.texi: Likewise.
11684         * manual/memory.texi: Likewise.
11685         * manual/pattern.texi: Likewise.
11686         * manual/pipe.texi: Likewise.
11687         * manual/process.texi: Likewise.
11688         * manual/resource.texi: Likewise.
11689         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11690         child on GNU/Hurd.
11691         * manual/setjmp.texi: Likewise.
11692         * manual/signal.texi: Likewise.
11693         * manual/startup.texi: Likewise.
11694         * manual/stdio.texi: Likewise.
11695         * manual/terminal.texi: Likewise.
11696         (ONLCR): Document as POSIX.
11697         (OXTABS): Document availability on GNU/Linux as XTABS.
11698         (ONOEOT): Document availability separately from other bits.
11699         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11700         * manual/time.texi: Likewise.
11701         * manual/users.texi: Likewise.
11702         * INSTALL: Regenerated.
11703         * sysdeps/gnu/errlist.c: Regenerated.
11704
11705         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11706         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11707         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11708         puts.
11709         * configure: Regenerated.
11710
11711 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11712
11713         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11714         default includes instead of AC_HEADER_CHECK.
11715         * sysdeps/i386/configure: Regenerated.
11716
11717         [BZ #10716]
11718         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11719         * math/s_cacoshf.c (__cacoshf): Likewise.
11720         * math/s_cacoshl.c (__cacoshl): Likewise.
11721         * math/s_casinh.c (__casinh): Set signs of result from argument.
11722         * math/s_casinhf.c (__casinhf): Likewise.
11723         * math/s_casinhl.c (__casinhl): Likewise.
11724         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11725         (casinh_test): Add more tests.
11726         * sysdeps/i386/fpu/libm-test-ulps: Update.
11727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11728
11729 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11730
11731         * po/zh_TW.po: Update from translation team.
11732
11733         * login/Makefile (distribute): Remove variable.
11734         * catgets/Makefile: Likewise.
11735         * mach/Makefile: Likewise.
11736         * malloc/Makefile: Likewise.
11737         * misc/Makefile: Likewise.
11738         * iconv/Makefile: Likewise.
11739         * nscd/Makefile: Likewise.
11740         * hurd/Makefile: Likewise.
11741         * manual/Makefile: Likewise.
11742         * locale/Makefile: Likewise.
11743         * intl/Makefile: Likewise.
11744         * conform/Makefile: Likewise.
11745         * nss/Makefile: Likewise.
11746         * time/Makefile: Likewise.
11747         * soft-fp/Makefile: Likewise.
11748         * dirent/Makefile: Likewise.
11749         * gmon/Makefile: Likewise.
11750         * po/Makefile: Likewise.
11751         * rt/Makefile: Likewise.
11752         * socket/Makefile: Likewise.
11753         * math/Makefile: Likewise.
11754         * signal/Makefile: Likewise.
11755         * debug/Makefile: Likewise.
11756         * elf/Makefile: Likewise.
11757         * timezone/Makefile: Likewise.
11758         * stdlib/Makefile: Likewise.
11759         * iconvdata/Makefile: Likewise.
11760         * sunrpc/Makefile: Likewise.
11761         * io/Makefile: Likewise.
11762         * argp/Makefile: Likewise.
11763         * inet/Makefile: Likewise.
11764         * hesiod/Makefile: Likewise.
11765         * grp/Makefile: Likewise.
11766         * csu/Makefile: Likewise.
11767         * wctype/Makefile: Likewise.
11768         * crypt/Makefile: Likewise.
11769         * libio/Makefile: Likewise.
11770         * string/Makefile: Likewise.
11771         * nis/Makefile: Likewise.
11772         * resolv/Makefile: Likewise.
11773         * stdio-common/Makefile: Likewise.
11774         * wcsmbs/Makefile: Likewise.
11775         * dlfcn/Makefile: Likewise.
11776         * posix/Makefile: Likewise.
11777
11778         [BZ #6959]
11779         * timezone/Makefile: Don't install timezone files, just the programs
11780         and scripts.
11781
11782 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11783
11784         * nss/databases.def: Add missing gshadow entry.
11785
11786         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11787
11788 2012-03-06  Marek Polacek  <polacek@redhat.com>
11789
11790         [BZ #13726]
11791         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11792         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11793         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11794         * stdio-common/tst-long-dbl-fphex.c: New file.
11795
11796 2012-03-06  David S. Miller  <davem@davemloft.net>
11797
11798         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11799         (set_obp_int): New function.
11800         (get_obp_int): New function.
11801         (__get_clockfreq_via_dev_openprom): Likewise.
11802         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11803         Avoid unused variable warnings on 'val' and use builtin_expect.
11804         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11805         __builtin_expect.
11806         (INLINE_CLONE_SYSCALL): Likewise.
11807
11808 2012-03-05  David S. Miller  <davem@davemloft.net>
11809
11810         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11811
11812 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11813
11814         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11815
11816         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11817         only for |x| >= 40.
11818         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11819
11820 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11821
11822         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11823         Replace gettimeofday with __vdso_gettimeofday.
11824
11825         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11826         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11827         __vdso_clock_gettime and __vdso_getcpu.
11828
11829         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11830         time with __vdso_time.
11831
11832 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11833
11834         * manual/lang.texi (size_t): Note types to which size_t may be
11835         equivalent with the GNU C Library, but do not describe when
11836         differences between them are significant.
11837
11838 2012-03-05  Andreas Jaeger  <aj@suse.de>
11839
11840         * sysdeps/i386/fpu/libm-test-ulps: Update.
11841
11842 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11843
11844         [BZ #3976]
11845         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11846         (__ieee754_pow): Save and restore rounding mode and use
11847         round-to-nearest for main computations.
11848         * math/libm-test.inc (pow_test_tonearest): New function.
11849         (pow_test_towardzero): Likewise.
11850         (pow_test_downward): Likewise.
11851         (pow_test_upward): Likewise.
11852         (main): Call the new functions.
11853         * sysdeps/i386/fpu/libm-test-ulps: Update.
11854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11855
11856         [BZ #3976]
11857         * math/libm-test.inc (cosh_test_tonearest): New function.
11858         (cosh_test_towardzero): Likewise.
11859         (cosh_test_downward): Likewise.
11860         (cosh_test_upward): Likewise.
11861         (sinh_test_tonearest): Likewise.
11862         (sinh_test_towardzero): Likewise.
11863         (sinh_test_downward): Likewise.
11864         (sinh_test_upward): Likewise.
11865         (main): Call the new functions.
11866         * sysdeps/i386/fpu/libm-test-ulps: Update.
11867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11868
11869 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11870
11871         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11872         default stack guard is set in last bytes.
11873         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11874
11875 2012-03-05  Kees Cook  <keescook@chromium.org>
11876
11877         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11878
11879         [BZ #13656]
11880         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11881         possibly allocate from heap instead of stack.
11882         * stdio-common/bug-vfprintf-nargs.c: New file.
11883         * stdio-common/Makefile (tests): Add nargs overflow test.
11884
11885 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11886
11887         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11888
11889 2012-03-03  Marek Polacek  <polacek@redhat.com>
11890
11891         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11892         * math/math_private.h: Likewise.
11893         * stdlib/tst-strtod.c: Likewise.
11894         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11895         * sysdeps/x86_64/bits/atomic.h: Likewise.
11896
11897 2012-03-02  David S. Miller  <davem@davemloft.net>
11898
11899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11901         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11902         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11903         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11904         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11905         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11906         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11907
11908 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11909
11910         [BZ #13792]
11911         * manual/examples/README: New file, says the example source files
11912         can be used under GPL>=2.
11913         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11914         line containing just "*/".
11915         * manual/examples/add.c: Add copyright header (GPL>=2).
11916         * manual/examples/argp-ex1.c: Likewise.
11917         * manual/examples/argp-ex2.c: Likewise.
11918         * manual/examples/argp-ex3.c: Likewise.
11919         * manual/examples/argp-ex4.c: Likewise.
11920         * manual/examples/atexit.c: Likewise.
11921         * manual/examples/db.c: Likewise.
11922         * manual/examples/dir.c: Likewise.
11923         * manual/examples/dir2.c: Likewise.
11924         * manual/examples/execinfo.c: Likewise.
11925         * manual/examples/filecli.c: Likewise.
11926         * manual/examples/filesrv.c: Likewise.
11927         * manual/examples/fmtmsgexpl.c: Likewise.
11928         * manual/examples/genpass.c: Likewise.
11929         * manual/examples/inetcli.c: Likewise.
11930         * manual/examples/inetsrv.c: Likewise.
11931         * manual/examples/isockad.c: Likewise.
11932         * manual/examples/longopt.c: Likewise.
11933         * manual/examples/memopen.c: Likewise.
11934         * manual/examples/memstrm.c: Likewise.
11935         * manual/examples/mkfsock.c: Likewise.
11936         * manual/examples/mkisock.c: Likewise.
11937         * manual/examples/mygetpass.c: Likewise.
11938         * manual/examples/pipe.c: Likewise.
11939         * manual/examples/popen.c: Likewise.
11940         * manual/examples/rprintf.c: Likewise.
11941         * manual/examples/search.c: Likewise.
11942         * manual/examples/select.c: Likewise.
11943         * manual/examples/setjmp.c: Likewise.
11944         * manual/examples/sigh1.c: Likewise.
11945         * manual/examples/sigusr.c: Likewise.
11946         * manual/examples/stpcpy.c: Likewise.
11947         * manual/examples/strdupa.c: Likewise.
11948         * manual/examples/strftim.c: Likewise.
11949         * manual/examples/strncat.c: Likewise.
11950         * manual/examples/subopt.c: Likewise.
11951         * manual/examples/swapcontext.c: Likewise.
11952         * manual/examples/termios.c: Likewise.
11953         * manual/examples/testopt.c: Likewise.
11954         * manual/examples/testpass.c: Likewise.
11955         * manual/examples/timeval_subtract.c: Likewise.
11956
11957         [BZ #13792]
11958         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11959         function to ...
11960         * manual/timeval_subtract.c.texi: ... here, new file.
11961
11962 2012-03-02  David S. Miller  <davem@davemloft.net>
11963
11964         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11965
11966 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11967
11968         [BZ #3976]
11969         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11970         (__sin): Save and restore rounding mode and use round-to-nearest
11971         for all computations.
11972         (__cos): Save and restore rounding mode and use round-to-nearest
11973         for all computations.
11974         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11975         <fenv.h>.
11976         (tan): Save and restore rounding mode and use round-to-nearest for
11977         all computations.
11978         * math/libm-test.inc (cos_test_tonearest): New function.
11979         (cos_test_towardzero): Likewise.
11980         (cos_test_downward): Likewise.
11981         (cos_test_upward): Likewise.
11982         (sin_test_tonearest): Likewise.
11983         (sin_test_towardzero): Likewise.
11984         (sin_test_downward): Likewise.
11985         (sin_test_upward): Likewise.
11986         (tan_test_tonearest): Likewise.
11987         (tan_test_towardzero): Likewise.
11988         (tan_test_downward): Likewise.
11989         (tan_test_upward): Likewise.
11990         (main): Call the new functions.
11991         * sysdeps/i386/fpu/libm-test-ulps: Update.
11992         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11993
11994         [BZ #10135]
11995         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11996         small n, then large n, before computing and testing k+n.
11997         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11998         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11999         Likewise.
12000         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12001         Likewise.
12002         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12003         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12004         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12005         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12006         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12007         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12008         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12009         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12010         * math/libm-test.inc (scalbn_test): Add more tests.
12011         (scalbln_test): Likewise.
12012
12013         * manual/filesys.texi (mode_t): Describe constraints on size and
12014         signedness, not exact equivalence to a particular type.
12015         (ino_t): Likewise.
12016         (ino64_t): Likewise.
12017         (dev_t): Likewise.
12018         (nlink_t): Likewise.
12019         (blkcnt_t): Likewise.
12020         (blkcnt64_t): Likewise.
12021         * manual/llio.texi (off_t): Likewise.
12022
12023         [BZ #3976]
12024         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12025         (__ieee754_exp): Save and restore rounding mode and use
12026         round-to-nearest for all computations.
12027         * math/libm-test.inc (exp_test_tonearest): New function.
12028         (exp_test_towardzero): Likewise.
12029         (exp_test_downward): Likewise.
12030         (exp_test_upward): Likewise.
12031         (main): Call the new functions.
12032         * sysdeps/i386/fpu/libm-test-ulps: Update.
12033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12034
12035 2012-03-01  Chris Demetriou  <cgd@google.com>
12036
12037         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12038         have predictable order.
12039
12040 2012-03-01  David S. Miller  <davem@davemloft.net>
12041
12042         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12043
12044         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12045         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12046         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12047         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12048
12049         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12050         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12051         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12053         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12054         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12055         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12056         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12057         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12058
12059         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12060
12061         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12062         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12063         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12064
12065         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12066         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12067         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12068         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12069         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12070         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12071         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12072         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12073         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12074         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12075         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12076         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12077         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12078         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12079         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12080         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12081         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12082         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12083         * sysdeps/sparc/elf/configure: Regenerated.
12084
12085 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12086
12087         * configure.in (AS, LD): Require binutils 2.20 or later.
12088         * configure: Regenerated.
12089         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12090         as required minimum version.
12091         * INSTALL: Regenerated.
12092
12093         [BZ #2541]
12094         [BZ #4108]
12095         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12096         before squaring exponent.
12097         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12098         bottom long double and 27 bits of top long double before squaring
12099         exponent.
12100         * math/libm-test.inc (erfc_test): Add more tests.
12101         * sysdeps/i386/fpu/libm-test-ulps: Update.
12102         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12104
12105 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12106
12107         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12108         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12109         containing bit-fields.
12110         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12111         * soft-fp/single.h (_FP_UNION_S): Likewise.
12112         * soft-fp/double.h (_FP_UNION_D): Likewise.
12113
12114 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12115
12116         [BZ #13786]
12117         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12118         not include ../strcmp.S.
12119         [USE_AS_STRNCASECMP_L]: Likewise.
12120         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12121         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12122         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12123         (__strncasecmp_l_ia32): Define as alias to
12124         __strncasecmp_l_nonascii.
12125
12126         [BZ #5794]
12127         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12128         * sysdeps/i386/fpu/libm-test-ulps: Update.
12129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12130
12131         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12133
12134 2012-02-29  Jeff Law  <law@redhat.com>
12135
12136         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12137         out of bounds read.
12138
12139 2012-02-29  Marek Polacek  <polacek@redhat.com>
12140
12141         [BZ #13706]
12142         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12143         * elf/Makefile: Add rules to run tst-unused-dep.out.
12144
12145 2012-02-28  David S. Miller  <davem@davemloft.net>
12146
12147         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12148         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12149         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12150         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12151         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12152         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12153
12154 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12155
12156         * math/libm-test.inc (llround_test): Move one test from
12157         lround_test.  Use TEST_f_L in moved test.
12158         (lround_test): Move misplaced test to llround_test.  Add testcase
12159         from bug 2561.
12160
12161 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12162
12163         * sysdeps/x86_64/fpu/e_expf.S: New file.
12164         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12165
12166 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12167
12168         [BZ #13637]
12169         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12170         of remain_len that may cause incomplete multi-byte character and
12171         false match.
12172         * posix/bug-regex33.c: New file.
12173         * posix/Makefile (tests): Add bug-regex33.
12174
12175 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12176
12177         * manual/macros.texi: New file.
12178         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12179         * manual/libc.texinfo: Include macros.texi.
12180         * manual/creatute.texi: Likewise.
12181         * manual/install.texi: Likewise.
12182         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12183         @glibcadj{} in references to the GNU C Library.
12184         * manual/charset.texi: Likewise.
12185         * manual/conf.texi: Likewise.
12186         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12187         when not using those macros.
12188         * manual/creature.texi: Likewise.
12189         * manual/crypt.texi: Likewise.
12190         * manual/errno.texi: Likewise.
12191         * manual/filesys.texi: Likewise.
12192         * manual/header.texi: Likewise.
12193         * manual/install.texi: Likewise.
12194         * manual/intro.texi: Likewise.
12195         * manual/io.texi: Likewise.
12196         * manual/job.texi: Likewise.
12197         * manual/lang.texi: Likewise.
12198         * manual/libc.texiinfo: Likewise.
12199         * manual/llio.texi: Likewise.
12200         * manual/locale.texi: Likewise.
12201         * manual/maint.texi: Likewise.
12202         * manual/math.texi: Likewise.
12203         * manual/memory.texi: Likewise.
12204         * manual/message.texi: Likewise.
12205         * manual/nss.texi: Likewise.
12206         * manual/pattern.texi: Likewise.
12207         * manual/process.texi: Likewise.
12208         * manual/resource.texi: Likewise.
12209         * manual/search.texi: Likewise.
12210         * manual/setjmp.texi: Likewise.
12211         * manual/signal.texi: Likewise.
12212         * manual/socket.texi: Likewise.
12213         * manual/startup.texi: Likewise.
12214         * manual/stdio.texi: Likewise.
12215         * manual/string.texi: Likewise.
12216         * manual/sysinfo.texi: Likewise.
12217         * manual/syslog.texi: Likewise.
12218         * manual/terminal.texi: Likewise.
12219         * manual/time.texi: Likewise.
12220         * manual/users.texi: Likewise.
12221         * INSTALL: Regenerated.
12222         * NOTES: Regenerated.
12223         * sysdeps/gnu/errlist.c: Regenerated.
12224
12225 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12226
12227         * include/dirent.h: Include <dirstream.h> before
12228         <dirent/dirent.h>.
12229
12230 2012-02-28  David S. Miller  <davem@davemloft.net>
12231
12232         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12233         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12234         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12235         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12236
12237 2012-02-27  David S. Miller  <davem@davemloft.net>
12238
12239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12241         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12242         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12243
12244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12245         frame pointer instead of stack pointer relative arg slot.
12246         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12247         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12248         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12249
12250 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12251
12252         [BZ #3992]
12253         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12254
12255 2012-02-27  David S. Miller  <davem@davemloft.net>
12256
12257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12258         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12261         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12262         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12263         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12264         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12265
12266 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12267
12268         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12269         later.  Allow versions 5-9.
12270         * configure: Regenerated.
12271         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12272         required minimum version and 4.6 as recommended version.  Do not
12273         mention bugs in GCC 2.7 and 2.8.
12274         * INSTALL: Regenerated.
12275
12276 2012-02-27  David S. Miller  <davem@davemloft.net>
12277
12278         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12282         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12283         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12284         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12285         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12286
12287         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12288         manipulate bits before adding and subtracting TWO112[sx].
12289         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12290
12291 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12292
12293         [BZ #13775]
12294         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12295         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12296         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12297         being in POSIX, because they are in 1003.1-2008.
12298
12299         * rt/tst-aio.c: Include <fcntl.h>.
12300         * rt/tst-aio7.c: Likewise.
12301         * rt/tst-aio64.c: Likewise.
12302
12303         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12304
12305 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12306
12307         * manual/install.texi (--with-headers): Describe headers as
12308         interface headers, not private headers.
12309         (Specific advice for GNU/Linux systems): Describe use of headers
12310         from "make headers_install", not private headers from older
12311         kernels.
12312         * INSTALL: Regenerated.
12313         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12314         Change to 2.6.19.
12315         * sysdeps/unix/sysv/linux/configure: Regenerated.
12316
12317         * manual/llio.texi (fclean): Remove documentation.
12318
12319         * manual/Makefile (libc-texi-generated): New variable.  Include
12320         version.texi.
12321         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12322         $(libc-texi-generated), not duplicated list of files.
12323         (version.texi, stamp-version): New rules.
12324         (realclean): Remove $(libc-texi-generated), not individual files
12325         from that list.  Do not remove dir-add.texinfo.
12326         * manual/libc.texinfo: Comment out uses of edition numbers and
12327         references to printed manual.  Remove last-updated dates.
12328         (EDITION): Comment out.
12329         (ISBN): Likewise.
12330         (VERSION, UPDATED): Remove.
12331         (version.texi): Include.
12332
12333 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12334
12335         * sysdeps/posix/spawni.c: Include <signal.h>.
12336         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12337         * sysdeps/pthread/aio_fsync.c: Likewise.
12338
12339 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12340
12341         * conform/Makefile (tests): Run only when not cross-compiling and
12342         when fast-check is not defined.
12343
12344         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12345         * conform/data/limits.h-data: Fixes for POSIX2008.
12346         * conform/run-conformtest.sh: Run all tests.
12347         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12348         headers.
12349         * include/bits/dlfcn.h: Likewise.
12350         * include/langinfo.h: Likewise.
12351         * include/monetary.h: Likewise.
12352         * include/sys/poll.h: Likewise.
12353
12354         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12355         for __USE_GNU.
12356         * posix/spawn.h: Define __need_sigset_t.
12357         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12358         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12359         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12360         to get sigevent_t only.
12361         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12362         only for __USE_GNU.
12363         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12364         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12365         process_vm_writev only for __USE_GNU.
12366         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12367
12368         * conform/Makefile: For now ignore errors from run-conformtest.
12369         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12370         POSIX to avoid namespace pollution.  Don't prepend headers.
12371         * conform/data/aio.h-data: Fixes for POSIX testing.
12372         * conform/data/fcntl.h-data: Likewise.
12373         * conform/data/glob.h-data: Likewise.
12374         * conform/data/grp.h-data: Likewise.
12375         * conform/data/pthread.h-data: Likewise.
12376         * conform/data/pwd.h-data: Likewise.
12377         * conform/data/signal.h-data: Likewise.
12378         * conform/data/spawn.h-data: Likewise.
12379         * conform/data/stdio.h-data: Likewise.
12380         * conform/data/stdlib.h-data: Likewise.
12381         * conform/data/stropts.h-data: Likewise.
12382         * conform/data/sys/mman.h-data: Likewise.
12383         * conform/data/sys/stat.h-data: Likewise.
12384         * conform/data/sys/types.h-data: Likewise.
12385         * conform/data/sys/wait.h-data: Likewise.
12386         * conform/data/time.h-data: Likewise.
12387         * conform/data/unistd.h-data: Likewise.
12388         * conform/data/utime.h-data: Likewise.
12389
12390         * io/sys/stat.h: fchmod was always in POSIX.
12391         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12392         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12393         * rt/aio.h: Define __need_timespec before including <time.h>.
12394         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12395         struct.  Add forward declaration of pthread_attr_t and use it in
12396         sigevent.
12397         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12398         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12399         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12400         always remove CLK_TCK definition.
12401
12402 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12403
12404         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12405
12406 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12407
12408         * conform/run-conformtest.sh: New file.
12409         * conform/Makefile: Run run-conformtest for tests.
12410         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12411         support.
12412
12413         * conform/data/uchar.h-data: New file.
12414         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12415         * conform/data/arpa/inet.h-data: Likewise.
12416         * conform/data/assert.h-data: Likewise.
12417         * conform/data/complex.h-data: Likewise.
12418         * conform/data/cpio.h-data: Likewise.
12419         * conform/data/ctype.h-data: Likewise.
12420         * conform/data/dirent.h-data: Likewise.
12421         * conform/data/dlfcn.h-data: Likewise.
12422         * conform/data/errno.h-data: Likewise.
12423         * conform/data/fcntl.h-data: Likewise.
12424         * conform/data/float.h-data: Likewise.
12425         * conform/data/fmtmsg.h-data: Likewise.
12426         * conform/data/fnmatch.h-data: Likewise.
12427         * conform/data/ftw.h-data: Likewise.
12428         * conform/data/glob.h-data: Likewise.
12429         * conform/data/grp.h-data: Likewise.
12430         * conform/data/iconv.h-data: Likewise.
12431         * conform/data/inttypes.h-data: Likewise.
12432         * conform/data/langinfo.h-data: Likewise.
12433         * conform/data/libgen.h-data: Likewise.
12434         * conform/data/limits.h-data: Likewise.
12435         * conform/data/locale.h-data: Likewise.
12436         * conform/data/math.h-data: Likewise.
12437         * conform/data/monetary.h-data: Likewise.
12438         * conform/data/mqueue.h-data: Likewise.
12439         * conform/data/ndbm.h-data: Likewise.
12440         * conform/data/net/if.h-data: Likewise.
12441         * conform/data/netdb.h-data: Likewise.
12442         * conform/data/netinet/in.h-data: Likewise.
12443         * conform/data/nl_types.h-data: Likewise.
12444         * conform/data/poll.h-data: Likewise.
12445         * conform/data/pthread.h-data: Likewise.
12446         * conform/data/pwd.h-data: Likewise.
12447         * conform/data/regex.h-data: Likewise.
12448         * conform/data/sched.h-data: Likewise.
12449         * conform/data/search.h-data: Likewise.
12450         * conform/data/semaphore.h-data: Likewise.
12451         * conform/data/setjmp.h-data: Likewise.
12452         * conform/data/signal.h-data: Likewise.
12453         * conform/data/spawn.h-data: Likewise.
12454         * conform/data/stdarg.h-data: Likewise.
12455         * conform/data/stdio.h-data: Likewise.
12456         * conform/data/stdlib.h-data: Likewise.
12457         * conform/data/string.h-data: Likewise.
12458         * conform/data/strings.h-data: Likewise.
12459         * conform/data/stropts.h-data: Likewise.
12460         * conform/data/sys/ipc.h-data: Likewise.
12461         * conform/data/sys/mman.h-data: Likewise.
12462         * conform/data/sys/msg.h-data: Likewise.
12463         * conform/data/sys/resource.h-data: Likewise.
12464         * conform/data/sys/select.h-data: Likewise.
12465         * conform/data/sys/sem.h-data: Likewise.
12466         * conform/data/sys/shm.h-data: Likewise.
12467         * conform/data/sys/socket.h-data: Likewise.
12468         * conform/data/sys/stat.h-data: Likewise.
12469         * conform/data/sys/statvfs.h-data: Likewise.
12470         * conform/data/sys/time.h-data: Likewise.
12471         * conform/data/sys/timeb.h-data: Likewise.
12472         * conform/data/sys/times.h-data: Likewise.
12473         * conform/data/sys/types.h-data: Likewise.
12474         * conform/data/sys/uio.h-data: Likewise.
12475         * conform/data/sys/un.h-data: Likewise.
12476         * conform/data/sys/utsname.h-data: Likewise.
12477         * conform/data/sys/wait.h-data: Likewise.
12478         * conform/data/syslog.h-data: Likewise.
12479         * conform/data/tar.h-data: Likewise.
12480         * conform/data/termios.h-data: Likewise.
12481         * conform/data/utime.h-data: Likewise.
12482         * conform/data/utmpx.h-data: Likewise.
12483         * conform/data/varargs.h-data: Likewise.
12484         * conform/data/wchar.h-data: Likewise.
12485         * conform/data/wctype.h-data: Likewise.
12486         * conform/data/wordexp.h-data: Likewise.
12487
12488         * include/stropts.h: New file.
12489         * include/uchar.h: New file.
12490         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12491         * include/assert.h: Likewise.
12492         * include/ctype.h: Likewise.
12493         * include/dirent.h: Likewise.
12494         * include/dlfcn.h: Likewise.
12495         * include/fcntl.h: Likewise.
12496         * include/fnmatch.h: Likewise.
12497         * include/glob.h: Likewise.
12498         * include/grp.h: Likewise.
12499         * include/libio.h: Likewise.
12500         * include/locale.h: Likewise.
12501         * include/math.h: Likewise.
12502         * include/net/if.h: Likewise.
12503         * include/netdb.h: Likewise.
12504         * include/netinet/in.h: Likewise.
12505         * include/pthread.h: Likewise.
12506         * include/pwd.h: Likewise.
12507         * include/regex.h: Likewise.
12508         * include/sched.h: Likewise.
12509         * include/search.h: Likewise.
12510         * include/setjmp.h: Likewise.
12511         * include/signal.h: Likewise.
12512         * include/stdio.h: Likewise.
12513         * include/stdlib.h: Likewise.
12514         * include/string.h: Likewise.
12515         * include/sys/cdefs.h: Likewise.
12516         * include/sys/mman.h: Likewise.
12517         * include/sys/msg.h: Likewise.
12518         * include/sys/resource.h: Likewise.
12519         * include/sys/select.h: Likewise.
12520         * include/sys/socket.h: Likewise.
12521         * include/sys/stat.h: Likewise.
12522         * include/sys/statvfs.h: Likewise.
12523         * include/sys/time.h: Likewise.
12524         * include/sys/times.h: Likewise.
12525         * include/sys/uio.h: Likewise.
12526         * include/sys/utsname.h: Likewise.
12527         * include/sys/wait.h: Likewise.
12528         * include/termios.h: Likewise.
12529         * include/time.h: Likewise.
12530         * include/ulimit.h: Likewise.
12531         * include/unistd.h: Likewise.
12532         * include/utime.h: Likewise.
12533         * include/wchar.h: Likewise.
12534         * include/wctype.h: Likewise.
12535         * include/wordexp.h: Likewise.
12536
12537         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12538
12539         * time/time.h: TIME_UTC must be a macro.
12540         Make timespec_get available for ISO C11 only as well.
12541
12542 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12543
12544         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12545         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12546
12547 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12548
12549         * configure.in: Use -o not -a in test for unsupported multi-arch.
12550
12551 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12552
12553         * manual/texinfo.tex: Update to version 2012-01-19.16.
12554
12555 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12556
12557         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12558
12559 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12560
12561         [BZ #13738]
12562         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12563         * manual/fdl-1.3.texi: New file.
12564         * manual/fdl-1.1.texi: File removed.
12565
12566         [BZ #13738]
12567         * manual/libc.texinfo (FDL_VERSION): New @set.
12568         Use it for mention of FDL in cover text.
12569         (Documentation License): Use it in @include file name.
12570
12571 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12572             Roland McGrath  <roland@hack.frob.com>
12573
12574         [BZ #5461]
12575         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12576         not LONG_LONG_MAX and LONG_LONG_MIN.
12577         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12578         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12579         name.
12580         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12581
12582 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12583
12584         [BZ #2547]
12585         [BZ #11365]
12586         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12587         manipulate bits before adding and subtracting TWO23[sx].
12588         * math/libm-test.inc (nearbyint_test): Add more tests.
12589
12590 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12591
12592         [BZ #2548]
12593         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12594         bits before adding and subtracting TWO23[sx].
12595         * math/libm-test.inc (rint_test): Add more tests.
12596         (rint_test_tonearest): Likewise.
12597         (rint_test_towardzero): Likewise.
12598         (rint_test_downward): Likewise.
12599         (rint_test_upward: Likewise.
12600
12601 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12602
12603         [BZ #10110]
12604         * include/stdc-predef.h: New file.  Extracted from features.h.
12605         * include/features.h: Include stdc-predef.h.
12606         * Makefile (headers): Add stdc-predef.h.
12607         * CONFORMANCE (Compiler limitations): Update.
12608
12609 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12612
12613 2012-02-21  David S. Miller  <davem@davemloft.net>
12614
12615         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12616         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12617
12618 2012-02-20  David S. Miller  <davem@davemloft.net>
12619
12620         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12621         using a normal save/restore sequence, rather than allocating a
12622         dummy stack frame just to store a frame pointer and restore.
12623         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12624
12625 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12626
12627         * manual/install.texi: Fix stray word in line-wrapped comment.
12628
12629 2012-02-20  David S. Miller  <davem@davemloft.net>
12630
12631         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12632         both binutils and gcc support GOTDATA.
12633
12634         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12635         "rd %pc" in the PIC register setup sequences.
12636
12637         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12638         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12639         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12640         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12641         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12642         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12643         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12644         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12645         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12646         (SYSCALL_ERROR_HANDLER): Likewise.
12647         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12648         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12649         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12650         (SYSCALL_ERROR_HANDLER): Likewise.
12651
12652         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12653         (HAVE_GCC_GOTDATA): New.
12654         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12655         relocation support in both binutils and gcc.
12656         * sysdeps/sparc/elf/configure: Regenerate.
12657
12658         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12659         * sysdeps/sparc/sparc32/elf/configure: Delete.
12660         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12661         * sysdeps/sparc/sparc64/elf/configure: Delete.
12662         * sysdeps/sparc/elf/configure.in: New file.
12663         * sysdeps/sparc/elf/configure: Generate.
12664
12665         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12666         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12667         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12668         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12669         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12670
12671 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12672
12673         * manual/install.texi: Do not mention specific glibc version
12674         numbers.
12675         * manual/libc.texinfo (VERSION, UPDATED): Update.
12676         (@copying): Use @copyright{} and range of years.
12677
12678 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12679
12680         [BZ #13695]
12681         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12682         [crti.S not in sysdirs] (generated): Do not append.
12683         [crti.S not in sysdirs] (omit-deps): Likewise.
12684         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12685         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12686         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12687         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12688         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12689         Likewise.
12690         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12691         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12692         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12693         * csu/defs.awk: Remove file.
12694         * sysdeps/generic/initfini.c: Likewise.
12695         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12696         variable.
12697         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12698         Likewise.
12699
12700 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12701
12702         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12703         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12704         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12705         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12706         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12707         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12708         <bits/epoll.h>.
12709         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12710         (__EPOLL_PACKED): Define to empty if not defined by
12711         <bits/epoll.h>.
12712         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12713         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12714         bits/epoll.h.
12715
12716 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12717
12718         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12719         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12720         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12721         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12722         <bits/timerfd.h>.
12723         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12724         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12725         bits/timerfd.h.
12726
12727 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12728
12729         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12730         in C locale.
12731         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12732         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12733         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12735
12736 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12737
12738         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12739         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12740
12741 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12742
12743         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12744         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12745         defined.
12746         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12747         Likewise.
12748         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12749         entry for 2.16.
12750
12751 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12752
12753         * math/w_acos.c: Use non-signaling floating-point comparisons.
12754         * math/w_acosf.c: Likewise.
12755         * math/w_acosh.c: Likewise.
12756         * math/w_acoshf.c: Likewise.
12757         * math/w_acoshl.c: Likewise.
12758         * math/w_acosl.c: Likewise.
12759         * math/w_asin.c: Likewise.
12760         * math/w_asinf.c: Likewise.
12761         * math/w_asinl.c: Likewise.
12762         * math/w_atanh.c: Likewise.
12763         * math/w_atanhf.c: Likewise.
12764         * math/w_atanhl.c: Likewise.
12765         * math/w_exp2.c: Likewise.
12766         * math/w_exp2f.c: Likewise.
12767         * math/w_exp2l.c: Likewise.
12768         * math/w_j0.c: Likewise.
12769         * math/w_j0f.c: Likewise.
12770         * math/w_j0l.c: Likewise.
12771         * math/w_j1.c: Likewise.
12772         * math/w_j1f.c: Likewise.
12773         * math/w_j1l.c: Likewise.
12774         * math/w_jn.c: Likewise.
12775         * math/w_jnf.c: Likewise.
12776         * math/w_log.c: Likewise.
12777         * math/w_log10.c: Likewise.
12778         * math/w_log10f.c: Likewise.
12779         * math/w_log10l.c: Likewise.
12780         * math/w_log2.c: Likewise.
12781         * math/w_log2f.c: Likewise.
12782         * math/w_log2l.c: Likewise.
12783         * math/w_logf.c: Likewise.
12784         * math/w_logl.c: Likewise.
12785         * math/w_sqrt.c: Likewise.
12786         * math/w_sqrtf.c: Likewise.
12787         * math/w_sqrtl.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12790         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12791         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12792         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12793
12794 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12795
12796         [BZ #9739]
12797         * manual/string.texi (strnlen): Use correct parameter name in
12798         equivalent expression.
12799
12800 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12801
12802         [BZ #11174]
12803         * manual/users.texi (seteuid): Consistently use neweuid for
12804         argument name.
12805
12806 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12807
12808         [BZ #13704]
12809         * manual/nss.texi (Services in the NSS configuration): Correct
12810         list of services in example configuration file.
12811
12812 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12813
12814         [BZ #11322]
12815         * manual/arith.texi: Remove statements about negative zero
12816         behaving identically to zero.
12817
12818 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12819
12820         [BZ #5993]
12821         * manual/install.texi: Do not document upgrading from libc5.
12822
12823 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12824
12825         [BZ #4596]
12826         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12827
12828 2012-02-18  David S. Miller  <davem@davemloft.net>
12829
12830         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12831         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12832         %o7 across the call.
12833         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12834         instead.
12835         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12836         SETUP_PIC_REG_LEAF.
12837         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12838         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12839         * sysdeps/sparc/crtn.S: Likewise.
12840
12841 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12842
12843         * aout/Makefile: Remove.
12844
12845 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12846
12847         [BZ #13058]
12848         * manual/examples/argp-ex1.c (main): Format definition in GNU
12849         style.
12850         * manual/examples/argp-ex2.c (main): Likewise.
12851         * manual/examples/argp-ex3.c (main): Likewise.
12852         * manual/examples/argp-ex4.c (main): Likewise.
12853         * manual/examples/longopt.c (main): Use new-style prototype
12854         definition.
12855         * manual/examples/strncat.c (main): Specify return type and use
12856         (void) for arguments.
12857         * manual/examples/subopt.c (main): Use char **argv argument.
12858
12859 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12860
12861         [BZ #5077]
12862         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12863         rounding modes.
12864
12865 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12866
12867         [BZ #6907]
12868         * manual/string.texi (strchr): Change when strchrnul is
12869         recommended.
12870
12871 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12872
12873         [BZ #174]
12874         * manual/locale.texi (setlocale): Document LOCPATH.
12875
12876 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12877
12878         [BZ #10210]
12879         * manual/process.texi (execle): Move @dots{} before last argument.
12880
12881 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12882
12883         [BZ #12047]
12884         * manual/charset.texi (Generic Charset Conversion): Fix typo
12885         (LC_TYPE -> LC_CTYPE).
12886
12887 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12888
12889         [BZ #5805]
12890         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12891         (scalbnf): Likewise.
12892         (scalbnl): Likewise.
12893         (scalbln): Likewise.
12894         (scalblnf): Likewise.
12895         (scalblnl): Likewise.
12896         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12897         (vwarnx): Likewise.
12898         (verr): Likewise.
12899         (verrx): Likewise.
12900         * manual/filesys.texi (telldir): Use braces around return type.
12901         * manual/llio.texi (mmap): Add space after comma.
12902         (mmap64): Likewise.
12903         * manual/math.texi (jn): Use @var{} on parameter names.
12904         (jnf): Likewise.
12905         (jnl): Likewise.
12906         (yn): Likewise.
12907         (ynf): Likewise.
12908         (ynl): Likewise.
12909         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12910         line.
12911         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12912         "...".
12913         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12914         (sched_get_priority_max): Likewise.
12915         * manual/signal.texi (sigvec): Add space after comma.
12916         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12917         names.
12918         (if_indextoname): Likewise.
12919         (if_freenameindex): Likewise.
12920         (sendto): Use ',' instead of '.' in prototype.
12921         * manual/startup.texi (syscall): Use @dots{} instead of literal
12922         "...".
12923         * manual/stdio.texi (__fpending): Separate initial words of
12924         paragraph from @deftypefun line.
12925         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12926         "...".
12927         (vsyslog): Use @var{} on parameter names.
12928         * manual/terminal.texi (stty): Use @var{} on parameter names.
12929         * manual/users.texi (getutmp): Use @var{} on parameter names.
12930         (getutmpx): Likewise.
12931
12932 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12933
12934         [BZ #6884]
12935         * manual/stdio.texi (fopen): Fix typos in description of
12936         ",ccs=STRING".
12937
12938 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12939
12940         [BZ #4026]
12941         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12942         get clock_id definition.
12943
12944 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12945
12946         [BZ #4822]
12947         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12948         (madvise): Cast every argument to void on its own.
12949
12950 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12951
12952         [BZ #9902]
12953         * manual/startup.texi (Exit Status): Fix typo.
12954
12955 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12956
12957         [BZ #10140]
12958         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12959         * manual/examples/argp-ex2.c: Likewise.
12960         * manual/examples/argp-ex3.c: Likewise.
12961
12962 2012-02-16  Richard Henderson  <rth@redhat.com>
12963
12964         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12965         * sysdeps/s390/s390-32/initfini.c: Remove.
12966         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12967         * sysdeps/s390/s390-64/initfini.c: Remove.
12968
12969 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12970
12971         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12972         compiler output for sysdeps/generic/initfini.c.
12973         * sysdeps/sh/elf/initfini.c: Remove file.
12974
12975 2012-02-16  David S. Miller  <davem@davemloft.net>
12976
12977         [BZ #11494]
12978         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12979
12980         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12981         * sysdeps/sparc/crti.S: New file.
12982         * sysdeps/sparc/crtn.S: New file.
12983         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12984         * sysdeps/sparc/sparc64/Makefile: Likewise.
12985
12986 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12987
12988         [BZ #3335]
12989         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12990
12991 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12992
12993         [BZ #4822]
12994         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12995
12996         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12997         (write, read, close): Likewise.
12998         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12999
13000 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13001
13002         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13003         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13004         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13005         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13006         <bits/signalfd.h>.
13007         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13008         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13009         bits/signalfd.h.
13010
13011 2012-02-14  Marek Polacek  <polacek@redhat.com>
13012
13013         * sysdeps/x86_64/crti.S: New file.
13014         * sysdeps/x86_64/crtn.S: New file.
13015         * sysdeps/x86_64/elf/initfini.c: Remove file.
13016
13017 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13018
13019         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13020         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13021         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13022         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13023         <bits/inotify.h>.
13024         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13025         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13026         bits/inotify.h.
13027
13028 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13029
13030         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13031         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13032         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13033         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13034         <bits/eventfd.h>.
13035         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13036         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13037         bits/eventfd.h.
13038
13039 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13040
13041         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13042         __feraiseexcept instead of feraiseexcept.
13043
13044         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13045         nanosleep invocations.
13046         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13047         strings, and add error checking for a nanosleep invocations.
13048
13049 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13050
13051         Replace FSF snail mail address with URLs, as per GNU coding standards.
13052         Most of the snail mail addresses were wrong anyway, and omitting
13053         them makes the source code easier to maintain.  Almost all of the
13054         changes are to license notices and to locale LC_IDENTIFICATION
13055         addresses, except for this one:
13056         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13057         not its snail mail address.
13058
13059 2012-02-09  Richard Henderson  <rth@twiddle.net>
13060
13061         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13062         of kernel-features.h.
13063
13064         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13065
13066 2012-02-08  Marek Polacek  <polacek@redhat.com>
13067
13068         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13069         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13070         * sysdeps/gnu/_G_config.h: Likewise.
13071         * sysdeps/generic/_G_config.h: Likewise.
13072
13073 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13074
13075         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13076         tests.
13077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13078
13079         * sysdeps/powerpc/powerpc32/crti.S: New file.
13080         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13081         * sysdeps/powerpc/powerpc64/crti.S: New file.
13082         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13083
13084         * Makeconfig (have-initfini): Don't set.
13085         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13086         * configure.in (nopic_initfini): Don't substitute.
13087         * config.h.in (HAVE_INITFINI): Don't #undef.
13088         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13089         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13090
13091 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13092
13093         Support crti.S and crtn.S provided directly by architectures.
13094         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13095         [crti.S in sysdirs] (omit-deps): Likewise.
13096         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13097         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13098         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13099         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13100         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13101         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13102         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13103         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13104         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13105         compiler output for sysdeps/generic/initfini.c.
13106         * sysdeps/i386/elf/Makefile: Remove file.
13107         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13108
13109 2012-02-07  Marek Polacek  <polacek@redhat.com>
13110
13111         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13112         * sysdeps/gnu/_G_config.h: Likewise.
13113         * sysdeps/mach/hurd/_G_config.h: Likewise.
13114
13115 2012-02-07  Marek Polacek  <polacek@redhat.com>
13116
13117         * math/Makefile (tests): Add tst-CMPLX2.
13118         * math/tst-CMPLX2.c: New file.
13119
13120 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13121
13122         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13123
13124         * math/libm-test.inc (jn_test): Add missing L suffix.
13125
13126 2012-02-06  Marek Polacek  <polacek@redhat.com>
13127
13128         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13129         * sysdeps/i386/fpu/e_powf.S: Likewise.
13130         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13131         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13132         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13133         * sysdeps/i386/fpu/e_pow.S: Likewise.
13134         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13135         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13136         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13137         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13138         * sysdeps/i386/fpu/e_log2.S: Likewise.
13139         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13140         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13141         * sysdeps/i386/fpu/e_powl.S: Likewise.
13142         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13143         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13144         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13145         * sysdeps/i386/fpu/e_logl.S: Likewise.
13146         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13147         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13148         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13149         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13150         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13151         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13152         * sysdeps/i386/fpu/e_log.S: Likewise.
13153         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13154         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13155         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13156         * sysdeps/i386/fpu/e_logf.S: Likewise.
13157         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13158         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13159         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13160         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13161         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13162         * sysdeps/i386/fpu/e_log10.S: Likewise.
13163         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13164         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13165         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13166         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13167         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13168         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13169         * sysdeps/i386/asm-syntax.h: Likewise.
13170         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13171         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13172         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13173         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13174         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13175         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13176         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13177         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13178         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13179         * sysdeps/powerpc/sysdep.h: Likewise.
13180         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13181         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13182
13183 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13184
13185         [BZ #411]
13186         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13187
13188 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13189
13190         * sysdeps/i386/sysdep.h: Include <features.h>.
13191         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13192         version.
13193
13194 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13195
13196         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13197         Define.
13198         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13199         LOAD_PIC_REG_STR.
13200
13201 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13202
13203         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13204         (SETUP_PIC_REG): Use GET_PC_THUNK.
13205         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13206         macro.
13207
13208 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13209
13210         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13211         for non-PIC compilation.
13212         (SETUP_PIC_REG): Add .p2align directive.
13213         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13214         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13215         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13216         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13217         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13218         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13219         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13220         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13221         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13222         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13223         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13229         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13230         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13231         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13232         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13233         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13234         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13235         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13236         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13237         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13241         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13242         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13243         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13244         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13245         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13246         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13247         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13248         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13249         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13250         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13251         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13252         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13253         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13254
13255 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13256
13257         * math/tst-CMPLX.c: Include <stdio.h>.
13258
13259 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13260
13261         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13262         float.
13263         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13264         * sysdeps/sparc/bits/mathdef.h: Likewise.
13265
13266 2012-01-31  Marek Polacek  <polacek@redhat.com>
13267
13268         * libio/libio.h: Don't define _PARAMS.
13269         * locale/programs/config.h: Don't define PARAMS.
13270         * stdlib/strtol_l.c: Likewise.
13271         (__strtol_l): Remove PARAMS from the prototype.
13272
13273 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13274
13275         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13276         names.  Just use the correct names.  Remove unnecessary wrapper
13277         functions.
13278         * malloc/arena.c: Likewise.
13279         * malloc/hooks.c: Likewise.
13280
13281         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13282         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13283         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13284
13285 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13286
13287         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13288         into tail calls.
13289         (update_get_addr): New function.
13290         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13291         GET_ADDR_MODULE parameter.
13292
13293 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13294
13295         * crypt/cert.c: Remove __STDC__ conditionals.
13296         * crypt/crypt-entry.c: Likewise.
13297         * crypt/crypt_util.c: Likewise.
13298         * libio/filedoalloc.c: Likewise.
13299         * libio/fileops.c: Likewise.
13300         * libio/genops.c: Likewise.
13301         * libio/iofclose.c: Likewise.
13302         * libio/iofdopen.c: Likewise.
13303         * libio/iofopen.c: Likewise.
13304         * libio/iofopen64.c: Likewise.
13305         * libio/iogetdelim.c: Likewise.
13306         * libio/iopopen.c: Likewise.
13307         * libio/obprintf.c: Likewise.
13308         * libio/oldfileops.c: Likewise.
13309         * libio/oldiofclose.c: Likewise.
13310         * libio/oldiofdopen.c: Likewise.
13311         * libio/oldiofopen.c: Likewise.
13312         * libio/oldiopopen.c: Likewise.
13313         * libio/wfiledoalloc.c: Likewise.
13314         * libio/wgenops.c: Likewise.
13315         * locale/programs/xmalloc.c: Likewise.
13316         * misc/syslog.c: Likewise.
13317         * stdio-common/xbug.c: Likewise.
13318         * string/memchr.c: Likewise.
13319         * string/memcmp.c: Likewise.
13320         * string/memrchr.c: Likewise.
13321         * string/rawmemchr.c: Likewise.
13322         * sysdeps/posix/getcwd.c: Likewise.
13323         * time/strftime_l.c: Likewise.
13324
13325 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13326
13327         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13328         * config.make.in (config-cflags-sse2avx): Define.
13329         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13330         Fix typo.
13331
13332 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13333
13334         * scripts/config.guess: Update from upstream config git repository.
13335         * scripts/config.sub: Likewise.
13336
13337 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13338
13339         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13340         (EM_NUM): Update.
13341         (R_TILEPRO_*, R_TILEGX_*): New macros.
13342
13343         * scripts/firstversions.awk: Fix bug in version range handling.
13344
13345         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13346
13347         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13348
13349         * include/sys/epoll.h: New file.
13350         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13351         libc_hidden_def.
13352
13353 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13354
13355         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13356         Avoid unnecessary __WORDSIZE == 64 test.
13357         (fmaxf): Use VEX format if possible.
13358         (fmax): Likewise.
13359         (fminf): Likewise.
13360         (fmin): Likewise.
13361
13362         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13363         * math/math_private.h: Remove libc_fegetround* and
13364         libc_fesetround*.
13365         * sysdeps/i386/configure.in: Check for -msse2avx.
13366         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13367         also if SSE2AVX is defined.
13368         Remove libc_fegetround* and libc_fesetround*.
13369         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13370         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13371         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13372         of HAS_YMM_USABLE.
13373         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13374         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13375         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13376         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13377         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13378
13379         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13380
13381 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13382
13383         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13384         size is not set.
13385         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13386
13387 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13388
13389         [BZ #13618]
13390         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13391         relocation.
13392         * Makeconfig (libm): Define.
13393         * elf/Makefile: Add rules to build and run tst-relsort1.
13394         * elf/tst-relsort1.c: New file.
13395         * elf/tst-relsort1mod1.c: New file.
13396         * elf/tst-relsort1mod2.c: New file.
13397
13398 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13399
13400         * math/s_ldexp.c: Remove __STDC__ conditionals.
13401         * math/s_ldexpf.c: Likewise.
13402         * math/s_ldexpl.c: Likewise.
13403         * math/s_nextafter.c: Likewise.
13404         * math/s_nexttowardf.c: Likewise.
13405         * math/s_significand.c: Likewise.
13406         * math/s_significandf.c: Likewise.
13407         * math/s_significandl.c: Likewise.
13408         * math/w_jnl.c: Likewise.
13409         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13410         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13411         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13412         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13413         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13414         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13415         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13416         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13417         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13418         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13419         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13420         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13421         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13422         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13423         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13427         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13428         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13429         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13430         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13431         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13432         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13433         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13434         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13435         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13436         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13437         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13438         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13439         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13440         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13441         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13442         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13443         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13444         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13445         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13446         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13447         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13448         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13449         * sysdeps/ieee754/k_standard.c: Likewise.
13450         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13451         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13452         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13453         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13454         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13455         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13456         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13457         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13458         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13459         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13460         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13461         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13462         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13463         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13464         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13465         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13466         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13467         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13468         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13469         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13470         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13471         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13472         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13473         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13474         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13477         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13478         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13479         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13480         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13481         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13482         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13483         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13484         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13485         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13486         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13490         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13491         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13492         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13494         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13495         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13498         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13499         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13500         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13504         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13505         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13506         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13507         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13508         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13511         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13512         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13516         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13517         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13521         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13522         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13524         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13525         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13527         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13529         * sysdeps/ieee754/s_matherr.c: Likewise.
13530         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13531         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13532         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13533         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13534
13535 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13536
13537         * crypt/md5.h: Remove __STDC__ conditionals.
13538         * libio/libioP.h: Likewise.
13539         * locale/programs/config.h: Likewise.
13540         * sysdeps/generic/sysdep.h: Likewise.
13541         * sysdeps/i386/asm-syntax.h: Likewise.
13542         * sysdeps/s390/asm-syntax.h: Likewise.
13543         * sysdeps/unix/sysdep.h: Likewise.
13544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13546
13547 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13548
13549         * libio/libio.h: Remove __STDC__ conditionals.
13550         * malloc/obstack.h: Likewise.
13551         * math/complex.h: Likewise.
13552         * math/math.h: Likewise.
13553         * sysdeps/generic/_G_config.h: Likewise.
13554         * sysdeps/gnu/_G_config.h: Likewise.
13555         * sysdeps/mach/hurd/_G_config.h: Likewise.
13556         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13557         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13558         * sysdeps/sparc/bits/mathdef.h: Likewise.
13559
13560 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13561
13562         [BZ #13583]
13563         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13564         Clean up HAS_* macros.
13565         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13566         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13567         possible.
13568         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13569         HAS_AVX.
13570         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13571         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13572         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13573         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13574         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13575
13576 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13577
13578         * elf/tst-unique3.cc (gets): Remove declaration.
13579         * elf/tst-unique3lib.cc (gets): Likewise.
13580         * elf/tst-unique3lib2.cc (gets): Likewise.
13581         * elf/tst-unique4.cc (gets): Likewise.
13582
13583 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13584
13585         * include/stdio.h: Add C++ protection.  Add gets declarations and
13586         definitions.
13587         * debug/tst-chk1.c: Don't declare gets here.
13588         * stdio-common/tst-gets.c: Likewise.
13589
13590 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13591
13592         * posix/glob: Remove directory.
13593
13594 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13595
13596         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13597
13598 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13599
13600         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13601         of the non-standard EPFNOSUPPORT.
13602
13603 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13604
13605         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13606         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13607         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13608
13609 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13610
13611         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13612
13613 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13614
13615         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13616         transient errors.
13617         * nscd/grpcache.c (cache_addgr): Likewise.
13618         * nscd/hstcache.c (cache_addhst): Likewise.
13619         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13620         * nscd/pwdcache.c (cache_addpw): Likewise.
13621         * nscd/servicescache.c (cache_addserv): Likewise.
13622
13623 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13624
13625         * malloc/malloc.c: Various cleanups.
13626         * malloc/hooks.c: Likewise.
13627
13628         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13629         * stdlib/bug-fmtmsg1.c: New file.
13630
13631         * stdlib/fmtmsg.c (init): Add missing unlock.
13632         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13633
13634 2012-01-12  Marek Polacek  <polacek@redhat.com>
13635
13636         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13637         and _GNU_SOURCE.
13638
13639 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13640
13641         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13642         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13643         macro to ensure uniqueness of label name.
13644         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13645         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13646
13647 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13648
13649         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13650
13651         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13652         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13653         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13654         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13655
13656 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13657
13658         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13659
13660         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13661         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13662         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13663
13664         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13665
13666         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13667         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13668         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13669         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13670
13671         * math/bits/math-finite.h: Add ldexp support.
13672
13673 2012-01-10  Marek Polacek  <polacek@redhat.com>
13674
13675         * locale/programs/localedef.h (show_archive_content): Add noreturn
13676         attribute.
13677
13678 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13679
13680         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13681
13682 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13683
13684         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13685
13686         * io/Makefile (headers): Add bits/poll2.h.
13687
13688 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13689
13690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13691         typo #include statement.
13692
13693 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13694
13695         * include/sys/cdefs.h: Define __attribute_alloc_size.
13696         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13697         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13698         * elf/pldd.c: Likewise.
13699         * iconv/iconv_charmap.c: Likewise.
13700         * iconv/iconvconfig.c: Likewise.
13701         * iconv/strtab.c: Likewise.
13702         * locale/programs/locale.c: Likewise.
13703         * locale/programs/localedef.h: Likewise.
13704         * locale/programs/simple-hash.c: Likewise.
13705         * nscd/nscd.h: Likewise.
13706         * nss/makedb.c: Likewise.
13707         * sysdeps/generic/ldconfig.h: Likewise.
13708         * locale/programs/localedef.c: Remove xmalloc prototype.
13709         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13710
13711 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13712
13713         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13714         appropriate.
13715
13716 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13717
13718         * math/Makefile (tests): Add tst-CMPLX.
13719         * math/tst-CMPLX.c: New file.
13720
13721         * math/complex.h (CMPLXL): Fix typo.
13722
13723         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13724         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13725         GLIBC_2.16.
13726         * debug/tst-chk1.c: Add poll and ppoll tests.
13727         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13728         * include/sys/poll.h: Add hidden proto for ppoll.
13729         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13730         * sysdeps/mach/hurd/ppoll.c: Likewise.
13731         * io/ppoll.c: Likewise.
13732         * debug/poll_chk.c: New file.
13733         * debug/ppoll_chk.c: New file.
13734         * include/bits/poll2.h: New file.
13735         * io/bits/poll2.h: New file.
13736
13737         [BZ #1350]
13738         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13739
13740         * configure.in: static is always set to yes.  Remove.
13741         * config.make.in: Don't set build-static.
13742         * Makeconfig: Remove use of build-static.
13743         * dlfcn/Makefile: Likewise.
13744         * elf/Makefile: Likewise.
13745         * math/Makefile: Likewise.
13746         * misc/Makefile: Likewise.
13747         * nptl/Makefile: Likewise.
13748         * sysdeps/mach/hurd/Makefile: Likewise.
13749
13750         * configure.in: PWD_P is not used anymore.
13751         * config.make.in: Remove PWD_P entry.
13752
13753         * configure.in: Remove last remnants of RANLIB.
13754         No need to check for signed size_t anymore.
13755         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13756         and IA-64.
13757         Remove __builtin_expect test because we require at least gcc 3.4.
13758         * aclocal.m4: Likewise.
13759
13760         * wcsmbs/mbrtoc16.c: Implement using towc function.
13761         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13762         * wcsmbs/wcsmbsload.c: Likewise.
13763         * iconv/gconv_simple.c: Likewise.
13764         * iconv/gconv_int.h: Likewise.
13765         * iconv/gconv_builtin.h: Likewise.
13766         * iconv/iconv_prog.c: Remove CHAR16 handling.
13767
13768         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13769
13770         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13771
13772         * configure.in: Remove --with-elf and --enable-bounded options.
13773         Dont set base_machine for ia64.  More non-ELF conditions removed.
13774         Remove testing and setting of leading underscore information.
13775         * config.make.in (build-bounded): Set to no.
13776         * config.h.in: Remove NO_UNDERSCORES entry.
13777         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13778         them.
13779         * csu/start.c: Remove !NO_UNDERSCORE code.
13780         * locale/localeinfo.h: Likewise.
13781         * sysdeps/generic/machine-gmon.h: Likewise.
13782         * sysdeps/generic/sysdep.h: Likewise.
13783         * sysdeps/i386/sysdep.h: Likewise.
13784         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13785         * sysdeps/mach/sysdep.h: Likewise.
13786         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13787         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13788         * sysdeps/sh/sysdep.h: Likewise.
13789         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13790         * sysdeps/unix/i386/sysdep.S: Likewise.
13791         * sysdeps/unix/sparc/start.c: Likewise.
13792         * sysdeps/unix/sparc/sysdep.S: Likewise.
13793         * sysdeps/unix/sparc/sysdep.h: Likewise.
13794         * sysdeps/unix/start.c: Likewise.
13795         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13796         * sysdeps/x86_64/sysdep.h: Likewise.
13797
13798 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13799
13800         [BZ #13553]
13801         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13802         for non-gcc.
13803         * argp/argp-fmtstream.h: Use const instead __const.
13804         * argp/argp.h: Likewise.
13805         * assert/assert.h: Likewise.
13806         * bits/fenv.h: Likewise.
13807         * bits/sched.h: Likewise.
13808         * bits/sigset.h: Likewise.
13809         * bits/sigthread.h: Likewise.
13810         * catgets/nl_types.h: Likewise.
13811         * conform/data/pthread.h-data: Likewise.
13812         * crypt/crypt-private.h: Likewise.
13813         * crypt/crypt.h: Likewise.
13814         * crypt/crypt_util.c: Likewise.
13815         * ctype/ctype.h: Likewise.
13816         * debug/execinfo.h: Likewise.
13817         * debug/mbsnrtowcs_chk.c: Likewise.
13818         * debug/mbsrtowcs_chk.c: Likewise.
13819         * debug/wcsnrtombs_chk.c: Likewise.
13820         * debug/wcsrtombs_chk.c: Likewise.
13821         * debug/wcstombs_chk.c: Likewise.
13822         * dirent/dirent.h: Likewise.
13823         * dlfcn/dlfcn.h: Likewise.
13824         * elf/neededtest4.c: Likewise.
13825         * grp/grp.h: Likewise.
13826         * gshadow/gshadow.h: Likewise.
13827         * iconv/gconv.h: Likewise.
13828         * iconv/gconv_int.h: Likewise.
13829         * iconv/gconv_simple.c: Likewise.
13830         * iconv/iconv.h: Likewise.
13831         * iconv/loop.c: Likewise.
13832         * iconv/skeleton.c: Likewise.
13833         * include/aio.h: Likewise.
13834         * include/aliases.h: Likewise.
13835         * include/argz.h: Likewise.
13836         * include/arpa/inet.h: Likewise.
13837         * include/assert.h: Likewise.
13838         * include/dirent.h: Likewise.
13839         * include/dlfcn.h: Likewise.
13840         * include/execinfo.h: Likewise.
13841         * include/fcntl.h: Likewise.
13842         * include/fenv.h: Likewise.
13843         * include/glob.h: Likewise.
13844         * include/grp.h: Likewise.
13845         * include/libintl.h: Likewise.
13846         * include/mntent.h: Likewise.
13847         * include/netdb.h: Likewise.
13848         * include/pwd.h: Likewise.
13849         * include/rpc/netdb.h: Likewise.
13850         * include/sched.h: Likewise.
13851         * include/search.h: Likewise.
13852         * include/shadow.h: Likewise.
13853         * include/signal.h: Likewise.
13854         * include/stdio.h: Likewise.
13855         * include/stdlib.h: Likewise.
13856         * include/string.h: Likewise.
13857         * include/sys/socket.h: Likewise.
13858         * include/sys/stat.h: Likewise.
13859         * include/sys/statfs.h: Likewise.
13860         * include/sys/statvfs.h: Likewise.
13861         * include/sys/syslog.h: Likewise.
13862         * include/sys/time.h: Likewise.
13863         * include/sys/uio.h: Likewise.
13864         * include/time.h: Likewise.
13865         * include/unistd.h: Likewise.
13866         * include/utmp.h: Likewise.
13867         * include/wchar.h: Likewise.
13868         * include/wctype.h: Likewise.
13869         * inet/aliases.h: Likewise.
13870         * inet/arpa/inet.h: Likewise.
13871         * inet/netinet/ether.h: Likewise.
13872         * inet/netinet/in.h: Likewise.
13873         * intl/libintl.h: Likewise.
13874         * io/bits/fcntl2.h: Likewise.
13875         * io/fcntl.h: Likewise.
13876         * io/ftw.h: Likewise.
13877         * io/sys/poll.h: Likewise.
13878         * io/sys/stat.h: Likewise.
13879         * io/sys/statfs.h: Likewise.
13880         * io/sys/statvfs.h: Likewise.
13881         * io/utime.h: Likewise.
13882         * libio/bits/stdio.h: Likewise.
13883         * libio/bits/stdio2.h: Likewise.
13884         * libio/libio.h: Likewise.
13885         * libio/libioP.h: Likewise.
13886         * libio/stdio.h: Likewise.
13887         * locale/lc-ctype.c: Likewise.
13888         * locale/locale.h: Likewise.
13889         * login/utmp.h: Likewise.
13890         * malloc/arena.c: Likewise.
13891         * malloc/malloc.c: Likewise.
13892         * malloc/malloc.h: Likewise.
13893         * malloc/mcheck.c: Likewise.
13894         * malloc/mtrace.c: Likewise.
13895         * math/bits/mathcalls.h: Likewise.
13896         * math/fenv.h: Likewise.
13897         * math/math_private.h: Likewise.
13898         * misc/bits/error.h: Likewise.
13899         * misc/bits/syslog.h: Likewise.
13900         * misc/err.h: Likewise.
13901         * misc/error.h: Likewise.
13902         * misc/fstab.h: Likewise.
13903         * misc/mntent.h: Likewise.
13904         * misc/regexp.h: Likewise.
13905         * misc/search.h: Likewise.
13906         * misc/sgtty.h: Likewise.
13907         * misc/sys/mman.h: Likewise.
13908         * misc/sys/syslog.h: Likewise.
13909         * misc/sys/uio.h: Likewise.
13910         * misc/sys/xattr.h: Likewise.
13911         * misc/ttyent.h: Likewise.
13912         * nis/rpcsvc/ypclnt.h: Likewise.
13913         * nss/nss.h: Likewise.
13914         * posix/bits/unistd.h: Likewise.
13915         * posix/fnmatch.h: Likewise.
13916         * posix/glob.h: Likewise.
13917         * posix/sched.h: Likewise.
13918         * posix/spawn.h: Likewise.
13919         * posix/sys/wait.h: Likewise.
13920         * posix/unistd.h: Likewise.
13921         * posix/wordexp.h: Likewise.
13922         * pwd/pwd.h: Likewise.
13923         * resolv/netdb.h: Likewise.
13924         * resource/sys/resource.h: Likewise.
13925         * rt/aio.h: Likewise.
13926         * rt/bits/mqueue2.h: Likewise.
13927         * rt/mqueue.h: Likewise.
13928         * shadow/shadow.h: Likewise.
13929         * signal/signal.h: Likewise.
13930         * socket/send.c: Likewise.
13931         * socket/sendto.c: Likewise.
13932         * socket/sys/socket.h: Likewise.
13933         * stdio-common/printf.h: Likewise.
13934         * stdlib/bits/stdlib.h: Likewise.
13935         * stdlib/fmtmsg.h: Likewise.
13936         * stdlib/monetary.h: Likewise.
13937         * stdlib/stdlib.h: Likewise.
13938         * stdlib/ucontext.h: Likewise.
13939         * streams/stropts.h: Likewise.
13940         * string/argz.h: Likewise.
13941         * string/bits/string2.h: Likewise.
13942         * string/string.h: Likewise.
13943         * string/strings.h: Likewise.
13944         * sunrpc/rpc/auth.h: Likewise.
13945         * sunrpc/rpc/auth_des.h: Likewise.
13946         * sunrpc/rpc/clnt.h: Likewise.
13947         * sunrpc/rpc/netdb.h: Likewise.
13948         * sunrpc/rpc/pmap_clnt.h: Likewise.
13949         * sunrpc/rpc/xdr.h: Likewise.
13950         * sysdeps/generic/inttypes.h: Likewise.
13951         * sysdeps/generic/net/if.h: Likewise.
13952         * sysdeps/generic/sys/swap.h: Likewise.
13953         * sysdeps/gnu/net/if.h: Likewise.
13954         * sysdeps/gnu/utmpx.h: Likewise.
13955         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13956         * sysdeps/i386/i486/bits/string.h: Likewise.
13957         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13958         * sysdeps/s390/bits/string.h: Likewise.
13959         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13960         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13961         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13962         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13963         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13964         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13965         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13966         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13967         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13968         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13969         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13970         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13971         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13972         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13973         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13974         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13975         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13976         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13977         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13978         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13979         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13980         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13981         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13982         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13983         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13984         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13985         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13986         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13987         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13988         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13989         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13990         * sysvipc/sys/ipc.h: Likewise.
13991         * sysvipc/sys/msg.h: Likewise.
13992         * sysvipc/sys/sem.h: Likewise.
13993         * sysvipc/sys/shm.h: Likewise.
13994         * termios/termios.h: Likewise.
13995         * time/sys/time.h: Likewise.
13996         * time/time.h: Likewise.
13997         * wcsmbs/bits/wchar2.h: Likewise.
13998         * wcsmbs/uchar.h: Likewise.
13999         * wcsmbs/wchar.h: Likewise.
14000         * wctype/wctype.h: Likewise.
14001
14002         [BZ #13551]
14003         * Makeconfig: Remove all but ELF support including AIX support.
14004         * Makerules: Likewise.
14005         * config.h.in: Likewise.
14006         * config.make.in: Likewise.
14007         * configure: Likewise.
14008         * configure.in: Likewise.
14009         * csu/Makefile: Likewise.
14010         * csu/version.c: Likewise.
14011         * debug/Makefile: Likewise.
14012         * dlfcn/Makefile: Likewise.
14013         * elf/Makefile: Likewise.
14014         * extra-lib.mk: Likewise.
14015         * iconv/Makefile: Likewise.
14016         * include/libc-symbols.h: Likewise.
14017         * include/shlib-compat.h: Likewise.
14018         * resolv/Makefile: Likewise.
14019         * resolv/res_libc.c: Likewise.
14020         * rt/Makefile: Likewise.
14021         * sysdeps/i386/asm-syntax.h: Likewise.
14022         * sysdeps/i386/sysdep.h: Likewise.
14023         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14024         * sysdeps/mach/sysdep.h: Likewise.
14025         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14026         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14027         * sysdeps/s390/asm-syntax.h: Likewise.
14028         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14029         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14030         * sysdeps/sh/sysdep.h: Likewise.
14031         * sysdeps/unix/sparc/sysdep.h: Likewise.
14032         * sysdeps/wordsize-32/divdi3.c: Likewise.
14033         * sysdeps/x86_64/sysdep.h: Likewise.
14034
14035         * argp/Versions: Remove _argp_unlock_xxx.
14036
14037         [BZ #13559]
14038         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14039         * abilist/libBrokenLocale.abilist: Likewise.
14040         * abilist/libanl.abilist: Likewise.
14041         * abilist/libc.abilist: Likewise.
14042         * abilist/libcrypt.abilist: Likewise.
14043         * abilist/libdl.abilist: Likewise.
14044         * abilist/libm.abilist: Likewise.
14045         * abilist/libnsl.abilist: Likewise.
14046         * abilist/libpthread.abilist: Likewise.
14047         * abilist/libresolv.abilist: Likewise.
14048         * abilist/librt.abilist: Likewise.
14049         * abilist/libthread_db.abilist: Likewise.
14050         * abilist/libutil.abilist: Likewise.
14051         * abilist/libnss_db.abilist: New file.
14052
14053         * scripts/abilist.awk: Add support for indirect functions.
14054
14055         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14056
14057         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14058
14059         * shlib-versions: Remove entries for ports architectures.
14060
14061         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14062         files in ports.
14063         * elf/stackguard-macros.h: Remove support for IA-64.
14064         * elf/tst-auditmod1.c: Likewise.
14065         * sysdeps/generic/ldsodefs.h: Likewise.
14066
14067         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14068         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14069         configure files.
14070
14071         [BZ #13552]
14072         * configure.in: Remove --enable-omitfp support.
14073         * FAQ.in: Adjust.
14074         * config.make.in: Likewise.
14075         * Makeconfig: Likewise.
14076         * manual/install.texi: Likewise.
14077
14078         In case anyone cares, the IA-64 architecture could move to ports.
14079         * sysdeps/ia64/*: Removed.
14080         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14081         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14082
14083         [BZ #13555]
14084         * configure.in: Remove entries for unsupported architectures.
14085
14086         [BZ #13533]
14087         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14088         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14089         routines.
14090         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14091         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14092         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14093         fall back to using wcrtomb.
14094         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14095         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14096         renaming.
14097         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14098         * wcsmbs/tst-c16c32-1.c: New file.
14099
14100         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14101         local variable.
14102
14103         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14104
14105         * elf/tst-unique3.cc: Add explicit declaration of gets.
14106         * elf/tst-unique3lib.cc: Likewise.
14107         * elf/tst-unique3lib2.cc: Likewise.
14108         * elf/tst-unique4.cc: Likewise.
14109
14110         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14111
14112 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14113
14114         [BZ #13566]
14115         * assert/assert.h (static_assert): Don't define for C++.
14116         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14117         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14118
14119 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14120
14121         * iconv/loop.c (single loop): Fix assertion in storing of
14122         remaining bytes.
14123
14124         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14125
14126 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14127
14128         * posix/getconf.c: Update copyright year.
14129         * nss/getent.c: Likewise.
14130         * nss/makedb.c: Likewise.
14131         * iconv/iconvconfig.c: Likewise.
14132         * iconv/iconv_prog.c: Likewise.
14133         * elf/ldconfig.c: Likewise.
14134         * elf/pldd.c: Likewise.
14135         * elf/sotruss.ksh: Likewise.
14136         * catgets/gencat.c: Likewise.
14137         * csu/version.c: Likewise.
14138         * elf/ldd.bash.in: Likewise.
14139         * elf/sprof.c (print_version): Likewise.
14140         * locale/programs/locale.c: Likewise.
14141         * locale/programs/localedef.c: Likewise.
14142         * login/programs/pt_chown.c: Likewise.
14143         * nscd/nscd.c (print_version): Likewise.
14144         * debug/xtrace.sh: Likewise.
14145         * malloc/memusage.sh: Likewise.
14146         * malloc/mtrace.pl: Likewise.
14147         * debug/catchsegv.sh: Likewise.
14148
14149 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14150
14151         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14152         pure attribute.
14153
14154 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14155
14156         [BZ #13533]
14157         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14158         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14159         transformations.
14160         * iconv/gconv_int.h: Likewise.
14161         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14162         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14163         from libc for GLIBC_2.16.
14164         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14165         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14166         * wcsmbs/uchar.h: Really define mbstate_t.
14167         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14168         * wcsmbs/c16rtomb.c: New file.
14169         * wcsmbs/mbrtoc16.c: New file.
14170         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14171         for C/POSIX locale.
14172         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14173         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14174
14175         * wcsmbs/wchar.h: Add missing __restrict.
14176
14177 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14178
14179         [BZ #13532]
14180         * time/Makefile (routines): Add timespec_get.
14181         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14182         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14183         timespec for ISO C11.
14184         * time/timespec_get.c: New file.
14185         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14186         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14187
14188         [BZ #13531]
14189         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14190         * stdlib/stdlib.h: Declare aligned_alloc.
14191         * Versions.def: Add GLIBC_2.16 for libc.
14192         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14193
14194         [BZ 13527]
14195         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14196         ISO C11.
14197
14198         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14199         code.
14200
14201         [BZ #13528]
14202         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14203
14204         [BZ #13529]
14205         * assert/assert.h (static_assert): Define.
14206
14207         * version.h: Update for 2.16 development version.
14208
14209         [BZ #13526]
14210         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14211         _ISOC11_SOURCE.
14212
14213         * version.h (RELEASE): Bump for 2.15 release.
14214         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14215
14216         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14217         Patch by Marek Polacek <mpolacek@redhat.com>.
14218
14219         * bits/byteswap.h: Protect long long constants with __extension__.
14220         * sysdeps/i386/bits/byteswap.h: Likewise.
14221         * sysdeps/ia64/bits/byteswap.h: Likewise.
14222         * sysdeps/s390/bits/byteswap.h: Likewise.
14223         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14224
14225 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14226
14227         [BZ #13540]
14228         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14229         destination buffer.
14230         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14231
14232 2011-12-23  Marek Polacek  <polacek@redhat.com>
14233
14234         * elf/dl-addr.c (determine_info): Add inline keyword.
14235         * elf/tst-auditmod4b.c (check_avx): Likewise.
14236         * elf/tst-auditmod6b.c (check_avx): Likewise.
14237         * elf/tst-auditmod6c.c (check_avx): Likewise.
14238         * elf/tst-auditmod7b.c (check_avx): Likewise.
14239
14240 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14241
14242         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14243         !__SSE_MATH__.
14244
14245 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14246
14247         [BZ #13540]
14248         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14249         processing for last bytes.
14250
14251 2011-08-06  Bruno Haible  <bruno@clisp.org>
14252
14253         [BZ #13061]
14254         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14255         U+0385, not to U+1FEE.
14256
14257         [BZ #13062]
14258         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14259         entry for U+00A5 U+0301.
14260
14261 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14262
14263         [BZ #13166]
14264         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14265         buffer for the output is too small.
14266
14267         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14268         optimization.
14269
14270         [BZ #13185]
14271         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14272         SSE flags if possible.
14273
14274 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14275
14276         [BZ #13540]
14277         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14278         processing for last bytes.
14279
14280 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14281
14282         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14283         (syscall-list-default-options, syscall-list-default-condition)
14284         (syscall-list-includes): Define.
14285         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14286         list of ABIs and options and #if conditions for each ABI.  Do not
14287         handle common syscalls between ABIs specially.
14288         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14289         Remove.
14290         (syscall-list-variants, syscall-list-32bit-options)
14291         (syscall-list-32bit-condition, syscall-list-64bit-options)
14292         (syscall-list-64bit-condition): Define.
14293         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14294         (syscall-list-variants, syscall-list-32bit-options)
14295         (syscall-list-32bit-condition, syscall-list-64bit-options)
14296         (syscall-list-64bit-condition): Define.
14297         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14298         Remove.
14299         (syscall-list-variants, syscall-list-32bit-options)
14300         (syscall-list-32bit-condition, syscall-list-64bit-options)
14301         (syscall-list-64bit-condition): Define.
14302         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14303         Remove.
14304         (syscall-list-variants, syscall-list-32bit-options)
14305         (syscall-list-32bit-condition, syscall-list-64bit-options)
14306         (syscall-list-64bit-condition): Define.
14307
14308 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14309
14310         * locale/iso-639.def: Add brx entry.
14311
14312         [BZ #13328]
14313         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14314         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14315
14316         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14317         __feraiseexcept_renamed.
14318
14319 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14320
14321         [BZ #13538]
14322         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14323         EPOLLET with unsigned values.
14324         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14325         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14326
14327         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14328         to large cancellation.
14329         * math/s_cacoshf.c: Likewise.
14330         * math/s_cacoshl.c: Likewise.
14331
14332 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14333
14334         [BZ #13305]
14335         [BZ #12786]
14336         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14337         * math/s_cacoshf.c: Likewise.
14338         * math/s_cacoshl.c: Likewise.
14339
14340 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14341
14342         [BZ #13439]
14343         * iconv/gconv.h: Define __GCONV_SWAP.
14344         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14345         * iconvdata/utf-16.c: Likewise.
14346         * iconvdata/utf-32.c: Likewise.
14347
14348 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14349
14350         [BZ #13524]
14351         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14352         numerator after shifting it by one limb.
14353
14354 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14355
14356         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14357         under [__USE_EXTERN_INLINES].
14358
14359 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14360
14361         [BZ #13446]
14362         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14363
14364 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14365
14366         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14367         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14368         optimized code.
14369         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14370         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14371         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14372         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14373         for strncasecmp/strncasecmp_l compilation.
14374         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14375         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14376
14377 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14378
14379         [BZ #13484]
14380         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14381         of __asm__.
14382
14383 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14384
14385         [BZ #13506]
14386         * time/tzfile.c (__tzfile_read): Check values from file header.
14387
14388 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14389
14390         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14391         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14392         * powerpc/powerpc32/dl-start.S: Likewise.
14393         * powerpc/powerpc32/elf/start.S: Likewise.
14394         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14395         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14396         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14397         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14398         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14399         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14400         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14401         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14402         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14403         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14404         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14405         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14406         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14407         * powerpc/powerpc32/memset.S: Likewise.
14408         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14409         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14410         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14411         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14412         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14413         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14414         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14415         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14416         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14417         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14418         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14419         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14420         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14421
14422 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14423
14424         * math/libm-test.inc: Added more nearbyint tests.
14425         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14426         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14427         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14428         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14429
14430 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14431
14432         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14433         FD_CLOEXEC.
14434
14435 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14436
14437         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14438         Add wcscpy-ssse3 wcscpy-c.
14439         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14440         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14441         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14442         * sysdeps/x86_64/wcschr.S: New file.
14443         * sysdeps/x86_64/wcsrchr.S: New file.
14444         * string/test-strcmp.c: Remove checking of wcscmp function for
14445         wrong alignments.
14446         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14447         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14448         wcsrchr-sse2 wcsrchr-c.
14449         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14450         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14451         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14452         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14453         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14454         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14455         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14456         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14457         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14458         * wcsmbc/wcschr.c (WCSCHR): New macro.
14459
14460 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14461
14462         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14463         * wcsmbs/test-wcsrchr.c: New file.
14464         * string/test-strrchr.c: Add wcsrchr support.
14465         (WIDE): New macro.
14466         * wcsmbs/test-wcscpy.c: New file.
14467         * string/test-strcpy.c: Add wcscpy support.
14468         (WIDE): New macro.
14469
14470 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14471
14472         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14473         the inner loop.
14474
14475 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14476
14477         [BZ #13472]
14478         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14479
14480 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14481
14482         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14483         Minor optimizations.
14484
14485         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14486         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14487         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14488
14489 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14490
14491         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14492         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14493         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14494         for gcc to avoid warnings.
14495         * inet/Makefile (tests): Add tst-checks.
14496         * inet/tst-checks.c: New file.
14497
14498         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14499         warning.
14500
14501         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14502         __wmemcmp_sse2.
14503
14504         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14505         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14506
14507         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14508
14509 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14510
14511         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14512         problem.
14513
14514         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14515
14516 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14517
14518         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14519         conditional on GCC version.
14520         (__arch_compare_and_exchange_val_8_acq)
14521         (__arch_compare_and_exchange_val_16_acq)
14522         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14523         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14524         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14525
14526 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14527
14528         * sysdeps/sh/backtrace.c: New file.
14529
14530 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14531
14532         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14533         parenthesis.
14534
14535 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14536
14537         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14538         falling back to utime.
14539
14540 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14541
14542         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14543         expectations for float.
14544
14545 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14546
14547         * locale/weight.h (findidx): Add parameter len.
14548         * locale/weightwc.h (findidx): Likewise.
14549         * posix/fnmatch_loop.c (FCT): Adjust caller.
14550         * posix/regcomp.c (build_equiv_class): Likewise.
14551         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14552         * posix/regexec.c (check_node_accept_bytes): Likewise.
14553         * string/strcoll_l.c (STRCOLL): Likewise.
14554         * string/strxfrm_l.c (STRXFRM): Likewise.
14555
14556 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14557
14558         * Makefile.in: Remove CVSOPT handling.
14559         * configure.in: Remove use of AC_REVISION.
14560         * iconvdata/Makefile (distribute): No need to filter out CVS.
14561         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14562         handling.
14563
14564 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14565
14566         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14567         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14568         [USE_AS_STRNCASECMP_L]: Likewise.
14569         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14570         NO_TLS_DIRECT_SEG_REFS.
14571         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14572         Fix argument offsets for non-PIC.
14573         [USE_AS_STRNCASECMP_L]: Likewise.
14574         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14575         NO_TLS_DIRECT_SEG_REFS.
14576
14577 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14578
14579         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14580         O_CLOEXEC.
14581         * locale/loadlocale.c (_nl_load_locale): Likewise.
14582
14583 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14584
14585         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14586         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14587         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14588         (SYSCALL_GETTIME): Set errno on error.
14589
14590         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14591         count references to noai6ai_cached.
14592
14593 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14594
14595         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14596
14597         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14598         FD_CLOEXEC for /proc/self/maps.
14599
14600         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14601         FD_CLOEXEC for /proc/meminfo.
14602
14603         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14604         gai.conf.
14605
14606         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14607         FD_CLOEXEC for given file.
14608
14609         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14610
14611         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14612         FD_CLOEXEC for /etc/hosts.
14613         (_gethtent): Likewise.
14614
14615         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14616
14617         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14618         cancellation and set FD_CLOEXEC for /etc/netgroup.
14619
14620         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14621         reading /etc/publickey.
14622
14623         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14624         allow cancellation when reading /etc/group.
14625
14626         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14627         cancellation.
14628         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14629
14630         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14631         when using data file.
14632
14633         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14634
14635         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14636         (write_nis_obj): Use "c" and "e" in fopen.
14637
14638         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14639
14640         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14641
14642         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14643
14644         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14645
14646         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14647         locale.alias.
14648
14649         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14650
14651         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14652
14653         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14654
14655         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14656         file parsing and set FD_CLOEXEC.
14657
14658 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14659
14660         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14661
14662 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14663
14664         * malloc/arena.c (arena_get2): Don't call reused_arena when
14665         _int_new_arena failed.
14666
14667 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14668
14669         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14670         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14671         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14672         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14673         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14674         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14675         to compile strcasecmp and strncasecmp.
14676         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14677         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14678
14679         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14680
14681 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14682
14683         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14684         locale-defines.sym to gen-as-const-headers.
14685         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14686         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14687         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14688         to compile strcasecmp and strncasecmp.
14689         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14690         strcasecmp_l and strncasecmp_l.
14691         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14692         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14693         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14694         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14695         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14696         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14697         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14698         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14699         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14700         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14701         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14702
14703 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14704
14705         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14706         result of SYSDEP_GETTIME_CPU to retval.
14707         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14708         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14709
14710         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14711         variable.
14712
14713         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14714         mantissa words.
14715         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14716
14717         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14718         from unused variable.
14719
14720         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14721         DWARF definitions.
14722         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14723         for assembling.
14724
14725         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14726         over namespaces.
14727
14728         * sunrpc/rpc_prot.c (rejected): Fix case value.
14729
14730         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14731         unsigned long long int to avoid warnings in shift.
14732
14733         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14734         of use of trans.
14735         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14736         variable tmp.
14737
14738         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14739         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14740         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14741
14742         * nis/nis_table.c (nis_list): Use variable of correct type for
14743         result of __follow_path call.
14744
14745 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14746
14747         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14748         of math functions ceil, trunc, floor, round, and sqrt, when
14749         avaliable on the platform.
14750         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14751         name clash.
14752         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14753         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14754         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14755
14756 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14757
14758         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14759         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14760
14761 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14762
14763         * include/unistd.h: Fix __readlink return type.
14764         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14765
14766 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14767
14768         * stdlib/ucontext.h: Undo last change for makecontext.
14769
14770 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14771
14772         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14773
14774         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14775         * setjmp/setjmp.h: Mark functions as non-leaf.
14776         * setjmp/bits/setjmp2.h: Likewise.
14777         * stdlib/ucontext.h: Likewise.
14778
14779 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14780
14781         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14782         (reused_arena): Don't check arena limit.
14783         (arena_get2): Atomically check arena limit.
14784
14785 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14786
14787         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14788         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14789
14790         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14791         instructions.
14792
14793 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14794
14795         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14796         handler when locking.
14797
14798         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14799         Fix size of allocated buffer.
14800
14801 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14802
14803         [BZ #10103]
14804         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14805         declarations for long double functions.
14806         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14807
14808         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14809
14810 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14811
14812         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14813         installed.
14814
14815         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14816         is disabled.
14817
14818 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14819
14820         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14821
14822 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14823
14824         * include/alloca.h (stackinfo_alloca_round): Define.
14825         (extend_alloca): Use it.
14826         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14827         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14828         here.
14829
14830         * scripts/check-local-headers.sh: Ignore libaudit.h.
14831
14832         * nscd/Makefile (extra-objs): Make recursively expanded.
14833
14834 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14835
14836         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14837         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14838
14839         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14840         * posix/tst-rfc3484-2.c: Likewise.
14841         * posix/tst-rfc3484-3.c: Likewise.
14842
14843         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14844         process_vm_writev.
14845         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14846         process_vm_writev.
14847         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14848         process_vm_writev from libc using GLIBC_2.15 version.
14849
14850         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14851
14852 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14853
14854         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14855         stack usage.
14856
14857 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14858
14859         [BZ #13367]
14860         * nss/getent.c (initgroups_keys): Show error message in case no group
14861         names are given.
14862
14863         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14864         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14865         __bump_nl_timestamp.
14866         * nscd/connections (nscd_init): When host database is served open
14867         netlink socket and request notification about configuration changes.
14868         (main_loop_poll): Track netlink file descriptor and bump timestamp
14869         in case data becomes available.
14870         (main_loop_epoll): Likewise.
14871         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14872         (database_pers_head): Add extra_data fileds.
14873         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14874         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14875         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14876         Adjust caller.
14877         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14878         in6ai data, call __free_in6ai.
14879         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14880         Add -DHAVE_NETLINK.
14881         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14882         interface information.  Reuse previous data if netlink timestamp
14883         is not changed.
14884         (__bump_nl_timestamp): New function.
14885         (__free_in6ai): New function.
14886
14887 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14888
14889         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14890         close_not_cancel_no_status here.
14891         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14892
14893 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14894
14895         [BZ #13276]
14896         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14897         return value.
14898
14899         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14900         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14901         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14902
14903 2011-07-03  Andreas Jaeger  <aj@suse.de>
14904
14905         [BZ #10709]
14906         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14907         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14908         * math/libm-test.inc (sin_test): Add test case.
14909
14910 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14911
14912         [BZ #13337]
14913         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14914         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14915
14916         * elf/chroot_canon.c (chroot_canon): Cleanups.
14917
14918         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14919
14920         [BZ #13335]
14921         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14922         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14923
14924         * string/test-strchr.c: Make usable for strchrnul testing.
14925         * string/test-strchrnul.c: New file.
14926         * string/Makefile (strop-tests): Add strchrnul.
14927
14928         * po/it.po: Update from translation team.
14929         * po/es.po: Likewise.
14930
14931 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14932
14933         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14934         the three constants needed as parameters.  Drop the others.
14935         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14936         __m128i_strloadu_tolower.
14937         Create and initialize variable zero and use it in all the places
14938         where _mm_setzero_si128 was used.
14939
14940         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14941         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14942         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14943         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14944         anymore.
14945         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14946         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14947         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14948         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14949         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14950         __mpranred, __mptan.
14951         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14952         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14953         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14954         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14955         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14956         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14957         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14958         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14959         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14960
14961 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14962
14963         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14964         redefine if SHARED.
14965         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14966
14967         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14968         wide char related routines to wcsmbs subdir.
14969
14970 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14971
14972         [BZ #13344]
14973         * misc/sys/cdefs.h (__THROWNL): Define.
14974         * posix/unistd.h: Use __THREADNL instead of __THREAD
14975         for memory synchronization functions.
14976
14977 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14978
14979         [BZ #13349]
14980         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14981         doesn't exist.
14982         * manual/stdio.texi (Obstack Streams): Node removed.
14983
14984 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14985
14986         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14987         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14988         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14989
14990         * math/math_private.h (math_force_eval): Allow non-addressable
14991         arguments.
14992         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14993
14994 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14995
14996         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14997         file is not needed.
14998
14999         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15000         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15001         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15002         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15003         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15004         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15005         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15006         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15007         Add AVX variants.
15008         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15009         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15010         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15011         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15012         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15013         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15014         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15015         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15016         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15017         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15018         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15019         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15020         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15021         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15022         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15023         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15024         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15025         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15026         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15027
15028         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15029         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15030
15031         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15032         place.  Use VEX encoding when compiling for AVX.
15033
15034 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15035
15036         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15037         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15038
15039         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15040
15041 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15042
15043         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15044         useless if() expression.
15045         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15046         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15047         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15048         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15049         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15050         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15051         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15052         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15053         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15054         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15055         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15056         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15057         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15058         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15059         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15060         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15061         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15062         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15063         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15064
15065         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15066
15067 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15068
15069         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15070         condition.
15071         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15072
15073 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15074
15075         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15076         .text section.  Avoid duplicate constants.
15077         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15078         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15079         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15080         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15081         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15082         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15083         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15084         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15085         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15086         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15087         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15088         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15089         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15090         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15091         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15092         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15093         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15094         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15095         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15096         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15097         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15098         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15099         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15100         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15101         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15102         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15103         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15104         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15105         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15106         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15107         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15108         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15109         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15110         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15111         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15112         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15113         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15114         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15115         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15116         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15117         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15118         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15119         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15120         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15121         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15122
15123 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15124
15125         * sysdeps/x86_64/dla.h: Move to ...
15126         * sysdeps/x86_64/fpu/dla.h: ...here.
15127         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15128         situations.  Use __builtin_fma only for gcc 4.6 and up.
15129
15130         * config.make.in: Add have-mfma4 entry.
15131         * configure.in: Substitute libc_cv_cc_fma4.
15132         * math/Makefile (dbl-only-routines): Add sincostab.
15133         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15134         Use __sincostab not sincos.
15135         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15136         name is a macro.
15137         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15138         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15139         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15140         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15141         using __copysign.
15142         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15143         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15144         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15145         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15146         and __inv.
15147         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15148         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15149         __copysign.
15150         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15151         define aliases when function name is a macro.
15152         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15153         sysdeps/ieee754/dbl-64/sincos.tbl.
15154         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15155         fma4-enabled routines.
15156         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15157         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15158         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15159         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15160         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15161         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15162         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15163         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15164         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15165         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15166         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15167         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15168         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15169         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15170         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15171         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15172         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15173         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15174         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15175         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15176         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15177         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15178         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15179         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15180         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15181         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15182         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15183         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15184         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15185         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15186
15187         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15188         rename.
15189         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15190         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15191         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15192         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15193         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15194         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15195         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15196         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15197
15198 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15199
15200         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15201
15202 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15203
15204         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15205
15206         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15207         prediction.
15208         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15209
15210         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15211         Remove unused variable magic_bits.
15212         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15213
15214         * string/strnlen.c: Define and use STRNLEN macro.
15215         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15216         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15217         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15218         * wcsmbs/wcslen.c: Define and use WCSLEN.
15219         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15220         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15221         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15222         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15223         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15224         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15225         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15226
15227 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15228
15229         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15230         strnlen-sse2-no-bsf.
15231         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15232         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15233         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15234         Add strnlen support.
15235         (USE_AS_STRNLEN): New macro.
15236         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15237         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15238         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15239         * sysdeps/x86_64/wcslen.S: New file.
15240
15241 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15242
15243         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15244         XMM-moves are used for copying on small sizes.
15245
15246 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15247
15248         * wcsmbs/Makefile (strop-tests): Add wcschr.
15249         * wcsmbs/test-wcschr.c: New file.
15250         * string/test-strchr.c: Update.
15251         Add wcschr support.
15252         (WIDE): New macro.
15253
15254 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15255
15256         * wcsmbs/Makefile (strop-tests): Add wcslen.
15257         * wcsmbs/test-wcslen.c: New file.
15258         * string/test-strlen.c: Update.
15259         Add wcslen support.
15260         (WIDE): New macro.
15261
15262 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15263
15264         * po/it.po: Update from translation team.
15265
15266 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15267
15268         * sysdeps/x86_64/wcscmp.S: Update.
15269         Fix wrong comparison semantics.
15270         wcscmp shall use signed comparison not unsigned.
15271         Don't use substraction to avoid overflow bug.
15272         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15273         * wcsmbc/wcscmp.c: Likewise.
15274         * string/test-strcmp.c: Likewise.
15275         Add new tests to check cases with negative values.
15276
15277 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15278
15279         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15280         * sysdeps/x86_64/dla.h: ...here.  New file.
15281         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15282         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15283         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15284         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15285         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15286         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15287         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15288         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15289         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15290
15291 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15292
15293         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15294         __ynl_finite aliases.
15295
15296 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15297
15298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15299
15300         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15301         define DLA_FMA.
15302         [DLA_FMA] (EMULV): Use DLA_FMA.
15303         [DLA_FMA] (MUL12): Use EMULV.
15304         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15305         that are not needed.
15306         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15307         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15308         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15309         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15310         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15311         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15312         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15313
15314 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15315
15316         * math/s_nan.c: Undef __nan.
15317         * math/s_nanf.c: Undef __nanf.
15318         * math/s_nanl.c: Undef __nanl.
15319         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15320         "math_private.h".
15321
15322 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15323
15324         * math/s_catan.c: Add branch predictions.
15325         * math/s_catanf.c: Likewise.
15326         * math/s_catanh.c: Likewise.
15327         * math/s_catanhf.c: Likewise.
15328         * math/s_catanhl.c: Likewise.
15329         * math/s_catanl.c: Likewise.
15330         * math/s_cexp.c: Likewise.
15331         * math/s_cexpf.c: Likewise.
15332         * math/s_cexpl.c: Likewise.
15333         * math/s_clog.c: Likewise.
15334         * math/s_clog10.c: Likewise.
15335         * math/s_clog10f.c: Likewise.
15336         * math/s_clog10l.c: Likewise.
15337         * math/s_clogf.c: Likewise.
15338         * math/s_clogl.c: Likewise.
15339         * math/s_csqrt.c: Likewise.
15340         * math/s_csqrtf.c: Likewise.
15341         * math/s_csqrtl.c: Likewise.
15342         * math/s_ctanf.c: Likewise.
15343         * math/s_ctanh.c: Likewise.
15344         * math/s_ctanhf.c: Likewise.
15345         * math/s_ctanhl.c: Likewise.
15346         * math/s_ctanl.c: Likewise.
15347
15348         * math/math_private.h: Define __nan, __nanf, __nanl.
15349         * math/s_cacosh.c: Include <math_private.h>.
15350         * math/s_cacoshl.c: Likewise.
15351         * math/s_casinh.c: Likewise.
15352         * math/s_casinhf.c: Likewise.
15353         * math/s_casinhl.c: Likewise.
15354         * math/s_ccos.c: Rely entire on ccosh.
15355         * math/s_ccosf.c: Rely entire on ccoshf.
15356         * math/s_ccosl.c: Rely entirely on ccoshl.
15357         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15358         Remove tests for FE_INVALID.
15359         * math/s_ccoshf.c: Likewise.
15360         * math/s_ccoshl.c: Likewise.
15361         * math/s_csin.c: Likewise.
15362         * math/s_csinf.c: Likewise.
15363         * math/s_csinh.c Likewise.
15364         * math/s_csinhf.c: Likewise.
15365         * math/s_csinhl.c: Likewise.
15366         * math/s_csinl.c: Likewise.
15367         * math/s_ctan.c: Likewise.
15368         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15369         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15370         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15371
15372 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15373
15374         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15375         compilation problems.
15376
15377         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15378         __builtin_expect.
15379
15380 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15381
15382         * sysdeps/i386/configure.in: Test for -mfma4 option.
15383         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15384         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15385         COMMON_CPUID_INDEX_80000001.
15386         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15387         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15388         use it if FMA3 is not supported.
15389         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15390
15391         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15392         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15393
15394 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15395
15396         [BZ #12892]
15397         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15398         it would create a cycle with a link time dependency.
15399
15400 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15401
15402         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15403         instruction.
15404         * string/Makefile (strop-tests): Add rawmemchr.
15405         * string/test-rawmemchr.c: New file.
15406
15407         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15408         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15409         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15410         when compiling str{,n}casecmp and when AVX is available.  Hook up
15411         new optimized code in initializers.
15412
15413 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15414
15415         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15416         __feraiseexcept instead of feraiseexcept.
15417
15418 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15419
15420         * math/math_private.h: Define defaults for libc_fetestexcept and
15421         libc_feupdateenv.
15422         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15423         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15424         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15425         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15426         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15427         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15428         libc_fetestexcept and libc_feupdateenv.
15429
15430         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15431         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15432         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15433         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15434         libc_feholdexcept_setround.
15435
15436         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15437         Add s_nearbyint-c and s_nearbyintf-c.
15438         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15439         nearbyintf inlines.
15440         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15441         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15442         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15443         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15444
15445         * math/math_private.h: Define defaults for libc_fegetround,
15446         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15447         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15448         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15449         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15450         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15451         standard functions.
15452         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15453         Remove comments and hacks for old compiler versions.
15454         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15455         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15456         libc_feholdexceptl.
15457
15458 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15459
15460         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15461         (__feraiseexcept_renamed): Add __NTH.
15462         (feraiseexcept): Add __NTH.  Rename local variables to fix
15463         namespace violations.
15464
15465 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15466
15467         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15468
15469         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15470
15471         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15472         recently added interfaces.
15473         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15474
15475         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15476         about macro parameter expansion.
15477
15478         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15479         __NO_MATH_INLINES is defined.  Cleanups.
15480
15481         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15482         and __floorf is target has SSE4.1.
15483         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15484         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15485         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15486         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15487
15488         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15489         name.
15490         (floorf): Likewise.
15491
15492         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15493
15494 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15495
15496         * misc/sys/cdefs.h: Fix last change.
15497
15498         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15499         database lookup.
15500
15501 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15502
15503         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15504
15505         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15506         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15507         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15508         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15509         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15510         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15511         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15512         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15513         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15514         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15515         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15516         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15517         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15518         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15519         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15520         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15521         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15522         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15523         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15524         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15525         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15526         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15527
15528         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15529         ceil, ceilf, floor, floorf.
15530
15531         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15532         Perform IRELATIVE relocations last.
15533
15534         * elf/do-rel.h: Add another parameter nrelative, replacing the
15535         local variable with the same name.  Change name of the function
15536         to end in Rel or Rela (uppercase).
15537         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15538         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15539         elf_dynamic_do_##reloc function.
15540
15541 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15542
15543         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15544         is sufficient, at least on modern CPUs.
15545
15546         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15547
15548         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15549         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15550
15551         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15552         __expl_finite.
15553         * math/bits/math-finite.h: Add entries for exp.
15554         * math/e_expl.c: Add __*_finite alias.
15555         * sysdeps/i386/fpu/e_exp.S: Likewise.
15556         * sysdeps/i386/fpu/e_expf.S: Likewise.
15557         * sysdeps/i386/fpu/e_expl.c: Likewise.
15558         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15559         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15560         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15561         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15562         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15563         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15564         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15565
15566         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15567         is sufficient, at least on modern CPUs.
15568
15569         * ctype/ctype-info.c (__ctype_init): Define.
15570         * include/ctype.h (__ctype_init): Declare.
15571         (__ctype_b_loc): The variable is always initialized.
15572         (__ctype_toupper_loc): Likewise.
15573         (__ctype_tolower_loc): Likewise.
15574         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15575         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15576
15577 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15578
15579         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15580
15581         * configure.in: Also look in $cxxmachine/include for C++ system
15582         headers.
15583
15584 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15585
15586         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15587         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15588         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15589         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15590         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15591         (USE_AS_WMEMCMP): New macro.
15592         Fixing indents.
15593         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15594         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15595         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15596         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15597         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15598         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15599         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15600         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15601         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15602         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15603         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15604         (USE_AS_WMEMCMP): New macro.
15605         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15606         * sysdeps/string/test-memcmp.c: Update.
15607         Fix simple_wmemcmp.
15608         Add new tests.
15609         * wcsmbs/wmemcmp.c: Update.
15610         (WMEMCMP): New macro.
15611         Fix overflow bug.
15612
15613 2011-10-12  Andreas Jaeger  <aj@suse.de>
15614
15615         [BZ #13268]
15616         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15617
15618 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15619
15620         * libio/iofwide.c (do_length): Avoid warning.
15621
15622         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15623
15624 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15625
15626         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15627
15628         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15629         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15630         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15631         * sysdeps/i386/i686/fpu/e_log.S: New file.
15632         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15633         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15634
15635         * ctype/ctype.h: Add support for inlined isXXX functions when
15636         compiling C++ code.
15637
15638 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15639
15640         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15641
15642         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15643
15644 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15645
15646         [BZ #13291]
15647         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15648
15649 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15650
15651         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15652         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15653         feraiseexcept.
15654
15655         * sysdeps/x86_64/memrchr.S: Check for zero size.
15656
15657         * string/stratcliff.c: Add memrchr tests.
15658
15659 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15660
15661         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15662         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15663         rawmemchr-sse2 rawmemchr-sse2-bsf.
15664         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15665         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15666         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15667         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15668         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15669         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15670         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15671         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15672         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15673         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15674         * string/memrchr.c (MEMRCHR): New macro.
15675
15676 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15677
15678         Add integration with gcc's -ffinite-math-only and optimize wrapper
15679         functions in libm.
15680         * Versions.def: Define GLIBC_2.15 version for libm.
15681         * math/Makefile (headers): Add bits/math-finite.h.
15682         * math/bits/math-finite.h: New file.
15683         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15684         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15685         * math/e_acoshl.c: Add __*_finite alias.
15686         * math/e_acosl.c: Likewise.
15687         * math/e_asinl.c: Likewise.
15688         * math/e_atan2l.c: Likewise.
15689         * math/e_atanhl.c: Likewise.
15690         * math/e_coshl.c: Likewise.
15691         * math/e_exp10.c: Likewise.
15692         * math/e_exp10f.c: Likewise.
15693         * math/e_exp10l.c: Likewise.
15694         * math/e_exp2l.c: Likewise.
15695         * math/e_fmodl.c: Likewise.
15696         * math/e_gammal_r.c: Likewise.
15697         * math/e_hypotl.c: Likewise.
15698         * math/e_j0l.c: Likewise.
15699         * math/e_j1l.c: Likewise.
15700         * math/e_jnl.c: Likewise.
15701         * math/e_lgammal_r.c: Likewise.
15702         * math/e_log10l.c: Likewise.
15703         * math/e_log2l.c: Likewise.
15704         * math/e_logl.c: Likewise.
15705         * math/e_powl.c: Likewise.
15706         * math/e_sinhl.c: Likewise.
15707         * math/e_sqrtl.c: Likewise.
15708         * math/e_scalb.c: Completely rewritten and optimized.
15709         * math/e_scalbf.c: Likewise.
15710         * math/e_scalbl.c: Likewise.
15711         * math/w_acos.c: Likewise.
15712         * math/w_acosf.c: Likewise.
15713         * math/w_acosl.c: Likewise.
15714         * math/w_acosh.c: Likewise.
15715         * math/w_acoshf.c: Likewise.
15716         * math/w_acoshl.c: Likewise.
15717         * math/w_asin.c: Likewise.
15718         * math/w_asinf.c: Likewise.
15719         * math/w_asinl.c: Likewise.
15720         * math/w_atan2.c: Likewise.
15721         * math/w_atan2f.c: Likewise.
15722         * math/w_atan2l.c: Likewise.
15723         * math/w_atanh.c: Likewise.
15724         * math/w_atanhf.c: Likewise.
15725         * math/w_atanhl.c: Likewise.
15726         * math/w_exp10.c: Likewise.
15727         * math/w_exp10f.c: Likewise.
15728         * math/w_exp10l.c: Likewise.
15729         * math/w_fmod.c: Likewise.
15730         * math/w_fmodf.c: Likewise.
15731         * math/w_fmodl.c: Likewise.
15732         * math/w_j0.c: Likewise.
15733         * math/w_j0f.c: Likewise.
15734         * math/w_j0l.c: Likewise.
15735         * math/w_j1.c: Likewise.
15736         * math/w_j1f.c: Likewise.
15737         * math/w_j1l.c: Likewise.
15738         * math/w_jn.c: Likewise.
15739         * math/w_jnf.c: Likewise.
15740         * math/w_log.c: Likewise.
15741         * math/w_logf.c: Likewise.
15742         * math/w_logl.c: Likewise.
15743         * math/w_log10.c: Likewise.
15744         * math/w_log10f.c: Likewise.
15745         * math/w_log10l.c: Likewise.
15746         * math/w_log2.c: Likewise.
15747         * math/w_log2f.c: Likewise.
15748         * math/w_log2l.c: Likewise.
15749         * math/w_pow.c: Likewise.
15750         * math/w_powf.c: Likewise.
15751         * math/w_powl.c: Likewise.
15752         * math/w_remainder.c: Likewise.
15753         * math/w_remainderf.c: Likewise.
15754         * math/w_remainderl.c: Likewise.
15755         * math/w_scalb.c: Likewise.
15756         * math/w_scalbf.c: Likewise.
15757         * math/w_scalbl.c: Likewise.
15758         * math/w_sqrt.c: Likewise.
15759         * math/w_sqrtf.c: Likewise.
15760         * math/w_sqrtl.c: Likewise.
15761         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15762         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15763         used.
15764         * math/math_private.h: Declare __kernel_standard_f.
15765         * math/w_cosh.c: Remove cruft and optimize a bit.
15766         * math/w_coshf.c: Likewise.
15767         * math/w_coshl.c: Likewise.
15768         * math/w_exp2.c: Likewise.
15769         * math/w_exp2f.c: Likewise.
15770         * math/w_exp2l.c: Likewise.
15771         * math/w_hypot.c: Likewise.
15772         * math/w_hypotf.c: Likewise.
15773         * math/w_hypotl.c: Likewise.
15774         * math/w_lgamma.c: Likewise.
15775         * math/w_lgamma_r.c: Likewise.
15776         * math/w_lgammaf.c: Likewise.
15777         * math/w_lgammaf_r.c: Likewise.
15778         * math/w_lgammal.c: Likewise.
15779         * math/w_lgammal_r.c: Likewise.
15780         * math/w_sinh.c: Likewise.
15781         * math/w_sinhf.c: Likewise.
15782         * math/w_sinhl.c: Likewise.
15783         * math/w_tgamma.c: Likewise.
15784         * math/w_tgammaf.c: Likewise.
15785         * math/w_tgammal.c: Likewise.
15786         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15787         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15788         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15789         Minor optimizations.  Pretty printing.  Remove cruft.
15790         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15791         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15792         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15793         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15794         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15795         * sysdeps/i386/fpu/e_asin.S: Likewise.
15796         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15797         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15798         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15799         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15800         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15801         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15802         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15803         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15804         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15805         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15806         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15807         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15808         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15809         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15810         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15811         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15812         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15813         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15814         * sysdeps/i386/fpu/e_log.S: Likewise.
15815         * sysdeps/i386/fpu/e_log10.S: Likewise.
15816         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15817         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15818         * sysdeps/i386/fpu/e_log2.S: Likewise.
15819         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15820         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15821         * sysdeps/i386/fpu/e_logf.S: Likewise.
15822         * sysdeps/i386/fpu/e_logl.S: Likewise.
15823         * sysdeps/i386/fpu/e_pow.S: Likewise.
15824         * sysdeps/i386/fpu/e_powf.S: Likewise.
15825         * sysdeps/i386/fpu/e_powl.S: Likewise.
15826         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15827         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15828         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15829         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15830         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15831         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15832         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15833         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15834         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15835         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15836         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15837         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15838         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15839         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15840         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15841         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15842         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15843         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15844         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15845         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15846         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15847         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15848         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15849         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15850         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15851         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15852         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15853         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15854         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15855         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15856         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15857         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15858         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15859         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15860         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15861         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15862         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15863         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15864         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15865         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15866         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15867         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15868         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15869         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15870         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15871         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15872         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15873         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15874         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15875         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15876         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15877         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15878         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15879         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15880         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15881         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15882         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15883         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15884         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15885         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15886         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15887         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15888         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15889         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15890         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15891         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15892         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15893         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15894         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15895         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15896         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15897         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15898         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15899         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15900         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15901         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15904         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15905         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15906         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15907         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15908         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15909         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15910         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15911         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15912         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15913         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15914         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15915         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15916         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15917         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15918         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15920         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15921         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15922         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15923         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15924         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15925         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15926         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15927         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15928         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15929         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15930         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15931         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15932         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15933         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15934         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15935         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15936         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15937         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15938         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15939         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15940         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15941         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15942         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15943         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15944         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15945         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15946         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15947         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15948         (__isnanf): Likewise.
15949         (__isinf_ns): Likewise.
15950         (__isinf_nsf): Likewise.
15951         (__finite): Likewise.
15952         (__finitef): Likewise.
15953         (__ieee754_sqrt): Define as macro.
15954         (__ieee754_sqrtf): Define as macro.
15955         (__ieee754_sqrtl): Define as macro.
15956         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15957         inlined copy.
15958         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15959         __FINITE_MATH_ONLY__ consistent.
15960         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15961
15962 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15963
15964         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15965         of rawmemchr.
15966
15967         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15968
15969 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15970
15971         * po/ja.po: Update from translation team.
15972
15973 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15974
15975         * locale/programs/locarchive.c (prepare_address_space): New function.
15976         (create_archive, enlarge_archive, open_archive): Use it.
15977
15978         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15979         inside [SHARED], where it is used.
15980
15981         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15982
15983         * nss/getent.c (netgroup_keys): Remove unused variable.
15984         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15985
15986 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15987
15988         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15989         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15990         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15991         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15992         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15993         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15994         * math/Makefile (libm-calls): Add s_isinf_ns.
15995         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15996         * math/multc3.c: Likewise.
15997         * math/s_casin.c: Likewise.
15998         * math/s_casinf.c: Likewise.
15999         * math/s_casinl.c: Likewise.
16000         * math/s_ccos.c: Likewise.
16001         * math/s_ccosf.c: Likewise.
16002         * math/s_ccosl.c: Likewise.
16003         * math/s_ctan.c: Likewise.
16004         * math/s_ctanf.c: Likewise.
16005         * math/s_ctanh.c: Likewise.
16006         * math/s_ctanhf.c: Likewise.
16007         * math/s_ctanhl.c: Likewise.
16008         * math/s_ctanl.c: Likewise.
16009         * math/w_fmod.c: Likewise.
16010         * math/w_fmodf.c: Likewise.
16011         * math/w_fmodl.c: Likewise.
16012         * math/w_remainder.c: Likewise.
16013         * math/w_remainderf.c: Likewise.
16014         * math/w_remainderl.c: Likewise.
16015         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16016         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16017         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16018         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16019         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16020         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16021         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16022         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16023
16024         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16025         of the number.
16026         * stdio-common/printf_fphex.c: Likewise.
16027         * stdio-common/printf_size.c: Likewise.
16028
16029         * math/e_exp10.c: Include math_private.h using <...> not "...".
16030         * math/e_exp10f.c: Likewise.
16031         * math/e_exp10l.c: Likewise.
16032         * math/e_exp2l.c: Likewise.
16033         * math/e_j0l.c: Likewise.
16034         * math/e_j1l.c: Likewise.
16035         * math/e_jnl.c: Likewise.
16036         * math/e_lgammal_r.c: Likewise.
16037         * math/e_rem_pio2l.c: Likewise.
16038         * math/e_scalb.c: Likewise.
16039         * math/e_scalbf.c: Likewise.
16040         * math/e_scalbl.c: Likewise.
16041         * math/k_cosl.c: Likewise.
16042         * math/k_sinl.c: Likewise.
16043         * math/k_tanl.c: Likewise.
16044         * math/s_cacoshf.c: Likewise.
16045         * math/s_catan.c: Likewise.
16046         * math/s_catanf.c: Likewise.
16047         * math/s_catanh.c: Likewise.
16048         * math/s_catanhf.c: Likewise.
16049         * math/s_catanhl.c: Likewise.
16050         * math/s_catanl.c: Likewise.
16051         * math/s_ccosh.c: Likewise.
16052         * math/s_ccoshf.c: Likewise.
16053         * math/s_ccoshl.c: Likewise.
16054         * math/s_cexp.c: Likewise.
16055         * math/s_cexpf.c: Likewise.
16056         * math/s_cexpl.c: Likewise.
16057         * math/s_clog.c: Likewise.
16058         * math/s_clog10.c: Likewise.
16059         * math/s_clog10f.c: Likewise.
16060         * math/s_clog10l.c: Likewise.
16061         * math/s_clogf.c: Likewise.
16062         * math/s_clogl.c: Likewise.
16063         * math/s_csin.c: Likewise.
16064         * math/s_csinf.c: Likewise.
16065         * math/s_csinh.c: Likewise.
16066         * math/s_csinhf.c: Likewise.
16067         * math/s_csinhl.c: Likewise.
16068         * math/s_csinl.c: Likewise.
16069         * math/s_csqrt.c: Likewise.
16070         * math/s_csqrtf.c: Likewise.
16071         * math/s_csqrtl.c: Likewise.
16072         * math/s_ctan.c: Likewise.
16073         * math/s_ctanf.c: Likewise.
16074         * math/s_ctanh.c: Likewise.
16075         * math/s_ctanhf.c: Likewise.
16076         * math/s_ctanhl.c: Likewise.
16077         * math/s_ctanl.c: Likewise.
16078         * math/s_ldexp.c: Likewise.
16079         * math/s_ldexpf.c: Likewise.
16080         * math/s_ldexpl.c: Likewise.
16081         * math/s_significand.c: Likewise.
16082         * math/s_significandf.c: Likewise.
16083         * math/s_significandl.c: Likewise.
16084         * math/w_acos.c: Likewise.
16085         * math/w_acosf.c: Likewise.
16086         * math/w_acosh.c: Likewise.
16087         * math/w_acoshf.c: Likewise.
16088         * math/w_acoshl.c: Likewise.
16089         * math/w_acosl.c: Likewise.
16090         * math/w_asin.c: Likewise.
16091         * math/w_asinf.c: Likewise.
16092         * math/w_asinl.c: Likewise.
16093         * math/w_atan2.c: Likewise.
16094         * math/w_atan2f.c: Likewise.
16095         * math/w_atan2l.c: Likewise.
16096         * math/w_atanh.c: Likewise.
16097         * math/w_atanhf.c: Likewise.
16098         * math/w_atanhl.c: Likewise.
16099         * math/w_cosh.c: Likewise.
16100         * math/w_coshf.c: Likewise.
16101         * math/w_coshl.c: Likewise.
16102         * math/w_dremf.c: Likewise.
16103         * math/w_exp10.c: Likewise.
16104         * math/w_exp10f.c: Likewise.
16105         * math/w_exp10l.c: Likewise.
16106         * math/w_exp2.c: Likewise.
16107         * math/w_exp2f.c: Likewise.
16108         * math/w_fmod.c: Likewise.
16109         * math/w_fmodf.c: Likewise.
16110         * math/w_fmodl.c: Likewise.
16111         * math/w_hypot.c: Likewise.
16112         * math/w_hypotf.c: Likewise.
16113         * math/w_hypotl.c: Likewise.
16114         * math/w_j0.c: Likewise.
16115         * math/w_j0f.c: Likewise.
16116         * math/w_j0l.c: Likewise.
16117         * math/w_j1.c: Likewise.
16118         * math/w_j1f.c: Likewise.
16119         * math/w_j1l.c: Likewise.
16120         * math/w_jn.c: Likewise.
16121         * math/w_jnf.c: Likewise.
16122         * math/w_jnl.c: Likewise.
16123         * math/w_lgamma.c: Likewise.
16124         * math/w_lgamma_r.c: Likewise.
16125         * math/w_lgammaf.c: Likewise.
16126         * math/w_lgammaf_r.c: Likewise.
16127         * math/w_lgammal.c: Likewise.
16128         * math/w_lgammal_r.c: Likewise.
16129         * math/w_log.c: Likewise.
16130         * math/w_log10.c: Likewise.
16131         * math/w_log10f.c: Likewise.
16132         * math/w_log10l.c: Likewise.
16133         * math/w_log2.c: Likewise.
16134         * math/w_log2f.c: Likewise.
16135         * math/w_log2l.c: Likewise.
16136         * math/w_logf.c: Likewise.
16137         * math/w_logl.c: Likewise.
16138         * math/w_pow.c: Likewise.
16139         * math/w_powf.c: Likewise.
16140         * math/w_powl.c: Likewise.
16141         * math/w_remainder.c: Likewise.
16142         * math/w_remainderf.c: Likewise.
16143         * math/w_remainderl.c: Likewise.
16144         * math/w_scalb.c: Likewise.
16145         * math/w_scalbf.c: Likewise.
16146         * math/w_scalbl.c: Likewise.
16147         * math/w_sinh.c: Likewise.
16148         * math/w_sinhf.c: Likewise.
16149         * math/w_sinhl.c: Likewise.
16150         * math/w_sqrt.c: Likewise.
16151         * math/w_sqrtf.c: Likewise.
16152         * math/w_sqrtl.c: Likewise.
16153         * math/w_tgamma.c: Likewise.
16154         * math/w_tgammaf.c: Likewise.
16155         * math/w_tgammal.c: Likewise.
16156
16157         * po/ja.po: Update from translation team.
16158
16159 2011-09-29  Andreas Jaeger  <aj@suse.de>
16160
16161         [BZ #13179]
16162         * sunrpc/netname.c (netname2host): Fix logic.
16163
16164         [BZ #6779]
16165         [BZ #6783]
16166         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16167         correctly.
16168         * math/w_remainder.c (__remainder): Likewise.
16169         * math/w_remainderf.c (__remainderf): Likewise.
16170         * math/libm-test.inc (remainder_test): Add test cases.
16171
16172 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16173
16174         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16175         sdiv_qrnnd.
16176
16177 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16178
16179         * string/test-memcmp.c: Avoid unncessary #defines.
16180         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16181
16182 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16183
16184         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16185         Use new sse2 version for core i3 - i7 as it's faster
16186         than sse42 version.
16187         (bit_Prefer_PMINUB_for_stringop): New.
16188         * sysdeps/x86_64/rawmemchr.S: Update.
16189         Replace with faster SSE2 version.
16190         * sysdeps/x86_64/memrchr.S: New file.
16191         * sysdeps/x86_64/memchr.S: Update.
16192         Replace with faster SSE2 version.
16193
16194 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16195
16196         * elf/dl-load.c (lose): Add cast to avoid warning.
16197
16198 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16199
16200         * po/ca.po: Update from translation team.
16201
16202         * inet/getnetgrent_r.c: Hook up nscd.
16203         * nscd/Makefile (routines): Add nscd_netgroup.
16204         (nscd-modules): Add netgroupcache.
16205         (CFLAGS-netgroupcache.c): Define.
16206         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16207         (cache_search): Add const to second parameter.
16208         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16209         INNETGR.
16210         (dbs): Add netgrdb entry.
16211         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16212         (verify_persistent_db): Handle netgrdb.
16213         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16214         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16215         GETFDNETGR.
16216         (netgroup_response_header): Define.
16217         (innetgroup_response_header): Define.
16218         (datahead): Add netgroup_response_header and innetgroup_response_header
16219         elements.
16220         * nscd/nscd.conf: Add entries for netgroup cache.
16221         * nscd/nscd.h (dbtype): Add netgrdb.
16222         (_PATH_NSCD_NETGROUP_DB): Define.
16223         (netgroup_iov_disabled): Declare.
16224         (xmalloc, xcalloc, xrealloc): Move declarations here.
16225         (cache_search): Adjust prototype.
16226         Add netgroup-related prototypes.
16227         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16228         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16229         (__nscd_innetgr): Declare.
16230         * nscd/selinux.c (perms): Use access_vector_t as element type and
16231         add netgroup-related initializers.
16232         * nscd/netgroupcache.c: New file.
16233         * nscd/nscd_netgroup.c: New file.
16234         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16235         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16236         For four parameters use innetgr.
16237         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16238         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16239         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16240         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16241
16242         * nscd/connections.c (register_traced_file): Don't register file
16243         for disabled databases.
16244
16245 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16246
16247         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16248
16249         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16250         from tree and freeing node.
16251
16252 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16253
16254         * nss/nsswitch.c (__nss_database_lookup): Handle
16255         nss_parse_service_list out of memory case.
16256
16257 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16258
16259         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16260         out of memory case.
16261
16262 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16263
16264         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16265         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16266         pass it down.
16267         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16268         elf_machine_rela, elf_machine_lazy_rel.
16269         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16270         (ELF_DYNAMIC_DO_REL): Likewise.
16271         (ELF_DYNAMIC_DO_RELA): Likewise.
16272         (ELF_DYNAMIC_RELOCATE): Likewise.
16273         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16274         to ELF_DYNAMIC_DO_REL.
16275         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16276         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16277         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16278         elf_machine_rela.
16279         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16280         skip_ifunc, don't call ifunc function if non-zero.
16281         (elf_machine_rela): Likewise.
16282         (elf_machine_lazy_rel): Likewise.
16283         (elf_machine_lazy_rela): Likewise.
16284         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16285         (elf_machine_lazy_rel): Likewise.
16286         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16287         Likewise.
16288         (elf_machine_lazy_rel): Likewise.
16289         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16290         Likewise.
16291         (elf_machine_lazy_rel): Likewise.
16292         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16293         (elf_machine_lazy_rel): Likewise.
16294         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16295         (elf_machine_lazy_rel): Likewise.
16296         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16297         (elf_machine_lazy_rel): Likewise.
16298         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16299         (elf_machine_lazy_rel): Likewise.
16300         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16301         (elf_machine_lazy_rel): Likewise.
16302         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16303         (elf_machine_lazy_rel): Likewise.
16304
16305 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16306
16307         * nss/nss_files/files-init.c (_nss_files_init): Use static
16308         initialization for all the *_traced_file variables.
16309
16310 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16311
16312         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16313
16314 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16315
16316         [BZ #13226]
16317         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16318
16319 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16320
16321         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16322         Reread the line before reparsing it.
16323
16324 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16325
16326         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16327
16328 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16329             Maxim Kuvyrkov  <maxim@codesourcery.com>
16330             Joseph Myers  <joseph@codesourcery.com>
16331
16332         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16333         if needed for __stack_chk_guard.
16334
16335 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16336
16337         * sysdeps/posix/spawni.c (script_execute): Always define it.
16338         It will be optimized away if unused.
16339         (maybe_script_execute): New function.
16340         (__spawni): Call it.
16341
16342         * Makerules: Don't include tls.make.
16343         (config-tls): Always set to thread.
16344         * tls.make.c: File removed.
16345
16346 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16347
16348         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16349         * config.make.in (CPPFLAGS-config): New substituted variable.
16350
16351 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16352
16353         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16354
16355         [BZ #13192]
16356         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16357         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16358
16359 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16360
16361         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16362         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16363         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16364         (CALL_FAIL): Likewise.
16365         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16366         (CALL_FAIL): Macro removed.
16367         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16368
16369 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16370
16371         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16372         for __FINITE_MATH_ONLY__ == 1.
16373
16374 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16375
16376         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16377         __ieee754_sqrt instead of sqrt.
16378         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16379         __ieee754_sqrtf instead of sqrtf.
16380         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16381         __floorf instead of floorf.
16382         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16383         __floorf, __truncf instead of floorf, truncf.
16384
16385 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16386
16387         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16388
16389         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16390         __extern_always_inline.
16391         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16392         32-bit.
16393
16394 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16395
16396         * elf/rtld.c (dl_main): Also relocate in dependency order when
16397         doing symbol dependency testing.
16398
16399 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16400
16401         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16402         Always define `refsym'.
16403
16404 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16405
16406         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16407         (__FD_ELT): Renamed from __FDELT.
16408         * misc/bits/select2.h (__FD_ELT): Likewise.
16409         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16410         __FD_MASK instead of __FDELT, __FDMASK.
16411         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16412         Likewise.
16413         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16414         Likewise.
16415
16416         * elf/Makefile (gen-ldd): Fix pattern.
16417
16418         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16419         (init_tls): Likewise.
16420
16421 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16422
16423         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16424
16425 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16426
16427         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16428         `struct cmsghdr *' instead of `void *'.
16429         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16430         Likewise.
16431
16432 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16433
16434         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16435         if non-absolute.
16436         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16437         ldd_rewrite_script.
16438
16439 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16440
16441         * configure.in: Remove --with-tls option.
16442         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16443         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16444         out in case it is missing.
16445         * sysdeps/ia64/elf/configure.in: Likewise.
16446         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16447         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16448         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16449         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16450         * sysdeps/sh/elf/configure.in: Likewise.
16451         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16452         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16453         * sysdeps/x86_64/elf/configure.in: Likewise.
16454         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16455         * sysdeps/mach/hurd/tls.h: Likewise.
16456
16457         [BZ #13067]
16458         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16459
16460         [BZ #13090]
16461         * configure.in: Fix use of AC_INIT.
16462
16463         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16464
16465 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16466
16467         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16468         __set_errno.
16469         * malloc/hooks.c: Likewise.
16470
16471         [BZ #11929]
16472         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16473         variables statically.
16474         (narenas): Initialize.
16475         (list_lock): Initialize.
16476         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16477         initializtion of main_arena and list_lock.  Small cleanups.
16478         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16479         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16480         Add initializers to main_arena and mp_.
16481         (malloc_state): Remove pagesize member.  Change all users to use
16482         GLRO(dl_pagesize).
16483
16484         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16485         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16486         is always initialized.
16487
16488         * malloc/malloc.c: Removed unused configurations and dead code.
16489         * malloc/arena.c: Likewise.
16490         * malloc/hooks.c: Likewise.
16491         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16492
16493         * include/tls.h: Removed.  USE___THREAD must always be defined.
16494         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16495         * elf/dl-libc.c: Likewise.
16496         * elf/dl-tsd.c: Likewise.
16497         * include/errno.h: Likewise.
16498         * include/netdb.h: Likewise.
16499         * include/resolv.h: Likewise.
16500         * inet/herrno-loc.c: Likewise.
16501         * inet/herrno.c: Likewise.
16502         * malloc/arena.c: Likewise.
16503         * malloc/hooks.c: Likewise.
16504         * malloc/malloc.c: Likewise.
16505         * resolv/res-state.c: Likewise.
16506         * resolv/res_libc.c: Likewise.
16507         * sysdeps/i386/dl-machine.h: Likewise.
16508         * sysdeps/ia64/dl-machine.h: Likewise.
16509         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16510         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16511         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16512         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16513         * sysdeps/sh/dl-machine.h: Likewise.
16514         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16515         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16516         * sysdeps/unix/i386/sysdep.S: Likewise.
16517         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16518         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16519         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16520         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16521         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16522         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16523         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16524         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16525         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16526         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16527         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16528         * sysdeps/x86_64/dl-machine.h: Likewise.
16529         * tls.make.c: Likewise.
16530
16531         * configure.in: Remove --with-__thread option.  Make tests for
16532         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16533         tls_model attribute fail if no support is available.  Remove
16534         USE_IN_LIBIO.
16535         * Makeconfig: Adjust for dropped configure option.  All features are
16536         now mandatory.
16537         * Makerules: Likewise.
16538         * Versions.def: Likewise.
16539         * argp/argp-fmtstream.c: Likewise.
16540         * argp/argp-fmtstream.h: Likewise.
16541         * argp/argp-help.c: Likewise.
16542         * assert/assert.c: Likewise.
16543         * config.h.in: Likewise.
16544         * config.make.in: Likewise.
16545         * configure: Likewise.
16546         * configure.in: Likewise.
16547         * csu/Versions: Likewise.
16548         * csu/init.c: Likewise.
16549         * elf/tst-audit2.c: Likewise.
16550         * elf/tst-tls10.c: Likewise.
16551         * elf/tst-tls10.h: Likewise.
16552         * elf/tst-tls11.c: Likewise.
16553         * elf/tst-tls12.c: Likewise.
16554         * elf/tst-tls14.c: Likewise.
16555         * elf/tst-tlsmod11.c: Likewise.
16556         * elf/tst-tlsmod12.c: Likewise.
16557         * elf/tst-tlsmod13.c: Likewise.
16558         * elf/tst-tlsmod13a.c: Likewise.
16559         * elf/tst-tlsmod14a.c: Likewise.
16560         * elf/tst-tlsmod15b.c: Likewise.
16561         * elf/tst-tlsmod16a.c: Likewise.
16562         * elf/tst-tlsmod16b.c: Likewise.
16563         * elf/tst-tlsmod7.c: Likewise.
16564         * elf/tst-tlsmod8.c: Likewise.
16565         * elf/tst-tlsmod9.c: Likewise.
16566         * gmon/gmon.c: Likewise.
16567         * grp/fgetgrent_r.c: Likewise.
16568         * grp/putgrent.c: Likewise.
16569         * hurd/fopenport.c: Likewise.
16570         * include/libc-symbols.h: Likewise.
16571         * include/tls.h: Likewise.
16572         * intl/gettextP.h: Likewise.
16573         * intl/loadinfo.h: Likewise.
16574         * locale/global-locale.c: Likewise.
16575         * locale/localeinfo.h: Likewise.
16576         * mach/devstream.c: Likewise.
16577         * malloc/arena.c: Likewise.
16578         * malloc/set-freeres.c: Likewise.
16579         * misc/err.c: Likewise.
16580         * misc/getttyent.c: Likewise.
16581         * misc/mntent_r.c: Likewise.
16582         * posix/getopt.c: Likewise.
16583         * posix/wordexp.c: Likewise.
16584         * pwd/fgetpwent_r.c: Likewise.
16585         * resolv/Versions: Likewise.
16586         * resolv/res_hconf.c: Likewise.
16587         * shadow/fgetspent_r.c: Likewise.
16588         * shadow/putspent.c: Likewise.
16589         * stdio-common/printf_fphex.c: Likewise.
16590         * stdio-common/tmpfile.c: Likewise.
16591         * stdlib/abort.c: Likewise.
16592         * stdlib/fmtmsg.c: Likewise.
16593         * sunrpc/auth_unix.c: Likewise.
16594         * sunrpc/clnt_perr.c: Likewise.
16595         * sunrpc/clnt_tcp.c: Likewise.
16596         * sunrpc/clnt_udp.c: Likewise.
16597         * sunrpc/clnt_unix.c: Likewise.
16598         * sunrpc/openchild.c: Likewise.
16599         * sunrpc/svc_simple.c: Likewise.
16600         * sunrpc/svc_tcp.c: Likewise.
16601         * sunrpc/svc_udp.c: Likewise.
16602         * sunrpc/svc_unix.c: Likewise.
16603         * sunrpc/xdr.c: Likewise.
16604         * sunrpc/xdr_array.c: Likewise.
16605         * sunrpc/xdr_rec.c: Likewise.
16606         * sunrpc/xdr_ref.c: Likewise.
16607         * sunrpc/xdr_stdio.c: Likewise.
16608
16609 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16610
16611         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16612
16613 2011-07-03  Andreas Jaeger  <aj@suse.de>
16614
16615         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16616         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16617         regenerate with gen-libm-tests.pl.
16618
16619 2010-05-12  Petr Baudis  <pasky@suse.cz>
16620
16621         [BZ #11589]
16622         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16623         around j0() zero points by switching to j1().
16624         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16625         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16626         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16627         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16628
16629 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16630
16631         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16632         instead of 0.
16633         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16634         instead of 0.                              .
16635         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16636         Patch in part by Pavel Roskin <proski@gnu.org>.
16637
16638         [BZ #13138]
16639         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16640         realloc.
16641         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16642         Free memory block if necessary.
16643
16644         [BZ #12847]
16645         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16646         be NULL.  Don't lock in this case.
16647
16648 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16649
16650         * elf/elf.h (ELFOSABI_GNU): New macro.
16651         (ELFOSABI_LINUX): Define to that.
16652
16653 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16654
16655         * string/strncat.c (strncat): Undef the symbol in case it has been
16656         defined in bits/string.h.
16657
16658 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16659
16660         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16661
16662         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16663         link map.
16664
16665 2011-08-17  Andreas Jaeger  <aj@suse.de>
16666
16667         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16668
16669 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16670             Ian Lance Taylor  <iant@google.com>
16671
16672         * math/libm-test.inc (lround_test): New testcase.
16673         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16674
16675 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16676
16677         * Makefile: Remove support for automatic cvs check-ins.
16678         * Makerules: Likewise.
16679         * config.make.in: Likewise.
16680         * configure.in: Likewise.
16681         * intl/Makefile: Likewise.
16682         * locale/Makefile: Likewise.
16683         * po/Makefile: Likewise.
16684         * posix/Makefile: Likewise.
16685         * sysdeps/gnu/Makefile: Likewise.
16686         * sysdeps/mach/hurd/Makefile: Likewise.
16687         * sysdeps/sparc/sparc32/Makefile: Likewise.
16688
16689         [BZ #13118]
16690         * posix/Makefile (bug-regex32-ENV): Define.
16691         Patch by John Stanley <jpsinthemix@verizon.net>.
16692
16693         * misc/Makefile (headers): Add bits/select2.h.
16694         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16695         * misc/bits/select2.h: New file.
16696         * include/bits/select2.h: New file.
16697         * debug/Makefile (routines): Add fdelt_chk.
16698         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16699         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16700         FD_ISSET.
16701         * debug/fdelt_chk.c: New file.
16702
16703         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16704         * wcsmbs/test-wmemcmp.c: Likewise.
16705         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16706         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16707
16708 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16709
16710         * string/Makefile (strop-tests): Add memcmp.
16711         * string/test-wmemcmp.c: New file.
16712         * string/test-memcmp.c: Add wmemcmp support.
16713
16714 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16715
16716         [BZ #13153]
16717         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16718         2011-07-19 change.
16719
16720         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16721         garbage value in a __mach_port_mod_refs call in the cases of the
16722         task-self and thread-self ports.
16723
16724 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16725
16726         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16727
16728 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16729
16730         * elf/dl-load.c (lose): Check for non-null L.
16731
16732 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16733
16734         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16735
16736         * elf/dl-libc.c (dlerror_run): Pass back error code from
16737         dl_catch_error.
16738
16739         [BZ #13123]
16740         * elf/dl-load.c (lose): Free l_origin if it is valid.
16741
16742         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16743         names.
16744         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16745         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16746         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16747         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16748         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16749         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16750
16751 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16752
16753         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16754         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16755         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16756         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16757         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16758         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16759         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16760         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16761         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16762         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16763
16764 2011-08-15  Alan Modra  <amodra@gmail.com>
16765
16766         [BZ #13092]
16767         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16768         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16769         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16770         ppc_mcount to static-only-routines.
16771         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16772         __mcount_internal.
16773         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16774         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16775
16776 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16777
16778         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16779         for finite and infinity parameters.
16780
16781 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16782
16783         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16784         and add nop instructions for throughput optimization.
16785         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16786
16787 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16788
16789         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16790         aligned copy for power7 with vector-scalar instructions.
16791         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16792
16793 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16794
16795         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16796         AVX check.
16797
16798 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16799
16800         [BZ #13144]
16801         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16802         last change.
16803
16804 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16805
16806         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16807         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16808         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16809         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16810         clock_gettime.
16811
16812 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16813
16814         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16815         Forgot to demangle the pointer.
16816
16817         * sysdeps/i386/sysdep.h: Define atom_text_section.
16818         * sysdeps/x86_64/sysdep.h: Likewise.
16819         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16820         section with atom_text_section.
16821         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16822         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16823         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16824         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16825         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16826
16827         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16828         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16829         already be defined.  Change to take two parameters and don't assign
16830         result to variable.  Adjust all users.
16831         Define INTERNAL_GETTIME if not already defined.
16832         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16833         call.
16834         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16835         HAVE_CLOCK_GETTIME_VSYSCALL.
16836         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16837
16838         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16839         gettimeofday vsyscall, just use time.
16840
16841 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16842
16843         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16844         <errno.h>.
16845
16846 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16847
16848         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16849         syscall on x86-64.
16850         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16851         syscall.
16852         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16853         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16854         syscall if possible.
16855
16856 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16857
16858         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16859         e_ident.  Don't pass to find_mapsXX.
16860         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16861
16862 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16863
16864         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16865         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16866         * sysdeps/x86_64/multiarch/strchr.S: Update.
16867         Check bit_slow_BSF bit.
16868         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16869         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16870         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16871
16872 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16873
16874         [BZ #13134]
16875         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16876         before glibc 2.15.
16877         (tryshell): Define.
16878         (__spawni): Change last parameter to be flag.  Test
16879         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16880         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16881         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16882         * posix/spawni.c: Likewise.
16883         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16884         * posix/spawnp.c: Likewise.  Change normal version to use
16885         SPAWN_XFLAGS_USE_PATH.
16886         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16887         SPAWN_XFLAGS_TRY_SHELL.
16888
16889         [BZ #13150]
16890         * posix/glob.h: Remove gcc 1.x support.
16891
16892         [BZ #13068]
16893         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16894
16895 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16896
16897         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16898         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16899         strrchr-sse2-bsf
16900         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16901         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16902         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16903         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16904         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16905         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16906
16907 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16908
16909         * sysdeps/x86_64/wcscmp.S: New file.
16910
16911         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16912         wcscmp-c wcscmp-sse2
16913         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16914         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16915         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16916         * wcsmbs/wcscmp.c: Allow renaming.
16917
16918 2011-09-05  David S. Miller  <davem@davemloft.net>
16919
16920         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16921         stack slot, rather than the struct return pointer slot.
16922         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16923         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16925         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16926
16927 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16928
16929         * po/ja.po: Update from translation team.
16930
16931         [BZ #13144]
16932         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16933         kernel in 64-bit binaries.
16934
16935 2011-09-01  David S. Miller  <davem@davemloft.net>
16936
16937         * elf/elf.h (HWCAP_SPARC_*): Move to..
16938         * sysdeps/sparc/sysdep.h: this new file and add new values.
16939         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16940         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16941         _DL_HWCAP_COUNT to 24.
16942         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16943         entries.
16944         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16945         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16946         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16947         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16948         instead of magic constants.
16949         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16950
16951 2011-08-31  David S. Miller  <davem@davemloft.net>
16952
16953         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16954         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16955         Reimplement to do errno handling inline.
16956         (SYSCALL_ERROR_HANDLER): New macro.
16957         (__SYSCALL_STRING): Do not do errno handling in asm.
16958         (__CLONE_SYSCALL_STRING): Delete.
16959         (__INTERNAL_SYSCALL_STRING): Delete.
16960         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16961         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16962         (PSEUDO): Reimplement to do errno handling inline.
16963         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16964         (SYSCALL_ERROR_HANDLER): New macro.
16965         (__SYSCALL_STRING): Do not do errno handling in asm.
16966         (__CLONE_SYSCALL_STRING): Delete.
16967         (__INTERNAL_SYSCALL_STRING): Delete.
16968         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16969         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16970         i386.
16971         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16972         (inline_syscall*): Add 'err' argument.
16973         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16974         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16975         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16976         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16977
16978         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16979         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16980
16981 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16982
16983         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16984
16985 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16986
16987         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16988         directive.
16989
16990 2011-08-24  David S. Miller  <davem@davemloft.net>
16991
16992         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16993
16994 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16995
16996         * elf/Makefile: Add rules to build and run unload8 test.
16997         * elf/unload8.c: New file.
16998         * elf/unload8mod1.c: New file.
16999         * elf/unload8mod1x.c: New file.
17000         * elf/unload8mod2.c: New file.
17001         * elf/unload8mod3.c: New file.
17002
17003         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17004         it wasn't used.
17005
17006 2011-08-23  David S. Miller  <davem@davemloft.net>
17007
17008         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17009         subtract stack bias.
17010         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17011         %sp not %fp in calculations.
17012         (_JMPBUF_UNWINDS_ADJ): Likewise.
17013
17014         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17015         (aio_suspend): Call it to force an exception region around the
17016         AIO_MISC_WAIT() invocation.
17017
17018 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17019
17020         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17021         backslash.
17022
17023 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17024
17025         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17026         protection macro.
17027         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17028         and <dl-machine.h>.
17029         (Elf64_FuncDesc): Remove.
17030
17031 2011-08-22  David S. Miller  <davem@davemloft.net>
17032
17033         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17034         sigaltstack check, add missing cfi directives.
17035         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17036         missing cfi directives, and sigaltstack handling.
17037
17038 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17039
17040         [BZ #11724]
17041         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17042         object is seen twice.
17043         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17044
17045         * elf/Makefile (distribute): Add tst-initorder2.c.
17046         (tests): Add tst-initorder2.
17047         (modules-names): Add tst-initorder2a tst-initorder2b
17048         tst-initorder2c tst-initorder2d.  Add rules to build them.
17049         ($(objpfx)tst-initorder2.out): New rule.
17050         * elf/tst-initorder2.c: New file.
17051         * elf/tst-initorder2.exp: New file.
17052
17053 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17054
17055         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17056
17057         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17058         dependencies back to end of function.
17059
17060         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17061         $(elfobjdir)/ld.so.
17062
17063 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17064
17065         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17066         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17067         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17068         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17069         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17070         of __vdso_gettimeofday.
17071         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17072         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17073         attribute_hidden.
17074         (_libc_vdso_platform_setup): Remove initialization of
17075         __vdso_gettimeofday and __vdso_time.
17076
17077 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17078
17079         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17080         and fgetc_unlocked.
17081         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17082         getc_unlocked.
17083
17084         * elf/dl-open.c (add_to_global): Report additions to the global scope
17085         for LD_DEBUG=scopes.
17086         (dl_open_worker): Also print scope of newly loaded dependencies.
17087         (_dl_show_scope): Indicate if there is no scope.
17088
17089         [BZ #13114]
17090         * stdio-common/Makefile (tests): Add bug24.
17091         * stdio-common/bug24.c: New file.
17092
17093 2011-08-19  Andreas Jaeger  <aj@suse.de>
17094
17095         [BZ #13114]
17096         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17097         non-existant file when using close-on-exec mode.
17098
17099 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17100
17101         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17102         the very first instruction.
17103
17104         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17105         the CFI state in the end.
17106         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17107         inclusion of dl-trampoline.h.
17108         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17109
17110 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17111
17112         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17113         expectations for long double.
17114
17115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17116         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17117
17118 2011-08-14  David S. Miller  <davem@davemloft.net>
17119
17120         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17121         artificual limit depends upon the system page size.
17122
17123 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17124
17125         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17126         * resolv/Makefile: Define CFLAGS-libresolv.
17127
17128 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17129
17130         * nss/makedb.c (compute_tables): Make variables used in nested
17131         function static.
17132
17133 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17134
17135         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17136         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17137         if buffer was too small.
17138
17139         * elf/pldd.c (main): Attach to all threads in the process.
17140         Rewrite /proc handling to use *at functions.
17141
17142 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17143
17144         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17145         specifies first scope to show.
17146         (dl_open_worker): Update callers.  Move printing scope of new
17147         object to before the relocation.
17148         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17149         * sysdeps/generic/ldsodefs.h: Update declaration.
17150
17151         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17152         string for the scope number.
17153
17154 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17155
17156         * nscd/servicescache.c (cache_addserv): Make sure written is always
17157         initialized.
17158
17159 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17160
17161         * sysdeps/i386/i486/bits/atomic.h
17162         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17163         statement expression, so as to suppress "set but not used" warning.
17164         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17165
17166         * string/strncat.c (STRNCAT): Use prototype definition.
17167
17168         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17169         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17170         -Iprograms here.
17171         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17172         (localedef-modules): Add localedef.
17173         (locale-modules): Add locale.
17174
17175         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17176         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17177         to avoid a warning.
17178
17179 2011-08-14  David S. Miller  <davem@davemloft.net>
17180
17181         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17182         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17183
17184 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17185
17186         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17187         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17188         * elf/rtld.c (dl_main): Set l_name of vDSO.
17189         Call _dl_show_scope when DL_DEBUG_SCOPES.
17190         (process_dl_debug): Recognize scopes flag and also set it for all.
17191         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17192         Declare _dl_show_scope.
17193
17194         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17195         (do_dlopen): Pass caller_dlopen to dl_open.
17196         (__libc_dlopen_mode): Initialize caller_dlopen.
17197
17198         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17199         of libc.  Make tolower call locale-independent.  Optimize a bit by
17200         using isdigit instead of isalnum.
17201         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17202
17203 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17204
17205         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17206         was a dependency or dynamically loaded.
17207
17208 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17209
17210         * intl/l10nflist.c: Allow architecture-specific pop function.
17211         * sysdeps/x86_64/l10nflist.c: New file.
17212
17213         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17214         classification.
17215
17216 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17217
17218         * include/dirent.h: Add libc_hidden_proto for scandirat and
17219         scandirat64.  Don't declare __scandirat64.
17220         * dirent/scandirat.c: Add libc_hidden_def.
17221         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17222         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17223
17224 2011-08-10  David S. Miller  <davem@davemloft.net>
17225
17226         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17227         enum.
17228         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17229         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17230         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17231
17232 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17233
17234         * Versions.def [libc]: Add GLIBC_2.15.
17235         * dirent/Makefile (routines): Add scandirat and scandirat64.
17236         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17237         GLIBC_2.15.
17238         * dirent/dirent.h: Declare scandirat and scandirat64.
17239         * dirent/scandirat.c: New file.
17240         * dirent/scandirat64.c: New file.
17241         * sysdeps/wordsize-64/scandirat.c: New file.
17242         * sysdeps/wordsize-64/scandirat64.c: New file.
17243         * dirent/opendir.c: Define opendirat.
17244         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17245         using scandirat.
17246         * dirent/scandir64.c: Adjust for scandir.c change.
17247         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17248         __scandirat64, and __scandir_cancel_handler.
17249         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17250         additional parameter and use openat instead of open (outside of ld.so).
17251         Add new __opendir as wrapper around __opendirat.
17252         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17253         here without requiring old scandirat implementation.
17254
17255 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17256
17257         * dirent/scandir.c (cancel_handler): Renamed to
17258         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17259         defined.  Adjust users.
17260         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17261         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17262
17263 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17264
17265         * string/test-string.h (IMPL): Use __STRING to expand name and then
17266         stringify it.
17267
17268         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17269         of cleanups.
17270
17271 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17272
17273         * string/Makefile: Update.
17274         (strop-tests): Append strncat.
17275         * string/test-wcscmp.c: New file.
17276         New comprehensive test for wcscmp.
17277         * string/test-strcmp.c: Update.
17278         (WIDE): New define.
17279
17280 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17281
17282         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17283         line.
17284
17285 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17286
17287         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17288         encoding to ACE if AI_IDN.
17289
17290 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17291
17292         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17293         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17294
17295 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17296
17297         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17298         Fix overflow bug in strncat.
17299         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17300
17301         * string/test-strncat.c: Update.
17302         Add new tests for checking overflow bugs.
17303
17304 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17305
17306         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17307         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17308         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17309         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17310         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17311         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17312         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17313         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17314         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17315
17316         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17317         (USE_AS_STRCAT): Define.
17318         Add strcat and strncat support.
17319         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17320
17321 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17322
17323         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17324         __n bigger than INT_MAX+1.
17325         (__strncmp_g): Likewise.
17326
17327 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17328
17329         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17330         * libio/stido.h: Likewise.
17331
17332         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17333         (AF_NFC): Define.
17334         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17335         (AF_NFC): Define.
17336
17337         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17338         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17339         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17340         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17341         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17342
17343         [BZ #13021]
17344         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17345         installed.
17346
17347         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17348         typo.
17349         (_dl_x86_64_save_sse): Likewise.
17350
17351 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17352
17353         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17354         OSXSAVE.
17355         (_dl_x86_64_save_sse): Likewise.
17356
17357         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17358
17359         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17360
17361 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17362
17363         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17364         change.
17365         (_dl_x86_64_save_sse): Use correct AVX check.
17366
17367 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17368
17369         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17370         bug in strncpy/strncat.
17371         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17372
17373 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17374
17375         * string/tester.c (test_strcat): Add tests for different alignments
17376         of source and destination.
17377         (test_strncat): Likewise.
17378
17379 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17380
17381         [BZ #12852]
17382         * posix/glob.c (glob): Check passed in values before using them in
17383         expressions to avoid some overflows.
17384         (glob_in_dir): Likewise.
17385
17386         [BZ #13007]
17387         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17388         check for AVX enablement so that we don't crash with old kernels and
17389         new hardware.
17390         * elf/tst-audit4.c: Add same checks here.
17391         * elf/tst-audit6.c: Likewise.
17392
17393         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17394
17395 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17396
17397         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17398
17399 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17400
17401         * po/cs.po: Update from translation team.
17402         * po/bg.po: Likewise.
17403
17404 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17405
17406         * misc/sys/cdefs.h: Add support for const attribute.
17407         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17408         to gnu_dev_{major,minor,makedev} functions.
17409
17410 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17411
17412         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17413
17414 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17415
17416         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17417         strlen results.
17418
17419 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17420
17421         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17422         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17423         register in order to avoid conflicts with the soft frame pointer
17424         being held in r11 when necessary.
17425         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17426         (INTERNAL_VSYSCALL_NCS): Likewise.
17427
17428 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17429
17430         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17431         * elf/dl-fini.c (_dl_fini): Adjust caller.
17432         * elf/dl-close.c (_dl_close_worker): Likewise.
17433         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17434
17435 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17436
17437         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17438         "aux_cache->nlibs < 0".
17439
17440         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17441         in the reload-count case.
17442
17443 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17444
17445         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17446         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17447         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17448         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17449         * sysdeps/x86_64/multiarch/strcat.S: New file.
17450         * sysdeps/x86_64/multiarch/strncat.S: New file.
17451         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17452         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17453         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17454         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17455         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17456         (USE_AS_STRCAT): Define.
17457         Add strcat and strncat support.
17458         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17459         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17460         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17461         * string/strncat.c: Update.
17462         (USE_AS_STRNCAT): Define.
17463         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17464         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17465         and i7.
17466         * sysdeps/x86_64/multiarch/init-arch.h
17467         (bit_Prefer_PMINUB_for_stringop): New.
17468         (index_Prefer_PMINUB_for_stringop): Likewise.
17469         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17470         bit_Prefer_PMINUB_for_stringop.
17471
17472 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17473
17474         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17475         buffer64.
17476         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17477         of casting of buffer.
17478         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17479         buffer32 and buffer64.
17480         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17481         writes instead of casting of buffer.
17482         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17483         buffer32.
17484         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17485         casting of buffer.
17486
17487 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17488
17489         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17490
17491 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17492
17493         * nscd/nscd.c (termination_handler): Don't do anything for a database
17494         if it has not yet been initialized.
17495
17496 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17497
17498         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17499
17500 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17501
17502         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17503
17504 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17505
17506         * po/nl.po: Update from translation team.
17507         * po/sv.po: Likewise.
17508
17509 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17510
17511         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17512         now disallowed by GCC.
17513
17514         * configure.in (use-default-link): Default to yes if a test -shared
17515         link meets our qualifications.
17516         * configure: Regenerated.
17517
17518         * config.make.in (output-format): New variable.
17519         * configure.in: Check for ld --print-output-format support.
17520         * configure: Regenerated.
17521         * Makerules ($(common-objpfx)format.lds)
17522         [$(output-format) != unknown]: Just use $(output-format),
17523         instead of the linker-script munging.
17524
17525 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17526
17527         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17528         of $(common-objpfx)shlib.lds.
17529         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17530
17531         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17532         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17533
17534         * configure.in (-z relro check): Adjust test code to add a large
17535         writable data section after it.
17536         * configure: Regenerated.
17537
17538 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17539
17540         * configure.in (-z relro check): Fix test code to make the variable
17541         truly const.
17542         * configure: Regenerated.
17543
17544 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17545
17546         * nscd/nscd.h (struct traced_file): Define.
17547         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17548         elements.  Add traced_files.
17549         (inotify_fd): Declare.
17550         (register_traced_file): Declare.
17551         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17552         (inotify_fd): Export.
17553         (resolv_conf_descr): Remove.
17554         (nscd_init): Move inotify descriptor creation to main.
17555         Don't register files for notification here.
17556         (register_traced_file): New function.
17557         (invalidate_cache): Don't use reset_res to determine whether to call
17558         res_init, go through the list of registered files.
17559         (main_loop_poll): The inotify descriptors are now stored in the
17560         structures for the traced files.
17561         (main_loop_epoll): Likewise
17562         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17563         to __nss_disable_nscd.
17564         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17565         for a database anymore.  Check the records for all the registered
17566         files instead.
17567         * nss/Makefile (libnss_files-routines): Add files-init.
17568         (libnss_db-routines): Add db-init.
17569         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17570         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17571         * nss/nss_db/db-init.c: New file.
17572         * nss/nss_files/files-init.c: New file.
17573         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17574         __nss_lookup_function.
17575         (__nss_lookup_function): Call nss_load_library.
17576         (nss_load_all_libraries): New function.
17577         (__nss_disable_nscd): Take parameter with callback function for files
17578         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17579         used for the cached services.
17580         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17581         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17582         options for features to all the files in nscd.
17583
17584         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17585
17586 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17587
17588         * csu/elf-init.c (__libc_csu_init): Comment typo.
17589
17590 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17591
17592         * po/pl.po: Update from translation team.
17593         * po/ja.po: Likewise.
17594         * po/ru.po: Likewise.
17595         * po/ko.po: Likewise.
17596         * po/fr.po: Likewise.
17597
17598 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17599
17600         * configure.in (.ctors/.dtors header and trailer check):
17601         Use an empirical test on a built program.
17602         * configure: Regenerated.
17603
17604         * configure.in (-z relro check): Use an empirical test on a built DSO.
17605         Detect, but do not require, on ia64.
17606         * configure: Regenerated.
17607
17608         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17609         Update tests that use readelf to use $READELF instead.
17610         * configure: Regenerated.
17611
17612 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17613
17614         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17615         if the result is not used.
17616
17617 2011-07-05  Andreas Jaeger  <aj@suse.de>
17618
17619         [BZ#9696]
17620         * stdlib/tst-strtod.c: Add testcase.
17621
17622 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17623
17624         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17625         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17626         The latter has a higher limit.  Take additional parameter to pass to
17627         the new function.
17628         (__pathconf): Pass file to __statfs_link_max.
17629         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17630         __statfs_link_max.
17631         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17632         __statfs_link_max.
17633
17634         [BZ #12868]
17635         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17636         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17637         Handle Lustre.
17638         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17639         (__statfs_filesize_max): Likewise.
17640         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17641
17642 2011-07-05  Andreas Jaeger  <aj@suse.de>
17643
17644         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17645
17646 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17647
17648         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17649         `status' variable.
17650         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17651         Likewise.
17652
17653 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17654
17655         * Makefile (strop-tests): Add strncat.
17656         * string/test-strncat.c: New file.
17657
17658 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17659
17660         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17661
17662 2011-06-21  Andreas Jaeger  <aj@suse.de>
17663
17664         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17665         Copy rule from iconvdata/Makefile.
17666
17667 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17668
17669         [BZ #12922]
17670         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17671         but no long options are defined, just return 'W'.
17672
17673 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17674
17675         [BZ #9696]
17676         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17677
17678 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17679
17680         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17681         netgroups to read.
17682         (innetgr): Likewise.
17683
17684 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17685
17686         * config.make.in (install_root): Default to $(DESTDIR).
17687
17688 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17689
17690         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17691
17692 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17693
17694         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17695
17696         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17697         containing directory rather than embedding absolute directory names.
17698
17699         * scripts/check-local-headers.sh: Rewritten using awk.
17700         Match by word, not by line.  Print error messages for matches.
17701         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17702
17703         * Makerules [shlib-lds-flags empty]:
17704         ($(common-objpfx)libc_pic.opts): New target.
17705         ($(common-objpfx)libc_pic.os.clean): New target.
17706         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17707
17708         * config.make.in (OBJCOPY): New variable.
17709         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17710         * configure: Regenerated.
17711
17712         * config.make.in (use-default-link): New variable.
17713         * configure.in (use_default_link): Grok --with-default-link to set it.
17714         * configure: Regenerated.
17715         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17716         (shlib-lds, shlib-lds-flags): Define to empty.
17717
17718         * Makerules (shlib-lds): New variable.
17719         (shlib-lds-flags): New variable.
17720         (build-shlib, build-moduile, build-module-asneeded): Use it.
17721         ($(common-objpfx)libc.so): Use $(shlib-lds).
17722         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17723         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17724
17725         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17726         DT_FLAGS/DT_FLAGS_1 with zero flags.
17727
17728         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17729         linker script munging.
17730
17731 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17732
17733         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17734         as 128-bit value.
17735         * crypt/sha512.c (sha512_process_block): Perform total addition using
17736         128-bit if possible.
17737         (__sha512_finish_ctx): Likewise.
17738         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17739         as 64-bit value.
17740         * crypt/sha256.c (SWAP64): Define.
17741         (sha256_process_block): Perform total addition using 64-bit if
17742         possible.
17743         (__sha256_finish_ctx): Likewise.
17744
17745 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17746
17747         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17748         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17749         * nscd/hstcache.c (cache_addhst): Likewise.
17750         * nscd/grpcache.c (cache_addgr): Likewise.
17751         * nscd/aicache.c (addhstaiX): Likewise
17752         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17753
17754 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17755
17756         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17757         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17758         * nscd/hstcache.c (cache_addhst): Likewise.
17759         * nscd/grpcache.c (cache_addgr): Likewise.
17760         * nscd/aicache.c (addhstaiX): Likewise
17761
17762 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17763
17764         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17765         domain only when needed.
17766
17767 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17768
17769         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17770         is always restored.
17771
17772 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17773
17774         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17775         are re-adding the entry.
17776         * nscd/servicescache.c (cache_addserv): Likewise.
17777
17778 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17779
17780         * sysdeps/generic/dl-irel.h: fix protection against multiple
17781         inclusions.
17782         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17783
17784 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17785
17786         [BZ #12935]
17787         * malloc/memusage.sh: Fix quoting in message.
17788         * debug/xtrace.sh: Likewise.
17789
17790         * configure.in: Remove support for --experimental-malloc option, make
17791         it the default.
17792         * config.make.in: Likewise.
17793         * malloc/Makefile: Likewise.
17794
17795 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17796
17797         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17798         two-byte characters.
17799
17800 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17801
17802         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17803         AC_CACHE_CHECK invocation.
17804         * configure: Regenerated.
17805
17806         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17807
17808 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17809
17810         [BZ #12350]
17811         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17812         bit from old_res_options.
17813
17814         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17815
17816         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17817         value type for setfct.
17818
17819 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17820
17821         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17822         __gettimeofday instead of gettimeofday.
17823
17824 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17825
17826         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17827
17828 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17829
17830         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17831
17832         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17833         info.
17834
17835 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17836
17837         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17838         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17839         strcpy-sse2-unaligned strncpy-sse2-unaligned
17840         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17841         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17842         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17843         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17844         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17845         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17846         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17847         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17848         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17849         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17850         (STRCPY): Support SSE2 and SSSE3 versions.
17851
17852 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17853
17854         [BZ #12874]
17855         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17856         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17857         kernels which artificially limit size of requests.
17858
17859 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17860
17861         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17862         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17863         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17864         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17865         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17866         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17867         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17868         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17869         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17870         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17871         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17872         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17873         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17874         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17875         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17876         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17877         Enable unaligned load optimization for Intel Core i3, i5 and i7
17878         processors.
17879         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17880         Define.
17881         (index_Fast_Unaligned_Load): Define.
17882         (HAS_FAST_UNALIGNED_LOAD): Define.
17883
17884 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17885
17886         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17887
17888 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17889
17890         [BZ #12907]
17891         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17892         until it is clear that the information is realy needed.
17893         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17894
17895 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17896
17897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17898
17899 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17900
17901         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17902         /sys/devices/system/cpu/online if it is usable.
17903
17904         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17905         reading the information from the /proc filesystem to once a second.
17906
17907 2011-06-21  Andreas Jaeger  <aj@suse.de>
17908
17909         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17910         NULL after inclusion of kernel headers.
17911
17912 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17913
17914         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17915         calls to internal_setent.
17916
17917         [BZ #12885]
17918         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17919         addresses using gethostbyname4_r ignore IPv4 addresses.
17920
17921         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17922         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17923
17924         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17925
17926 2011-06-20  David S. Miller  <davem@davemloft.net>
17927
17928         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17929         inclusions.
17930         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17931
17932         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17933         (elf_irel): Use it.
17934         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17935         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17936         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17937         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17938         * sysdeps/x86_64/dl-irel.h: Likewise.
17939
17940         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17941         * elf/dl-sym.c: Likewise.
17942
17943 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17944
17945         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17946         need to dereference resplen2.
17947
17948 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17949
17950         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17951
17952 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17953
17954         * Makeconfig: Define vardbdir and inst_vardbdir.
17955         * nss/Makefile: Add rules to install db-Makefile.
17956
17957         * nss/nss_db/db-XXX.c: Cleanup.
17958
17959         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17960         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17961         GLIBC_PRIVATE.
17962         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17963         * nss/makedb.c: Implement -g option to specify that value strings
17964         are generated and should not be added to table iterated over for
17965         get*ent calls.
17966         * nss/nss_db/db-initgroups.c: New file.
17967
17968         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17969         interface.
17970
17971         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17972         (internal_getgrouplist): Adjust to name change.
17973         Update use_initgroups_entry if this is not the first call.
17974         * nss/databases.def: Add initgroups entry.
17975
17976         * nss/makedb.c (compute_tables): Check result of multiple hash table
17977         sizes to minimize maximum chain length.
17978
17979 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17980
17981         * Versions.def: Add entry for libnss_db.
17982         * shlib-versions: Likewise.
17983         * nss/Makefile: Add rules to build libnss_db.
17984         * nss/Versions: Add libnss_db information.  Organize libnss_files
17985         entries better.
17986         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17987         makedb progra.  Some minor improvements to generate smaller files.
17988         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17989         here from...
17990         * nss/makedb.c: ...here.
17991         Improve database format to be smaller and require less memory at
17992         runtime.
17993         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17994         db anymore.
17995         * nss/nss_db/db-netgrp.c: Likewise.
17996         * nss/nss_db/db-open.c: Likewise.
17997         * nss/nss_files/flies-XXX.x: Adjust comments.
17998         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17999         * nss/nss_files/files-grp.c: Likewise.
18000         * nss/nss_files/files-hosts.c: Likewise.
18001         * nss/nss_files/files-network.c: Likewise.
18002         * nss/nss_files/files-proto.c: Likewise.
18003         * nss/nss_files/files-pwd.c: Likewise.
18004         * nss/nss_files/files-rpc.c: Likewise.
18005         * nss/nss_files/files-service.c: Likewise.
18006         * nss/nss_files/files-sgrp.c: Likewise.
18007         * nss/nss_files/files-spwd.c: Likewise.
18008         * nss/nss_db/db-alias.c: Removed.
18009         * nss/nss_db/dummy-db.h: Removed.
18010
18011 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18012
18013         * nss/makedb.c: Rewritten to not use database library.
18014         * nss/Makefile: Update to build new makedb program.
18015
18016 2011-06-14  Andreas Jaeger  <aj@suse.de>
18017
18018         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18019         memset declaration.
18020
18021 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18022
18023         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18024         tmpbuf.
18025
18026 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18027
18028         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18029         * elf/Makefile ($(objpfx)ld.so): Likewise.
18030
18031         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18032         Don't list ld.so twice in dependencies.
18033
18034         * posix/bug-regex31.c: Include <stdlib.h>.
18035
18036         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18037
18038         * nis/nss_compat/compat-spwd.c
18039         (getspent_next_nss_netgr): Remove unused variable.
18040         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18041
18042         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18043         nonmembers" output to use the right array.
18044
18045         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18046
18047         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18048
18049         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18050         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18051         * catgets/gencat.c (read_input_file): Likewise.
18052         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18053
18054         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18055         variable definition inside #if's controlling its use.
18056
18057         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18058
18059         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18060
18061         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18062
18063         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18064         unreachable code.
18065
18066         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18067
18068         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18069         * configure: Regenerated.
18070
18071         * Makerules: Revert last change.
18072         * elf/Makefile: Likewise.
18073
18074 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18075
18076         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18077         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18078         (reloc-link): Likewise.
18079
18080 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18081
18082         * elf/Makefile: Add rules to build pldd.
18083         * elf/pldd.c: New file.
18084         * elf/pldd-xx.c: New file.
18085
18086 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18087
18088         * version.h: Update for 2.15 development version.
18089
18090 2011-06-07  David S. Miller  <davem@davemloft.net>
18091
18092         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18093         ifuncs.
18094         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18095         elf_machine_lazy_rel): Likewise.
18096         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18097         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18098         elf_machine_lazy_rel): Likewise.
18099         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18100         dl_hwcap via passed in argument.
18101         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18102         Likewise.
18103
18104 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18105
18106         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18107
18108 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18109
18110         [BZ #12849]
18111         * manual/fdl-1.1.texi: New file, verbatim from:
18112         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18113         * manual/lgpl-2.1.texi: New file, verbatim from:
18114         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18115         * manual/Makefile (licenses): New variable, list those new file names.
18116         (texis): Use it.
18117         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18118
18119         * manual/fdl.texi: File removed.
18120         * manual/lesser.texi: File removed.
18121         * manual/libc.texinfo (Copying, Documentation License):
18122         Use new @include file names, put @appendix directive before @include.
18123
18124 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18125
18126         [BZ #12841]
18127         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18128         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18129         (mq_open): Add __NTH.
18130
18131 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18132
18133         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18134         Assume Intel Core i3/i5/i7 processor if AVX is available.
18135
18136 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18137
18138         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18139         typo.
18140
18141 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18142
18143         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18144         memory.  Use alloca_account.  Fix memory leak when retrying.
18145
18146 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18147
18148         * version.h (RELEASE): Bump for 2.14 release.
18149         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18150
18151         * config.make.in (RANLIB): Remove entry.
18152
18153 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18154
18155         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18156         (libc.pot): Work around missing support for .ksh extension in xgettext.
18157
18158         [BZ #12684]
18159         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18160         if both request failed.
18161         (send_dg): In case of server errors clear resplen or *resplen2.
18162
18163         [BZ #12454]
18164         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18165         when there are multiple maps.
18166         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18167         (_dl_fini): Remove test here.
18168
18169         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18170
18171 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18172
18173         [BZ #12350]
18174         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18175         bit from old_res_options.
18176         (gaih_inet): Likewise.
18177
18178         [BZ #11099]
18179         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18180         as signed.
18181
18182         * resolv/res_init.c (res_setoptions): Make the code more compact.
18183
18184         [BZ #11558]
18185         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18186         set RES_USEVC.
18187
18188         [BZ #11634]
18189         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18190
18191         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18192
18193         [BZ #11781]
18194         * malloc/malloc.h: Declare malloc hook variables as volatile.
18195
18196         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18197         in last patch.
18198
18199         [BZ #11799]
18200         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18201         raise in the comment.
18202         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18203         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18204         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18205
18206 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18207
18208         [BZ #12811]
18209         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18210         grow the buffers more if it already has to be sufficient.
18211         (build_wcs_upper_buffer): Likewise.
18212         * posix/regexec.c (check_matching): Likewise.
18213         (clean_state_log_if_needed): Likewise.
18214         (extend_buffers): Don't enlarge buffers beyond size of the input
18215         buffer.
18216         Patches mostly by Emil Wojak <emil@wojak.eu>.
18217         * posix/bug-regex32.c: New file.
18218         * posix/Makefile (tests): Add bug-regex32.
18219
18220         * locale/findlocale.c (_nl_find_locale): Return right away if
18221         _nl_explode_name failed.
18222         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18223
18224         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18225
18226         * debug/xtrace.sh: Unify messages.
18227         * malloc/memusage.sh: Likewise.
18228
18229         [BZ #12813]
18230         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18231         time symbol from vDSO.  Substitute with vsyscall if not available.
18232         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18233         __vdso_time.
18234
18235         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18236         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18237         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18238         Add sendmmsg and internal_sendmmsg.
18239         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18240         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18241         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18242
18243         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18244         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18245         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18246
18247 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18248
18249         [BZ #12813]
18250         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18251         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18252         available.
18253         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18254         __vdso_getcpu.
18255
18256         [BZ #12814]
18257         * iconvdata/Makefile (tests): Add bug-iconv9.
18258         * iconvdata/bug-iconv9.c: New file.
18259
18260 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18261
18262         [BZ #12814]
18263         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18264
18265 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18266
18267         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18268         (struct user_regs_struct): Change intcs field back to cs.
18269
18270 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18271
18272         * po/ja.po: Update from translation team.
18273
18274 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18275
18276         [BZ #12795]
18277         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18278         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18279
18280 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18281
18282         * stdlib/longlong.h: Update from GCC.
18283
18284 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18285
18286         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18287         parameter name.
18288         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18289         Add parameter name.
18290         (__sysconf): Pass it down.
18291
18292 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18293
18294         [BZ #12671]
18295         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18296         some situations.
18297         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18298         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18299         add in in __libc_use_alloca calls.  Adjust callers.
18300         (glob): Use malloc in some situations.
18301
18302         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18303         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18304         pltexit.
18305
18306 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18307
18308         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18309         and CLOCK_BOOTTIME_ALARM.
18310
18311         [BZ #12782]
18312         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18313         is returned.
18314
18315         * string/_strerror.c (__strerror_r): Print negative errors as signed
18316         numbers.
18317
18318         [BZ #12777]
18319         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18320         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18321         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18322
18323         * configure.in: Fix typo in redirection and correct removal of test
18324         files in two cases.
18325
18326         [BZ #12788]
18327         * locale/setlocale.c (new_composite_name): Fix test to check for
18328         identical name of all categories.
18329
18330         [BZ #12792]
18331         * libio/filedoalloc.c (local_isatty): New function.
18332         (_IO_file_doallocate): Use local_isatty.
18333         * stdio-common/perror.c (perror): In case a new stream is used
18334         forward the stream error.
18335         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18336         error flag.
18337
18338 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18339
18340         [BZ #11869]
18341         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18342         alloca.
18343         * include/alloca.h (extend_alloca_account): Define.
18344
18345         [BZ #11857]
18346         * posix/regex.h: Fix comments with documentation of user-accessible
18347         fields after compilation and describe correct free'ing of pattern
18348         after re_compile_pattern.
18349         Patch by Reuben Thomas <rrt@sc3d.org>.
18350
18351 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18352
18353         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18354         and -mno-altivec to prevent the compiler from using Altivec and/or
18355         VSX instructions when the corresponding registers are not available.
18356
18357 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18358
18359         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18360
18361 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18362
18363         * libio/freopen.c (freopen): Use __dup2, not dup2.
18364         * libio/freopen64.c (freopen64): Likewise.
18365
18366 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18367
18368         [BZ #12775]
18369         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18370         * math/Makefile (tests): Add test-powl.
18371         (CFLAGS-test-powl.c): Define.
18372         * math/test-powl.c: New file.
18373
18374 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18375
18376         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18377
18378 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18379
18380         [BZ #11837]
18381         * iconvdata/gb18030.c: Update to GB18020-2005.
18382
18383 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18384
18385         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18386         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18387         Patch by Aharon Robbins <arnold@skeeve.com>.
18388
18389         [BZ #11892]
18390         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18391         on the stack.
18392
18393         [BZ #11895]
18394         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18395         through underflows.
18396
18397         [BZ #12766]
18398         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18399         point to strings before performing equality test for error_one_per_line
18400         mode.
18401
18402         [BZ #11697]
18403         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18404
18405         [BZ #11820]
18406         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18407         (struct user_fpregs_struct): Avoid __uint*_t types.
18408
18409         [BZ #6420]
18410         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18411         symbol info.  Use it instead of calling _dl_addr locally.
18412         (lock_and_info): New function.
18413         (tr_freehook): Call lock_and_info and pass symbol info as additional
18414         parameter to tr_where.
18415         (tr_mallochook): Likewise.
18416         (tr_reallochook): Likewise.
18417         (tr_memalignhook): Likewise.
18418
18419         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18420         used and couldn't be at all thread-safe.
18421
18422 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18423
18424         * libio/freopen.c (freopen): Don't close old file descriptor
18425         before the new one is opened.  Instead dup the new file descriptor
18426         to the old one after the new stream is created.
18427         * libio/freopen64.c (freopen64): Likewise.
18428         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18429         * libio/fileops.c (_IO_new_file_close_it): Handle new
18430         _IO_FLAGS2_NOCLOSE flag.
18431         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18432         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18433         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18434         _IO_FLAGS2_NOCLOSE flag.
18435         * include/unistd.h: Add hidden_proto for dup3.
18436         Define __have_dup3.
18437         * io/dup3.c: Define hidden symbol.
18438         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18439
18440         [BZ #7101]
18441         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18442         when an incomplete long option is used.
18443         * posix/tst-getopt_long1.c: New file.
18444         * posix/Makefile (tests): Add tst-getopt_long1.
18445
18446         [BZ #10138]
18447         * scripts/config.guess: Update from autoconf-2.68.
18448         * scripts/config.sub: Likewise.
18449
18450         [BZ #10157]
18451         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18452         tests into ...
18453         (has_cpuclock): ...this.  New function.
18454         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18455         macro here based on has_cpuclock code.
18456
18457         [BZ #10149]
18458         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18459         First byte (not low byte) is now always NUL.
18460         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18461
18462         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18463         Use non-cancelable interfaces.
18464
18465         [BZ #9809]
18466         * locale/iso-639.def: Add entry for Sorani.
18467
18468         [BZ #11901]
18469         * include/stdlib.h: Move include protection to the right place.
18470         Define abort_msg_s.  Declare __abort_msg with it.
18471         * stdlib/abort.c (__abort_msg): Adjust type.
18472         * assert/assert.c (__assert_fail_base): New function.  Majority
18473         of code from __assert_fail.  Allocate memory for __abort_msg with
18474         mmap.
18475         (__assert_fail): Now call __assert_fail_base.
18476         * assert/assert-perr.c: Remove bulk of implementation.  Use
18477         __assert_fail_base.
18478         * include/assert.hL Declare __assert_fail_base.
18479         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18480         mmap.
18481         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18482
18483 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18484
18485         [BZ #11952]
18486         [BZ #12453]
18487         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18488         until all modules are registered in the DTV.
18489         * elf/Makefile: Add rules to build and run tst-tls19.
18490         * elf/tst-tls19.c: New file.
18491         * elf/tst-tls19mod1.c: New file.
18492         * elf/tst-tls19mod2.c: New file.
18493         * elf/tst-tls19mod3.c: New file.
18494         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18495
18496         [BZ #12083]
18497         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18498         correctly.
18499
18500         [BZ #12601]
18501         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18502         two-byte sequence errors.
18503         * iconvdata/Makefile (tests): Add bug-iconv8.
18504         * iconvdata/bug-iconv8.c: New file.
18505
18506         [BZ #12626]
18507         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18508         buf2 definition.
18509
18510         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18511
18512         [BZ #12432]
18513         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18514         (dummy_getcfa): New function.
18515         (init): Get _Unwind_GetCFA address, use dummy if not found.
18516         (backtrace_helper): In recursion check, also check whether CFA changes.
18517         (__backtrace): Completely initialize arg.
18518
18519         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18520         storing incomplete byte sequence in state object.  Avoid testing for
18521         guaranteed too small input if we know there is enough data available.
18522
18523 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18524
18525         * Makeconfig (+link-pie): Indent.
18526         * Rules (binaries-pie): Define if $(have-fpie) and
18527         $(build-shared).
18528         (binaries-shared): Also filter out $(binaries-pie).
18529         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18530         * nscd/Makefile (others-pie): Add nscd.
18531         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18532         ($(objpfx)nscd): Remove command override.
18533         * login/Makefile (others-pie): Add pt_chown.
18534         ($(objpfx)pt_chown): Remove command override.
18535         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18536         remove command overrides.
18537
18538 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18539
18540         * libio/tst_putwc.c: Fix error messages.
18541
18542         [BZ #12724]
18543         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18544         currently writing and seek to current position when not.
18545         * libio/Makefile (tests): Add bug-fclose1.
18546         * libio/bug-fclose1.c: New file.
18547
18548 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18549
18550         [BZ #12511]
18551         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18552         don't set DF_1_NODELETE here.
18553         (do_lookup_x): When entering new entry test for copy relocation
18554         and if necessary set DF_1_NODELETE flag.
18555         * elf/tst-unique4.cc: New file.
18556         * elf/tst-unique4.h: New file.
18557         * elf/tst-unique4lib.cc: New file.
18558         * elf/Makefile: Add rules to build and run tst-unique4.
18559         Patch by Piotr Bury <pbury@goahead.com>.
18560
18561 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18562
18563         [BZ #12052]
18564         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18565
18566         [BZ #12625]
18567         * misc/mntent_r.c (addmntent): Flush the stream after the output
18568
18569         [BZ #12393]
18570         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18571         (is_trusted_path_normalize): Skip initial colon.  Append slash
18572         to empty buffer.  Duplicate is_trusted_path code but allow
18573         constructed patch to be prefix.
18574         (is_dst): Allow $ORIGIN followed by /.
18575         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18576         Correct testing of result of is_trusted_path_normalize
18577         (decompose_rpath): Fix warning.
18578
18579 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18580
18581         [BZ #11257]
18582         * grp/initgroups.c (internal_getgrouplist): When we found the service
18583         list through the initgroups entry in nsswitch.conf do not always
18584         continue on a successful lookup.  Don't always use the
18585         __nss_group_database value if it is set.
18586         * nss/nsswitch.conf (initgroups): Change action for successful db
18587         lookup to continue for compatibility.
18588
18589 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18590
18591         [BZ #11532]
18592         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18593         and CP774 modules.
18594         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18595         and CP774 modules.
18596         * iconvdata/tst-tables.sh: Likewise.
18597         * iconvdata/cp770.c: New file.
18598         * iconvdata/cp771.c: New file.
18599         * iconvdata/cp772.c: New file.
18600         * iconvdata/cp773.c: New file.
18601         * iconvdata/cp774.c: New file.
18602         * iconvdata/testdata/CP770: New file.
18603         * iconvdata/testdata/CP770..UTF8: New file.
18604         * iconvdata/testdata/CP771: New file.
18605         * iconvdata/testdata/CP771..UTF8: New file.
18606         * iconvdata/testdata/CP772: New file.
18607         * iconvdata/testdata/CP772..UTF8: New file.
18608         * iconvdata/testdata/CP773: New file.
18609         * iconvdata/testdata/CP773..UTF8: New file.
18610         * iconvdata/testdata/CP774: New file.
18611         * iconvdata/testdata/CP774..UTF8: New file.
18612
18613         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18614         END CHARMAP line.
18615         * iconvdata/gen-8bit-gap.sh: Likewise.
18616         * iconvdata/gen-8bit.sh: Likewise.
18617
18618         * locale/iso-639.def: Add ary entry.
18619
18620         [BZ #11258]
18621         * locale/C-translit.h.in: Add U20A1 transliteration.
18622
18623         [BZ #12178]
18624         * locale/iso-639.def: Add wae entry.
18625         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18626
18627         [BZ #12545]
18628         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18629         for n.
18630
18631         [BZ #12711]
18632         * locale/C-translit.h.in: Add entry for U20B9.
18633         Patch by pravin.d.s@gmail.com.
18634
18635 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18636
18637         [BZ #12713]
18638         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18639         ENAMETOOLONG use generic getcwd.
18640         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18641         in rtld.  Use *stat64.
18642         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18643         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18644         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18645         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18646         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18647         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18648         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18649         __fstatat64 macros.
18650         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18651         * dirent/rewinddir.c: Add libc_hidden_def.
18652         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18653         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18654
18655         * include/dirent.h (__alloc_dir): Add flags parameter.
18656         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18657         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18658         __alloc_dir.
18659         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18660         from fdopendir if O_CLOEXEC is already set.
18661
18662 2011-03-15  Alan Modra  <amodra@gmail.com>
18663
18664         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18665         l_tls_firstbyte_offset non-zero.  Save padding offset in
18666         l_tls_firstbyte_offset for later use.
18667         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18668         freeing static tls block.
18669
18670 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18671
18672         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18673         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18674         being defined by the kernel headers.
18675
18676 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18677
18678         [BZ #12734]
18679         * resolv/resolv.h: Define RES_NOTLDQUERY.
18680         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18681         no-tld-query and set RES_NOTLDQUERY.
18682         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18683         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18684         modern BIND to search name as TLD unless forbidden.
18685
18686 2011-05-07  Petr Baudis  <pasky@suse.cz>
18687             Ulrich Drepper  <drepper@gmail.com>
18688
18689         [BZ #12393]
18690         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18691         (is_trusted_path): ...to here.
18692         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18693         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18694         using is_trusted_path_normalize() in setuid scripts.
18695
18696 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18697
18698         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18699         __BEGIN/__END_DECLS.
18700
18701 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18702
18703         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18704         NSS_STATUS_NOTFOUND if no record was found.
18705
18706 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18707
18708         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18709         (headers-not-in-tirpc): Remove rpc/netdb.h
18710         * resolv/netdb.h: Revert last change.
18711
18712 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18713
18714         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18715         circular dependency between libgcc.a and libc.a.
18716
18717 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18718
18719         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18720         * nis/Makefile: Don't install rpcsvc/*.
18721         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18722         instead of <rpc/types.h>.
18723         (MAXHOSTNAMELEN): Define.
18724
18725 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18726
18727         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18728
18729 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18730
18731         [BZ #12714]
18732         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18733         gethostbyname4_r when IPv6 results are possible.
18734
18735 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18736
18737         [BZ #12723]
18738         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18739         _PC_PIPE_BUF handling.
18740
18741 2011-04-30  Bruno Haible  <bruno@clisp.org>
18742
18743         [BZ #12717]
18744         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18745         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18746         to 'int'.
18747         * inet/getnameinfo.c (getnameinfo): Likewise.
18748
18749 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18750
18751         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18752         to groups setting in database lookup.
18753         * nss/nsswitch.conf: Add initgroups entry.
18754
18755 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18756
18757         [BZ #12685]
18758         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18759         mode string.
18760         Patch by Eric Blake <eblake@redhat.com>.
18761
18762 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18763
18764         * sunrpc/Makefile (need-export-routines): Add svc_run.
18765         (routines): Remove svc_run.
18766         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18767         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18768         * sunrpc/svc_run.c (svc_run): Likewise.
18769         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18770
18771 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18772
18773         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18774         problem in reallocation in last patch.
18775
18776 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18777
18778         * sunrpc/Makefile: Move inclusion of Rules.
18779
18780 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18781
18782         * nss/nss_files/files-initgroups.c: New file.
18783         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18784         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18785         _nss_files_initgroups_dyn.
18786
18787 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18788
18789         * elf/elf.h (R_ARM_IRELATIVE): Define.
18790
18791 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18792
18793         * po/ru.po: Update from translation team.
18794
18795 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18796
18797         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18798         dependencies.
18799
18800 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18801
18802         [BZ #12653]
18803         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18804         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18805         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18806         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18807         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18808
18809 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18810
18811         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18812         differing bytes.
18813         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18814         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18815         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18816
18817 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18818
18819         [BZ #12420]
18820         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18821         storing it.
18822         * stdlib/bug-getcontext.c: New file.
18823         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18824
18825 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18826
18827         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18828         instructions into .machine "z9-109".
18829         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18830         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18831
18832 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18833
18834         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18835         between environment variables and auxiliary vector.
18836
18837 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18838
18839         * Makefile: Add rules to build linkobj/libc.so.
18840         * include/libc-symbols.h: Define libc_hidden_nolink.
18841         * include/rpc/auth.h: Mark functions which are to be hidden.
18842         * include/rpc/auth_des.h: Likewise.
18843         * include/rpc/auth_unix.h: Likewise.
18844         * include/rpc/clnt.h: Likewise.
18845         * include/rpc/des_crypt.h: Likewise.
18846         * include/rpc/key_prot.h: Likewise.
18847         * include/rpc/pmap_clnt.h: Likewise.
18848         * include/rpc/pmap_prot.h: Likewise.
18849         * include/rpc/pmap_rmt.h: Likewise.
18850         * include/rpc/rpc_msg.h: Likewise.
18851         * include/rpc/svc.h: Likewise.
18852         * include/rpc/svc_auth.h: Likewise.
18853         * include/rpc/xdr.h: Likewise.
18854         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18855         * nss/Makefile: Likewise.
18856         * sunrpc/Makefile: Don't install headers.  Build library with normal
18857         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18858         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18859         for the compat linking library.  Remove use of INTDEF/INTUSE.
18860         * sunrpc/auth_none.c: Likewise.
18861         * sunrpc/auth_unix.c: Likewise.
18862         * sunrpc/authdes_prot.c: Likewise.
18863         * sunrpc/authuxprot.c: Likewise.
18864         * sunrpc/clnt_gen.c: Likewise.
18865         * sunrpc/clnt_perr.c: Likewise.
18866         * sunrpc/clnt_raw.c: Likewise.
18867         * sunrpc/clnt_simp.c: Likewise.
18868         * sunrpc/clnt_tcp.c: Likewise.
18869         * sunrpc/clnt_udp.c: Likewise.
18870         * sunrpc/clnt_unix.c: Likewise.
18871         * sunrpc/des_crypt.c: Likewise.
18872         * sunrpc/des_soft.c: Likewise.
18873         * sunrpc/get_myaddr.c: Likewise.
18874         * sunrpc/key_call.c: Likewise.
18875         * sunrpc/key_prot.c: Likewise.
18876         * sunrpc/netname.c: Likewise.
18877         * sunrpc/pm_getmaps.c: Likewise.
18878         * sunrpc/pm_getport.c: Likewise.
18879         * sunrpc/pmap_clnt.c: Likewise.
18880         * sunrpc/pmap_prot.c: Likewise.
18881         * sunrpc/pmap_prot2.c: Likewise.
18882         * sunrpc/pmap_rmt.c: Likewise.
18883         * sunrpc/publickey.c: Likewise.
18884         * sunrpc/rpc_cmsg.c: Likewise.
18885         * sunrpc/rpc_common.c: Likewise.
18886         * sunrpc/rpc_dtable.c: Likewise.
18887         * sunrpc/rpc_prot.c: Likewise.
18888         * sunrpc/rpc_thread.c: Likewise.
18889         * sunrpc/rtime.c: Likewise.
18890         * sunrpc/svc.c: Likewise.
18891         * sunrpc/svc_auth.c: Likewise.
18892         * sunrpc/svc_authux.c: Likewise.
18893         * sunrpc/svc_raw.c: Likewise.
18894         * sunrpc/svc_run.c: Likewise.
18895         * sunrpc/svc_simple.c: Likewise.
18896         * sunrpc/svc_tcp.c: Likewise.
18897         * sunrpc/svc_udp.c: Likewise.
18898         * sunrpc/svc_unix.c: Likewise.
18899         * sunrpc/svcauth_des.c: Likewise.
18900         * sunrpc/xcrypt.c: Likewise.
18901         * sunrpc/xdr.c: Likewise.
18902         * sunrpc/xdr_array.c: Likewise.
18903         * sunrpc/xdr_float.c: Likewise.
18904         * sunrpc/xdr_intXX_t.c: Likewise.
18905         * sunrpc/xdr_mem.c: Likewise.
18906         * sunrpc/xdr_rec.c: Likewise.
18907         * sunrpc/xdr_ref.c: Likewise.
18908         * sunrpc/xdr_sizeof.c: Likewise.
18909         * sunrpc/xdr_stdio.c: Likewise.
18910
18911 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18912
18913         [BZ #12650]
18914         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18915         * sysdeps/ia64/dl-tls.h: Likewise.
18916         * sysdeps/powerpc/dl-tls.h: Likewise.
18917         * sysdeps/s390/dl-tls.h: Likewise.
18918         * sysdeps/sh/dl-tls.h: Likewise.
18919         * sysdeps/sparc/dl-tls.h: Likewise.
18920         * sysdeps/x86_64/dl-tls.h: Likewise.
18921         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18922
18923 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18924
18925         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18926         rpath element also skip the following colon.
18927         (expand_dynamic_string_token): Add is_path parameter and pass
18928         down to DL_DST_REQUIRED and _dl_dst_substitute.
18929         (decompose_rpath): Call expand_dynamic_string_token with
18930         non-zero is_path.  Ignore empty rpaths.
18931         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18932         with zero is_path.
18933
18934 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18935
18936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18937         Make cancelable.
18938
18939 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18940
18941         [BZ #12655]
18942         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18943         Patch by Filipe David Manana <fdmanana@apache.org>.
18944
18945 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18946
18947         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18948         Maintain aligned stack.
18949         (CHECK_RSP): Remove unused macro.
18950
18951 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18952
18953         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18954         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18955
18956 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18957
18958         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18959
18960         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18961
18962 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18963
18964         [BZ #12518]
18965         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18966         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18967         * sysdeps/x86_64/memmove.c: New file.
18968         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18969         (memcpy): Renamed to ...
18970         (__new_memcpy): This.
18971         (memcpy): Provide GLIBC_2_14 memcpy.
18972         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18973         (memcpy): Provide GLIBC_2_2_5 memcpy.
18974
18975 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18976
18977         [BZ #12631]
18978         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18979
18980 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18981
18982         * misc/syncfs.c: New file.
18983         * misc/Makefile (routines): Add syncfs.
18984         * posix/unistd.h: Declare syncfs.
18985         * sysdeps/unix/syscalls.list: Add syncfs.
18986
18987 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18988
18989         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18990         open_by_handle_at.
18991         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18992         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18993         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18994         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18995         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18996         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18997         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18998
18999 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19000
19001         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19002         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19003         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19004         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19005         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19006         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19007         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19008
19009         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19010         sync_file_range.c with -fexceptions.
19011         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19012         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19013         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19014         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19015         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19016         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19017         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19018         sync_file_range as cancellation point
19019         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19020         now a wrapper around __call_sync_file_range with cancellation handling.
19021         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19022         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19023         function name to __call_sync_file_range.
19024         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19025         Add call_sync_file_range.
19026
19027 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19028
19029         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19030         bits/timex.h.
19031
19032 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19033
19034         * iconv/iconv.h: Fix typo in comment.
19035         * io/fcntl.h: Likewise.
19036         * libio/stdio.h: Likewise.
19037         * posix/spawn.h: Likewise.
19038         * posix/unistd.h: Likewise.
19039         * stdlib/stdlib.h: Likewise.
19040         * time/time.h: Likewise.
19041         * wcsmbs/wchar.h: Likewise.
19042
19043         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19044         open_by_handle): Add.
19045         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19046         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19047         Augment a few comments.
19048         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19049         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19050         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19051         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19052         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19053         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19054         open_by_handle.
19055
19056         * io/fcntl.h (AT_EMPTY_PATH): Define.
19057
19058 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19059
19060         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19061         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19062         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19063         to...
19064         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19065         * Versions.def: Add GLIBC_2.14.
19066         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19067         Export.
19068
19069 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19070
19071         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19072         round counter.
19073         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19074
19075 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19076
19077         [BZ #12597]
19078         * string/test-strncmp.c (do_page_test): New function.
19079         (check2): Likewise.
19080         (test_main): Call check2.
19081         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19082
19083 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19084
19085         [BZ #12587]
19086         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19087         Handle cache information in CPU leaf 4.
19088         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19089
19090 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19091
19092         [BZ #12583]
19093         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19094         character representation.
19095         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19096
19097 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19098
19099         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19100         END(__isnan) to END(__isnanf) to match function entry point/label
19101         EALIGN(__isnanf,...).
19102
19103 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19104
19105         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19106
19107 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19108
19109         [BZ #12510]
19110         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19111         copy from the symbol referenced in the relocation to initialize the
19112         used variable.
19113         Patch by Piotr Bury <pbury@goahead.com>.
19114         * elf/Makefile: Add rules to build and tst-unique3.
19115         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19116         * elf/tst-unique3.cc: New file.
19117         * elf/tst-unique3.h: New file.
19118         * elf/tst-unique3lib.cc: New file.
19119         * elf/tst-unique3lib2.cc: New file.
19120
19121         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19122
19123 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19124
19125         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19126         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19127         to _start.
19128
19129 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19130
19131         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19132         to-be-loaded object along a path to loader is ld.so.
19133
19134 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19135             Ulrich Drepper  <drepper@gmail.com>
19136
19137         * sysdeps/x86_64/memset.S: After aligning destination, code
19138         branches to different locations depending on the value of
19139         misalignment, when multiarch is enabled. Fix this.
19140
19141 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19142
19143         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19144         Set _x86_64_preferred_memory_instruction for AMD processsors.
19145         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19146         Set bit_Prefer_SSE_for_memop for AMD processors.
19147
19148 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19149
19150         * libio/fmemopen.c (fmemopen): Optimize a bit.
19151
19152 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19153
19154         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19155
19156 2011-03-03  Roland McGrath  <roland@redhat.com>
19157
19158         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19159
19160 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19161
19162         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19163         __bzero_ultra1 instead of __memset_ultra1.
19164
19165 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19166             Ulrich Drepper  <drepper@gmail.com>
19167
19168         [BZ #12509]
19169         * include/link.h (struct link_map): Add l_orig_initfini.
19170         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19171         returning unsuccessfully.
19172         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19173         close of a file loaded at startup, restore the original l_initfini
19174         list.
19175         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19176         list, store the pointer.
19177         * elf/Makefile ($(objpfx)noload-mem): New rule.
19178         (noload-ENV): Define.
19179         (tests): Add $(objpfx)noload-mem.
19180         * elf/noload.c: Include <memcheck.h>.
19181         (main): Call mtrace.  Close all opened handles.
19182
19183 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19184
19185         [BZ #12454]
19186         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19187         dependencies are missing.
19188
19189 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19190
19191         Fix __if_freereq crash: Unlike the generic version which uses free,
19192         Hurd needs munmap.
19193         * sysdeps/mach/hurd/ifreq.h: New file.
19194
19195 2011-01-27  Petr Baudis  <pasky@suse.cz>
19196             Ulrich Drepper  <drepper@gmail.com>
19197
19198         [BZ 12445]#
19199         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19200         to extend_alloca().
19201         * stdio-common/bug23.c: New file.
19202         * stdio-common/Makefile (tests): Add bug23.
19203
19204 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19205             Ulrich Drepper  <drepper@gmail.com>
19206
19207         [BZ #12489]
19208         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19209         before performing relro protection.  At old place add assertion
19210         to make sure nothing changed.
19211
19212 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19213             Glauber de Oliveira Costa  <glommer@gmail.com>
19214
19215         * elf/elf.h: Add new ARM TLS relocs.
19216
19217 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19218
19219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19220         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19221         cast from r3.
19222         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19223         'tests' variable.
19224         * sysdeps/wordsize-64/tst-writev.c: New file.
19225
19226 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19227
19228         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19229         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19230         insns in _dl_start to prevent a TOC reference before relocs are
19231         resolved.
19232
19233 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19234
19235         [BZ #12469]
19236         * Makeconfig: Remove RANLIB definition.
19237         * Makerules: Don't use RANLIB.
19238         * aclocal.m4: Remove ranlib test.
19239         * configure.in: No need to check for ranlib.
19240         * elf/rtld-Rules: Don't use RANLIB.
19241
19242 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19243
19244         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19245         protection macro.
19246         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19247         inclusion protection macro.
19248
19249         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19250         SIGRTMIN and SIGRTMAX and print information in that case only when
19251         SIGRTMIN is defined.
19252
19253 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19254
19255         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19256         arginfo fn returning -1.
19257
19258         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19259         and thousands string is zero terminated.
19260
19261 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19262
19263         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19264         sysdeps/unix/sysv/linux/bits/socket.h.
19265
19266 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19267
19268         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19269         (__CPU_COUNT): Remove old macros.
19270         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19271         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19272         (__CPU_ALLOC, __CPU_FREE): Add macros.
19273         (__sched_cpualloc, __sched_cpufree): Add declarations.
19274
19275 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19276
19277         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19278         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19279         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19280         (readdhstai): Return value of addhstaiX call.
19281         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19282         (addgrbyX): Return value returned by cache_addgr.
19283         (readdgrbyname): Return value returned by addgrbyX.
19284         (readdgrbygid): Likewise.
19285         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19286         (addpwbyX): Return value returned by cache_addpw.
19287         (readdpwbyname): Return value returned by addhstbyX.
19288         (readdpwbyuid): Likewise.
19289         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19290         (addservbyX): Return value returned by cache_addserv.
19291         (readdservbyname): Return value returned by addservbyX:
19292         (readdservbyport): Likewise.
19293         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19294         (addhstbyX): Return value returned by cache_addhst.
19295         (readdhstbyname): Return value returned by addhstbyX.
19296         (readdhstbyaddr): Likewise.
19297         (readdhstbynamev6): Likewise.
19298         (readdhstbyaddrv6): Likewise.
19299         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19300         (readdinitgroups): Return value returned by addinitgroupsX.
19301         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19302         (prune_cache): Keep track of timeout value of re-added entries.
19303         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19304         * nscd/nscd.h: Adjust prototypes of readd* functions.
19305
19306 2011-02-04  Roland McGrath  <roland@redhat.com>
19307
19308         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19309         (nis_stats): Likewise.
19310         * nis/nis_modify.c (nis_modify): Likewise.
19311         * nis/nis_remove.c (nis_remove): Likewise.
19312         * nis/nis_add.c (nis_add): Likewise.
19313
19314         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19315
19316         * posix/fnmatch_loop.c: Add some consts.
19317
19318         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19319
19320 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19321
19322         [BZ #12460]
19323         * config.make.in (config-cflags-novzeroupper): Define.
19324         * configure.in: Substitute libc_cv_cc_novzeroupper.
19325         * elf/Makefile (AVX-CFLAGS): Define.
19326         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19327         (CFLAGS-tst-auditmod4a.c): Likewise.
19328         (CFLAGS-tst-auditmod4b.c): Likewise.
19329         (CFLAGS-tst-auditmod6b.c): Likewise.
19330         (CFLAGS-tst-auditmod6c.c): Likewise.
19331         (CFLAGS-tst-auditmod7b.c): Likewise.
19332         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19333
19334 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19335
19336         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19337         function to the callback.
19338         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19339
19340 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19341
19342         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19343         of errno.
19344
19345 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19346
19347         [BZ #11724]
19348         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19349         of constructors.
19350         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19351         of destructors.
19352         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19353
19354         [BZ #11724]
19355         * elf/Makefile: Add rules to build and run new test.
19356         * elf/tst-initorder.c: New file.
19357         * elf/tst-initorder.exp: New file.
19358         * elf/tst-initordera1.c: New file.
19359         * elf/tst-initordera2.c: New file.
19360         * elf/tst-initordera3.c: New file.
19361         * elf/tst-initordera4.c: New file.
19362         * elf/tst-initorderb1.c: New file.
19363         * elf/tst-initorderb2.c: New file.
19364         * elf/tst-order-a1.c: New file.
19365         * elf/tst-order-a2.c: New file.
19366         * elf/tst-order-a3.c: New file.
19367         * elf/tst-order-a4.c: New file.
19368         * elf/tst-order-b1.c: New file.
19369         * elf/tst-order-b2.c: New file.
19370         * elf/tst-order-main.c: New file.
19371         New test case by George Gensure <werkt0@gmail.com>.
19372
19373 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19374
19375         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19376         decoding ACE if AI_CANONIDN.
19377
19378 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19379
19380         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19381
19382 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19383
19384         * version.h (RELEASE): Bump for 2.13 release.
19385         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19386
19387         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19388
19389         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19390         MADV_NOHUGEPAGE.
19391         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19392         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19393         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19394         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19395         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19396         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19397
19398         * posix/getconf.c: Update copyright year.
19399         * catgets/gencat.c: Likewise.
19400         * csu/version.c: Likewise.
19401         * debug/catchsegv.sh: Likewise.
19402         * debug/xtrace.sh: Likewise.
19403         * elf/ldconfig.c: Likewise.
19404         * elf/ldd.bash.in: Likewise.
19405         * elf/sprof.c (print_version): Likewise.
19406         * iconv/iconv_prog.c: Likewise.
19407         * iconv/iconvconfig.c: Likewise.
19408         * locale/programs/locale.c: Likewise.
19409         * locale/programs/localedef.c: Likewise.
19410         * malloc/memusage.sh: Likewise.
19411         * malloc/mtrace.pl: Likewise.
19412         * nscd/nscd.c (print_version): Likewise.
19413         * nss/getent.c: Likewise.
19414
19415         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19416         PF_CAIF, and PF_ALG.
19417         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19418
19419 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19420
19421         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19422         (modules-names): Use them.
19423         (ifunc-test-modules, ifunc-pie-tests): Define.
19424         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19425         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19426         (test-extras): Likewise.
19427         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19428         $(compile-command.c).
19429         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19430         (all-built-dso): Define.
19431         (check-textrel.out, check-execstack.out): Depend on it.
19432
19433         * configure.in: Don't override --enable-multi-arch.
19434
19435 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19436
19437         [BZ #6812]
19438         * nscd/hstcache.c (tryagain): Define.
19439         (cache_addhst): Return tryagain not notfound for temporary errors.
19440         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19441         failed.
19442
19443 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19444
19445         [BZ #10563]
19446         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19447         to make the syscall.
19448         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19449
19450         [BZ #12378]
19451         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19452         and fall back to matching as normal character if the string ends before
19453         the matching ']' is found.  This is what POSIX requires.
19454         * posix/testfnm.c: Adjust test result.
19455         * posix/globtest.sh: Adjust test result.  Add new test.
19456         * posix/tst-fnmatch.input: Likewise.
19457         * posix/tst-fnmatch2.c: Add new test.
19458
19459 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19460
19461         * elf/Makefile (check-execstack): Revert last change.  Depend on
19462         check-execstack.h.
19463         (check-execstack.h): New target.
19464         (generated): Add check-execstack.h.
19465         * elf/check-execstack.c: Include "check-execstack.h".
19466         (main): Revert last change.
19467         (handle_file): Return zero if GNU_STACK is absent and
19468         DEFAULT_STACK_PERMS doesn't include PF_X.
19469
19470 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19471
19472         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19473         in child fails because the descriptor is already closed.
19474         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19475         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19476         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19477
19478         [BZ #12397]
19479         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19480         syscall.
19481
19482         [BZ #10484]
19483         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19484         temporary buffer used to handle multi lookups locally.
19485         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19486
19487 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19488
19489         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19490         loader is ld.so.
19491
19492 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19493
19494         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19495         alignment for SSE2.
19496
19497 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19498
19499         [BZ #12394]
19500         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19501         characters.  When rounding increased number of integer digits recompute
19502         number of groups.
19503         * stdio-common/tst-grouping.c: New file.
19504         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19505
19506 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19507
19508         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19509         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19510
19511         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19512         void.
19513         * bits/select.h: Likewise.
19514
19515 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19516
19517         * po/ja.po: Update from translation team.
19518
19519 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19520
19521         [BZ #11155]
19522         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19523         implementation just like for lxstat, fxstatat, et al.
19524
19525 2010-12-27  Jim Meyering  <meyering@redhat.com>
19526
19527         [BZ #12348]
19528         * posix/regexec.c (build_trtable): Return failure indication upon
19529         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19530
19531 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19532
19533         [BZ #12201]
19534         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19535         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19536         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19537         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19538
19539         [BZ #12207]
19540         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19541
19542         [BZ #12204]
19543         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19544         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19545
19546 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19547
19548         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19549         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19550         script has SORT_BY_INIT_PRIORITY.
19551         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19552         NO_CTORS_DTORS_SECTIONS is defined.
19553         * elf/soinit.c: Likewise.
19554         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19555         NO_CTORS_DTORS_SECTIONS is defined.
19556         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19557         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19558         * sysdeps/sh/init-first.c: Likewise.
19559         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19560
19561 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19562
19563         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19564         always use the slow path.
19565
19566 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19567
19568         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19569         similar rule which adds the sysdep directories to the header search in
19570         order to pick up the correct platform stackinfo.h.
19571         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19572         perform test if it is, otherwise return successfully without testing.
19573         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19574         DEFAULT_STACK_PERMS define in stackinfo.h.
19575         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19576         defined in stackinfo.h.
19577         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19578         DEFAULT_STACK_PERMS defined in stackinfo.h.
19579         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19580         * sysdeps/ia64/stackinfo.h: Likewise.
19581         * sysdeps/s390/stackinfo.h: Likewise.
19582         * sysdeps/sh/stackinfo.h: Likewise.
19583         * sysdeps/sparc/stackinfo.h: Likewise.
19584         * sysdeps/x86_64/stackinfo.h: Likewise.
19585         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19586         PF_X for powerpc64.  Retain PF_X for powerpc32.
19587
19588 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19589
19590         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19591         accurately.
19592         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19593         GETDENTS_64BIT_ALIGNED.
19594
19595 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19596
19597         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19598
19599 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19600
19601         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19602         _GNU_SOURCE.
19603
19604         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19605         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19606         Remove __restrict.
19607         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19608         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19609
19610 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19611
19612         [BZ #11655]
19613         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19614         are initialized.
19615
19616 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19617
19618         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19619
19620 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19621
19622         * po/it.po: Update from translation team.
19623
19624 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19625
19626         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19627         unused codes.
19628
19629 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19630
19631         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19632
19633 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19634
19635         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19636         specially.
19637         (gaih_getanswer_slice): Likewise.
19638
19639 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19640
19641         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19642
19643 2010-05-31  Petr Baudis  <pasky@suse.cz>
19644
19645         [BZ #11149]
19646         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19647         silently even in the chroot mode.
19648
19649 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19650
19651         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19652         last patch a bit.  Pretty printing
19653
19654 2010-05-31  Petr Baudis <pasky@suse.cz>
19655
19656         [BZ #10085]
19657         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19658         initialization of skip_initgroups_dyn.
19659
19660 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19661
19662         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19663         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19664
19665 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19666
19667         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19668
19669 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19670
19671         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19672         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19673         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19674         ($(objpfx)tst-fnmatch-mem): New rule.
19675         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19676         * posix/tst-fnmatch.c (main): Call mtrace.
19677
19678 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19679
19680         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19681         Support Intel processor model 6 and model 0x2c.
19682
19683 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19684
19685         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19686           signed comparison.
19687
19688 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19689
19690         [BZ #12205]
19691         * string/test-strncasecmp.c (check_result): New function.
19692         (do_one_test): Use it.
19693         (check1): New function.
19694         (test_main): Use it.
19695         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19696         Support strcasecmp and strncasecmp.
19697
19698 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19699
19700         [BZ #12194]
19701         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19702         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19703
19704 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19705
19706         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19707         IFUNC support.
19708         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19709         memset-x86-64.
19710         * sysdeps/x86_64/multiarch/bzero.S: New file.
19711         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19712         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19713         * sysdeps/x86_64/multiarch/memset.S: New file.
19714         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19715         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19716         Set bit_Prefer_SSE_for_memop for Intel processors.
19717         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19718         Define.
19719         (index_Prefer_SSE_for_memop): Define.
19720         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19721
19722 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19723
19724         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19725         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19726
19727 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19728
19729         [BZ #12191]
19730         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19731         (__x86_64_raw_data_cache_size_half): Likewise.
19732         (__x86_64_raw_shared_cache_size): Likewise.
19733         (__x86_64_raw_shared_cache_size_half): Likewise.
19734
19735         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19736         (__x86_64_raw_data_cache_size_half): Likewise.
19737         (__x86_64_raw_shared_cache_size): Likewise.
19738         (__x86_64_raw_shared_cache_size_half): Likewise.
19739         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19740         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19741         and __x86_64_raw_shared_cache_size_half.  Round
19742         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19743         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19744         to multiple of 256 bytes.
19745
19746 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19747
19748         [BZ #12167]
19749         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19750         of inacessible symlinks.  Verify result of symlink before returning it.
19751         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19752         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19753
19754 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19755
19756         * math/math.h (isinf): Fix typo in comment.
19757
19758 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19759
19760         * po/da.po: Update from translation team.
19761
19762 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19763
19764         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19765         is added to the list.
19766
19767 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19768             Ulrich Drepper  <drepper@gmail.com>
19769
19770         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19771         the global list here.  Move code to...
19772         (_dl_add_to_namespace_list): ...here.  New function.
19773         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19774         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19775         * elf/dl-load.c (lose): Don't remove the element from the list.
19776         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19777         (_dl_map_object): Likewise.
19778
19779 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19780
19781         [BZ #12159]
19782         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19783         into all bytes of SSE register.
19784         Patch by Richard Li <richardpku@gmail.com>.
19785
19786 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19787
19788         [BZ #12140]
19789         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19790         perturbing.
19791
19792 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19793
19794         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19795         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19796         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19797         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19799         submachine.
19800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19801
19802 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19803
19804         * include/dlfcn.h (__RTLD_SECURE): Define.
19805         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19806         mode & __RTLD_SECURE instead.
19807         (open_path): Rename preloaded parameter to secure.
19808         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19809         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19810         * elf/dl-deps.c (openaux): Likewise.
19811         * elf/rtld.c (struct map_args): Remove is_preloaded.
19812         (map_doit): Don't use it.
19813         (dl_main): Likewise.
19814         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19815         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19816
19817 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19818
19819         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19820         (sysd-rules-targets): Remove duplicates.
19821         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19822         rtld-%.$o dependency.
19823
19824 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19825
19826         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19827         _dl_map_object do it.
19828
19829 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19830
19831         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19832         fast fma builtins, define the macros in the C99 standard.
19833         (FP_FAST_FMAF): Likewise.
19834         (FP_FAST_FMAL): Likewise.
19835         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19836
19837         * bits/mathdef.h: Update copyright year.
19838         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19839
19840 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19841
19842         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19843         builtins, define the macros in the C99 standard.
19844         (FP_FAST_FMAF): Likewise.
19845         (FP_FAST_FMAL): Likewise.
19846         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19847         multiply/add.
19848         (FP_FAST_FMAF): Likewise.
19849
19850 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19851
19852         [BZ #3268]
19853         * math/libm-test.inc (fma_test): Some new testcases.
19854         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19855         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19856         y and infinite z.  Do multiplication by C already in long double.
19857         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19858         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19859         y and infinite z.  Do bitwise or of inexact bit into u.d.
19860         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19861         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19862         * sysdeps/i386/fpu/s_fma.S: Removed.
19863         * sysdeps/i386/fpu/s_fmal.S: Removed.
19864
19865 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19866
19867         [BZ #3268]
19868         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19869         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19870         computation is not scheduled after fetestexcept.  Fix value
19871         of minimum denormal long double.
19872
19873 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19874
19875         [BZ #3268]
19876         * math/libm-test.inc (fma_test): Add some more tests.
19877         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19878         correctly.
19879
19880 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19881
19882         * scripts/data/localplt-s390-linux-gnu.data: New file.
19883         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19884
19885 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19886
19887         [BZ #3268]
19888         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19889         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19890         instead of dbl-64.
19891         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19892         inlines.
19893         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19894         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19895         if one of x and y is very large and the other is subnormal.
19896         * sysdeps/s390/fpu/s_fmaf.c: New file.
19897         * sysdeps/s390/fpu/s_fma.c: New file.
19898         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19899         * sysdeps/powerpc/fpu/s_fma.S: New file.
19900         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19901         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19902         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19903
19904 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19905
19906         [BZ #3268]
19907         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19908         fma tests.
19909         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19910         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19911         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19912         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19913         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19914         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19915         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19916
19917 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19918
19919         [BZ #12078]
19920         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19921         * posix/bug-regex31.input: Add test case.
19922
19923 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19924
19925         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19926         * posix/bug-regex31.input: New file.
19927
19928         [BZ #12078]
19929         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19930         (parse_sub_exp): Fix last change, use postorder.
19931
19932         * posix/bug-regex31.c: New file.
19933         * posix/Makefile: Add rules to build and run bug-regex31.
19934
19935         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19936
19937         [BZ #12078]
19938         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19939
19940         [BZ #12108]
19941         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19942         to have entries in sys_siglist.
19943
19944         [BZ #12093]
19945         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19946         be NULL.
19947
19948 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19949
19950         [BZ #3268]
19951         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19952         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19953         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19954         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19955         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19956         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19957         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19958         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19959         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19960         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19961         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19962         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19963         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19964         * math/ftestexcept.c (fetestexcept): Likewise.
19965         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19966         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19967         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19968         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19969         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19970         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19971         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19972
19973 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19974
19975         [BZ #12107]
19976         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19977         newline.
19978
19979 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19980
19981         * string/bug-strstr1.c: New file.
19982         * string/Makefile: Add rules to build and run bug-strstr1.
19983
19984 2010-10-05  Eric Blake  <eblake@redhat.com>
19985
19986         [BZ #12092]
19987         * string/str-two-way.h (two_way_long_needle): Always clear memory
19988         when skipping input due to the shift table.
19989
19990 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19991
19992         [BZ #12005]
19993         * malloc/mcheck.c: Handle large requests.
19994
19995         [BZ #12077]
19996         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19997         for strncmp and strncasecmp.
19998         * string/stratcliff.c: Add tests for strcmp and strncmp.
19999         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20000
20001 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20002
20003         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20004         __set_fpscr.
20005
20006 2010-09-30  Andreas Jaeger  <aj@suse.de>
20007
20008         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20009         (CGROUP_SUPER_MAGIC): Define.
20010         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20011         Handle btrfs and cgroup file systems.
20012         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20013         Likewise.
20014
20015 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20016
20017         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20018         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20019
20020 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20021
20022         [BZ #12067]
20023         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20024         trying to locate the ELF header.
20025
20026 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20027
20028         [BZ #11611]
20029         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20030         Mask out sign-bit copies when constructing f_fsid.
20031
20032 2010-09-24  Petr Baudis <pasky@suse.cz>
20033
20034         * debug/stack_chk_fail_local.c: Add missing licence exception.
20035         * debug/warning-nop.c: Likewise.
20036
20037 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20038
20039         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20040         implementing getdents64 using getdents syscall, set d_type if
20041         __ASSUME_GETDENTS32_D_TYPE.
20042
20043 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20044
20045         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20046         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20047
20048 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20049
20050         [BZ #12037]
20051         * posix/unistd.h: Undo change of feature selection for ftruncate from
20052         2010-01-11.
20053
20054 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20055
20056         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20057         detection.
20058
20059 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20060
20061         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20062         fanotify_mark.
20063         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20064
20065 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20066
20067         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20068         variables after CHECK_SP call.
20069         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20070
20071 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20072             Ulrich Drepper  <drepper@redhat.com>
20073
20074         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20075         re-relocationg ld.so.
20076         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20077         _dl_init_paths call.
20078         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20079         here anymore.
20080
20081 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20082
20083         * resolv/res_init.c (__res_vinit): Count the default server we added.
20084
20085 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20086             Ulrich Drepper  <drepper@redhat.com>
20087
20088         [BZ #11968]
20089         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20090         (____longjmp_chk): Use %ebx for saving value across system call.
20091         Add unwind info.
20092
20093 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20094
20095         * manual/Makefile: Don't mix pattern rules with normal rules.
20096
20097 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20098
20099         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20100         operation.
20101         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20102         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20103         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20104         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20105         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20106         Likewise.
20107
20108 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20109
20110         [BZ #11979]
20111         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20112         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20113
20114 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20115
20116         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20117         * sysdeps/x86_64/addmul_1.S: Likewise.
20118         * sysdeps/x86_64/lshift.S: Likewise.
20119         * sysdeps/x86_64/mul_1.S: Likewise.
20120         * sysdeps/x86_64/rshift.S: Likewise.
20121         * sysdeps/x86_64/sub_n.S: Likewise.
20122         * sysdeps/x86_64/submul_1.S: Likewise.
20123
20124 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20125
20126         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20127         Define __sched_param instead of SCHED_* and sched_param when
20128         <bits/sched.h> is included with __need_schedparam defined.
20129         * bits/sched.h [__need_schedparam]
20130         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20131         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20132         (__defined_schedparam): Define to 1.
20133         (__sched_param): New structure, identical to sched_param.
20134         (__need_schedparam): Undefine.
20135
20136 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20137
20138         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20139         (epoll_create1): Declare.
20140
20141         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20142
20143 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20144
20145         [BZ #7066]
20146         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20147         shifting retval into place.
20148
20149 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20150
20151         * nis/rpcsvc/nis.h: Update copyright notice.
20152         * nis/rpcsvc/nis.x: Likewise.
20153         * nis/rpcsvc/nis_callback.h: Likewise.
20154         * nis/rpcsvc/nis_callback.x: Likewise.
20155         * nis/rpcsvc/nis_object.x: Likewise.
20156         * nis/rpcsvc/nis_tags.h: Likewise.
20157         * nis/rpcsvc/yp.h: Likewise.
20158         * nis/rpcsvc/yp.x: Likewise.
20159         * nis/rpcsvc/ypupd.h: Likewise.
20160         * nis/yp_xdr.c: Likewise.
20161         * nis/ypupdate_xdr.c: Likewise.
20162
20163         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20164         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20165         (pmap_getport): Use __libc_rpc_getport.
20166         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20167         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20168         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20169
20170 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20171
20172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20173         fanotify_mark.
20174
20175 2010-08-27  Roland McGrath  <roland@redhat.com>
20176
20177         * sysdeps/i386/i686/multiarch/Makefile
20178         (CFLAGS-varshift.c): New variable.
20179
20180 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20181
20182         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20183         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20184
20185         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20186
20187         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20188
20189 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20190
20191         * sysdeps/x86_64/strlen.S: Unroll the loop.
20192         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20193         strlen-sse2 strlen-sse2-bsf.
20194         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20195         __strlen_no_bsf if bit_Slow_BSF is set.
20196         (__strlen_sse42): Removed.
20197         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20198         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20199
20200 2010-08-25  Roland McGrath  <roland@redhat.com>
20201
20202         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20203         * sysdeps/x86_64/multiarch/varshift.c: New file.
20204         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20205         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20206         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20207         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20208
20209 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20210
20211         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20212         strlen-sse2 strlen-sse2-bsf.
20213         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20214         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20215         (__strlen_sse2): Removed.
20216         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20217         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20218         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20219         bit_Slow_BSF for Atom.
20220         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20221         (index_Slow_BSF): Define.
20222         (HAS_SLOW_BSF): Define.
20223
20224 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20225
20226         [BZ #10851]
20227         * resolv/res_init.c (__res_vinit): When no server address at all
20228         is given default to loopback.
20229
20230 2010-08-24  Roland McGrath  <roland@redhat.com>
20231
20232         * configure.in: Remove config-name.h generation.
20233         * configure: Regenerated.
20234         * config-name.in: File removed.
20235         * scripts/config-uname.sh: New file.
20236         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20237         ($(objdir)config-name.h): New target.
20238
20239         * sunrpc/rpc_parse.h: Avoid nested comment.
20240
20241 2010-08-24  Richard Henderson  <rth@redhat.com>
20242             Ulrich Drepper  <drepper@redhat.com>
20243             H.J. Lu  <hongjiu.lu@intel.com>
20244
20245         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20246         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20247         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20248         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20249         _mm_alignr_epi8 with _mm_loadu_si128.
20250         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20251         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20252         (__m128i_shift_right): Removed.
20253         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20254         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20255         * sysdeps/x86_64/multiarch/varshift.h: New file.
20256         * sysdeps/x86_64/multiarch/varshift.S: New file.
20257
20258 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20259
20260         * configure.in: Move assembler checks to before sysdep dir checking.
20261
20262 2010-08-20  Petr Baudis  <pasky@suse.cz>
20263
20264         * LICENSES: Sync the sunrpc license.
20265
20266 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20267
20268         * sunrpc/auth_des.c: Update copyright notice once again.
20269         * sunrpc/auth_none.c: Likewise.
20270         * sunrpc/auth_unix.c: Likewise.
20271         * sunrpc/authdes_prot.c: Likewise.
20272         * sunrpc/authuxprot.c: Likewise.
20273         * sunrpc/bindrsvprt.c: Likewise.
20274         * sunrpc/clnt_gen.c: Likewise.
20275         * sunrpc/clnt_perr.c: Likewise.
20276         * sunrpc/clnt_raw.c: Likewise.
20277         * sunrpc/clnt_simp.c: Likewise.
20278         * sunrpc/clnt_tcp.c: Likewise.
20279         * sunrpc/clnt_udp.c: Likewise.
20280         * sunrpc/clnt_unix.c: Likewise.
20281         * sunrpc/des_crypt.c: Likewise.
20282         * sunrpc/des_soft.c: Likewise.
20283         * sunrpc/get_myaddr.c: Likewise.
20284         * sunrpc/getrpcport.c: Likewise.
20285         * sunrpc/key_call.c: Likewise.
20286         * sunrpc/key_prot.c: Likewise.
20287         * sunrpc/openchild.c: Likewise.
20288         * sunrpc/pm_getmaps.c: Likewise.
20289         * sunrpc/pm_getport.c: Likewise.
20290         * sunrpc/pmap_clnt.c: Likewise.
20291         * sunrpc/pmap_prot.c: Likewise.
20292         * sunrpc/pmap_prot2.c: Likewise.
20293         * sunrpc/pmap_rmt.c: Likewise.
20294         * sunrpc/rpc/auth.h: Likewise.
20295         * sunrpc/rpc/auth_unix.h: Likewise.
20296         * sunrpc/rpc/clnt.h: Likewise.
20297         * sunrpc/rpc/des_crypt.h: Likewise.
20298         * sunrpc/rpc/key_prot.h: Likewise.
20299         * sunrpc/rpc/netdb.h: Likewise.
20300         * sunrpc/rpc/pmap_clnt.h: Likewise.
20301         * sunrpc/rpc/pmap_prot.h: Likewise.
20302         * sunrpc/rpc/pmap_rmt.h: Likewise.
20303         * sunrpc/rpc/rpc.h: Likewise.
20304         * sunrpc/rpc/rpc_des.h: Likewise.
20305         * sunrpc/rpc/rpc_msg.h: Likewise.
20306         * sunrpc/rpc/svc.h: Likewise.
20307         * sunrpc/rpc/svc_auth.h: Likewise.
20308         * sunrpc/rpc/types.h: Likewise.
20309         * sunrpc/rpc/xdr.h: Likewise.
20310         * sunrpc/rpc_clntout.c: Likewise.
20311         * sunrpc/rpc_cmsg.c: Likewise.
20312         * sunrpc/rpc_common.c: Likewise.
20313         * sunrpc/rpc_cout.c: Likewise.
20314         * sunrpc/rpc_dtable.c: Likewise.
20315         * sunrpc/rpc_hout.c: Likewise.
20316         * sunrpc/rpc_main.c: Likewise.
20317         * sunrpc/rpc_parse.c: Likewise.
20318         * sunrpc/rpc_parse.h: Likewise.
20319         * sunrpc/rpc_prot.c: Likewise.
20320         * sunrpc/rpc_sample.c: Likewise.
20321         * sunrpc/rpc_scan.c: Likewise.
20322         * sunrpc/rpc_scan.h: Likewise.
20323         * sunrpc/rpc_svcout.c: Likewise.
20324         * sunrpc/rpc_tblout.c: Likewise.
20325         * sunrpc/rpc_util.c: Likewise.
20326         * sunrpc/rpc_util.h: Likewise.
20327         * sunrpc/rpcinfo.c: Likewise.
20328         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20329         * sunrpc/rpcsvc/key_prot.x: Likewise.
20330         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20331         * sunrpc/rpcsvc/mount.x: Likewise.
20332         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20333         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20334         * sunrpc/rpcsvc/rex.x: Likewise.
20335         * sunrpc/rpcsvc/rstat.x: Likewise.
20336         * sunrpc/rpcsvc/rusers.x: Likewise.
20337         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20338         * sunrpc/rpcsvc/spray.x: Likewise.
20339         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20340         * sunrpc/rtime.c: Likewise.
20341         * sunrpc/svc.c: Likewise.
20342         * sunrpc/svc_auth.c: Likewise.
20343         * sunrpc/svc_authux.c: Likewise.
20344         * sunrpc/svc_raw.c: Likewise.
20345         * sunrpc/svc_run.c: Likewise.
20346         * sunrpc/svc_simple.c: Likewise.
20347         * sunrpc/svc_tcp.c: Likewise.
20348         * sunrpc/svc_udp.c: Likewise.
20349         * sunrpc/svc_unix.c: Likewise.
20350         * sunrpc/svcauth_des.c: Likewise.
20351         * sunrpc/xcrypt.c: Likewise.
20352         * sunrpc/xdr.c: Likewise.
20353         * sunrpc/xdr_array.c: Likewise.
20354         * sunrpc/xdr_float.c: Likewise.
20355         * sunrpc/xdr_mem.c: Likewise.
20356         * sunrpc/xdr_rec.c: Likewise.
20357         * sunrpc/xdr_ref.c: Likewise.
20358         * sunrpc/xdr_sizeof.c: Likewise.
20359         * sunrpc/xdr_stdio.c: Likewise.
20360
20361         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20362         handling.
20363
20364 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20365
20366         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20367
20368 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20369
20370         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20371         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20372         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20373         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20374         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20375         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20376         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20377         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20378         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20379         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20380         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20381         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20382         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20383         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20384
20385 2010-07-26  Anton Blanchard  <anton@samba.org>
20386
20387         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20388         * malloc/arena.c (heap_trim): Likewise.
20389
20390 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20391
20392         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20393         here.  Not...
20394         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20395         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20396
20397 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20398
20399         * sysdeps/i386/elf/Makefile: New file.
20400
20401 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20402
20403         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20404         from fanotify_init.
20405         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20406         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20407
20408 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20409
20410         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20411         of strncasecmp_l.
20412         * sysdeps/multiarch/strcmp.S: Likewise.
20413
20414 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20415
20416         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20417         strncase_l-nonascii.
20418         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20419         Add strncase_l-ssse3.
20420         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20421         * sysdeps/x86_64/strcmp.S: Likewise.
20422         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20423         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20424         * sysdeps/x86_64/strncase.S: New file.
20425         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20426         * sysdeps/x86_64/strncase_l.S: New file.
20427         * string/Makefile (strop-tests): Add strncasecmp.
20428         * string/test-strncasecmp.c: New file.
20429
20430         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20431         warning.
20432
20433         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20434         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20435
20436 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20437
20438         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20439
20440 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20441
20442         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20443         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20444         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20445
20446 2010-05-01  Alan Modra  <amodra@gmail.com>
20447
20448         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20449         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20450         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20451         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20452         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20453         tidying.  Don't tail-call __sigjmp_save for static lib.
20454         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20455         save location.
20456         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20457         (CALL_MCOUNT): Add eh info, and nop after bl.
20458         (TAIL_CALL_SYSCALL_ERROR): New macro.
20459         (PSEUDO_RET): Use it.
20460         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20461         Correct save location of integer regs and cr.
20462         (_dl_profile_resolve): Correct cr save location.  Delete nops
20463         after bl when SHARED.  Reduce cfi size a little by better
20464         placement of cfi directives.
20465         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20466         make a stack frame.  Instead use parm save area as a temp.
20467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20468         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20470         Don't make a stack frame for parent, use parm save area.
20471         Increase child stack frame to 112 bytes.  Don't save unused reg,
20472         and adjust reg usage.  Set up cfi on error recovery and
20473         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20475         (__makecontext): Add dummy nop after jump to exit.
20476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20477         Use correct parm save area and cr save, reduce stack frame.
20478         Correct cfi for possible PSEUDO_RET frame setup.
20479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20480         Branch to local label emitted by PSEUDO_RET rather than
20481         __syscall_error.
20482
20483 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20484
20485         [BZ #11904]
20486         * locale/programs/locale.c (print_assignment): New function.
20487         (show_locale_vars): Use it.
20488
20489 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20490
20491         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20492         field.
20493         (struct statfs64): Likewise.
20494         (_STATFS_F_FLAGS): Define.
20495         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20496         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20497         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20498         (ST_VALID): Define locally.
20499         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20500         __statvfs_getflags, use the provided value.
20501         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20502         __ASSUME_STATFS_F_FLAGS.
20503
20504         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20505
20506         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20507         Add sys/fanotify.h.
20508         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20509         fanotify_mask for GLIBC_2.13.
20510         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20511         fanotify_init and fanotify_mark.
20512         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20513         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20514
20515         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20516         Add prlimit.
20517         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20518         prlimit64 for GLIBC_2.13.
20519         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20520         prlimit64.
20521         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20522         syscall.
20523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20524         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20525         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20526         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20527         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20528         add prlimit alias.
20529         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20530
20531         [BZ #11903]
20532         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20533         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20534
20535         * nss/Makefile: Add rules to build and run tst-nss-test1.
20536         * shlib-versions: Add entry for libnss_test1.
20537         * nss/nss_test1.c: New file.
20538         * nss/tst-nss-test1.c: New file.
20539
20540         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20541         (__nss_configure_lookup): Set appropriate entry in
20542         __nss_configure_lookup to true.
20543         * nss/nsswitch.h: Define enum with indeces of databases in
20544         databases and __nss_database_custom arrays.  Declare
20545         __nss_database_custom.
20546         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20547         to avoid using nscd when custom rules are installed.
20548         * nss/getXXbyYY_r.c: Likewise.
20549         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20550
20551         * nss/nss_files/files-parse.c: Whitespace fixes.
20552
20553 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20554
20555         [BZ #11883]
20556         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20557         * posix/fnmatch_loop.c: Likewise.
20558
20559 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20560
20561         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20562         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20563         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20564         * Versions.def [GLIBC_2.13]: Add.
20565
20566 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20567
20568         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20569         Also fail if tpwd after pwuid call is NULL.
20570
20571 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20572
20573         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20574         when converting to ms.
20575
20576 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20577
20578         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20579         EOPNOTSUPP errors with ENOTTY.
20580         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20581         EOPNOTSUPP errors with ENOTTY.
20582
20583 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20584
20585         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20586         Add strcasecmp_l-ssse3.
20587         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20588         strcasecmp.
20589         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20590         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20591         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20592
20593 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20594
20595         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20596
20597         * string/Makefile (strop-tests): Add strcasecmp.
20598         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20599         strcasecmp_l-nonascii.
20600         (gen-as-const-headers): Add locale-defines.sym.
20601         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20602         * sysdeps/x86_64/strcasecmp.S: New file.
20603         * sysdeps/x86_64/strcasecmp_l.S: New file.
20604         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20605         * sysdeps/x86_64/locale-defines.sym: New file.
20606         * string/test-strcasecmp.c: New file.
20607
20608         * string/test-strcasestr.c: Test both ends of the range of characters.
20609         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20610
20611 2010-07-29  Roland McGrath  <roland@redhat.com>
20612
20613         [BZ #11856]
20614         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20615
20616 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20617
20618         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20619         for ld.so.
20620
20621 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20622
20623         * manual/memory.texi (Malloc Tunable Parameters): Document
20624         M_PERTURB.
20625
20626 2010-07-26  Roland McGrath  <roland@redhat.com>
20627
20628         [BZ #11840]
20629         * configure.in (-fgnu89-inline check): Set and substitute
20630         gnu89_inline, not libc_cv_gnu89_inline.
20631         * configure: Regenerated.
20632         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20633
20634 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20635
20636         * string/test-strnlen.c: New file.
20637         * string/Makefile (strop-tests): Add strnlen.
20638         * string/tester.c (test_strnlen): Add a few more test cases.
20639         * string/tst-strlen.c: Better error reporting.
20640
20641         * sysdeps/x86_64/strnlen.S: New file.
20642
20643 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20644
20645         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20646         lower-latency instructions.
20647
20648 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20649
20650         * string/test-strcasestr.c: New file.
20651         * string/test-strstr.c: New file.
20652         * string/Makefile (strop-tests): Add strstr and strcasestr.
20653         * string/str-two-way.h: Don't undefine MAX.
20654         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20655
20656 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20657
20658         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20659         strcasestr-nonascii.
20660         (CFLAGS-strcasestr-nonascii.c): Define.
20661         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20662         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20663         Remove unused attribute.
20664
20665 2010-07-20  Roland McGrath  <roland@redhat.com>
20666
20667         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20668         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20669         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20670         like LD_HWCAP_MASK can disable hwcaps.
20671
20672 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20673
20674         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20675
20676 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20677
20678         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20679         call in strcasestr.
20680         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20681         __strcasestr_sse42_nonascii.
20682         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20683         strcasestr-nonascii.c.
20684         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20685
20686 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20687
20688         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20689         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20690         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20691         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20692
20693 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20694
20695         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20696         fcntl.
20697
20698 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20699
20700         [BZ #11577]
20701         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20702         dl_signal_cerror.
20703
20704 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20705
20706         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20707         _PC_PIPE_BUF using F_GETPIPE_SZ.
20708
20709 2010-07-05  Roland McGrath  <roland@redhat.com>
20710
20711         * manual/arith.texi (Rounding Functions): Fix rint description
20712         implicit in round description.
20713
20714 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20715
20716         * elf/Makefile: Fix linking for a few tests to make recent linker
20717         happy.
20718
20719 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20720
20721         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20722         $(common-objpfx)libc_nonshared.a.
20723
20724 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20725
20726         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20727         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20728         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20729         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20730         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20731         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20732         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20733         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20738         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20748         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20749         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20750         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20751         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20752         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20753         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20754         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20755         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20756         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20757         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20758         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20759         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20774
20775 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20776
20777         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20778         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20779         * string/memmove.c (memmove): Renamed to ...
20780         (MEMMOVE): ...this.  Default to memmove.
20781         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20782         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20783         (END_CHK): Define.
20784         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20785         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20786         mempcpy-ssse3-back memmove-ssse3-back.
20787         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20788         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20789         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20790         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20791         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20792         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20793         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20794         * sysdeps/x86_64/multiarch/memmove.c: New file.
20795         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20796         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20797         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20798         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20799         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20800         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20801         Define.
20802         (index_Fast_Copy_Backward): Define.
20803         (HAS_ARCH_FEATURE): Define.
20804         (HAS_FAST_REP_STRING): Define.
20805         (HAS_FAST_COPY_BACKWARD): Define.
20806
20807 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20808
20809         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20810         Restore proper fallback handling.
20811
20812 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20813
20814         [BZ #11701]
20815         * posix/group_member.c (__group_member): Correct checking loop.
20816
20817         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20818         OOM in getpwuid_r correctly.  Return error number when the caller
20819         should return, otherwise -1.
20820         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20821         call returning > 0 value.
20822         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20823
20824 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20825
20826         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20827         libc_nonshared.a from targets in modules-names.
20828
20829 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20830
20831         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20832         requires it.
20833
20834 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20835
20836         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20837         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20838         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20839         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20840
20841 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20842
20843         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20844
20845 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20846
20847         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20848         and F_GETPIPE_SZ.
20849         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20850         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20851         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20852         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20853         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20854         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20855
20856 2010-06-14  Roland McGrath  <roland@redhat.com>
20857
20858         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20859
20860 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20861
20862         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20863         __REDIRECT followed by __THROW.
20864         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20865         * posix/getopt.h (getopt): Likewise.
20866
20867 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20868
20869         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20870         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20871         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20872         in AT_FLAGS.
20873         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20874         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20875
20876 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20877
20878         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20879
20880 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20881
20882         [BZ #11640]
20883         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20884         Properly check family and model.
20885
20886 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20887
20888         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20889
20890 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20891
20892         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20893
20894 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20895
20896         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20897         symbol reference.
20898
20899 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20900
20901         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20902         symbol reference.
20903
20904 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20905
20906         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20907         and internal_recvmmsg.
20908         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20909         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20910         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20911         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20912
20913         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20914         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20915         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20916
20917 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20918
20919         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20920
20921 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20922
20923         POWER7 optimizations.
20924         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20925         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20926
20927 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20928
20929         * version.h: Update for 2.13 development version.
20930
20931 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20932
20933         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20934         exceptions.  Return 0.
20935
20936 2010-05-07  Roland McGrath  <roland@redhat.com>
20937
20938         * elf/ldconfig.c (main): Add a const.
20939
20940 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20941
20942         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20943         (args_options): Add no-idn option.
20944         (ahosts_keys_int): Add idn_flags to ai_flags.
20945         (parse_option): Handle 'i' option to clear idn_flags.
20946
20947         * malloc/malloc.c (_int_free): Possible race in the most recently
20948         added check.  Only act on the data if no current modification
20949         happened.
20950
20951 See ChangeLog.17 for earlier changes.