PowerPC: Remove unnecessary -mnew-mnemonics.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2
3         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
4
5 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
6
7         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
8         (run_program_cmd): This.
9         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
10         (tst_langinfo): New variable.  Use it.
11
12 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
13
14         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
15         floating point opcodes.
16
17 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
18
19         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
20         variable.
21
22         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
23
24         * sysdeps/mach/hurd/powerpc: Remove directory.
25         * sysdeps/mach/powerpc: Likewise.
26
27 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
28
29         * scripts/check-local-headers.sh: Ignore c++ headers.
30
31 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
32
33         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
34         __libc_cleanup_region_start argument.
35
36 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
37
38         [BZ #14784]
39         [BZ #14785]
40         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
41         x * y using scaling, not as x * y + z.
42         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
43         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
44         * math/libm-test.inc (fma_test): Add more tests.
45         (fma_test_towardzero): Likewise.
46         (fma_test_downward): Likewise.
47         (fma_test_upward): Likewise.
48
49 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
50
51         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
52
53 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
54
55         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56         New variable.
57
58 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
59
60         * rt/tst-shm.c (worker): Correct checking for mmap failure.
61
62 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
63
64         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65         Fix sort order.
66         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
67         Likewise.
68
69 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70
71         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
72         Fix the order of the list for glibc 2.17.
73         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
74         Likewise.
75
76 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
77
78         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
79
80 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
81
82         [BZ #14610]
83         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
84         for low part of x being zero before using __atanl (y).
85         * math/libm-test.inc (atan2_test): Add another test.
86
87         * manual/install.texi (Configuring and compiling): Document
88         general use of test-wrapper and test-wrapper-env.
89         * INSTALL: Regenerated.
90
91         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
92         (__fma): Do not extract and scale down low bits on after-rounding
93         systems when result rounded to normal precision would have normal
94         exponent.
95         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
96         (__fmal): Do not extract and scale down low bits on after-rounding
97         systems when result rounded to normal precision would have normal
98         exponent.
99         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
100         (__fmal): Do not extract and scale down low bits on after-rounding
101         systems when result rounded to normal precision would have normal
102         exponent.
103         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
104         macro.
105         (fma_test): Add more tests.
106         (fma_test_towardzero): Likewise.
107         (fma_test_downward): Likewise.
108         (fma_test_upward): Likewise.
109
110 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
111
112         * sysdeps/i386/tininess.h: Renamed to ...
113         * sysdeps/x86/tininess.h: This.
114         * sysdeps/x86_64/tininess.h: Removed.
115
116 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
117
118         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
119         input.  Use $(build-program-cmd).
120         ($(objpfx)tst-array1-static.out): Likewise.
121         ($(objpfx)tst-array2.out): Likewise.
122         ($(objpfx)tst-array3.out): Likewise.
123         ($(objpfx)tst-array4.out): Likewise.
124         ($(objpfx)tst-array5.out): Likewise.
125         ($(objpfx)tst-array5-static.out): Likewise.
126
127 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
128
129         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
130         if defined.
131
132         * nss/nsswitch.h (nss_interface_function): Provide new
133         macro for use with NSS functions.
134         * grp/initgroups.c: Use new macro.
135         * nss/getXXbyYY.c: Likewise.
136         * nss/getXXbyYY_r.c: Likewise.
137         * nss/getXXent.c: Likewise.
138         * nss/getXXent_r.c: Likewise.
139         * sysdeps/posix/getaddrinfo.c: Likewise.
140
141 2012-10-30  Andreas Jaeger  <aj@suse.de>
142
143         * po/ru.po: Update Russion translation from translation project.
144
145 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
146
147         [BZ #14152]
148         [BZ #14783]
149         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
150         result and shift together with sticky bit instead of replicating
151         round-to-nearest rounding.
152         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
153         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
154         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
155         missing underflow exceptions.
156         (fma_test_towardzero): Add more tests.
157         (fma_test_downward): Likewise.
158         (fma_test_upward): Likewise.
159
160         [BZ #14047]
161         * sysdeps/generic/tininess.h: New file.
162         * sysdeps/i386/tininess.h: Likewise.
163         * sysdeps/sh/tininess.h: Likewise.
164         * sysdeps/x86_64/tininess.h: Likewise.
165         * stdlib/tst-strtod-underflow.c: Likewise.
166         * stdlib/tst-tininess.c: Likewise.
167         * stdlib/strtod_l.c: Include <tininess.h>.
168         (round_and_return): Do not set errno for exact underflow cases.
169         Force an underflow exception when setting errno for underflow.
170         Determine underflow based on rounding to normal precision if
171         TININESS_AFTER_ROUNDING.
172         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
173         ERANGE for exact underflow cases.
174         * stdlib/Makefile (tests): Add tst-tininess and
175         tst-strtod-underflow.
176         ($(objpfx)tst-tininess): Use $(link-libm).
177         ($(objpfx)tst-strtod-underflow): Likewise.
178
179 2012-10-30  Andreas Jaeger  <aj@suse.de>
180
181         [BZ#14767]
182         * elf/Makefile (tests): Remove conditional for have-initfini-array
183         since this is now always required and the variable does not exist
184         anymore.
185         (tests-static): Likewise.
186         (modules-names): Likewise.
187
188         * po/eo.po: Add Esperanto translation from translation project.
189
190         * elf/tst-array1.c (fini_array): Make writeable so that it can be
191         merged with constructor/destructor.
192         (init_array): Likewise.
193         * elf/tst-array2dep.c (fini_array): Likewise.
194         (init_array): Likewise.
195
196 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
197
198         * manual/message.texi: Delete @cartouche tags.
199
200 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
201
202         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
203         EOPNOTSUPP.
204         * sysdeps/mach/hurd/fsync.c: Likewise.
205
206         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
207         [_POSIX_REALTIME_SIGNALS]: Change condition to
208         [_POSIX_REALTIME_SIGNALS > 0].
209
210 2012-10-27  Andreas Jaeger  <aj@suse.de>
211
212         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
213         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
214         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
215         [__WORDSIZE != 64]: Likewise.
216
217 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
218
219         *  iconvdata/tst-table.sh: Remove ${SHELL}.
220         *  iconvdata/tst-tables.sh: Likewise.
221
222 2012-10-25  David S. Miller  <davem@davemloft.net>
223
224         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
225         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
226         of strtoull.
227
228         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
229         ifunc-impl-list.c
230         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
231         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
232         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
233         file.
234
235 2012-10-25  Roland McGrath  <roland@hack.frob.com>
236
237         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
238         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
239         __getdirentries.
240
241 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
242             Jim Blandy  <jimb@codesourcery.com>
243
244         * scripts/cross-test-ssh.sh: New file.
245         * manual/install.texi (Configuring and compiling): Document use of
246         cross-test-ssh.sh.
247         * INSTALL: Regenerated.
248
249 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
250
251         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
252         EOPNOTSUPP.
253
254 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
255
256         * Makeconfig (run-program-prefix): Fix comment.
257
258 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
259             Jim Blandy  <jimb@codesourcery.com>
260
261         * Makeconfig (test-wrapper): New variable,
262         (test-wrapper-env): Likewise.
263         [$(cross-compiling) = yes && $(test-wrapper) != ""]
264         (run-built-tests): Define to yes.
265         (run-program-prefix): Use $(test-wrapper).
266         (built-program-cmd): Likewise.
267         * Rules (make-test-out): Use $(test-wrapper-env) and
268         $(host-built-program-cmd).
269         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
270         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
271         tst-pathopt.sh.
272         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
273         $(test-wrapper-env) to tst-rtld-load-self.sh.
274         ($(objpfx)order2.out): Use $(test-wrapper).
275         ($(objpfx)tst-initorder.out): Likewise.
276         ($(objpfx)tst-initorder2.out): Likewise.
277         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
278         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
279         (test_wrapper_env): New variable.  Use it to run ld.so.
280         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
281         Use it to run ld.so.
282         (test_wrapper_env): Likewise.
283         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
284         $(test-wrapper) to run-iconv-test.sh.
285         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
286         (ICONV): Use $test_wrapper.
287         * posix/Makefile ($(objpfx)globtest.out): Pass
288         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
289         globtest.sh, not $(run-program-prefix).
290         * posix/globtest.sh (run_via_rtld_prefix): New variable.
291         (test_wrapper): Likewise.
292         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
293         set together with run_via_rtld_prefix.
294         (run_program_prefix): Define in terms of test_wrapper and
295         run_via_rtld_prefix.
296
297 2012-10-24  Roland McGrath  <roland@hack.frob.com>
298
299         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
300         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
301         Targets removed.
302
303         [BZ #14743]
304         * include/time.h: Remove librt_hidden_proto (clock_gettime).
305         Declare __clock_getres, __clock_gettime, __clock_settime,
306         __clock_nanosleep, and __clock_getcpuclockid.
307         * rt/clock_gettime.c: Define __clock_gettime as an alias.
308         Remove librt_hidden_def (clock_gettime).
309         * sysdeps/unix/clock_gettime.c: Likewise.
310         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
311         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
312         * rt/clock_getres.c: Define __clock_getres as an alias.
313         * sysdeps/posix/clock_getres.c: Likewise.
314         * rt/clock_settime.c: Define __clock_settime as an alias.
315         * sysdeps/unix/clock_settime.c: Likewise.
316         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
317         * sysdeps/unix/clock_nanosleep.c: Likewise.
318         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
319         * rt/clock-compat.c: New file.
320         * rt/Makefile (librt-routines): Add clock-compat and move
321         $(clock-routines) to ...
322         (routines): ... here, new variable.
323         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
324         Don't add get_clockfreq here.
325         * rt/Versions (libc: GLIBC_2.17): New version set.
326         Add clock_* symbols here.
327         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
328         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
329         (GLIBC_2.17): Add clock_* symbols.
330         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
331         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
332         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
334         Likewise.
335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
336         Likewise.
337         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
338         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
339         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
341         * NEWS: Mention the move.
342
343         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
344         Use __open, __read, __close rather than their public counterparts.
345         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
346         (__get_clockfreq_via_cpuinfo): Likewise.
347         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
348         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
349
350         * config.h.in (HAVE_IFUNC): New #undef.
351         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
352         was successful.
353         * configure: Regenerated.
354
355 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
356
357         * configure.in: Move READELF check to start of file.
358         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
359         libc_cv_asm_gnu_indirect_function in the process.
360         * configure: Regenerated.
361
362 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
363
364         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
365         send the output to /dev/null.
366         (libc_cv_cc_with_libunwind): Likewise.
367         (libc_cv_as_noexecstack): Likewise.
368         * configure: Regenerate.
369
370 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
371
372         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
373
374         * posix/globtest.sh (TMPDIR): Do not set.
375         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
376         (testout): Likewise.
377
378 2012-10-24  Andreas Jaeger  <aj@suse.de>
379
380         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
381         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
382         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
383         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
384         posix_fadvise64, posix_fallocate64.
385
386         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
387         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
388         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
389         Likewise.
390         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
391         Likewise.
392         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
393
394         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
395         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
396         <bits/fcntl-linux.h>.
397         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
398
399         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
400         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
401         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
402         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
403         [__WORDSIZE != 64]: Likewise.
404
405 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
406
407         * Makeconfig (run-built-tests): New variable.
408         * Rules [$(cross-compiling) = yes]: Change condition to
409         [$(run-built-tests) = no].
410         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
411         to [$(run-built-tests) = yes].
412         * elf/Makefile [$(cross-compiling) = no]: Likewise
413         * grp/Makefile [$(cross-compiling) = no]: Likewise.
414         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
415         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
416         * intl/Makefile [$(cross-compiling) = no]: Likewise.
417         * io/Makefile [$(cross-compiling) = no]: Likewise.
418         * libio/Makefile [$(cross-compiling) = no]: Likewise.
419         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
420         * misc/Makefile [$(cross-compiling) = no]: Likewise.
421         * posix/Makefile [$(cross-compiling) = no]: Likewise.
422         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
423         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
424         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
425         * string/Makefile [$(cross-compiling) = no]: Likewise.
426
427         * posix/Makefile ($(objpfx)globtest.out): Pass
428         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
429         $(rtld-installed-name).
430         * posix/globtest.sh (elf_objpfx): Remove variable.
431         (rtld_installed_name): Likewise.
432         (library_path): Likewise.
433         (run_program_prefix): New variable.  Use for running globtest
434         binary.
435
436 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
437             Joseph Myers  <joseph@codesourcery.com>
438
439         * Makeconfig (host-built-program-cmd): New variable.
440         * elf/Makefile (tst-stackguard1-ARGS): Use
441         $(host-built-program-cmd).
442         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
443         (tst-spawn-ARGS): Likewise.
444         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
445
446 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
447             Jim Blandy  <jimb@codesourcery.com>
448
449         * Makeconfig (run-via-rtld-prefix): New variable.
450         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
451         (built-program-cmd): Likewise.
452
453 2012-10-22  Andreas Jaeger  <aj@suse.de>
454
455         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
456         __O_RSYNC if it exists, otherwise to O_SYNC.
457
458 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
459             Joseph Myers  <joseph@codesourcery.com>
460
461         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
462         /dev/null.
463         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
464         from /dev/null
465         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
466         /dev/null.
467
468 2012-10-22  Andreas Jaeger  <aj@suse.de>
469
470         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
471         Define always.
472         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
473
474         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
475         bits/fcntl-linux.h.
476
477         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
478         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
479
480         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
481         to __O_LARGEFILE.
482         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
483         to __O_LARGEFILE.
484
485 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
486             Joseph Myers  <joseph@codesourcery.com>
487
488         * config.make.in (NM): New variable.
489
490 2012-10-21  Andreas Jaeger  <aj@suse.de>
491
492         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
493         definitions and declarations that are provided by
494         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
495
496 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
497
498         [BZ #14683]
499         * elf/Makefile (tests-static): Add tst-leaks1-static.
500         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
501         ($(objpfx)tst-leaks1-static): New rule.
502         ($(objpfx)tst-leaks1-static-mem): Likewise.
503         (tst-leaks1-static-ENV): New macro.
504         * elf/dl-open.c (dl_open_worker): Check the main application
505         only if SHARED is defined.
506         * elf/tst-leaks1-static.c: New file.
507
508 2012-10-20  Andreas Jaeger  <aj@suse.de>
509
510         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
511         generic values for Linux.
512         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
513         and declarations that are provided by <bits/fcntl-linux.h> and
514         include <bits/fcntl-linux.h>.
515         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
516         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
517
518 2012-10-20  Roland McGrath  <roland@hack.frob.com>
519
520         * io/fcntl.h: Move include of <bits/types.h> to the top and
521         include it unconditionally.
522
523 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
524
525         * wcsmbs/Makefile (tests-ifunc): New variable.
526         (tests): Add $(tests-ifunc).
527         * wcsmbs/test-wcschr-ifunc.c: New file.
528         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
529         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
530         * wcsmbs/test-wcslen-ifunc.c: Likewise.
531         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
532         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
533
534         * string/Makefile (tests-ifunc): New variable.
535         (tests): Add $(tests-ifunc).
536         * string/test-memccpy.c (TEST_NAME): New macro.
537         * string/test-memchr.c (TEST_NAME): Likewise.
538         * string/test-memcmp.c (TEST_NAME): Likewise.
539         * string/test-memcpy.c (TEST_NAME): Likewise.
540         * string/test-memmem.c (TEST_NAME): Likewise.
541         * string/test-memmove.c (TEST_NAME): Likewise.
542         * string/test-memset.c (TEST_NAME): Likewise.
543         * string/test-rawmemchr.c (TEST_NAME): Likewise.
544         * string/test-stpcpy.c (TEST_NAME): Likewise.
545         * string/test-stpncpy.c (TEST_NAME): Likewise.
546         * string/test-strcasecmp.c (TEST_NAME): Likewise.
547         * string/test-strcasestr.c (TEST_NAME): Likewise.
548         * string/test-strcat.c (TEST_NAME): Likewise.
549         * string/test-strchr.c (TEST_NAME): Likewise.
550         * string/test-strcmp.c(TEST_NAME): Likewise.
551         * string/test-strcpy.c (TEST_NAME): Likewise.
552         * string/test-strcspn.c (TEST_NAME): Likewise.
553         * string/test-strlen.c (TEST_NAME): Likewise.
554         * string/test-strncasecmp.c (TEST_NAME): Likewise.
555         * string/test-strncmp.c (TEST_NAME): Likewise.
556         * string/test-strncpy.c (TEST_NAME): Likewise.
557         * string/test-strnlen.c (TEST_NAME): Likewise.
558         * string/test-strpbrk.c (TEST_NAME): Likewise.
559         * string/test-strrchr.c (TEST_NAME): Likewise.
560         * string/test-strspn.c (TEST_NAME): Likewise.
561         * string/test-strstr.c (TEST_NAME): Likewise.
562         * string/test-bcopy-ifunc.c: New file.
563         * string/test-bzero-ifunc.c: Likewise.
564         * string/test-memccpy-ifunc.c: Likewise.
565         * string/test-memchr-ifunc.c: Likewise.
566         * string/test-memcmp-ifunc.c: Likewise.
567         * string/test-memcpy-ifunc.c: Likewise.
568         * string/test-memmem-ifunc.c: Likewise.
569         * string/test-memmove-ifunc.c: Likewise.
570         * string/test-mempcpy-ifunc.c: Likewise.
571         * string/test-memset-ifunc.c: Likewise.
572         * string/test-rawmemchr-ifunc.c: Likewise.
573         * string/test-stpcpy-ifunc.c: Likewise.
574         * string/test-stpncpy-ifunc.c: Likewise.
575         * string/test-strcasecmp-ifunc.c: Likewise.
576         * string/test-strcasestr-ifunc.c: Likewise.
577         * string/test-strcat-ifunc.c: Likewise.
578         * string/test-strchr-ifunc.c: Likewise.
579         * string/test-strchrnul-ifunc.c: Likewise.
580         * string/test-strcmp-ifunc.c: Likewise.
581         * string/test-strcpy-ifunc.c: Likewise.
582         * string/test-strcspn-ifunc.c: Likewise.
583         * string/test-strlen-ifunc.c: Likewise.
584         * string/test-strncasecmp-ifunc.c: Likewise.
585         * string/test-strncat-ifunc.c: Likewise.
586         * string/test-strncmp-ifunc.c: Likewise.
587         * string/test-strncpy-ifunc.c: Likewise.
588         * string/test-strnlen-ifunc.c: Likewise.
589         * string/test-strpbrk-ifunc.c: Likewise.
590         * string/test-strrchr-ifunc.c: Likewise.
591         * string/test-strspn-ifunc.c: Likewise.
592         * string/test-strstr-ifunc.c: Likewise.
593
594         * debug/Makefile (tests-ifunc): New variable.
595         (tests): Add $(tests-ifunc).
596         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
597         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
598         * debug/test-stpcpy_chk-ifunc.c: New file.
599         * debug/test-strcpy_chk-ifunc.c: Likewise.
600
601 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
602
603         [BZ #13601]
604         * elf/dl-load.c (open_verify): Retry read if the entire ELF
605         header is not read in.
606
607 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
608
609         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
610         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
611         directly.  Pass built executable to script as
612         $(built-program-cmd).
613         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
614         $testprogram without using LD_LIBRARY_PATH and $ldso.
615
616         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
617         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
618         $(rtld-installed-name).
619         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
620         (rtld_installed_name): Likewise.
621         (library_path): Likewise.
622         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
623         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
624         $(run-program-prefix) to tst-tables.sh.
625         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
626         it to run tst-table-from and tst-table-to.
627         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
628         Pass it to tst-table.sh.
629         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
630         $(run-program-prefix) to tst-gettext.sh.
631         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
632         tst-translit.sh.
633         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
634         tst-gettext2.sh.
635         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
636         to run tst-gettext.
637         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
638         to run tst-gettext2.
639         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
640         to run tst-translit.
641         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
642         $(run-program-prefix) to tst-mtrace.sh.
643         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
644         to run tst-mtrace.
645         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
646         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
647         $(rtld-installed-name).
648         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
649         (rtld_installed_name): Likewise.
650         (run_program_prefix): New variable.  Use it to run wordexp-test.
651
652         * Makeconfig (ARCH): Remove all definitions.
653         (machine): Likewise.
654         [ARCH]: Remove conditional code.
655         [!objdir]: Give error.
656         [!objdir] (objpfx): Remove.
657         [!objdir] (common-objpfx): Likewise.
658         [!objdir] (common-objdir): Likewise.
659         * configure.in (config_makefile): Remove.  Hardcode Makefile in
660         AC_CONFIG_FILES call.
661         * configure: Regenerated.
662
663         [BZ #13888]
664         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
665         or TMPDIR.
666         (testout): Likewise.
667
668         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
669         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
670         $(rtld-installed-name).
671         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
672         (rtld_installed_name): Likwise.
673         (runit): Remove function.
674         (run_getconf): New variable,  Use it for running getconf binary.
675
676 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
677
678         [BZ #14716]
679         * string/test-memmem.c (check_result): New function.
680         (do_one_test): Use it.
681         (check1): New function.
682         (test_main): Use it.
683
684 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
685
686         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
687
688 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
689
690         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
691         (_G_LSEEK64): Likewise.
692         (_G_MMAP64): Likewise.
693         (_G_FSTAT64): Likewise.
694         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
695         (_G_LSEEK64): Likewise.
696         (_G_MMAP64): Likewise.
697         (_G_FSTAT64): Likewise.
698         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
699         unconditional.  Call __mmap64 directly.
700         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
701         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
702         __lseek64 directly.
703         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
704         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
705         __mmap64 directly.
706         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
707         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
708         __lseek64 directly.
709         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
710         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
711         __lseek64 directly.
712         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
713         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
714         __lseek64 directly.
715         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
716         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
717         __fxstat64 directly.
718         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
719         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
720         unconditional.
721         (freopen64) [!_G_OPEN64]: Remove conditional code.
722         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
723         unconditional.
724         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
725         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
726         unconditional.
727         (ftello64) [!_G_LSEEK64]: Remove conditional code.
728         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
729         unconditional.
730         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
731         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
732         unconditional.
733         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
734         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
735         unconditional.
736         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
737         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
738         unconditional.
739         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
740         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
741         unconditional.
742         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
743
744 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
745
746         [BZ #12140]
747         * manual/memory.texi (Malloc Tunable Parameters): Add note
748         about free list pointers overwriting some perturb bytes.
749         Wording suggested by Roland McGrath.
750
751 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
752
753         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
754         (lgamma_test): Likewise.
755         (tgamma_test): Likewise.
756
757 2012-10-16  Florian Weimer  <fweimer@redhat.com>
758
759         [BZ #14700]
760         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
761         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
762
763 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
764
765         * NEWS: Mention BZ #14716.
766         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
767         when removing AVAILABLE1_USES_J macro.
768
769 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
770
771         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
772         (__bswap_64): __uint64_t for unsigned 64-bit int.
773
774 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
775
776         * include/string.h (memmem): Declare libc hidden alias.
777         * string/memmem.c (memmem): Define libc hidden alias.
778         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
779         __read, __close instead of open, read, close.
780
781 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
782
783         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
784         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
785         global and hidden.
786         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
787         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
788         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
789         Likewise.
790         (__rawmemchr_sse2): Likewise.
791         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
792         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
793         (__strchr_sse2): Likewise.
794         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
795         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
796         (__strcasecmp_sse2): Likewise.
797         (__strncasecmp_sse2): Likewise.
798         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
799         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
800         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
801         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
802         (__strrchr_sse2): Likewise.
803         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
804         ifunc-impl-list.c.
805         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
806         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
807         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
808         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
809         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
810         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
811         * sysdeps/x86_64/multiarch/memset.S: Likewise.
812         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
813         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
814         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
815         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
816         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
817         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
818         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
819         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
820         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
821         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
822         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
823         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
824         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
825         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
826         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
827         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
828         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
829         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
830         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
831         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
832         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
833         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
834         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
835
836         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
837         global and hidden.
838         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
839         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
840         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
841         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
842         Likewise.
843         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
844         Likewise.
845         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
846         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
847         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
848         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
849         ifunc-impl-list.c.
850         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
851         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
852         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
853         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
854         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
855         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
856         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
857         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
858         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
859         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
860         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
861         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
862         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
863         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
864         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
865         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
866         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
867         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
868         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
869         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
870         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
871         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
872         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
873         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
874         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
875         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
876         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
877         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
878         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
879         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
880         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
881         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
882         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
883         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
884         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
885         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
886         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
887         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
888         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
889         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
890         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
891
892         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
893         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
894         * include/ifunc-impl-list.h: New file.
895         * misc/ifunc-impl-list.c: Likewise.
896         * misc/Makefile (routines): Add ifunc-impl-list.
897         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
898         * string/test-string.h: Include <ifunc-impl-list.h>.
899         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
900         impl_array): New variables.
901         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
902         are defined.
903         (test_init): Call __libc_ifunc_impl_list to initialize
904         func_list if TEST_IFUNC and TEST_NAME are defined.
905
906         * string/Makefile (strop-tests): Add bcopy and bzero.
907         * string/test-bcopy.c: New file.
908         * string/test-bzero.c: Likewise.
909         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
910         defined.
911         * string/test-memset.c: Support bzero test if TEST_BZERO is
912         defined.
913         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
914         __libc_memmove.
915         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
916         __libc_memset.
917         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
918         of memset.
919
920 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
921
922         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
923         * configure: Regenerated.
924
925         * Makeconfig (+link-static-before-libc): Don't include
926         $(link-static-libc).
927
928         * libio/libio.h (_IO_pos_t): Remove.
929
930 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
931
932         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
933         McGrath.
934
935 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
936
937         * crypt/crypt-entry.c: Include fips-private.h.
938         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
939         * crypt/md5c-test.c (main): Tolerate disabled MD5.
940         * sysdeps/unix/sysv/linux/fips-private.h: New file.
941         * sysdeps/generic/fips-private.h: New file, dummy fallback.
942
943 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
944
945         * crypt/crypt-private.h: Include stdbool.h.
946         (_ufc_setup_salt_r): Return bool.
947         * crypt/crypt-entry.c: Include errno.h.
948         (__crypt_r): Return NULL with EINVAL for bad salt.
949         * crypt/crypt_util.c (bad_for_salt): New.
950         (_ufc_setup_salt_r): Check that salt is long enough and within
951         the specified alphabet.
952         * crypt/badsalttest.c: New file.
953         * crypt/Makefile (tests): Add it.
954         ($(objpfx)badsalttest): New.
955
956 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
957
958         * NEWS: Add entry for BZ #14602.
959
960 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
961
962         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
963         type-generic.
964         * math/libm-test.inc: Update comment listing what functions and
965         macros are tested.
966         (isgreater_test): New function.
967         (isgreaterequal_test): Likewise.
968         (isless_test): Likewise.
969         (islessequal_test): Likewise.
970         (islessgreater_test): Likewise.
971         (isunordered_test): Likewise.
972         (main): Call the new functions.
973
974 2012-10-09  Roland McGrath  <roland@hack.frob.com>
975
976         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
977         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
978         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
979         * sysdeps/i386/configure: Regenerated.
980         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
981         * sysdeps/mach/configure: Regenerated.
982         * sysdeps/mach/hurd/configure: Regenerated.
983         * sysdeps/powerpc/configure: Regenerated.
984         * sysdeps/powerpc/powerpc32/configure: Regenerated.
985         * sysdeps/powerpc/powerpc64/configure: Regenerated.
986         * sysdeps/s390/s390-32/configure: Regenerated.
987         * sysdeps/s390/s390-64/configure: Regenerated.
988         * sysdeps/sh/configure: Regenerated.
989         * sysdeps/sparc/configure: Regenerated.
990         * sysdeps/unix/sysv/linux/configure: Regenerated.
991         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
992         * sysdeps/x86_64/configure: Regenerated.
993
994         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
995         defined.  Don't check if MAP is NULL.
996
997 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
998
999         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1000         (_G_stat64): Likewise.
1001         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1002         (_G_stat64): Likewise.
1003         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1004         instead of struct _G_stat64.
1005         * libio/fileops.c (mmap_remap_check): Likewise.
1006         (decide_maybe_mmap): Likewise.
1007         (_IO_new_file_seekoff): Likewise.
1008         (_IO_file_stat): Likewise.
1009         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1010         _G_off64_t.
1011         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1012         instead of struct _G_stat64.
1013         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1014
1015 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1016
1017         [BZ #14602]
1018         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1019         Replace with ...
1020         (CHECK_EOL): New macro.
1021         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1022         CHECK_EOL.
1023         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1024         Replace with CHECK_EOL.
1025         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1026         Replace with CHECK_EOL.
1027
1028 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1029
1030         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1031         type-generic.
1032         * math/libm-test.inc: Update comment listing what functions and
1033         macros are tested.
1034         (finite_test): New function.
1035         (isinf_test): Likewise.
1036         (isnan_test): Likewise.
1037         (fpclassify_test): Test subnormal input.
1038         (isfinite_test): Likewise.
1039         (isnormal_test): Likewise.
1040         (main): Call the new functions.
1041
1042 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1043
1044         [BZ #14660]
1045         * Makerules (%.dynsym): Force C locale when running
1046         $(OBJDUMP) --dynamic-syms.
1047
1048 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1049
1050         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1051         <stdint.h>.
1052
1053 2012-10-06  David S. Miller  <davem@davemloft.net>
1054
1055         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1056         upper 32-bits of the length value in %o2 since we use branch-on-register
1057         tests which consider the entire 64-bit register.
1058
1059 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1060
1061         * string/test-strstr.c (check2): Add a test for page boundary.
1062
1063 2012-10-05  David S. Miller  <davem@davemloft.net>
1064
1065         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1066         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1067         file.
1068         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1069         sysdep_routines.
1070         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1071         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1072         and bzero when HWCAP_SPARC_CRYPTO is present.
1073
1074 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1075
1076         [BZ #14602]
1077         * string/test-strstr.c (check2): New function.
1078         (test_main): Call check2.
1079
1080         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1081         and bug-strchr1.
1082         * string/bug-strcasestr1.c (do_test): Moved to ...
1083         * string/test-strcasestr.c (check1): Here.  New function.
1084         (do_one_test): Break out result checking code into ...
1085         (check_result): This.  New function.
1086         (do_one_test): Call check_result.
1087         (test_main): Call check1.
1088         * string/bug-strchr1.c (do_test): Moved to ...
1089         * string/test-strchr.c (check1): Here.  New function.
1090         (do_one_test): Break out result checking code into ...
1091         (check_result): This.  New function.
1092         (do_one_test): Call check_result.
1093         (test_main): Call check1.
1094         * string/bug-strstr1.c (main): Moved to ...
1095         * string/test-strchr.c (check1): Here.  New function.
1096         (do_one_test): Break out result checking code into ...
1097         (check_result): This.  New function.
1098         (do_one_test): Call check_result.
1099         (test_main): Call check1.
1100         * string/bug-strcasestr1.c: Removed.
1101         * string/bug-strchr1.c: Likewise.
1102         * string/bug-strstr1.c: Likewise.
1103
1104         * elf/Makefile (dl-routines): Add hwcaps.
1105         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1106         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1107         (_dl_important_hwcaps): Moved to ...
1108         * elf/dl-hwcaps.c: Here.  New file.
1109         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1110
1111         [BZ #14557]
1112         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1113         if IS_IN_rtld isn't defined.
1114
1115         * elf/dl-support.c (_dl_sysinfo_map): New.
1116         Include "get-dynamic-info.h" and "setup-vdso.h".
1117         (_dl_non_dynamic_init): Call setup_vdso.
1118         * elf/dynamic-link.h: Don't include <assert.h>.
1119         (elf_get_dynamic_info): Moved to ...
1120         * elf/get-dynamic-info.h: Here.  New file.
1121         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1122         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1123         * elf/setup-vdso.h: Here.  New file.
1124         * elf/rtld.c: Include "setup-vdso.h".
1125         (dl_main): Call setup_vdso.
1126
1127 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1128
1129         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1130         creal in comment listing functions tested.  List finite, isinf,
1131         isnan, isless, islessequal, isgreater, isgreaterequal,
1132         islessgreater, isunordered, lgamma_r and pow10 as functions and
1133         macros not tested.  Mention which functions not tested are aliases
1134         for other functions.  Fix typo.  Note that signs of NaNs are not
1135         tested.
1136
1137         * scripts/config.guess: Update from config.git.
1138         * scripts/config.sub: Likewise.
1139
1140 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1141
1142         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1143         * misc/madvise.c (madvise): Renamed to __madvise.
1144         Make madvise a weak alias.
1145         * include/sys/mman.h: Declare __madvise.
1146         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1147         * sysdeps/unix/syscalls.list
1148         (madvise): Make __madvise the strong name, and madvise a weak alias.
1149         * sysdeps/unix/sysv/linux/syscalls.list
1150         (madvise, mmap): Remove redundant entries.
1151         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1152         * malloc/malloc.c (mtrim): Likewise.
1153         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1154
1155 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1156
1157         * sysdeps/mach/hurd/dl-cache.c: File removed.
1158         * config.h.in (USE_LDCONFIG): New #undef.
1159         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1160         * configure: Regenerated.
1161         * elf/Makefile (dl-routines): Add dl-cache only under
1162         [$(use-ldconfig) = yes].
1163         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1164         cache on [USE_LDCONFIG].
1165         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1166         [USE_LDCONFIG].
1167         * elf/rtld.c (dl_main): Likewise.
1168
1169 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1170
1171         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1172         _SC_LEVEL4_CACHE_LINESIZE.
1173
1174 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1175
1176         * sysdeps/unix/bsd/confstr.h: File removed.
1177
1178 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1179
1180         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1181         sys/sdt-config.h.
1182
1183 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1184
1185         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1186         Make 'mapoff' field ElfW(Off) rather than off_t.
1187
1188 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1189
1190         * nscd/Makefile: Remove nscd-cflags and all its users.
1191         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1192         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1193
1194         [BZ #10631]
1195         * malloc.c (malloc_printerr): Clarify error message.
1196
1197 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1198
1199         [BZ #14648]
1200         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1201         Set bit_FMA_Usable if FMA is supported.
1202         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1203         macro.
1204         (bit_FMA4_Usable): Updated.
1205         (index_FMA_Usable): New macro.
1206         (CPUID_FMA): Likewise
1207         (HAS_FMA): Defined with bit_FMA_Usable.
1208
1209 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1210
1211         * bits/types.h (__swblk_t): Type removed.
1212         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1213         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1214         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1215         (__SWBLK_T_TYPE): Likewise.
1216         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1217         (__SWBLK_T_TYPE): Likewise.
1218         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1219         (__SWBLK_T_TYPE): Likewise.
1220         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1221         (__SWBLK_T_TYPE): Likewise.
1222
1223 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1224             Honza Horak <hhorak@redhat.com>
1225
1226         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1227         (xdr_mapname): Use YPMAXMAP as maxsize.
1228         (xdr_peername): Use YPMAXPEER as maxsize.
1229         (xdr_keydat): Use YPAXRECORD as maxsize.
1230         (xdr_valdat): Use YPMAXRECORD as maxsize.
1231
1232 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1233
1234         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1235
1236         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1237         * csu/init-first.c: ... here.
1238         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1239         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1240         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1241         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1242         * sysdeps/i386/init-first.c: File removed.
1243         * sysdeps/sh/init-first.c: File removed.
1244
1245 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1246
1247         [BZ #14645]
1248         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1249         if x * y might underflow to zero and z is zero.
1250         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1251         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1252         * math/libm-test.inc (min_subnorm_value): New variable.
1253         (fma_test): Add more tests.
1254         (fma_test_towardzero): Likewise.
1255         (fma_test_downward): Likewise
1256         (fma_test_upward): Likewise.
1257         (initialize): Set min_subnorm_value.
1258
1259 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1260
1261         [BZ #14638]
1262         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1263         0 + 0.
1264         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1265         mode for addition resulting in exact zero.
1266         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1267         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1268         exact 0 + 0.
1269         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1270         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1271         * math/libm-test.inc (fma_test): Add more tests.
1272         (fma_test_towardzero): New function.
1273         (fma_test_downward): Likewise.
1274         (fma_test_upward): Likewise.
1275         (main): Call the new functions.
1276
1277 2012-09-28  David S. Miller  <davem@davemloft.net>
1278
1279         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1280
1281 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1282
1283         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1284         instead of SIGALRM.
1285
1286         * sysdeps/gnu/_G_config.h: Moved to ...
1287         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1288         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1289         * sysdeps/generic/_G_config.h: ... here.
1290
1291         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1292
1293         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1294
1295         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1296         Conditionalize target on [libnss_test1.so-version].
1297
1298         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1299
1300         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1301         (elfobjdir): Move out of conditionals.
1302
1303         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1304         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1305         (__nss_lookup_function): Conditionalize label remove_from_tree on
1306         [!DO_STATIC_NSS || SHARED], matching its only use.
1307
1308 2012-09-28  David S. Miller  <davem@davemloft.net>
1309
1310         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1311         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1312         file.
1313         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1314         sysdep_routines.
1315         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1316         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1317         when HWCAP_SPARC_CRYPTO is present.
1318
1319 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1320
1321         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1322
1323 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1324
1325         [BZ #6530]
1326         * stdio-common/vfprintf.c (process_string_arg): Revert
1327         2000-07-22 change.
1328
1329 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1330
1331         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1332         for testcase.
1333         * stdio-common/tst-sprintf.c: Include <locale.h>
1334         (main): Test sprintf's handling of incomplete multibyte
1335         characters.
1336
1337 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         * elf/dl-runtime.c (VERSYMIDX): Removed.
1340         * elf/dl-version.c (VERSYMIDX): Likewise.
1341         * elf/do-rel.h (VERSYMIDX): Likewise.
1342         (VALIDX): Likewise.
1343         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1344         * elf/rtld.c (VALIDX): Likewise.
1345         (ADDRIDX): Likewise.
1346         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1347         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1348         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1349         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1350         (VALIDX): Likewise.
1351         (ADDRIDX): Likewise.
1352
1353 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1354
1355         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1356
1357 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1358
1359         [BZ #11438]
1360         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1361         to global scope.
1362         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1363         addresses are in the same scope as 192.0.2/24.
1364         * posix/gai.conf: Document new scope table defaults.
1365
1366 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1367
1368         [BZ #5298]
1369         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1370         for ftell.  Compute offsets from write pointers instead.
1371         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1372
1373 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1374
1375         [BZ #14543]
1376         * libio/Makefile (tests): New test case tst-fseek.
1377         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1378         combination works in wide mode.
1379         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1380         state when the external buffer state changes.
1381
1382 2012-09-27  David S. Miller  <davem@davemloft.net>
1383
1384         [BZ #14376]
1385         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1386         pass reloc->r_addend in as the 'high' argument to
1387         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1388
1389         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1390
1391 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1392
1393         * rt/tst-aio2.c: Include <pthread.h>.
1394         * rt/tst-aio3.c: Likewise.
1395
1396 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1397
1398         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1399
1400 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1401
1402         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1403         contents on [SHARED].
1404
1405 2012-09-26  Marek Polacek  <polacek@redhat.com>
1406
1407         [BZ #14530]
1408         [BZ #13741]
1409         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1410         for C++ and GCC <4.3 as well as for non GCC compilers.
1411
1412 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1413
1414         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1415
1416 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1417
1418         * Makefile.in (all, install): Declare with .PHONY.
1419         Reported by Michael Hope <michael.hope@linaro.org>.
1420
1421 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1422
1423         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1424         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1425         system header.
1426         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1427         Likewise.
1428         (sydep_routines): Add the new and the internal functions.
1429         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1430         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1432         (GLIBC_2.17): Add the new function.
1433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1434         (GLIBC_2.17): Likewise.
1435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1436         (GLIBC_2.17): Likewise.
1437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1438         (GLIBC_2.17): Likewise.
1439         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1440
1441 2012-09-25  Alan Modra  <amodra@gmail.com>
1442
1443         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1444         Add release barrier before setting once_control to say
1445         initialisation is done.  Add hints on lwarx.  Use macro in
1446         place of isync.
1447         (clear_once_control): Add release barrier.
1448
1449 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1450
1451         [BZ #13629]
1452         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1453         specially.
1454         * math/s_clog10.c (__clog10): Likewise.
1455         * math/s_clog10f.c (__clog10f): Likewise.
1456         * math/s_clog10l.c (__clog10l): Likewise.
1457         * math/s_clogf.c (__clogf): Likewise.
1458         * math/s_clogl.c (__clogl): Likewise.
1459         * math/Makefile (libm-calls): Add x2y2m1.
1460         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1461         (__x2y2m1): Likewise.
1462         (__x2y2m1l): Likewise.
1463         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1464         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1465         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1466         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1467         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1468         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1469         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1470         * sysdeps/i386/fpu/libm-test-ulps: Update.
1471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1472
1473         [BZ #14621]
1474         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1475         int as type of variable DEPTH.
1476         (glob): Use size_t instead of int as type of variables NEWCOUNT
1477         and OLD_PATHC.
1478
1479 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1480
1481         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1482         Add s_sincosf-sse2.
1483         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1484         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1485         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1486         macros for using routine as __sincosf_ia32.
1487         Use macro for function declaration and weak_alias.
1488         * sysdeps/i386/fpu/libm-test-ulps: Update.
1489
1490         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1491         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1492
1493         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1494         subnormal argument.
1495         * math/s_cexpf.c (__cexpf): Likewise.
1496         * math/s_csinf.c (__csinf): Likewise.
1497         * math/s_csinhf.c (__csinhf): Likewise.
1498         * math/s_ctanf.c (__ctanf): Likewise.
1499         * math/s_ctanhf.c (__ctanhf): Likewise.
1500         * math/s_ccosh.c (__ccoshf): Likewise.
1501         * math/s_cexp.c (__cexpl): Likewise.
1502         * math/s_csin.c (__csin): Likewise.
1503         * math/s_csinh.c (__csinh): Likewise.
1504         * math/s_ctan.c (__ctan): Likewise.
1505         * math/s_ctanh.c (ctanh): Likewise.
1506         * math/s_ccoshl.c (__ccoshl): Likewise.
1507         * math/s_cexpl.c (__cexpl): Likewise.
1508         * math/s_csinl.c (__csinl): Likewise.
1509         * math/s_csinhl.c (__csinhl): Likewise.
1510         * math/s_ctanl.c (__ctanl): Likewise.
1511         * math/s_ctanhl.c (__ctanhl): Likewise.
1512
1513 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1514
1515         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1516         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1517         (_IO_off_t): Define to __off_t, not _G_off_t.
1518         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1519         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1520         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1521         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1522         type of __dummy and __dummy2 fields.
1523         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1524         (_G_ssize_t): Likewise.
1525         (_G_off_t): Likewise.
1526         (_G_pid_t): Likewise.
1527         (_G_uid_t): Likewise.
1528         (_G_wchar_t): Likewise.
1529         (_G_wint_t): Likewise.
1530         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1531         (_G_ssize_t): Likewise.
1532         (_G_off_t): Likewise.
1533         (_G_pid_t): Likewise.
1534         (_G_uid_t): Likewise.
1535         (_G_wchar_t): Likewise.
1536         (_G_wint_t): Likewise.
1537         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1538         (_G_ssize_t): Likewise.
1539         (_G_off_t): Likewise.
1540         (_G_pid_t): Likewise.
1541         (_G_uid_t): Likewise.
1542         (_G_wchar_t): Likewise.
1543         (_G_wint_t): Likewise.
1544
1545 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1546
1547         * malloc/arena.c: Include malloc-sysdep.h.
1548         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1549         is sufficient to shrink the heap or an unmap is needed.
1550         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1551         new function check_may_shrink_heap.
1552         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1553         new function check_may_shrink_heap.
1554
1555 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1556
1557         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1558         comments.
1559
1560 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1561
1562         * catgets/test-gencat.sh: Add "set -e".
1563         * elf/tst-pathopt.sh: Likewise.
1564         * grp/tst_fgetgrent.sh: Likewise.
1565         * iconvdata/run-iconv-test.sh: Likewise.
1566         * intl/tst-gettext.sh: Likewise.
1567         * intl/tst-gettext2.sh: Likewise.
1568         * intl/tst-gettext4.sh: Likewise.
1569         * intl/tst-gettext6.sh: Likewise.
1570         * intl/tst-translit.sh: Likewise.
1571         * io/ftwtest-sh: Likewise.
1572         * libio/test-freopen.sh: Likewise.
1573         * malloc/tst-mtrace.sh: Likewise.
1574         * posix/globtest.sh: Likewise.
1575         * posix/tst-getconf.sh: Likewise.
1576         * posix/wordexp-tst.sh: Likewise.
1577         * stdio-common/tst-printf.sh: Likewise.
1578         * stdio-common/tst-unbputc.sh: Likewise.
1579         * stdlib/tst-fmtmsg.sh: Likewise.
1580         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1581         * catgets/Makefile: Do not specify -e option when running
1582         testsuite shell scripts.
1583         * elf/Makefile: Likewise.
1584         * grp/Makefile: Likewise.
1585         * iconvdata/Makefile: Likewise.
1586         * intl/Makefile: Likewise.
1587         * io/Makefile: Likewise.
1588         * libio/Makefile: Likewise.
1589         * malloc/Makefile: Likewise.
1590         * posix/Makefile: Likewise.
1591         * stdio-common/Makefile: Likewise.
1592         * stdlib/Makefile: Likewise.
1593         * sysdeps/x86_64/Makefile: Likewise.
1594
1595         * io/ftwtest-sh: Add copyright header.
1596         * posix/globtest.sh: Likewise.
1597         * posix/tst-getconf.sh: Likewise.
1598         * posix/wordexp-tst.sh: Likewise.
1599         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1600
1601 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1602
1603         [BZ #13679]
1604         * Makeconfig (+link): Defined as $(+link-static) if
1605         $(build-shared) isn't yes.
1606         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1607         isn't yes.
1608         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1609
1610         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1611
1612         [BZ #14562]
1613         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1614         new chunk size with MALLOC_ALIGN_MASK.
1615
1616 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1617
1618         [BZ #5044]
1619         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1620         <rounding-mode.h>.
1621         (__printf_fphex): Determine rounding using get_rounding_mode and
1622         round_away.
1623         * stdio-common/tst-printf-round.c (struct hex_test): New
1624         structure.
1625         (hex_tests): New variable.
1626         (test_hex_in_one_mode): New function.
1627         (do_test): Also run tests for hex float output.
1628
1629 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1630
1631         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1632         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1633         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1634         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1635         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1636         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1637         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1638         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1639
1640 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1641
1642         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1643         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1644         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1645         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1646
1647 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1648
1649         [BZ #14579]
1650         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1651         mode only.
1652         * elf/tst-rtld-load-self.sh: New test.
1653         * elf/Makefile: Run it.
1654
1655 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1656
1657         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1658         (tst-writev-ENV): Remove.
1659         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1660
1661 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1662
1663         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1664
1665 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1666
1667         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1668         unconditional.
1669         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1670         Likewise.
1671         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1672         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1673         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1674         Likewise.
1675
1676 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1677
1678         [BZ #14587]
1679         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1680         * config.make.in (have-cpp-asm-debuginfo): Removed.
1681         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1682         * configure: Regenerated.
1683
1684 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1685
1686         [BZ #5044]
1687         * stdio-common/printf_fp.c: Include <stdbool.h> and
1688         <rounding-mode.h>.
1689         (___printf_fp): Determine rounding using get_rounding_mode and
1690         round_away.
1691         * stdio-common/tst-printf-round.c: New file.
1692         * stdio-common/Makefile (tests): Add tst-printf-round.
1693         (link-libm): New variable.
1694         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1695
1696 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1697
1698         [BZ #14576]
1699         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1700         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1701         Likewise.
1702         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1703         Likewise.
1704
1705 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1706
1707         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1708         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1709         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1710         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1711
1712 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1713
1714         [BZ #14518]
1715         * include/rounding-mode.h: New file.
1716         * sysdeps/generic/get-rounding-mode.h: Likewise.
1717         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1718         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1719         (MAX_VALUE): New macro.
1720         (MIN_VALUE): Likewise.
1721         (overflow_value): New function.
1722         (underflow_value): Likewise.
1723         (round_and_return): Use overflow_value and underflow_value to
1724         determine return values in overflow and underflow cases.  Use
1725         round_away to determine rounding depending on rounding mode.
1726         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1727         determine return values in overflow and underflow cases.
1728         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1729         (struct test_results): New structure.
1730         (struct test): Use struct test_results to store expected results
1731         for all rounding modes.
1732         (TEST): Include expected results for all rounding modes.
1733         (test_in_one_mode): New function.
1734         (do_test): Use test_in_one_mode to compute and check results.
1735         Check results for all rounding modes.
1736         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1737         $(link-libm).
1738
1739 2012-12-09  Allan McRae  <allan@archlinux.org>
1740
1741         * sysdeps/i386/fpu/libm-test-ulps: Update
1742
1743 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1744
1745         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1746         (_G_int32_t): Likewise.
1747         (_G_uint16_t): Likewise.
1748         (_G_uint32_t): Likewise.
1749         (_G_HAVE_BOOL): Likewise.
1750         (_G_HAVE_ATEXIT): Likewise.
1751         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1752         (_G_HAVE_IO_FILE_OPEN): Likewise.
1753         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1754         (_G_int32_t): Likewise.
1755         (_G_uint16_t): Likewise.
1756         (_G_uint32_t): Likewise.
1757         (_G_HAVE_BOOL): Likewise.
1758         (_G_HAVE_ATEXIT): Likewise.
1759         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1760         (_G_HAVE_IO_FILE_OPEN): Likewise.
1761         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1762         (_G_int32_t): Likewise.
1763         (_G_uint16_t): Likewise.
1764         (_G_uint32_t): Likewise.
1765         (_G_HAVE_BOOL): Likewise.
1766         (_G_HAVE_ATEXIT): Likewise.
1767         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1768         (_G_HAVE_IO_FILE_OPEN): Likewise.
1769
1770 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1771
1772         * csu/libc-tls.c: Update copyright years.
1773
1774 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1775
1776         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1777         [!_G_USING_THUNKS]: Remove conditional code.
1778         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1779         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1780
1781         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1782         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1783         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1784         (_G_VTABLE_LABEL_PREFIX): Likewise.
1785         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1786         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1787         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1788         (_G_VTABLE_LABEL_PREFIX): Likewise.
1789         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1790         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1791         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1792         (_G_VTABLE_LABEL_PREFIX): Likewise.
1793         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1794
1795 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1796
1797         * libio/Makefile: Include ../Makeconfig before tests.
1798         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1799         only if $(build-shared) is yes.
1800
1801         * iconv/gconv_db.c: Update copyright years.
1802
1803 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1804
1805         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1806         unwind info if defined PIC. Fix special cases description.
1807         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1808
1809         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1810         DP_HI_MASK entry.
1811         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1812
1813 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1814
1815         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1816
1817         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1818         is NULL.
1819
1820         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1821         (LDLIBS-tst-chk4): This.
1822         (LDFLAGS-tst-chk5): Renamed to ...
1823         (LDLIBS-tst-chk5): This.
1824         (LDFLAGS-tst-chk6): Renamed to ...
1825         (LDLIBS-tst-chk6): This.
1826         (LDFLAGS-tst-lfschk4): Renamed to ...
1827         (LDLIBS-tst-lfschk4): This.
1828         (LDFLAGS-tst-lfschk5): Renamed to ...
1829         (LDLIBS-tst-lfschk5): This.
1830         (LDFLAGS-tst-lfschk6): Renamed to ...
1831         (LDLIBS-tst-lfschk6): This.
1832
1833         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1834         on $(common-objpfx)soversions.mk.
1835
1836 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1837
1838         [BZ #10014]
1839         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1840         example host name.
1841
1842 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1843
1844         * malloc/arena.c (arena_get_retry): New function that gets
1845         another arena for the caller to try its request on.
1846         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1847         current arena cannot fulfill the request.
1848         (__libc_memalign): Likewise.
1849         (__libc_memalign): Likewise.
1850         (__libc_pvalloc): Likewise.
1851         (__libc_calloc): Likewise.
1852
1853 2012-09-05  John Tobey  <john.tobey@gmail.com>
1854
1855         [BZ #13542]
1856         * manual/arith.texi (Operations on Complex): Fix description
1857         of carg branch cut.
1858
1859 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1860
1861         [BZ #10014]
1862         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1863         host name.
1864
1865         [BZ #10038]
1866         * manual/memory.texi (Memory): Make order of menu items match
1867         order of sections.
1868
1869 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1870
1871         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1872         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1873         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1874
1875 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1876
1877         * csu/libc-tls.c (static_dtv): Renamed to ...
1878         (_dl_static_dtv): This.  Make it global.
1879         (_dl_initial_dtv): Removed.
1880         (__libc_setup_tls): Updated.
1881         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1882         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1883         DL_INITIAL_DTV.
1884
1885 2012-09-06  Petr Machata  <pmachata@redhat.com>
1886
1887         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1888         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1889         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1890         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1891
1892 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         [BZ #14545]
1895         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1896         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1897         freeing dtv[-1].
1898
1899 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1900
1901         [BZ #14544]
1902         * Makeconfig (link-static-before-libc): Replace $(+prector)
1903         with $(+prectorT).
1904         (link-static-after-libc): Replace $(+postctor) with
1905         $(+postctorT).
1906         (link-bounded): Replace $(+prector)/$(+postctor) with
1907         $(+prectorT)/$(+postctorT).
1908         (+prectorT): New macro.
1909         (+postctorT): Likewise.
1910
1911 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1912
1913         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1914         (round_str): Handle values above the maximum for IBM long double
1915         as inexact.
1916         * stdlib/tst-strtod-round.c (tests): Regenerated.
1917
1918 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1919
1920         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1921         assembler flag.
1922         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1923         zarch_nohighgprs around the zarch optimized routines.
1924         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1925         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1926         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1927         for zarch.
1928
1929 2012-09-05  David S. Miller  <davem@davemloft.net>
1930
1931         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1932
1933         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1934         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1935         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1936         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1937         entries.
1938
1939 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1940
1941         * malloc/arena.c: Fold copyright years.
1942         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1943
1944 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1945
1946         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1947
1948 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1949
1950         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1951
1952 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1953
1954         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1955         change internal state upon failure.
1956
1957 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1958
1959         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1960         * malloc/memusage.c (mmap): Likewise.
1961         (mmap64, mremap): Likewise.  Adjust name in comment.
1962
1963 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1964
1965         * libio/fileops.c: Fix typos in comments.
1966         * libio/oldfileops.c: Likewise.
1967         * libio/wfileops.c: Likewise.
1968
1969 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1970
1971         [BZ #1349]
1972         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1973         (tst-malloc-usable-ENV): Set environment for test case.
1974         * malloc/hooks.c (malloc_check_get_size): New function to get
1975         requested size.
1976         * malloc/malloc.c (musable): Use malloc_check_get_size.
1977         * malloc/tst-malloc-usable.c: New test case.
1978
1979 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1980
1981         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1982
1983 2012-09-05  Allan McRae  <allan@archlinux.org>
1984
1985         [BZ #13966]
1986         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1987         determine header location.
1988         * configure: Regenerated.
1989
1990 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1991
1992         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1993         float format.
1994         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1995         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1996         format.
1997         (test): Regenerate.
1998
1999 2012-09-04  David S. Miller  <davem@davemloft.net>
2000
2001         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2002         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2003         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2004
2005 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2006
2007         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2008         failures.
2009
2010         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2011
2012 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2013
2014         [BZ #9914]
2015         * libio/iogetdelim.c: Include <limits.h>.
2016         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2017         + len + 1 would overflow.
2018
2019 2012-09-03  Andreas Jaeger  <aj@suse.de>
2020
2021         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2022         * sysdeps/i386/fpu/libm-test-ulps: Update.
2023
2024 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2025
2026         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2027         Add s_sinf-sse2, s_conf-sse2.
2028
2029         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2030         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2031         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2032         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2033
2034         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2035         for using routine as __sinf_ia32.
2036         Use macro for function declaration and weak_alias.
2037         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2038         for using routine as __cosf_ia32.
2039         Use macro for function declaration and weak_alias.
2040
2041         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2042         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2043
2044         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2045         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2046         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2047
2048         * math/libm-test.inc (cos_test): Add more test cases.
2049         (sin_test): Likewise.
2050         (sincos_test): Likewise.
2051
2052 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2053
2054         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2055         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2056         hidden.
2057         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2058
2059 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2060
2061         [BZ #14538]
2062         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2063         first element of the GOT.
2064         (elf_machine_load_address): Return the difference between
2065         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2066
2067 2012-09-01  Allan McRae  <allan@archlinux.org>
2068
2069         [BZ #13412]
2070         * configure.in (AWK): Require gawk version 3.0 or later.
2071         * configure: Regenerated.
2072
2073 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2074
2075         * sysdeps/unix/sysv/linux/kernel-features.h
2076         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2077         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2078         [__NR_clock_getres]: Make code unconditional.
2079         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2080         (clock_getcpuclockid): Remove code left unreachable by removal of
2081         conditionals.
2082         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2083         code unconditional.
2084         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2085         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2086         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2087         Make code unconditional.
2088         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2089         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2090         * sysdeps/unix/sysv/linux/clock_settime.c
2091         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2092         conditional code.
2093         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2094         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2095
2096 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2097
2098         [BZ #14476]
2099         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2100         scripts/test-installation.pl.
2101
2102         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2103         and $ld_so_version if it is set.
2104
2105 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2106
2107         [BZ #14516]
2108         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2109         failure if reading from procfs failed.
2110         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2111
2112 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2113
2114         * sysdeps/unix/sysv/linux/kernel-features.h
2115         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2116         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2117         Remove conditional code.
2118         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2119         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2120         Remove conditional code.
2121         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2122         * sysdeps/unix/sysv/linux/i386/fxstat.c
2123         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2124         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2125         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2126         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2127         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2128         * sysdeps/unix/sysv/linux/i386/lxstat.c
2129         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2130         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2131         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2132         Remove conditional code.
2133         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2134         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2135         Remove conditional code.
2136         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2137         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2138         <kernel-features.h>.
2139         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2140         Remove.
2141         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2142         Remove conditional code.
2143         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2144         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2145         Remove conditional.
2146
2147 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2148
2149         [BZ #5400]
2150         * NEWS: Add fixed bug number.
2151
2152 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2153
2154         [BZ #14519]
2155         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2156         underflowing exponent in case of negative sign.
2157         * stdlib/tst-strtod-round-data: Add more tests.
2158         * stdlib/tst-strtod-round.c (tests): Regenerated.
2159
2160         [BZ #3479]
2161         * stdlib/strtod_l.c (NDIG): Remove.
2162         (HEXNDIG): Likewise.
2163         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2164         smallest representable value.
2165         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2166         lie within an exact representation of 1/2 ulp of the result.
2167         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2168         unconditionally.
2169         (TENS_P9_IDX): Define unconditionally.
2170         (TENS_P9_SIZE): Likewise.
2171         (TENS_P10_IDX): Likewise.
2172         (TENS_P10_SIZE): Likewise.
2173         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2174         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2175         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2176         entries for 10^2^13 and 10^2^14.
2177         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2178         (TENS_P13_IDX): Define.
2179         (TENS_P13_SIZE): Likewise.
2180         (TENS_P14_IDX): Likewise.
2181         (TENS_P14_SIZE): Likewise.
2182         (_fpioconst_pow10): Change array size to
2183         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2184         unconditional.
2185         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2186         1024]: Add entries for 10^2^13 and 10^2^14.
2187         [LAST_POW10 > _LAST_POW10]: Remove #error.
2188         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2189         (_fpioconst_pow10): Change array size to
2190         FPIOCONST_POW10_ARRAY_SIZE.
2191         * stdlib/gen-fpioconst.c: New file.
2192         * stdlib/gen-tst-strtod-round.c: Likewise.
2193         * stdlib/tst-strtod-round-data: Likewise.
2194         * stdlib/tst-strtod-round.c: Likewise.
2195         * stdlib/Makefile (tests): Add tst-strtod-round.
2196
2197         [BZ #14459]
2198         * stdlib/strtod_l.c: Include <stdint.h>.
2199         (NDEBUG): Do not define.
2200         (round_and_return): Change EXPONENT parameter to type intmax_t.
2201         Rearrange calculations to avoid internal overflow possibilities.
2202         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2203         Rearrange calculations to avoid internal overflow possibilities.
2204         Assert that number fits inside MPNSIZE limbs.
2205         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2206         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2207         calculations and add assertions to avoid internal overflow
2208         possibilities.  Add casts to avoid signed/unsigned operations.
2209         * stdlib/tst-strtod-overflow.c: New file.
2210         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2211
2212 2012-08-25  Marek Polacek  <polacek@redhat.com>
2213
2214         * time/time.h: Fix some typos in comments.
2215
2216 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2217
2218         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2219         * posix/tst-rfc3484-2.c: Likewise.
2220         * posix/tst-rfc3484-3.c: Likewise.
2221
2222 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2223
2224         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2225         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2226
2227 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2228
2229         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2230         #include of fxstatat64.c.
2231
2232 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2233
2234         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2235         * shadow/getspent_r.c: Likewise.
2236         * shadow/getspnam.c: Likewise.
2237         * shadow/getspnam_r.c: Likewise.
2238         * gshadow/getsgent.c: Likewise.
2239         * gshadow/getsgent_r.c: Likewise.
2240         * gshadow/getsgnam.c: Likewise.
2241         * gshadow/getsgnam_r.c: Likewise.
2242         * inet/getnetbyad.c: Likewise.
2243         * inet/getnetbyad_r.c: Likewise.
2244         * inet/getnetbynm.c: Likewise.
2245         * inet/getnetbynm_r.c: Likewise.
2246         * inet/getnetent.c: Likewise.
2247         * inet/getnetent_r.c: Likewise.
2248         * inet/getproto.c: Likewise.
2249         * inet/getproto_r.c: Likewise.
2250         * inet/getprtent.c: Likewise.
2251         * inet/getprtent_r.c: Likewise.
2252         * inet/getprtname.c: Likewise.
2253         * inet/getprtname_r.c: Likewise.
2254         * inet/getrpcbyname.c: Likewise.
2255         * inet/getrpcbyname_r.c: Likewise.
2256         * inet/getrpcbynumber.c: Likewise.
2257         * inet/getrpcbynumber_r.c: Likewise.
2258         * inet/getrpcent.c: Likewise.
2259         * inet/getrpcent_r.c: Likewise.
2260         * inet/getaliasent.c: Likewise.
2261         * inet/getaliasent_r.c: Likewise.
2262         * inet/getaliasname.c: Likewise.
2263         * inet/getaliasname_r.c: Likewise.
2264         * nscd/getgrgid_r.c: Likewise.
2265         * nscd/getgrnam_r.c: Likewise.
2266         * nscd/gethstbyad_r.c: Likewise.
2267         * nscd/gethstbynm3_r.c: Likewise.
2268         * nscd/getpwnam_r.c: Likewise.
2269         * nscd/getpwuid_r.c: Likewise.
2270         * nscd/getsrvbynm_r.c: Likewise.
2271         * nscd/getsrvbypt_r.c: Likewise.
2272         * nscd/gai.c: Likewise.
2273
2274         * configure.in (build_nscd): New substituted variable, set
2275         by --disable-build-nscd and defaults to $use_nscd.
2276         * configure: Regenerated.
2277         * config.make.in (build-nscd): New substituted variable.
2278         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2279         Change conditional to require [$(build-nscd) = yes] as well.
2280         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2281
2282         [BZ# 13696]
2283         * configure.in (use_nscd): New substituted variable, set by
2284         --disable-nscd.  If enabled, define USE_NSCD.
2285         * configure: Regenerated.
2286         * config.h.in: Add USE_NSCD.
2287         * config.make.in (use-nscd): New substituted variable.
2288         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2289         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2290         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2291         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2292         (CFLAGS-getgrnam_r.c): Likewise.
2293         (CFLAGS-initgroups.c): Likewise.
2294         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2295         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2296         Variables removed.
2297         * inet/getnetgrent_r.c
2298         (nscd_setnetgrent): New function, broken out of ...
2299         (setnetgrent): ... here.  Call it.
2300         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2301         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2302         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2303         * nscd/Makefile (routines, aux): Move definitions after include of
2304         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2305         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2306         Conditionalize on [USE_NSCD].
2307         (is_nscd, nscd_init_cb): Likewise.
2308         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2309         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2310         * nss/nss_db/db-init.c: Likewise.
2311         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2312         [USE_NSCD].
2313         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2314         (make_request): Use it.
2315         (cache_valid_p): New function.
2316         (__check_pf): Use it.
2317         * NEWS: Add item for --disable-nscd.
2318
2319 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2320
2321         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2322         to support sed >= 4.2.1-20-ga9bf076.
2323         * configure: Regenerated.
2324
2325 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2326
2327         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2328         Conditionalize whole body on [IREL].
2329
2330 2012-08-22  Jeff Law <law@redhat.com>
2331
2332         [BZ #14505]
2333         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2334         if the family is PF_UNSPEC.
2335
2336 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2337
2338         * Makerules (lib-version): Rename from V.
2339         (install-lib-nosubdir): Change V to lib-version.
2340
2341 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2342
2343         [BZ #14252]
2344         * powerpc32/power6/wcschr.c: New file.
2345         * powerpc32/power6/wcscpy.c: New file.
2346         * powerpc32/power6/wcsrchr.c: New file.
2347         * powerpc64/power6/wcschr.c: New file.
2348         * powerpc64/power6/wcscpy.c: New file.
2349         * powerpc64/power6/wcsrchr.c: New file.
2350
2351 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2352
2353         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2354         (two_way_short_needle): Use it.
2355         * string/strstr.c (AVAILABLE1_USES_J): Define.
2356         * string/strcasestr.c: Likewise.
2357
2358         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2359         array references.
2360         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2361
2362         [BZ #11607]
2363         * NEWS: Add an entry.
2364         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2365         define their defaults.
2366         (two_way_short_needle): Detect end-of-string on-the-fly.
2367         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2368         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2369         * string/bug-strcasestr1.c: New test.
2370         * string/Makefile: Run it.
2371
2372 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2373
2374         [BZ #11607]
2375         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2376         the first character.
2377
2378 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2379
2380         * csu/elf-init.c (__libc_csu_irel): Function removed.
2381         * csu/libc-start.c (apply_irel): New function.
2382         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2383
2384 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2385
2386         * sysdeps/unix/sysv/linux/kernel-features.h
2387         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2388         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2389         <kernel-features.h>.
2390         [__NR_fadvise64_64]: Make code unconditional.
2391         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2392         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2393         !__NR_fadvise64_64)]: Likewise.
2394         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2395         !__NR_fadvise64_64))]: Likewise.
2396         [__NR_fadvise64]: Make code unconditional.
2397         [!__NR_fadvise64]: Remove conditional code.
2398         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2399         <kernel-features.h>.
2400         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2401         unconditional.
2402         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2403         conditional code.
2404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2405         not include <kernel-features.h>.
2406         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2407         unconditional.
2408         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2409         conditional code.
2410         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2411         include <kernel-features.h>.
2412         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2413         unconditional.
2414         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2415         conditional code.
2416
2417 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2418
2419         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2420         slight instruction rearrangements per scrollpipe analysis.
2421         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2422
2423 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2424
2425         * manual/syslog.texi (syslog; vsyslog, closelog):
2426         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2427         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2428
2429         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2430         DSOCAPS to match condition on defining it.
2431
2432 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2433
2434         * sysdeps/unix/sysv/linux/kernel-features.h
2435         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2436         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2437         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2438         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2440         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2441         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2443         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2444         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2445
2446         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2447         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2448
2449         * sysdeps/unix/sysv/linux/kernel-features.h
2450         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2451         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2452         unconditional.
2453         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2454         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2455         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2456         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2457         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2458         Make code unconditional.
2459         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2460         (__mmap64) [!__NR_mmap2]: Likewise.
2461         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2462         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2463         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2464         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2465         [__NR_mmap2]: Make code unconditional.
2466         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2467         (__mmap64) [!__NR_mmap2]: Likewise.
2468
2469 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2470
2471         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2472
2473 2012-08-18  Andreas Jaeger  <aj@suse.de>
2474
2475         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2476
2477 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2478
2479         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2480         * include/unistd.h (__have_sock_cloexec): Likewise.
2481         (__have_pipe2): Likewise.
2482         (__have_dup3): Likewise.
2483
2484 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2485
2486         [BZ #9685]
2487         * include/unistd.h (__have_pipe2): Change define into an extern int.
2488         (__have_dup3): Likewise.
2489         * socket/have_sock_cloexec.c: Include fcntl.h.
2490         (__have_pipe2): New variable.
2491         (__have_dup3): Likewise.
2492
2493 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2494
2495         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2496
2497 2012-08-17  Marek Polacek  <polacek@redhat.com>
2498
2499         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2500         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2501
2502 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2503
2504         * configure.in: Add AC_SUBST for sysheaders.
2505         * configure: Regenerated.
2506         * config.make.in (sysheaders): New substituted variable.
2507
2508         * sysdeps/unix/mkfifo.c: Moved ...
2509         * sysdeps/posix/mkfifo.c: ... here.
2510         * sysdeps/unix/mkfifoat.c: Moved ...
2511         * sysdeps/posix/mkfifoat.c: ... here.
2512
2513         * sysdeps/unix/utime.c: Moved ...
2514         * sysdeps/posix/utime.c: ... here.
2515
2516         * sysdeps/unix/time.c: Moved ...
2517         * sysdeps/posix/time.c: ... here.
2518         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2519         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2520
2521         * sysdeps/unix/nice.c: Moved ...
2522         * sysdeps/posix/nice.c: ... here.
2523
2524         * sysdeps/unix/alarm.c: Moved ...
2525         * sysdeps/posix/alarm.c: ... here.
2526
2527         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2528
2529 2012-08-17  Jeff Law <law@redhat.com>
2530
2531         * intl/Makefile (codeset_mo): New variable.
2532         ($(codeset_mo)): New target.
2533         (tst-codeset.out): Depend on that.  Remove explicit rule.
2534         (tst-gettext3.out, tst-gettext5.out): Likewise.
2535         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2536         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2537         * intl/tst-codeset.sh: Remove.
2538         * intl/tst-gettext3.sh: Likewise.
2539         * intl/tst-gettext5.sh: Likewise.
2540
2541 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2542
2543         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2544         * sysdeps/unix/syscalls.list: ... here.
2545
2546         * sysdeps/posix/getaddrinfo.c
2547         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2548         (gaiconf_init, gaiconf_reload): Use them.
2549         [!_STATBUF_ST_NSEC]
2550         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2551         Define using time_t rather than struct timespec.
2552
2553         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2554         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2555         Macros removed.
2556         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2557         [!NO_THREADS].
2558         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2559         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2560         Likewise.
2561
2562         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2563         __libc_cleanup_push argument.
2564
2565         * bits/param.h: New file.
2566         * misc/sys/param.h: New file.
2567         * include/sys/param.h: New file.
2568         * misc/Makefile (headers): Add bits/param.h.
2569         * sysdeps/generic/sys/param.h: File removed.
2570         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2571         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2572         * sysdeps/mach/hurd/bits/param.h: New file.
2573         * sysdeps/mach/hurd/sys/param.h: File removed.
2574
2575         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2576         last change.
2577
2578         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2579         [_IO_MTSAFE_IO].
2580         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2581         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2582         New macros.
2583
2584         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2585         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2586         rather than -D_IO_MTSAFE_IO conditionally.
2587         * stdio-common/Makefile (CPPFLAGS): Likewise.
2588         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2589         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2590         Use $(libio-mtsafe).
2591         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2592         of -D_IO_MTSAFE_IO.
2593         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2594         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2595         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2596         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2597         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2598         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2599         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2600         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2601         (CFLAGS-fread_u_chk.c): Likewise.
2602         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2603         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2604         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2605         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2606         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2607         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2608         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2609         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2610         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2611
2612         * libio/Makefile: Test [$(libc-reentrant) = yes]
2613         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2614
2615         * Makeconfig
2616         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2617         * sysdeps/pthread/configure: File removed.
2618         * sysdeps/pthread/Makeconfig: New file.
2619         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2620         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2621
2622 2012-08-16  Gary Benson  <gbenson@redhat.com>
2623
2624         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2625         unmapping the first object in a namespace.
2626
2627 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2628
2629         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2630         (__internal_setnetgrent): ... this.  Add internal_function to
2631         definition.  Add libc_hidden_def.
2632         (setnetgrent): Update caller.
2633         (internal_endnetgrent): Renamed to ...
2634         (__internal_endnetgrent): ... this.  Add internal_function to
2635         definition.  Add libc_hidden_def.
2636         (endnetgrent): Update caller.
2637         (internal_getnetgrent_r): Renamed to ...
2638         (__internal_getnetgrent_r): ... this.  Add internal_function to
2639         definition.  Add libc_hidden_def.
2640         (__getnetgrent_r): Update caller.
2641         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2642
2643 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2644
2645         * stdlib/longlong.h: Update from GCC.
2646
2647 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2648
2649         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2650         on _QL, which is set by umul_ppmm but never used.
2651         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2652         variables, which are set by GMP macros but never used.
2653         * stdio-common/_itowa.c (_itowa): Likewise.
2654         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2655         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2656
2657 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2658
2659         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2660         struct La_sh_regs is not constant.
2661         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2662         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2663         and struct La_sparc64_regs are not constant.
2664
2665 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2666
2667         * sysdeps/unix/sysv/linux/kernel-features.h
2668         (__ASSUME_POSIX_TIMERS): Remove.
2669         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2670         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2671         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2672         Make code unconditional.
2673         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2674         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2675         Make code unconditional.
2676         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2677         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2678         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2679         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2680         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2681         Make code unconditional.
2682         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2683         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2684         (__libc_missing_posix_timers): Remove.
2685
2686 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2687
2688         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2689         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2690
2691         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2692
2693         * elf/dl-sym.c: Include <stdlib.h>.
2694
2695         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2696         constants, which avoids warnings in 32-bit builds.
2697
2698         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2699         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2700
2701         * misc/lseek.c: File moved to ...
2702         * io/lseek.c: ... here.
2703
2704         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2705
2706         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2707         shifting LEN more than 31 bits at once.
2708
2709 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2710
2711         [BZ #14195]
2712         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2713         segmentation fault for a case of two empty input strings.
2714         * string/test-strncasecmp.c (check1): Renamed to...
2715         (bz12205): ...this.
2716         (bz14195): Add new testcase for two empty input strings and N > 0.
2717         (test_main): Call new testcase, adapt for renamed function.
2718
2719 2012-08-15  Andreas Jaeger  <aj@suse.de>
2720
2721         [BZ #14090]
2722         * crypt/md5test2.c: New test, based on test supplied by Serge
2723         Belyshev <belyshev@depni.sinp.msu.ru>.
2724         * crypt/Makefile (xtests): Add md5test-giant..
2725         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2726
2727 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         [BZ #14090]
2730         * crypt/md5.c (md5_process_block): Don't assume the buffer
2731         length is less than 2**32.
2732         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2733         length is less than 2**64.
2734
2735 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2736
2737         * string/str-two-way.h: Include <sys/param.h>.
2738         (MAX): Macro removed.
2739
2740         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2741         Move #define and #undef of memmove to just before and after
2742         including <string.h>.
2743
2744         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2745         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2746         and after including <string.h>.  Move declarations of
2747         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2748         to before #include "string/memmove.c".
2749
2750         * include/dirent.h: Declare __getdirentries.
2751
2752         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2753         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2754
2755 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2756
2757         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2758         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2759         * sysdeps/i386/configure: Regenerated.
2760         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2761         STABS_CURRENT_FILE, and STABS_FUN.
2762         (END): Remove call to STABS_FUN_END.
2763         (STABS_CURRENT_FILE1): Delete.
2764         (STABS_CURRENT_FILE): Likewise.
2765         (STABS_FUN): Likewise.
2766         (STABS_FUN_END): Likewise.
2767         (STABS_FUN2): Likewise.
2768         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2769         * sysdeps/x86_64/configure: Regenerated.
2770
2771 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2772
2773         * elf/dl-open.c: Include <atomic.h>.
2774         * elf/dl-lookup.c: Likewise.
2775
2776 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2777
2778         * sysdeps/unix/sysv/linux/kernel-features.h
2779         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2780         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2781         unconditionally.
2782         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2783         unconditionally.
2784         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2785         condition on __ASSUME_CLONE_THREAD_FLAGS.
2786
2787 2012-08-14  Andreas Jaeger  <aj@suse.de>
2788
2789         * sysdeps/i386/fpu/libm-test-ulps: Update.
2790
2791 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2792
2793         * include/atomic.h (atomic_exchange_and_add): Split into ...
2794         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2795         New atomic macros.
2796
2797 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2798
2799         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2800
2801 2012-08-13  Jeff Law <law@redhat.com>
2802
2803         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2804         null byte in the output string.
2805
2806 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2807
2808         * sysdeps/unix/sysv/linux/kernel-features.h
2809         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2810         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2811         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2812         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2813         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2814         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2815         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2816
2817 2012-08-09  Jeff Law <law@redhat.com>
2818
2819         [BZ #13939]
2820         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2821         When avoid_arena is set, don't retry in the that arena.  Pick the
2822         next one, whatever it might be.
2823         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2824         (arena_lock): Pass in new parameter to arena_get2.
2825         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2826         arena_get2.
2827         (__libc_malloc): Unify retrying after main arena failure with
2828         __libc_memalign version.
2829         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2830
2831 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2832
2833         [BZ #14166]
2834         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2835         to __redirect_strstr.
2836         (__strstr_sse42): Use typeof __redirect_strstr.
2837         (__strstr_ia32): Likewise.
2838         (__libc_strstr): New prototype.
2839         (strstr): Renamed to ...
2840         (__libc_strstr): This.
2841         (strstr): New strong alias of __libc_strstr.
2842         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2843         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2844         __redirect_time.
2845         Include <time.h>.
2846         (__libc_time): New prototype.
2847         (time_ifunc): Replace time with __libc_time.
2848         (time): New strong alias and hidden definition of __libc_time.
2849         (__GI_time): Remove strong alias.
2850         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2851         Include <stddef.h>.
2852         (memmove): Redefined to __redirect_memmove.
2853         (__memmove_sse2): Use typeof __redirect_memmove.
2854         (__memmove_ssse3): Likewise.
2855         (__memmove_ssse3_back): Likewise.
2856         (__libc_memmove): New prototype.
2857         (memmove): Renamed to ...
2858         (__libc_memmove): This.
2859         (memmove): New strong alias of __libc_memmove.
2860
2861 2012-08-08  Mark Salter  <msalter@redhat.com>
2862
2863         * elf/elf.h
2864         (R_MN10300_TLS_GD): Define.
2865         (R_MN10300_TLS_LD): Likewise.
2866         (R_MN10300_TLS_LDO): Likewise.
2867         (R_MN10300_TLS_GOTIE): Likewise.
2868         (R_MN10300_TLS_IE): Likewise.
2869         (R_MN10300_TLS_LE): Likewise.
2870         (R_MN10300_TLS_DTPMOD): Likewise.
2871         (R_MN10300_TLS_DTPOFF): Likewise.
2872         (R_MN10300_TLS_TPOFF): Likewise.
2873         (R_MN10300_SYM_DIFF): Likewise.
2874         (R_MN10300_ALIGN): Likewise.
2875         (R_MN10300_NUM): Update.
2876
2877 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2878
2879         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2880         Remove.
2881
2882 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2883
2884         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2885
2886         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2887         sysdeps/unix -> sysdeps/posix move.
2888         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2889
2890 2012-08-07      Allan McRae     <allan@archlinux.org>
2891
2892         [BZ #14303]
2893         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2894         (SUNOS_CPP): Likewise.
2895         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2896         not found.
2897         (open_input): Call CPP using execvp.
2898
2899 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2900
2901         * sysdeps/unix/sysv/linux/kernel-features.h
2902         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2903         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2904         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2905         (__ASSUME_WAITID_SYSCALL): Likewise.
2906         * sysdeps/unix/sysv/linux/dl-execstack.c
2907         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2908         code unconditional.
2909         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2910         conditional code.
2911         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2912         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2913         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2914         code.
2915         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2916         unconditional.
2917         [__ASSUME_WAITID_SYSCALL]: Likewise.
2918         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2919
2920 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2921
2922         * sysdeps/unix/closedir.c: Renamed to ...
2923         * sysdeps/posix/closedir.c: ... here.
2924         * sysdeps/unix/dirfd.c: Renamed to ...
2925         * sysdeps/posix/dirfd.c: ... here.
2926         * sysdeps/unix/dirstream.h: Renamed to ...
2927         * sysdeps/posix/dirstream.h: ... here.
2928         * sysdeps/unix/fdopendir.c: Renamed to ...
2929         * sysdeps/posix/fdopendir.c: ... here.
2930         * sysdeps/unix/opendir.c: Renamed to ...
2931         * sysdeps/posix/opendir.c: ... here.
2932         * sysdeps/unix/readdir.c: Renamed to ...
2933         * sysdeps/posix/readdir.c: ... here.
2934         * sysdeps/unix/readdir_r.c: Renamed to ...
2935         * sysdeps/posix/readdir_r.c: ... here.
2936         * sysdeps/unix/rewinddir.c: Renamed to ...
2937         * sysdeps/posix/rewinddir.c: ... here.
2938         * sysdeps/unix/seekdir.c: Renamed to ...
2939         * sysdeps/posix/seekdir.c: ... here.
2940         * sysdeps/unix/telldir.c: Renamed to ...
2941         * sysdeps/posix/telldir.c: ... here.
2942         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2943         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2944         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2945         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2946
2947         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2948         * bits/fcntl.h: ... here.
2949
2950         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2951         not 0.
2952         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2953         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2954         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2955         (struct flock): Move l_start, l_len to the beginning.
2956         Use __pid_t for l_pid.
2957         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2958         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2959         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2960         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2961         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2962         [__USE_LARGEFILE64] (struct flock64): New type.
2963         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2964
2965         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2966         * bits/dirent.h: ... here.
2967
2968         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2969         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2970
2971 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2972
2973         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2974         Change from 2.6.0 to 2.6.16.
2975         * sysdeps/unix/sysv/linux/configure: Regenerated.
2976         * sysdeps/unix/sysv/linux/kernel-features.h
2977         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2978         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2979         version.
2980         (__ASSUME_UTIMES): Likewise.
2981         (__ASSUME_CLONE_STOPPED): Remove.
2982         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2983         architectures, not kernel version.
2984         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2985         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2986         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2987         (__ASSUME_WAITID_SYSCALL): Likewise.
2988         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2989         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2990         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2991         refer to older versions.
2992
2993 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2994
2995         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2996         Define alphasort64 as an alias.
2997         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2998         Define versionsort64 as an alias.
2999         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3000         Define scandir64 as an alias.
3001         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3002         Define scandirat64 as an alias.
3003         * dirent/alphasort64.c (alphasort64):
3004         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3005         * dirent/versionsort64.c: Likewise.
3006         * dirent/scandir64.c: Likewise.
3007         * dirent/scandirat64.c: Likewise.
3008         * sysdeps/wordsize-64/alphasort.c: File removed.
3009         * sysdeps/wordsize-64/alphasort64.c: File removed.
3010         * sysdeps/wordsize-64/scandir.c: File removed.
3011         * sysdeps/wordsize-64/scandir64.c: File removed.
3012         * sysdeps/wordsize-64/scandirat.c: File removed.
3013         * sysdeps/wordsize-64/scandirat64.c: File removed.
3014         * sysdeps/wordsize-64/versionsort.c: File removed.
3015         * sysdeps/wordsize-64/versionsort64.c: File removed.
3016         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3017         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3018         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3019         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3020         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3021         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3022         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3023         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3024
3025         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3026         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3027         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3028         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3029         [defined __arch64__ || defined __sparcv9]
3030         (__INO_T_MATCHES_INO64_T): New macro.
3031         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3032         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3033         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3034         * sysdeps/unix/sysv/linux/bits/dirent.h
3035         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3036         (_DIRENT_MATCHES_DIRENT64): New macro.
3037
3038         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3039         Define lockf64 as an alias.
3040         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3041         Define fseeko64 as an alias.
3042         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3043         Define ftello64 as an alias.
3044         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3045         Define _IO_fgetpos64 and fgetpos64 as aliases.
3046         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3047         Define _IO_fsetpos64 and fsetpos64 as aliases.
3048         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3049         Conditionalize body on this.
3050         * libio/fseeko64.c: Likewise.
3051         * libio/ftello64.c: Likewise.
3052         * libio/iofgetpos64.c: Likewise.
3053         * libio/iofsetpos64.c: Likewise.
3054         * sysdeps/wordsize-64/lockf.c: File removed.
3055         * sysdeps/wordsize-64/lockf64.c: File removed.
3056         * sysdeps/wordsize-64/fseeko.c: File removed.
3057         * sysdeps/wordsize-64/fseeko64.c: File removed.
3058         * sysdeps/wordsize-64/ftello.c: File removed.
3059         * sysdeps/wordsize-64/ftello64.c: File removed.
3060         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3061         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3062         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3063         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3064         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3065         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3066         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3067         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3068         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3069         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3070         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3071         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3072         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3073         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3074
3075         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3076         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3077         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3078         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3079         [defined __arch64__ || defined __sparcv9]
3080         (__OFF_T_MATCHES_OFF64_T): New macro.
3081         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3082         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3083         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3084         (__OFF_T_MATCHES_OFF64_T): New macro.
3085
3086 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3087
3088         * stdlib/secure-getenv.c (__secure_getenv): Replace
3089         GLIBC_2_16 with GLIBC_2_17.
3090
3091 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3092
3093         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3094         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3095
3096 2012-08-03  David S. Miller  <davem@davemloft.net>
3097
3098         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3099
3100 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3101
3102         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3103         Remove.
3104         (__ASSUME_CORRECT_SI_PID): Likewise.
3105         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3106         (__ASSUME_TMPFS_NAME): Likewise.
3107         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3108         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3109         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3110         (HAVE_AUX_SECURE): Make definition unconditional.
3111         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3112         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3113
3114 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3115
3116         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3117         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3118         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3119         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3120         __eloop_threshold instead of SYMLOOP_MAX.
3121
3122         * sysdeps/generic/eloop-threshold.h: New file.
3123         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3124         of MAXSYMLINKS.
3125         * elf/chroot_canon.c (chroot_canon): Likewise.
3126
3127 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3128
3129         [BZ #13717]
3130         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3131         Change to 2.6.0 everywhere.
3132         * sysdeps/unix/sysv/linux/configure: Regenerated.
3133         * sysdeps/unix/sysv/linux/kernel-features.h
3134         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3135         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3136         kernel versions.
3137         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3138         (__ASSUME_FUTEX_REQUEUE): Remove.
3139         (__ASSUME_STATFS64): Define unconditionally.
3140         (__ASSUME_AT_SECURE): Likewise.
3141         (__ASSUME_CORRECT_SI_PID): Likewise.
3142         (__ASSUME_TGKILL): Define without depending on kernel version for
3143         i386.
3144         (__ASSUME_UTIMES): Likewise.
3145         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3146         kernel version.
3147         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3148         (__ASSUME_TMPFS_NAME): Likewise.
3149         * README: Update reference to Linux kernel versions.
3150
3151 2012-08-02  Marek Polacek  <polacek@redhat.com>
3152
3153         [BZ# 14150]
3154         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3155         libc_cv_asm_type_prefix with %.
3156         * configure: Regenerated.
3157         * include/libc-symbols.h: Remove comment about
3158         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3159         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3160         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3161         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3162         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3163         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3164         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3165         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3166         * elf/tst-unique2mod1.c: Likewise.
3167         * elf/tst-unique1mod2.c: Likewise.
3168         * elf/tst-unique1mod1.c: Likewise.
3169         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3170         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3171         Replace ASM_TYPE_DIRECTIVE with .type.
3172         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3173         * sysdeps/i386/sysdep.h: Likewise.
3174         * sysdeps/x86_64/sysdep.h: Likewise.
3175         * sysdeps/sh/sysdep.h: Likewise.
3176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3177         Do not define ASM_TYPE_DIRECTIVE.
3178         * sysdeps/powerpc/sysdep.h: Likewise.
3179         * sysdeps/powerpc/powerpc32/sysdep.h:
3180         Replace ASM_TYPE_DIRECTIVE with .type.
3181         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3182         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3183         * sysdeps/i386/fpu/e_powf.S: Likewise.
3184         * sysdeps/i386/fpu/e_expl.S: Likewise.
3185         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3186         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3187         * sysdeps/i386/fpu/e_pow.S: Likewise.
3188         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3189         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3190         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3191         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3192         * sysdeps/i386/fpu/e_log2.S: Likewise.
3193         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3194         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3195         * sysdeps/i386/fpu/e_powl.S: Likewise.
3196         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3197         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3198         * sysdeps/i386/fpu/e_logl.S: Likewise.
3199         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3200         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3201         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3202         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3203         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3204         * sysdeps/i386/fpu/e_log.S: Likewise.
3205         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3206         * sysdeps/i386/fpu/e_logf.S: Likewise.
3207         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3208         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3209         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3210         * sysdeps/i386/fpu/e_log10.S: Likewise.
3211         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3212         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3213         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3214         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3215         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3216         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3217         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3218         * sysdeps/i386/i686/strtok.S: Likewise.
3219         * sysdeps/i386/i386-mcount.S: Likewise.
3220         * sysdeps/i386/strtok.S: Likewise.
3221         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3222         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3223         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3224         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3225         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3226         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3227         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3228         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3229         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3230         * sysdeps/x86_64/_mcount.S: Likewise.
3231         * sysdeps/x86_64/strtok.S: Likewise.
3232         * sysdeps/sh/_mcount.S: Likewise.
3233
3234 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3235
3236         * libio/iofopen.c: Include <fcntl.h>.
3237         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3238         (_IO_fopen64, fopen64): Define as aliases.
3239         * libio/iofopen64.c: Include <fcntl.h>.
3240         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3241         Conditionalize body on this.
3242         * sysdeps/wordsize-64/iofopen.c: File removed.
3243         * sysdeps/wordsize-64/iofopen64.c: File removed.
3244
3245 2012-08-01  Marek Polacek  <polacek@redhat.com>
3246
3247         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3248         Use dlfcn directly instead of a variable.
3249         (binfmt-subdir): Do not define.
3250         (dlfcn): Likewise.
3251
3252 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3253
3254         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3255         Remove all definitions.
3256         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3257         <kernel-features.h>.
3258         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3259         (miss_F_GETOWN_EX): Remove all definitions.
3260         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3261         macro definition.
3262         [!__ASSUME_FCNTL64]: Remove conditional code.
3263         [__ASSUME_FCNTL64]: Make code unconditional.
3264         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3265         <kernel-features.h>.
3266         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3267         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3268         (lockf64) [__NR_fcntl64]: Make code unconditional.
3269         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3270
3271         * sysdeps/unix/sysv/linux/kernel-features.h
3272         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3273         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3274         Make code unconditional.
3275         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3276         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3278         [__NR_vfork]: Make code unconditional.
3279         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3280         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3282         [__NR_vfork]: Make code unconditional.
3283         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3284         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3285
3286 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3287
3288         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3289         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3290
3291         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3292         Define mkstemp64 as an alias.
3293         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3294         Define mkstemps64 as an alias.
3295         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3296         Define mkostemp64 as an alias.
3297         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3298         Define mkostemps64 as an alias.
3299         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3300         Conditionalize body on this.
3301         * misc/mkostemp64.c: Likewise.
3302         * misc/mkostemps64.c: Likewise.
3303         * misc/mkstemps64.c: Likewise.
3304         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3305         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3306         * sysdeps/wordsize-64/mkostemp.c: File removed.
3307         * sysdeps/wordsize-64/mkstemp.c: File removed.
3308         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3309         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3310         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3311         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3312
3313         [BZ #14138]
3314         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3315         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3316         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3317         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3318
3319         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3320         compat_symbol macros from <shlib-compat.h> rather than the underlying
3321         default_symbol_version and symbol_version macros, so that DEFAULT
3322         lines in shlib-versions are respected.
3323         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3324
3325 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3326
3327         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3328         Declare with warn_unused_result.
3329         (setgid, setregid, setegid, setresgid): Likewise.
3330         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3331         Likewise.
3332         * WUR-REPORT: Remove set*id functions.
3333
3334 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3335
3336         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3337
3338 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3339
3340         * include/sys/socket.h (__libc_accept, __libc_accept4):
3341         Add attribute_hidden.
3342         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3343
3344         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3345         use of PTR_MANGLE.
3346         * inet/getnetgrent_r.c (setup): Likewise.
3347
3348         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3349
3350 2012-07-31  David S. Miller  <davem@davemloft.net>
3351
3352         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3353
3354 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3355
3356         [BZ #13629]
3357         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3358         value between 1.0 and 2.0 and smaller part has absolute value less
3359         than 1.0.
3360         * math/s_clog10.c (__clog10): Likewise.
3361         * math/s_clog10f.c (__clog10f): Likewise.
3362         * math/s_clog10l.c (__clog10l): Likewise.
3363         * math/s_clogf.c (__clogf): Likewise.
3364         * math/s_clogl.c (__clogl): Likewise.
3365         * math/libm-test.inc (clog_test): Add more tests.
3366         (clog10_test): Likewise.
3367         * sysdeps/i386/fpu/libm-test-ulps: Update.
3368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3369
3370 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3371
3372         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3373         Exit with zero in case no suitable GID is found, and write a
3374         message to standard error.
3375
3376 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3377
3378         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3379         rather than to 1.
3380         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3381         (MAXPATHLEN): Removed.
3382         (NOGROUP, NODEV): New macros.
3383         (setbit, clrbit, isset, isclr): New macros.
3384         (howmany, roundup, powerof2): New macros.
3385         (DEV_BSIZE): New macro.
3386
3387         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3388         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3389
3390         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3391         definition on [!__NO_LONG_DOUBLE_MATH].
3392
3393         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3394         PTR_MANGLE and PTR_DEMANGLE.
3395
3396         * socket/accept4.c (accept4): Rename to __libc_accept4.
3397         Define accept4 as a weak alias.
3398
3399         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3400         on [_DIRENT_HAVE_D_TYPE].
3401         * io/ftw.c (ftw_dir): Likewise.
3402
3403         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3404
3405         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3406
3407         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3408         Use the BSD numbers rather than the arbitrary ones we had.
3409         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3410         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3411         (SIGXCPU, SIGXFSZ): New macros.
3412         (_NSIG): Now 32.
3413
3414         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3415         initializer on [_LIBC_REENTRANT].
3416
3417         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3418         definitions inside [_POSIX_MAPPED_FILES].
3419
3420         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3421
3422         * dirent/opendir.c: Include <fcntl.h>.
3423
3424         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3425         (__libc_getspecific): Likewise.
3426         (__libc_key_create): Likewise.
3427
3428         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3429         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3430         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3431         (tmpfile64): Define as alias.
3432         * sysdeps/wordsize-64/tmpfile.c: File removed.
3433         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3434         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3435         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3436
3437         * stdio-common/vfscanf.c: Include <stdbool.h>.
3438         * nss/makedb.c: Likewise.
3439         * stdio-common/_i18n_number.h: Likewise.
3440         * argp/argp-help.c: Likewise.
3441         * posix/wordexp.c: Likewise.
3442         * sysdeps/posix/spawni.c: Likewise.
3443         * nss/nss_files/files-initgroups.c: Likewise.
3444         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3445         * nss/nss_files/files-initgroups.c: Likewise.
3446         * nss/nss_db/db-netgrp.c: Likewise.
3447         * nss/nss_db/db-initgroups.c: Likewise.
3448         * io/fchmodat.c: Include <sys/stat.h>.
3449
3450         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3451         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3452
3453         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3454         [HAVE_MMAP].
3455
3456         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3457         Add multiple inclusion protection.
3458
3459 2012-07-27  David S. Miller  <davem@davemloft.net>
3460
3461         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3462
3463 2012-07-27  Gary Benson  <gbenson@redhat.com>
3464
3465         [BZ #14298]
3466         * elf/rtld.c: Include <stap-probe.h>.
3467         (dl_main): Added static probes "init_start" and "init_complete".
3468         * elf/dl-load.c: Include <stap-probe.h>.
3469         (lose): Take new parameter "nsid".
3470         Added static probe "map_failed".
3471         (_dl_map_object_from_fd): Pass namespace id to lose.
3472         Added static probe "map_start".
3473         (open_verify): Pass namespace id to lose.
3474         * elf/dl-open.c: Include <stap-probe.h>.
3475         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3476         and "reloc_complete".
3477         * elf/dl-close.c: Include <stap-probe.h>.
3478         (_dl_close_worker): Added static probes "unmap_start" and
3479         "unmap_complete".
3480         * elf/rtld-debugger-interface.txt: New file documenting the above.
3481
3482 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3483
3484         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3485         rather than a string variable.
3486         * sunrpc/rpc_main.c (h_output): Likewise.
3487         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3488
3489 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3490
3491         * inet/check_native.c: New file.
3492
3493 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3494
3495         [BZ #13629]
3496         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3497         if larger part has absolute value 1.0.
3498         * math/s_clog10.c (__clog10): Likewise.
3499         * math/s_clog10f.c (__clog10f): Likewise.
3500         * math/s_clog10l.c (__clog10l): Likewise.
3501         * math/s_clogf.c (__clogf): Likewise.
3502         * math/s_clogl.c (__clogl): Likewise.
3503         * math/libm-test.inc (clog_test): Add more tests.
3504         (clog10_test): Likewise.
3505         * sysdeps/i386/fpu/libm-test-ulps: Update.
3506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3507
3508         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3509         (pltexit): Likewise.
3510         (La_regs): Likewise.
3511         (La_retval): Likewise.
3512         (int_retval): Likewise.
3513         Update #error for removed macros to refer only to definitions in
3514         tst-audit.h.
3515         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3516         macro.
3517         (pltexit): Likewise.
3518         (La_regs): Likewise.
3519         (La_retval): Likewise.
3520         (int_retval): Likewise.
3521         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3522         macro.
3523         (pltexit): Likewise.
3524         (La_regs): Likewise.
3525         (La_retval): Likewise.
3526         (int_retval): Likewise.
3527         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3528         macro.
3529         (pltexit): Likewise.
3530         (La_regs): Likewise.
3531         (La_retval): Likewise.
3532         (int_retval): Likewise.
3533         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3534         macro.
3535         (pltexit): Likewise.
3536         (La_regs): Likewise.
3537         (La_retval): Likewise.
3538         (int_retval): Likewise.
3539         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3540         macro.
3541         (pltexit): Likewise.
3542         (La_regs): Likewise.
3543         (La_retval): Likewise.
3544         (int_retval): Likewise.
3545         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3546         macro.
3547         (pltexit): Likewise.
3548         (La_regs): Likewise.
3549         (La_retval): Likewise.
3550         (int_retval): Likewise.
3551         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3552         macro definitions in tst-audit.h.
3553         * sysdeps/i386/tst-audit.h: New file.
3554         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3555         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3556         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3557         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3558         * sysdeps/sh/tst-audit.h: Likewise.
3559         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3560         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3561         * sysdeps/x86_64/tst-audit.h: Likewise.
3562
3563 2012-07-26  Andreas Jaeger  <aj@suse.de>
3564
3565         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3566         ptrace.
3567
3568         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3569         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3570         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3571         PTRACE_O_MASK.
3572         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3573         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3574         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3575
3576         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3577         value.
3578
3579         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3580         _sigsys.
3581         (si_call_addr, si_syscall, si_arch): Define new macro.
3582         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3583         _sigsys.
3584         (si_call_addr, si_syscall, si_arch): Define new marcro.
3585         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3586         _sigsys.
3587         (si_call_addr, si_syscall, si_arch): Define new macro.
3588         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3589         _sigsys.
3590         (si_call_addr, si_syscall, si_arch): Define new macro.
3591
3592 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3593
3594         [BZ #13717]
3595         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3596         Change to 2.4.21 where previously 2.4.1.
3597         * sysdeps/unix/sysv/linux/configure: Regenerated.
3598         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3599         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3600         Linux kernel version.
3601         (__ASSUME_STD_AUXV): Remove.
3602         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3603         kernel version.
3604         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3605         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3606         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3607         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3608         (__ASSUME_NETLINK_SUPPORT): Likewise.
3609         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3610         (__no_netlink_support): Remove conditional definition.
3611         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3612         Remove.
3613         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3614         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3615         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3616         (if_nameindex_ioctl): Remove.
3617         (if_nameindex_netlink): Do not handle __no_netlink_support.
3618         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3619         code.
3620         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3621         Remove conditional code.
3622         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3623         code.
3624         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3625         unconditional.
3626         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3627         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3628         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3629         Remove.
3630         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3631         [!__ASSUME_STD_AUXV]: Remove conditional code.
3632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3633         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3634         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3636         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3637         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3638         code.
3639         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3641         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3642         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3643         conditional code.
3644         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3646         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3647         code.
3648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3649         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3650         conditional code.
3651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3652         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3653         code unconditional.
3654         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3655         conditional code.
3656         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3657         unconditional.
3658         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3659         conditional code.
3660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3661         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3662         unconditional.
3663         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3664         conditional code.
3665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3666         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3667         code unconditional.
3668         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3669         conditional code.
3670         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3671         unconditional.
3672         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3673         conditional code.
3674         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3675         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3676         code unconditional.
3677         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3678         conditional code.
3679         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3680         unconditional.
3681         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3682         conditional code.
3683
3684 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3685
3686         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3687         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3688         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3689         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3690         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3691         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3692         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3693         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3694         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3695         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3696         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3697         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3698         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3699         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3700         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3701         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3702         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3703         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3704         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3705         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3706         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3707         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3708         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3709
3710 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3711
3712         * Versions.def: Add GLIBC_2.17.
3713         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3714         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3715         Introduce __libc_secure_getenv.
3716         * stdlib/Versions (2.17): Add secure_getenv
3717         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3718         * stdlib/secure-getenv.c: Rename __secure_getenv to
3719         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3720         symbol __secure_getenv for GLIBC_2.0.
3721         * stdlib/tst-secure-getenv.c: New.
3722         * stdlib/Makefile (tests): Add testcase.
3723         * manual/startup.texi (Environment Access): Document
3724         secure_getenv.
3725         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3726         __libc_secure_getenv.
3727         * inet/ruserpass.c (ruserpass): Likewise.
3728         * malloc/mtrace.c (mtrace): Likewise.
3729         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3730         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3731         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3732         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3733         HAVE_SECURE_GETENV.
3734         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3735         __secure_getenv to __libc_secure_getenv.
3736         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3738         Likewise.
3739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3740         Likewise.
3741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3742         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3743         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3744         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3746         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3747         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3748
3749 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3750
3751         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3752         (struct La_i86_retval): Likewise.
3753         (struct La_x86_64_regs): Likewise.
3754         (struct La_x86_64_retval): Likewise.
3755         (struct La_x32_regs): Likewise.
3756         (struct La_x32_retval): Likewise.
3757         (struct La_ppc32_regs): Likewise.
3758         (struct La_ppc32_retval): Likewise.
3759         (struct La_ppc64_regs): Likewise.
3760         (struct La_ppc64_retval): Likewise.
3761         (struct La_sh_regs): Likewise.
3762         (struct La_sh_retval): Likewise.
3763         (struct La_s390_32_regs): Likewise.
3764         (struct La_s390_32_retval): Likewise.
3765         (struct La_s390_64_regs): Likewise.
3766         (struct La_s390_64_retval): Likewise.
3767         (struct La_sparc32_regs): Likewise.
3768         (struct La_sparc32_retval): Likewise.
3769         (struct La_sparc64_regs): Likewise.
3770         (struct La_sparc64_retval): Likewise.
3771         (struct audit_ifaces): Remove architecture-specific pltenter and
3772         pltexit members.
3773         * sysdeps/i386/ldsodefs.h: New file.
3774         * sysdeps/powerpc/ldsodefs.h: Likewise.
3775         * sysdeps/s390/ldsodefs.h: Likewise.
3776         * sysdeps/sh/ldsodefs.h: Likewise.
3777         * sysdeps/sparc/ldsodefs.h: Likewise.
3778         * sysdeps/x86_64/ldsodefs.h: Likewise.
3779
3780 2012-07-25  Marek Polacek  <polacek@redhat.com>
3781
3782         [BZ #6808]
3783         * math/libm-test.inc (yn_test): Add another test.
3784         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3785         to ERANGE when the result is +-Inf.
3786         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3787         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3788         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3789         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3790
3791 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3792
3793         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3794         equal to 0.
3795         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3796         clock_t.
3797         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3798
3799 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3800
3801         * configure.in <sysdeps resolving>: Correct printing
3802         Implies_before.
3803         * configure: Regenerate.
3804
3805 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3806
3807         * math/w_ilogb.c: Include <limits.h>.
3808         * math/w_ilogbl.c: Likewise.
3809
3810 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3811
3812         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3813         va_copy.  Document allowing for unavailable va_copy only as
3814         pre-C99 compatibility.
3815         * manual/string.texi (Copying and Concatenation): Use va_copy
3816         instead of __va_copy in concat example.
3817
3818 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3819
3820         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3821         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3822         it if not null.
3823
3824         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3825         with O_NOLINK passed to __file_name_lookup.
3826
3827         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3828         with O_NOLINK passed to __file_name_lookup.
3829
3830         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3831         negative N or less than NGIDS.
3832
3833         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3834         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3835         enough.  Use memcpy instead of strncpy.
3836
3837 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3838
3839         * elf/Makefile (check-data): Remove.
3840         (localplt.data): New vpath directive.
3841         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3842         instead of $(check-data).
3843         * scripts/data/localplt-generic.data: Move to ...
3844         * sysdeps/generic/localplt.data: ... here.
3845         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3846         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3847         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3849         ... here.
3850         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3852         ... here.
3853         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3854         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3855         ... here.
3856         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3858         ... here.
3859         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3861         ... here.
3862         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3863         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3864         ... here.
3865
3866 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3867
3868         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3869         PPC32 and PPC64 files.
3870         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3871         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3872
3873 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3874
3875         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3876         __makecontext_ret to ...
3877         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3878         ... here and call exit if uc_link is NULL.  New file.
3879         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3880         __makecontext_ret.S.
3881         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3882         __makecontext_ret to ...
3883         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3884         ... here and call exit if uc_link is NULL.  New file.
3885         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3886         __makecontext_ret.S.
3887
3888 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3889
3890         * elf/elf.h (R_390_IRELATIVE): New definition.
3891         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3892         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3893         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3894         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3895         (elf_machine_lazy_rel): Likewise.
3896         * sysdeps/s390/dl-irel.h: New file.
3897         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3898         * sysdeps/s390/s390-64/memset.S: New asm code.
3899         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3900         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3901         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3902         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3903         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3904         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3905         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3906         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3907         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3908         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3909         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3910         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3911         * sysdeps/s390/s390-32/memset.S: New asm code.
3912         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3913
3914 2012-07-17  Marek Polacek  <polacek@redhat.com>
3915
3916         [BZ #14349]
3917         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3918         * sysdeps/s390/s390-64/configure.in: Likewise.
3919         * sysdeps/sparc/configure.in: Likewise.
3920         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3921         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3922         * sysdeps/i386/configure.in: Likewise.
3923         * sysdeps/x86_64/configure.in: Likewise.
3924         * sysdeps/sh/configure.in: Likewise.
3925         * sysdeps/s390/s390-32/configure: Regenerated.
3926         * sysdeps/s390/s390-64/configure: Likewise.
3927         * sysdeps/x86_64/configure: Likewise.
3928         * sysdeps/sh/configure: Likewise.
3929         * sysdeps/powerpc/powerpc64/configure: Likewise.
3930         * sysdeps/powerpc/powerpc32/configure: Likewise.
3931         * sysdeps/sparc/configure: Likwise.
3932         * sysdeps/i386/configure: Likewise.
3933
3934         * elf/dl-open.c: Comment fixes.
3935
3936 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3937
3938         * Makefile [CXX] (check-data): Remove.
3939         [CXX] (c++-types.data): New vpath directive.
3940         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3941         vpath.  Do not allow for C++ type data being missing.
3942         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3943         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3944         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3945         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3946         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3947         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3948         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3950         ... here.
3951         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3953         ... here.
3954         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3955         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3956         ... here.
3957         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3959         ... here.
3960         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3961         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3962         ... here.
3963         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3964         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3965         ... here.
3966         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3967         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3968         ... here.
3969         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3971
3972         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3973         definitions to architecture-specific files.
3974         (TLS_IE): Likewise.
3975         (TLS_LD): Likewise.
3976         (TLS_GD): Likewise.
3977         * sysdeps/i386/tls-macros.h: New file.
3978         * sysdeps/powerpc/tls-macros.h: Likewise.
3979         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3980         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3981         * sysdeps/sh/tls-macros.h: Likewise.
3982         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3983         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3984         * sysdeps/x86_64/tls-macros.h: Likewise.
3985
3986 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3987
3988         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3989         zero value for regular exit case.
3990
3991         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3992         (__start_context): Preserve zero value for regular exit case.
3993
3994 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3995             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3996
3997         * manual/setjmp.texi (setcontext): Clarify normal process
3998         termination when uc_link is the null pointer.
3999         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4000         exit call.
4001
4002 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4003
4004         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4005         preprocessor.  Test for each exception mask separately.
4006
4007 2012-07-16  Andreas Jaeger  <aj@suse.de>
4008
4009         * po/ru.po: Update from translation team.
4010
4011 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4012
4013         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4014         equal to 0.
4015         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4016         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4017         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4018         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4019         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4020
4021 2012-07-13  Andreas Jaeger  <aj@suse.de>
4022
4023         * po/fr.po: Update from translation team.
4024
4025 2012-07-12  Marek Polacek  <polacek@redhat.com>
4026
4027         [BZ #14173]
4028         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4029         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4030         loop condition.
4031
4032 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4033
4034         [BZ #13717]
4035         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4036         Change to 2.4.1 where previously 2.4.0.
4037         * sysdeps/unix/sysv/linux/configure: Regenerated.
4038         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4039         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4040         version.
4041         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4042         (__ASSUME_AT_CLKTCK): Remove.
4043         (__ASSUME_AT_PAGESIZE): Likewise.
4044         (__ASSUME_AT_XID): Likewise.
4045         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4046         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4047         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4048         unconditionally.
4049         (HAVE_AUX_PAGESIZE): Likewise.
4050         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4051         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4052         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4053
4054 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4055
4056         [BZ #14307]
4057         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4058         the temporary buffer used to invoke __gethostbyname2_r,
4059         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4060         host_data / struct gaih_addrtuple.
4061         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4062         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4063         header file nss/nsswitch.h.
4064         * nss/nsswitch.h (global scope): Add definition of implementation
4065         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4066         resolv/nss_dns/dns-host.c).
4067
4068 2012-07-11  Andreas Jaeger  <aj@suse.de>
4069
4070         * po/fr.po: Update from translation team.
4071
4072         * po/sv.po: Update from translation team
4073         * po/fr.po: Another update from translation team.
4074
4075 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4076
4077         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4078         for subnormals or multiply small sinh result by itself.
4079         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4081
4082 2012-07-11  David S. Miller  <davem@davemloft.net>
4083
4084         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4085
4086 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4087
4088         [BZ #14347]
4089         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4090         (INTERNAL_MARK): Shift it here.
4091
4092 2012-07-10  Marek Polacek  <polacek@redhat.com>
4093
4094         [BZ #14151]
4095         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4096         libc_cv_asm_global_directive with .globl.
4097         * configure: Regenerated.
4098         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4099         with .globl.
4100         * sysdeps/i386/configure: Regenerated.
4101         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4102         with .globl.
4103         * sysdeps/x86_64/configure: Regenerated.
4104         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4105         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4106         * elf/tst-unique2mod2.c: Likewise.
4107         * elf/tst-unique2mod1.c: Likewise.
4108         * elf/tst-unique1mod2.c: Likewise.
4109         * elf/tst-unique1mod1.c: Likewise.
4110         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4111         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4112         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4113         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4114         * sysdeps/mach/sysdep.h: Likewise.
4115         * sysdeps/i386/sysdep.h: Likewise.
4116         * sysdeps/i386/i386-mcount.S: Likewise.
4117         * sysdeps/x86_64/_mcount.S: Likewise.
4118         * sysdeps/x86_64/sysdep.h: Likewise.
4119         * sysdeps/sh/_mcount.S: Likewise.
4120         * sysdeps/sh/sysdep.h: Likewise.
4121         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4122         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4123         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4124         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4125         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4126         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4127         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4128         * locale/localeinfo.h: Likewise.
4129         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4130         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4131
4132 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4133
4134         [BZ #14336]
4135         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4136         system".
4137         * manual/message.texi (The Uniforum approach): Likewise.
4138         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4139         (glibc iconv Implementation): Likewise.
4140
4141 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4142
4143         [BZ #14337]
4144         * math/s_clog.c (__clog): Avoid scaling a value down where that
4145         could result in underflow.
4146         * math/s_clog10.c (__clog10): Likewise.
4147         * math/s_clog10f.c (__clog10f): Likewise.
4148         * math/s_clog10l.c (__clog10l): Likewise.
4149         * math/s_clogf.c (__clogf): Likewise.
4150         * math/s_clogl.c (__clogl): Likewise.
4151         * math/libm-test.inc (clog_test): Add more tests.
4152         (clog10_test): Likewise.
4153         * sysdeps/i386/fpu/libm-test-ulps: Update.
4154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4155
4156 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4157
4158         [BZ #14283]
4159         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4160         by 7 not 8 to examine high bit of fractional part.
4161
4162         [BZ #14042]
4163         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4164         for call to __mcount_internal.
4165         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4166         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4167         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4168
4169 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4170
4171         [BZ #14154]
4172         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4173         approximation for values within 0x1p-13f of an odd multiple of
4174         pi/4.
4175         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4176         exception.  Add more tests.
4177         * sysdeps/i386/fpu/libm-test-ulps: Update.
4178
4179         [BZ #6778]
4180         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4181         inputs and return -1 for them.  Do not check for +Inf in case not
4182         reachable for +Inf.
4183         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4184         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4185         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4186         and return -1 for them.  Do not check for +Inf in case not
4187         reachable for +Inf.
4188         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4189         define.
4190         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4191         and return -1 for them.  Do not check for +Inf in case not
4192         reachable for +Inf.
4193         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4194         spurious underflow.
4195         * sysdeps/i386/fpu/libm-test-ulps: Update.
4196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4197
4198 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4199
4200         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4201
4202 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4203
4204         [BZ #14157]
4205         [BZ #14331]
4206         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4207         could result in spurious underflow.  Scale down values above
4208         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4209         * math/s_csqrtf.c (__csqrtf): Likewise.
4210         * math/s_csqrtl.c (__csqrtl): Likewise.
4211         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4212         spurious underflow.
4213         * sysdeps/i386/fpu/libm-test-ulps: Update.
4214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4215
4216 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4217
4218         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4219         xopen-msg.sed.
4220         * catgets/xopen-msg.awk: New file.
4221         * catgets/xopen-msg.sed: Removed.
4222
4223         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4224         po2text.sed.
4225         * intl/po2test.awk: New file.
4226         * intl/po2test.sed: Removed.
4227
4228 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4229
4230         [BZ #14328]
4231         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4232         or multiply small sinh result by itself.
4233         * math/s_ctanf.c (__ctanf): Likewise.
4234         * math/s_ctanh.c (__ctanh): Likewise.
4235         * math/s_ctanhf.c (__ctanhf): Likewise.
4236         * math/s_ctanhl.c (__ctanhl): Likewise.
4237         * math/s_ctanl.c (__ctanl): Likewise.
4238         * math/libm-test.inc (ctan_test_tonearest): New function.
4239         (ctan_test_towardzero): Likewise.
4240         (ctan_test_downward): Likewise.
4241         (ctan_test_upward): Likewise.
4242         (ctanh_test_tonearest): Likewise.
4243         (ctanh_test_towardzero): Likewise.
4244         (ctanh_test_downward): Likewise.
4245         (ctanh_test_upward): Likewise.
4246         (main): Call these new functions.
4247         * sysdeps/i386/fpu/libm-test-ulps: Update.
4248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4249
4250 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4251
4252         * .gitignore: Delete /ports entry.
4253
4254 2012-07-03  Andreas Jaeger  <aj@suse.de>
4255
4256         * po/bg.po: Update from translation team.
4257         * po/cs.po: Likewise.
4258         * po/de.po: Likewise.
4259         * po/hr.po: Likewise.
4260         * po/nl.pl: Likewise.
4261         * po/pl.po: Likewise.
4262         * po/vi.po: Likewise.
4263
4264 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4265
4266         * Makeconfig [!+link] (+link-before-libc): New variable.
4267         [!+link] (+link-after-libc): Likewise.
4268         [!+link] (+link-tests): Likewise.
4269         [!+link] (+link): Define in terms of $(+link-before-libc) and
4270         $(+link-after-libc).
4271         [!+link-static] (+link-static-before-libc): New variable.
4272         [!+link-static] (+link-static-after-libc): Likewise.
4273         [!+link-static] (+link-static-tests): Likewise.
4274         [!+link-static] (+link-static): Define in terms of
4275         $(+link-static-before-libc) and $(+link-static-after-libc).
4276         [build-shared] (link-libc-before-gnulib): New variable.
4277         [build-shared] (link-libc-tests): Likewise.
4278         [build-shared] (link-libc): Define in terms of
4279         $(link-libc-before-gnulib).
4280         [!build-shared] (link-libc-tests): New variable.
4281         (link-libc-static-tests): New variable.
4282         [!gnulib] (gnulib-arch): New variable.
4283         [!gnulib] (gnulib-tests): Likewise.
4284         [!gnulib] (static-gnulib-arch): Likewise.
4285         [!gnulib] (static-gnulib-tests): Likewise.
4286         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4287         Define with "=" instead of ":=".
4288         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4289         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4290         * Rules (binaries-all-notests): New variable.
4291         (binaries-all-tests): Likewise.
4292         (binaries-static-notests): Likewise.
4293         (binaries-static-tests): Likewise.
4294         (binaries-all): Define using $(binaries-all-notests) and
4295         $(binaries-all-tests).
4296         (binaries-static): Define using $(binaries-static-notests) and
4297         $(binaries-static-tests).
4298         (binaries-shared-tests): New variable.
4299         (binaries-shared-notests): Likewise.
4300         (binaries-shared): Remove variable.
4301         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4302         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4303         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4304         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4305         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4306         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4307         * elf/Makefile (sln-modules): New variable.
4308         (extra-objs): Add $(sln-modules:=.o).
4309         (ldconfig-modules): Add static-stubs.
4310         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4311         * elf/static-stubs.c: New file.
4312
4313         [BZ #14283]
4314         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4315         by 7 not 8 to examine high bit of fractional part.  Use volatile
4316         variables when splitting into final array of floats if
4317         __FLT_EVAL_METHOD__ != 0.
4318         * math/libm-test.inc (cos_test): Add another test.
4319         (sin_test): Likewise.
4320         * sysdeps/i386/fpu/libm-test-ulps: Update.
4321
4322         [BZ #14273]
4323         * math/libm-test.inc (cosh_test): Add more tests.
4324
4325         * version.h (RELEASE): Set to "development".
4326         (VERSION): Set to "2.16.90".
4327
4328 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4329
4330         * NEWS: Update copyright. Remove last-updated date.
4331         Mention math library bug fixes and timezone data changes.
4332         * README: Mention GNU/Hurd, x32, and HPPA support status.
4333
4334 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4335
4336         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4337
4338 2012-06-27  Andreas Jaeger  <aj@suse.de>
4339
4340         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4341
4342 2012-06-25  Andreas Jaeger  <aj@suse.de>
4343
4344         * sysdeps/s390/fpu/libm-test-ulps: Update.
4345
4346 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4347             Thomas Schwinge  <thomas@codesourcery.com>
4348
4349         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4350         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4351         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4352         fanotify_mark.
4353
4354 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4355
4356         * sysdeps/mach/start.c: Remove file.
4357         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4358         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4359         * sysdeps/sh/init-first.c: Likewise.
4360
4361         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4362         registers for frame unwinding purposes, add CFI directives.
4363         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4364         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4365         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4366         Likewise.
4367
4368         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4369         __fortify_fail returning.
4370         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4371
4372         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4373         sysdeps/sh/____longjmp_chk.S.
4374         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4375         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4376         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4377         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4378
4379         * sysdeps/sh/abort-instr.h: New file.
4380         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4381         process in case exit returns.
4382
4383         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4384         initialize the GOT register before use.
4385
4386         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4387         calculation of ARGC > 4.
4388
4389         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4390         meaningful names to some local labels.
4391
4392 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4393             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4394
4395         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4396         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4397         (__arch_compare_and_exchange_val_16_acq): Likewise.
4398         (__arch_compare_and_exchange_val_32_acq): Likewise.
4399         (atomic_exchange_and_add): Fix gUSA sequence.
4400         (atomic_add): Likewise.
4401         (atomic_add_negative): Likewise.
4402         (atomic_add_zero): Likewise.
4403         (atomic_bit_test_set): Likewise.
4404
4405 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4406
4407         [BZ #13579]
4408         * include/link.h (struct link_map): Add l_free_initfini.
4409         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4410         l_initfini.
4411         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4412         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4413         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4414         set.
4415
4416 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4417
4418         * configure.in: Use AC_LANG_SOURCE.
4419         * configure: Regenerate.
4420
4421 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4422
4423         * configure.in (libc_cv_localstatedir): New substituted variable.
4424         * configure: Regenerated.
4425         * config.make.in (localstatedir): New variable, substituted from
4426         libc_cv_localstatedir.
4427         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4428         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4429         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4430         * sysdeps/gnu/configure: Regenerated.
4431
4432 2012-06-21  Jeff Law  <law@redhat.com>
4433
4434         [BZ #14277]
4435         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4436         free.  Simplify list management for _LIBC case.
4437
4438 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4439
4440         [BZ #14273]
4441         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4442         Clear sign bit of 64-bit integer value before comparing against
4443         overflow value.
4444
4445         * sysdeps/mach/configure: Regenerated.
4446
4447 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4448
4449         [BZ #14278]
4450         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4451
4452 2012-06-21  Jeff Law  <law@redhat.com>
4453
4454         [BZ #13882]
4455         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4456         uint16_t for elements in the "seen" array to avoid char overflows.
4457         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4458         * elf/dl-open.c (dl_open_worker): Likewise.
4459
4460 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4461
4462         * scripts/list-sources.sh: Scan PORTS for translations.
4463         * po/libc.pot: Regenerated.
4464
4465 2012-06-21  Andreas Jaeger  <aj@suse.de>
4466
4467         [BZ #12194]
4468         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4469         warning.
4470         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4471         * bits/byteswap-16.h (__bswap_16): Likewise.
4472         * bits/byteswap.h (__bswap_constant_16): Likewise.
4473
4474 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4475
4476         [BZ #14117]
4477         * sysdeps/i386/fpu_control.h: Removed.
4478         * sysdeps/x86_64/fpu_control.h: Moved to ...
4479         * sysdeps/x86/fpu_control.h: Here.
4480
4481         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4482         (_FPU_SETCW): Likewise.
4483
4484 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4485
4486         [BZ #14117]
4487         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4488         * sysdeps/x86/fpu/bits/mathinline.h: This.
4489         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4490
4491         [BZ #14050]
4492         [BZ #14117]
4493         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4494         functions if __x86_64__ is defined.
4495
4496 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4497
4498         * string/endian.h: Add !__ASSEMBLER__ condition for including
4499         conversion interfaces.
4500
4501 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4502
4503         [BZ #14241]
4504         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4505         of ABS(x) in calculating zero to negative powers other than odd
4506         integers.
4507         * math/libm-test.inc (pow_test): Add more tests.
4508
4509 2012-06-15  Andreas Jaeger  <aj@suse.de>
4510
4511         * manual/contrib.texi (Contributors): Update entry of Liubov
4512         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4513         Machado Filho.
4514
4515 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4516
4517         * string/string.h: Add __wur to GNU version of strerror_r.
4518
4519 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4520
4521         [BZ #14229]
4522         * string/Makefile (tests): Add tst-strtok_r.
4523         * string/tst-strtok_r.c: New file.
4524         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4525         RAX_LP/RDX_LP on SAVE_PTR.
4526
4527 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4528
4529         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4530
4531 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4532
4533         * libm_test.inc (csqrt_test): Allow more spurious underflow
4534         exceptions.
4535         (j0_test): Likewise.
4536         (j1_test): Likewise.
4537         (y0_test): Likewise.
4538         (y1_test): Likewise.
4539
4540 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4541
4542         * po/Makefile (libc.pot): Use UTF-8 charset.
4543
4544 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4545
4546         [BZ #14210]
4547         Suppress sign-conversion warning from FD_SET.
4548         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4549         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4550         not unsigned long int.
4551         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4552
4553 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4554
4555         [BZ #14050]
4556         [BZ #14117]
4557         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4558         __extern_always_inline instead of __extern_inline.
4559         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4560         (__signbit): Likewise.
4561         (__signbitl): Support C++ namespace.
4562         (lrintf): New inline function.
4563         (lrint): Likewise.
4564         (llrintf): Likewise.
4565         (llrint): Likewise.
4566         (fmaxf): Likewise.
4567         (fmax): Likewise.
4568         (fminf): Likewise.
4569         (fmin): Likewise.
4570         (rint): Likewise.
4571         (rintf): Likewise.
4572         (ceil): Likewise.
4573         (ceilf): Likewise.
4574         (floor): Likewise.
4575         (floorf): Likewise.
4576         (nearbyint): Likewise.
4577         (nearbyintf): Likewise.
4578
4579 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4580
4581         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4582         non-default versions.
4583
4584 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4585
4586         [BZ #14218]
4587         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4588
4589 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4590
4591         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4592         (FE_UPWARD, FE_DOWNWARD): Don't define.
4593         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4594         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4595
4596         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4597         reading it.
4598         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4599         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4600
4601 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4602
4603         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4604         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4605         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4606         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4607
4608 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4609
4610         [BZ #14117]
4611         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4612         * sysdeps/i386/fpu/Implies: New file.
4613         * sysdeps/x86_64/fpu/Implies: Likewise.
4614         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4615         * sysdeps/x86/fpu/bits/fenv.h: This.
4616
4617         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4618         __SSE_MATH__.
4619
4620 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4621
4622         [BZ #14134]
4623         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4624         character 0xffff that matches the last element of the
4625         conversion table.
4626
4627 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4628
4629         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4630         fmodl commit.
4631
4632 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4633
4634         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4635         values higher than 25.6283.
4636
4637 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4638
4639         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4640         subnormal exponent extraction and add some __builtin_expect.
4641         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4642         Fix for subnormal mantissa calculation.
4643
4644 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4645
4646         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4647         cpu2 is -1 and errno is not ENOSYS.
4648
4649 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4650
4651         [BZ #14117]
4652         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4653         * sysdeps/x86/bits/string.h: This.
4654         * sysdeps/x86_64/bits/string.h: Removed.
4655
4656         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4657         if not compiling for x86-64, but compiling for >= i486.
4658
4659         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4660         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4661
4662         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4663         New macro from Linux kernel 3.4.0.
4664         (FP_XSTATE_MAGIC2): Likewise.
4665         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4666         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4667         (struct _fpx_sw_bytes): New struct.
4668         (struct _xsave_hdr): Likewise.
4669         (struct _ymmh_state): Likewise.
4670         (struct _xstate): Likewise.
4671
4672         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4673         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4674         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4675         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4676         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4677         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4678
4679         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4680         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4681         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4682         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4683         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4684         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4685
4686 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4687
4688         [BZ #13743]
4689         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4690         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4691         (sysdep_headers): Include sys/platform/ppc.h.
4692         * sysdeps/powerpc/test-gettimebase.c: Test for
4693         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4694         * manual/Makefile (appendices): Include platform.texi.
4695         * manual/contrib.texi (Contributors): Update @node pointers.
4696         * manual/maint.texi (Maintenance): Likewise.
4697         (Platform): New node.
4698         * manual/platform.texi: New file.  Document the new features.
4699
4700 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4701             Jakub Jelinek  <jakub@redhat.com>
4702
4703         [BZ #14188]
4704         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4705         where __builtin_expect is unavailable.
4706
4707 2012-06-03  David S. Miller  <davem@davemloft.net>
4708
4709         * stdlib/longlong.h: Updated from GCC.
4710
4711 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4712
4713         [BZ #14042]
4714         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4715         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4716         __mcount_internal.
4717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4718         (GLIBC_2.16): Likewise.
4719
4720 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4721
4722         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4723
4724 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4725
4726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4727         (default-abi): New variable.
4728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4729         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4730         variable.
4731         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4732         Likewise.
4733         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4734         Likewise.
4735         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4736         Likewise.
4737
4738         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4739         definition.  Document in comment.
4740
4741 2012-06-01  David S. Miller  <davem@davemloft.net>
4742
4743         * stdlib/longlong.h: Updated from GCC.
4744
4745 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4746
4747         [BZ #14117]
4748         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4749         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4750         sys/debugreg.h sys/io.h here.
4751         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4752         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4753         sys/io.h.
4754         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4755         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4756         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4757         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4758         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4759         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4760
4761         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4762         Define only if __x86_64__ is defined.
4763
4764 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4765
4766         [BZ #14048]
4767         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4768         Use int64_t for variable i.
4769         * math/libm-test.inc (fmod_test): Add more tests.
4770
4771         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4772         z computation is not scheduled after fetestexcept.
4773         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4774         Use math_force_eval instead of asm to ensure calculation scheduled
4775         before exception test.
4776         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4777         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4778
4779 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4780
4781         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4782         computation is not scheduled after fetestexcept.
4783
4784 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4785
4786         [BZ #14117]
4787         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4788         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4789
4790 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4791
4792         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4793         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4794
4795 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4796
4797         [BZ #14117]
4798         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4799         <bits/wordsize.h>.
4800         (__WCHAR_MIN): Support __WORDSIZE == 64.
4801         (__WCHAR_MAX): Likewise.
4802
4803         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4804         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4805
4806         [BZ #14183]
4807         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4808         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4809
4810         [BZ #14117]
4811         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4812         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4813
4814         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4815         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4816
4817         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4818         Defined to 1 if __x86_64__ isn't defined.
4819         (_STAT_VER_LINUX_OLD): New.
4820         (st_atime): Remove duplicate.
4821         (st_mtime): Likewise.
4822         (st_ctime): Likewise.
4823
4824 2012-05-31  David S. Miller  <davem@davemloft.net>
4825
4826         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4827         entries.
4828
4829 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4830
4831         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4832         gen-libm-test.pl.
4833
4834         [BZ #14132]
4835         * elf/dl-reloc.c: Include <_itoa.h>.
4836         (_dl_reloc_bad_type): Remove use of INTUSE.
4837         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4838         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4839         * stdio-common/psiginfo.c (psiginfo): Likewise.
4840         * stdio-common/psignal.c (psignal): Likewise.
4841         * string/strsignal.c (strsignal): Likewise.
4842         * include/signal.h (_sys_siglist): Declare hidden proto.
4843         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4844         INTVARDEF with libc_hidden_data_def.
4845         * stdio-common/itoa-udigits.c: Likewise.
4846         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4847         (_itoa_lower_digits_internal): Remove declaration.
4848         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4849         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4850         (_sys_sigabbrev_internal): Remove aliases.
4851         (_sys_siglist): Define hidden alias.
4852
4853 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4854
4855         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4856         bits/sysctl.h.
4857
4858 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4859
4860         [BZ #14117]
4861         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4862         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4863
4864         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4865         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4866         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4867         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4868         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4869         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4870
4871         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4872         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4873         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4874
4875         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4876         with __addr.
4877         (insw): Likewise.
4878         (insl): Likewise.
4879         (outsb): Likewise.
4880         (outsw): Likewise.
4881         (outsl): Likewise.
4882
4883         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4884         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4885         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4886
4887         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4888         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4889         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4890         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4891         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4892         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4893
4894         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4895         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4896
4897         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4898         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4899
4900         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4901         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4902         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4903
4904         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4905         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4906         to ...
4907         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4908
4909         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4910         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4911         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4912
4913         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4914         for x86-64.
4915         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4916
4917 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4918
4919         * math/math.h (M_El): Use two more decimal places.
4920         (M_LOG2El): Likewise.
4921         (M_LOG10El): Likewise.
4922         (M_LN2l): Likewise.
4923         (M_LN10l): Likewise.
4924         (M_PIl): Likewise.
4925         (M_PI_2l): Likewise.
4926         (M_PI_4l): Likewise.
4927         (M_1_PIl): Likewise.
4928         (M_2_PIl): Likewise.
4929         (M_2_SQRTPIl): Likewise.
4930         (M_SQRT2l): Likewise.
4931         (M_SQRT1_2l): Likewise.
4932
4933 2012-05-31  David S. Miller  <davem@davemloft.net>
4934
4935         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4936         values between float registers.
4937         * sysdeps/sparc/sparc64/memset.S: Likewise.
4938         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4939
4940 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4941
4942         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4943         -D_FORTIFY_SOURCE=1.
4944         (CPPFLAGS-tst-longjmp_chk.c): Define.
4945         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4946         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4947         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4948         CFLAGS-tst-wchar-h.c.
4949
4950 2012-05-31  Marek Polacek  <polacek@redhat.com>
4951
4952         [BZ #14132]
4953         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4954         __endmntent_internal): Remove declaration.
4955         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4956         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4957         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4958
4959 2012-05-30  David S. Miller  <davem@davemloft.net>
4960
4961         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4962         (___Q_simulate_exceptions): Use real FP ops rather than writing
4963         into the %fsr.
4964         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4965         Likewise.
4966
4967 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4968
4969         [BZ #14117]
4970         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4971         * sysdeps/x86/bits/xtitypes.h: This.
4972
4973         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4974         * sysdeps/x86/bits/wordsize.h: This.
4975
4976         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4977         * sysdeps/x86/bits/huge_vall.h: This.
4978
4979         * sysdeps/i386/bits/select.h: Removed.
4980         * sysdeps/x86_64/bits/select.h: Renamed to ...
4981         * sysdeps/x86/bits/select.h: This.
4982
4983         * sysdeps/i386/bits/setjmp.h: Removed.
4984         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4985         * sysdeps/x86/bits/setjmp.h: This.
4986
4987         * sysdeps/i386/bits/mathdef.h: Removed.
4988         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4989         * sysdeps/x86/bits/mathdef.h: This.
4990
4991 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4992
4993         [BZ #14132]
4994         * include/sys/socket.h (__connect_internal)
4995         (__libc_sa_len_internal): Remove declaration.
4996         (__connect, __libc_sa_len): Declare hidden_proto.
4997         (SA_LEN): Remove use of INTUSE.
4998         * socket/connect.c: Add libc_hidden_def.
4999         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5000         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5001         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5002         alias.
5003         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5004         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5005         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5006         of adding _internal alias.
5007
5008 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5009
5010         [BZ #14117]
5011         * sysdeps/i386/bits/link.h: Removed.
5012         * sysdeps/i386/bits/linkmap.h: Likewise.
5013         * sysdeps/x86_64/bits/link.h: Renamed to ...
5014         * sysdeps/x86/bits/link.h: This.
5015         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5016         * sysdeps/x86/bits/linkmap.h: This.
5017
5018         * sysdeps/i386/bits/endian.h: Removed.
5019         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5020         * sysdeps/x86/bits/endian.h: This.
5021
5022         * sysdeps/i386/bits/byteswap.h: Removed.
5023         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5024         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5025         * sysdeps/x86/bits/byteswap.h: This.
5026         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5027         * sysdeps/x86/bits/byteswap-16.h: This.
5028         * sysdeps/i386/Implies: Add x86.
5029         * sysdeps/x86_64/Implies: Likewise.
5030
5031 2012-05-30  David S. Miller  <davem@davemloft.net>
5032
5033         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5034         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5035         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5036         (FP_TRAPPING_EXCEPTIONS): Define.
5037         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5038         (FP_TRAPPING_EXCEPTIONS): Define.
5039         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5040         subnormals only when inexact has been signalled or underflow
5041         exceptions are enabled.
5042         (_FP_PACK_CANONICAL): Likewise.
5043
5044 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5045
5046         [BZ #14183]
5047         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5048         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5049
5050 2012-05-30  Richard Henderson  <rth@twiddle.net>
5051
5052         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5053         with #ifndef NOT_IN_libc.
5054
5055         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5056         marked to avoid plt entry.
5057
5058 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5059
5060         [BZ #14112]
5061         * Makeconfig (default-abi): New macro.
5062         (abi-includes): Likewise.
5063         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5064         $(abi-$(default-abi)-lib-soname) for soname if defined.
5065         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5066         abi-variants.
5067         * Makefile (installed-stubs): Likewise.
5068         * include/stubs-biarch.h: Removed.
5069         * scripts/lib-names.awk: Only handle one library at a time.
5070         * scripts/soversions.awk: Remove WORDSIZE support.
5071         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5072         entries.
5073         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5074         Removed.
5075         (syscall-list-default-condition): Likewise.
5076         (syscall-list-default-condition): Likewise.
5077         (syscall-list-includes): Likewise.
5078         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5079         syscall-list-* with abi-*.  Handle undefined abi-variants.
5080         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5081         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5082         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5083         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5084         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5085         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5086         Removed.
5087         (syscall-list-32-options): Likewise.
5088         (syscall-list-32-condition): Likewise.
5089         (syscall-list-64-options): Likewise.
5090         (syscall-list-64-condition): Likewise.
5091         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5092         macro.
5093         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5094         Renamed to ...
5095         (abi-*): This.
5096         (abi-64-ld-soname): New macro.
5097         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5098         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5099         Renamed to ...
5100         (abi-*): This.
5101         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5102         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5103
5104 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5105
5106         * sysdeps/unix/sysv/linux/kernel-features.h
5107         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5108         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5109         include <kernel-features.h>.
5110         [!__NR_ftruncate64]: Remove conditional code.
5111         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5112         [__NR_ftruncate64]: Make code unconditional.
5113         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5114         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5115         include <kernel-features.h>.
5116         [!__NR_ftruncate64]: Remove conditional code.
5117         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5118         [__NR_ftruncate64]: Make code unconditional.
5119         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5121         include <kernel-features.h>.
5122         [!__NR_ftruncate64]: Remove conditional code.
5123         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5124         [__NR_ftruncate64]: Make code unconditional.
5125         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5127         include <kernel-features.h>.
5128         [!__NR_ftruncate64]: Remove conditional code.
5129         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5130         [__NR_ftruncate64]: Make code unconditional.
5131         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5132
5133         * configure.in (libc_cv_fpie): Weaken to a compile test using
5134         LIBC_TRY_CC_OPTION.
5135         * configure: Regenerated.
5136
5137 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5138
5139         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5141         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5143         Refreshed.
5144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5148         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5150         Refreshed.
5151
5152 2012-05-27  David S. Miller  <davem@davemloft.net>
5153
5154         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5155         (___Q_zero): New.
5156         (__Q_simulate_exceptions): Return void.  Change to simulate
5157         exceptions by writing into the %fsr.
5158         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5159         (__Qp_handle_exceptions): Likewise.
5160         (numbers): Delete.
5161         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5162         __Qp_handle_exceptions.
5163         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5164         __Qp_handle_exceptions.
5165         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5166         as unused and give dummy FP_RND_NEAREST initializer.
5167         (FP_INHIBIT_RESULTS): Define.
5168         (___Q_simulate_exceptions): Update declaration.
5169         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5170         formatting.
5171         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5172         as unused and give dummy FP_RND_NEAREST initializer.
5173         (__Qp_handle_exceptions): Update declaration.
5174         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5175         formatting.
5176
5177 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5178
5179         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5180         the temporary FPU control word.
5181         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5182         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5183         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5184         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5185         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5186         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5187         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5188         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5189         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5190         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5191         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5192
5193 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5194
5195         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5196         fields.
5197
5198 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5199
5200         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5201         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5202         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5203         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5204         Likewise.
5205         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5206         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5207         Likewise.
5208
5209 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5210
5211         * po/h.po: Update from translation team.
5212
5213 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5214
5215         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5216
5217         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5218         handling of denormals.
5219         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5220         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5221         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5222         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5223         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5224         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5225         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5226         Likewise.
5227
5228 2012-05-26  Marek Polacek  <polacek@redhat.com>
5229
5230         [BZ #14152]
5231         * math/libm-test.inc (fma_test): Don't always expect underflow
5232         exception.
5233
5234 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5235
5236         [BZ #12416]
5237         * elf/tst-execstack.c: Include stackinfo.h.
5238         (do_test): Adjust test case to ensure that pthread_getattr_np
5239         behaviour remains the same after marking stack executable.
5240
5241 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5242
5243         * sysdeps/unix/sysv/linux/kernel-features.h
5244         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5245         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5246         kernel-features.h.
5247         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5248         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5249         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5250         kernel-features.h.
5251         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5252         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5253
5254 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5255
5256         * configure.in: Define the default includes to being none.
5257         * configure: Regenerated.
5258
5259 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5260
5261         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5262         * sysdeps/x86_64/setjmp.S: Likewise.
5263         * sysdeps/i386/bsd-setjmp.S: Likewise.
5264         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5265         * sysdeps/i386/setjmp.S: Likewise.
5266         * sysdeps/i386/__longjmp.S: Likewise.
5267         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5268         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5269
5270         * include/stap-probe.h: New file.
5271         * configure.in: Handle --enable-systemtap.
5272         * configure: Regenerated.
5273         * config.h.in (USE_STAP_PROBE): New #undef.
5274         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5275         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5276         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5277
5278 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5279
5280         [BZ #13717]
5281         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5282         to 2.4.0 where earlier.
5283         * sysdeps/unix/sysv/linux/configure: Regenerated.
5284         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5285         <kernel-features.h>.
5286         [__ASSUME_32BITUIDS]: Make code unconditional.
5287         [!__ASSUME_32BITUIDS]: Remove conditional code.
5288         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5289         <kernel-features.h>.
5290         [__ASSUME_32BITUIDS]: Make code unconditional.
5291         [!__ASSUME_32BITUIDS]: Remove conditional code.
5292         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5293         [__ASSUME_32BITUIDS]: Make code unconditional.
5294         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5295         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5296         <kernel-features.h>.
5297         [__ASSUME_32BITUIDS]: Make code unconditional.
5298         [!__ASSUME_32BITUIDS]: Remove conditional code.
5299         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5300         <kernel-features.h>.
5301         [__ASSUME_32BITUIDS]: Make code unconditional.
5302         [!__ASSUME_32BITUIDS]: Remove conditional code.
5303         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5304         <kernel-features.h>.
5305         [__ASSUME_32BITUIDS]: Make code unconditional.
5306         [!__ASSUME_32BITUIDS]: Remove conditional code.
5307         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5308         <kernel-features.h>.
5309         [__ASSUME_32BITUIDS]: Make code unconditional.
5310         [!__ASSUME_32BITUIDS]: Remove conditional code.
5311         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5312         <kernel-features.h>.
5313         [__ASSUME_32BITUIDS]: Make code unconditional.
5314         [!__ASSUME_32BITUIDS]: Remove conditional code.
5315         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5316         <kernel-features.h>.
5317         [__ASSUME_32BITUIDS]: Make code unconditional.
5318         [!__ASSUME_32BITUIDS]: Remove conditional code.
5319         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5320         <kernel-features.h>.
5321         [__ASSUME_32BITUIDS]: Make code unconditional.
5322         [!__ASSUME_32BITUIDS]: Remove conditional code.
5323         * sysdeps/unix/sysv/linux/i386/lchown.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/i386/msgctl.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/i386/semctl.c: Do not include
5332         <kernel-features.h>.
5333         [__ASSUME_32BITUIDS]: Make code unconditional.
5334         [!__ASSUME_32BITUIDS]: Remove conditional code.
5335         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5336         <kernel-features.h>.
5337         [__NR_setresgid] (__setresgid): Do not declare.
5338         [__ASSUME_32BITUIDS]: Make code unconditional.
5339         [!__ASSUME_32BITUIDS]: Remove conditional code.
5340         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5341         <kernel-features.h>.
5342         [__NR_setresuid] (__setresuid): Do not declare.
5343         [__ASSUME_32BITUIDS]: Make code unconditional.
5344         [!__ASSUME_32BITUIDS]: Remove conditional code.
5345         * sysdeps/unix/sysv/linux/i386/setfsgid.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/i386/setfsuid.c: Do not include
5350         <kernel-features.h>.
5351         [__ASSUME_32BITUIDS]: Make code unconditional.
5352         [!__ASSUME_32BITUIDS]: Remove conditional code.
5353         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5354         <kernel-features.h>.
5355         [__ASSUME_32BITUIDS]: Make code unconditional.
5356         [!__ASSUME_32BITUIDS]: Remove conditional code.
5357         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5358         <kernel-features.h>.
5359         [__ASSUME_32BITUIDS]: Make code unconditional.
5360         [!__ASSUME_32BITUIDS]: Remove conditional code.
5361         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5362         <kernel-features.h>.
5363         [__ASSUME_32BITUIDS]: Make code unconditional.
5364         [!__ASSUME_32BITUIDS]: Remove conditional code.
5365         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5366         <kernel-features.h>.
5367         [__ASSUME_32BITUIDS]: Make code unconditional.
5368         [!__ASSUME_32BITUIDS]: Remove conditional code.
5369         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5370         <kernel-features.h>.
5371         [__ASSUME_32BITUIDS]: Make code unconditional.
5372         [!__ASSUME_32BITUIDS]: Remove conditional code.
5373         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5374         <kernel-features.h>.
5375         [__ASSUME_32BITUIDS]: Make code unconditional.
5376         [!__ASSUME_32BITUIDS]: Remove conditional code.
5377         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5378         <kernel-features.h>.
5379         [__ASSUME_32BITUIDS]: Make code unconditional.
5380         [!__ASSUME_32BITUIDS]: Remove conditional code.
5381         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5382         <kernel-features.h>.
5383         [__ASSUME_32BITUIDS]: Make code unconditional.
5384         [!__ASSUME_32BITUIDS]: Remove conditional code.
5385         * sysdeps/unix/sysv/linux/kernel-features.h
5386         (__ASSUME_SETRESUID_SYSCALL): Remove.
5387         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5388         (__ASSUME_32BITUIDS): Likewise.
5389         (__ASSUME_LDT_WORKS): Likewise.
5390         (__ASSUME_O_DIRECTORY): Likewise.
5391         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5392         architecture but not kernel version.
5393         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5394         (__ASSUME_MMAP2_SYSCALL): Likewise.
5395         (__ASSUME_STAT64_SYSCALL): Likewise.
5396         (__ASSUME_IPC64): Likewise.
5397         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5398         <kernel-features.h>.
5399         [__ASSUME_32BITUIDS]: Make code unconditional.
5400         [!__ASSUME_32BITUIDS]: Remove conditional code.
5401         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5402         <kernel-features.h>.
5403         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5404         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5405         132096]: Remove conditional code.
5406         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5407         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5408         <kernel-features.h>.
5409         [__ASSUME_32BITUIDS]: Make code unconditional.
5410         [!__ASSUME_32BITUIDS]: Remove conditional code.
5411         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5412         <kernel-features.h>.
5413         [__ASSUME_32BITUIDS]: Make code unconditional.
5414         [!__ASSUME_32BITUIDS]: Remove conditional code.
5415         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5416         <kernel-features.h>.
5417         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5418         unconditional.
5419         (__setresgid): Do not declare.
5420         [__ASSUME_32BITUIDS]: Make code unconditional.
5421         [!__ASSUME_32BITUIDS]: Remove conditional code.
5422         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5423         <kernel-features.h>.
5424         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5425         unconditional.
5426         (__setresuid): Do not declare.
5427         [__ASSUME_32BITUIDS]: Make code unconditional.
5428         [!__ASSUME_32BITUIDS]: Remove conditional code.
5429         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5430         <kernel-features.h>.
5431         [__ASSUME_32BITUIDS]: Make code unconditional.
5432         [!__ASSUME_32BITUIDS]: Remove conditional code.
5433         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5434         <kernel-features.h>.
5435         [__ASSUME_32BITUIDS]: Make code unconditional.
5436         [!__ASSUME_32BITUIDS]: Remove conditional code.
5437
5438 2012-05-25  Richard Henderson  <rth@twiddle.net>
5439
5440         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5441         dl_hwcap to ifunc resolver.
5442         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5443         elf_ifunc_invoke.
5444         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5445         dl_hwcap to ifunc resolver.
5446         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5447
5448 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5449
5450         [BZ #14153]
5451         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5452         for |x| <= 2**-26, not 2**-57.
5453         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5454         exception.
5455
5456 2012-05-24  Jeff Law  <law@redhat.com>
5457
5458         * stdio-common/Makefile (tests): Add bug25.
5459         * stdio-common/bug25.c: New test.
5460
5461 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5462
5463         [BZ #13576]
5464         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5465         multiple of MALLOC_ALIGNMENT in size.
5466         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5467
5468 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5469
5470         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5471         Require >= 256.
5472         (FILENAME_MAX): Use macro-int-constant.
5473         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5474         (_IOFBF): Use macro-int-constant.
5475         (_IOLBF): Likewise.
5476         (_IONBF): Likewise.
5477         (SEEK_CUR): Likewise.
5478         (SEEK_END): Likewise.
5479         (SEEK_SET): Likewise.
5480         (TMP_MAX): Likewise.
5481         (EOF): Use macro-int-constant.  Require < 0.
5482         (NULL): Use macro-constant.  Require == 0.
5483         (stdin): Require type to be FILE *.
5484         (stdout): Likewise.
5485         (stderr): Likewise.
5486         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5487         macro-int-constant.
5488         (EXIT_SUCCESS): Likewise.
5489         (NULL): Use macro-constant.  Require == 0.
5490         (RAND_MAX): Use macro-int-constant.
5491         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5492         [C99-based standards] (strtof): Require function.
5493         [C99-based standards] (strtold): Likewise.
5494         [C99-based standards] (strtoll): Likewise.
5495         [C99-based standards] (strtoull): Likewise.
5496         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5497         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5498         [ISO || ISO99 || ISO11] (math.h): Likewise.
5499         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5500         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5501         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5502
5503 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5504
5505         [BZ #14132]
5506         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5507         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5508         * intl/dgettext.c (DCGETTEXT): Likewise.
5509         * intl/gettext.c (DCGETTEXT): Likewise.
5510         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5511         * posix/regex_internal.h (gettext): Likewise.
5512         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5513         Remove declaration.
5514         * include/argz.h (__argz_count_internal)
5515         (__argz_stringify_internal): Remove declaration.
5516         (__argz_count, __argz_stringify): Declare hidden proto.
5517         * intl/dcgettext.c: Remove use of INTDEF.
5518         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5519         * string/argz-stringify.c: Likewise.
5520         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5521         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5522         Declare hidden proto.
5523         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5524         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5525         Declare hidden proto.
5526         * include/stdio.h (__asprintf_internal): Don't declare.
5527         (__asprintf): Don't define as macro.  Declare hidden proto.
5528         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5529         (__fsetlocking): Declare hidden proto.
5530         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5531         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5532         hidden proto.
5533         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5534         (_IO_setlinebuf): Remove use of INTUSE.
5535         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5536         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5537         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5538         Remove declaration.
5539         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5540         (_IO_do_flush): Remove use of INTUSE.
5541         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5542         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5543         (_IO_adjust_column, _IO_least_wmarker)
5544         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5545         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5546         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5547         (_IO_default_doallocate, _IO_wdefault_doallocate)
5548         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5549         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5550         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5551         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5552         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5553         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5554         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5555         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5556         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5557         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5558         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5559         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5560         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5561         proto.
5562         (_IO_flush_all_internal, _IO_adjust_column_internal)
5563         (_IO_default_uflow_internal, _IO_default_finish_internal)
5564         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5565         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5566         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5567         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5568         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5569         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5570         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5571         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5572         (_IO_file_close_internal, _IO_file_close_it_internal)
5573         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5574         (_IO_file_init_internal, _IO_file_attach_internal)
5575         (_IO_file_fopen_internal, _IO_file_read_internal)
5576         (_IO_file_sync_internal, _IO_file_seek_internal)
5577         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5578         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5579         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5580         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5581         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5582         (_IO_list_all_internal, _IO_link_in_internal)
5583         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5584         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5585         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5586         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5587         (_IO_do_write_internal, _IO_padn_internal)
5588         (_IO_getline_info_internal, _IO_getline_internal)
5589         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5590         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5591         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5592         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5593         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5594         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5595         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5596         with libc_hidden_ver, remove use of INTUSE.
5597         * libio/genops.c: Likewise.
5598         * libio/freopen.c: Likewise.
5599         * libio/freopen64.c: Likewise.
5600         * libio/iofclose.c: Likewise.
5601         * libio/iofdopen.c: Likewise.
5602         * libio/iofflush.c: Likewise.
5603         * libio/iofflush_u.c: Likewise.
5604         * libio/iofgets.c: Likewise.
5605         * libio/iofgets_u.c: Likewise.
5606         * libio/iofopen.c: Likewise.
5607         * libio/iofopncook.c: Likewise.
5608         * libio/iofread.c: Likewise.
5609         * libio/iofread_u.c: Likewise.
5610         * libio/ioftell.c: Likewise.
5611         * libio/iofwrite.c: Likewise.
5612         * libio/iogetline.c: Likewise.
5613         * libio/iogets.c: Likewise.
5614         * libio/iogetwline.c: Likewise.
5615         * libio/iopadn.c: Likewise.
5616         * libio/iopopen.c: Likewise.
5617         * libio/ioseekoff.c: Likewise.
5618         * libio/ioseekpos.c: Likewise.
5619         * libio/iosetbuffer.c: Likewise.
5620         * libio/iosetvbuf.c: Likewise.
5621         * libio/ioungetc.c: Likewise.
5622         * libio/ioungetwc.c: Likewise.
5623         * libio/iovdprintf.c: Likewise.
5624         * libio/iovsprintf.c: Likewise.
5625         * libio/iovsscanf.c: Likewise.
5626         * libio/memstream.c: Likewise.
5627         * libio/obprintf.c: Likewise.
5628         * libio/oldfileops.c: Likewise.
5629         * libio/oldiofclose.c: Likewise.
5630         * libio/oldiofdopen.c: Likewise.
5631         * libio/oldiofopen.c: Likewise.
5632         * libio/oldiopopen.c: Likewise.
5633         * libio/oldstdfiles.c: Likewise.
5634         * libio/putc.c: Likewise.
5635         * libio/setbuf.c: Likewise.
5636         * libio/setlinebuf.c: Likewise.
5637         * libio/stdfiles.c: Likewise.
5638         * libio/strops.c: Likewise.
5639         * libio/vasprintf.c: Likewise.
5640         * libio/vscanf.c: Likewise.
5641         * libio/vsnprintf.c: Likewise.
5642         * libio/vswprintf.c: Likewise.
5643         * libio/wfiledoalloc.c: Likewise.
5644         * libio/wfileops.c: Likewise.
5645         * libio/wgenops.c: Likewise.
5646         * libio/wmemstream.c: Likewise.
5647         * libio/wstrops.c: Likewise.
5648         * libio/__fpurge.c: Likewise.
5649         * libio/__fsetlocking.c: Likewise.
5650         * assert/assert.c: Likewise.
5651         * debug/fgets_chk.c: Likewise.
5652         * debug/fgets_u_chk.c: Likewise.
5653         * debug/fread_chk.c: Likewise.
5654         * debug/fread_u_chk.c: Likewise.
5655         * debug/gets_chk.c: Likewise.
5656         * debug/obprintf_chk.c: Likewise.
5657         * debug/vasprintf_chk.c: Likewise.
5658         * debug/vdprintf_chk.c: Likewise.
5659         * debug/vsnprintf_chk.c: Likewise.
5660         * debug/vsprintf_chk.c: Likewise.
5661         * malloc/mtrace.c: Likewise.
5662         * misc/error.c: Likewise.
5663         * misc/syslog.c: Likewise.
5664         * stdio-common/asprintf.c: Likewise.
5665         * stdio-common/fxprintf.c: Likewise.
5666         * stdio-common/getw.c: Likewise.
5667         * stdio-common/isoc99_fscanf.c: Likewise.
5668         * stdio-common/isoc99_scanf.c: Likewise.
5669         * stdio-common/isoc99_vfscanf.c: Likewise.
5670         * stdio-common/isoc99_vscanf.c: Likewise.
5671         * stdio-common/isoc99_vsscanf.c: Likewise.
5672         * stdio-common/printf-prs.c: Likewise.
5673         * stdio-common/printf_fp.c: Likewise.
5674         * stdio-common/printf_fphex.c: Likewise.
5675         * stdio-common/printf_size.c: Likewise.
5676         * stdio-common/putw.c: Likewise.
5677         * stdio-common/scanf.c: Likewise.
5678         * stdio-common/sprintf.c: Likewise.
5679         * stdio-common/tmpfile.c: Likewise.
5680         * stdio-common/vfprintf.c: Likewise.
5681         * stdio-common/vfscanf.c: Likewise.
5682         * stdlib/strfmon_l.c: Likewise.
5683         * sunrpc/openchild.c: Likewise.
5684         * sunrpc/xdr_stdio.c: Likewise.
5685         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5686         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5687
5688 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5689
5690         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5691
5692         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5693         in the third column, to generate for the shared library an IFUNC
5694         that uses _dl_vdso_vsym.
5695         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5696         * Makeconfig (object-suffixes-noshared): New variable.
5697
5698         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5699         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5700         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5701         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5702
5703         [BZ #14132]
5704         * include/sys/time.h (__gettimeofday): Remove macro.
5705         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5706         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5707         Remove INTDEF.
5708         (__gettimeofday): Add libc_hidden_def.
5709         (gettimeofday): Add libc_hidden_weak.
5710         * sysdeps/mach/gettimeofday.c: Likewise.
5711         * sysdeps/posix/gettimeofday.c: Likewise.
5712         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5713         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5714         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5715         (__gettimeofday_internal): Remove strong_alias.
5716         (__gettimeofday): Add libc_hidden_def.
5717         (gettimeofday): Add libc_hidden_weak.
5718         * sysdeps/unix/syscalls.list (gettimeofday):
5719         Remove __gettimeofday_internal alias.
5720
5721 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5722             H.J. Lu  <hongjiu.lu@intel.com>
5723
5724         [BZ #12495]
5725         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5726         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5727         (largebin_index_32_big): New.
5728         (largebin_index): Use it for 16-byte alignment.
5729         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5730         correction with front_misalign.
5731
5732 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5733
5734         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5735         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5736         Likewise.
5737         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5738         Likewise.
5739         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5740         Likewise.
5741         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5742         Likewise.
5743         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5744         Likewise.
5745         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5746         Likewise.
5747         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5748         Likewise.
5749         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5750         Likewise.
5751         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5752         Likewise.
5753         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5754         Likewise.
5755         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5756         Likewise.
5757         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5758         Likewise.
5759
5760         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5761         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5762
5763 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5764
5765         [BZ #10846]
5766         [BZ #14036]
5767         * math/libm-test.inc (exp_test): Add test from bug 14036.
5768         (pow_test): Add test from bug 10846.
5769
5770         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5771         and other flags.
5772         (special_function): Do not include flags in test name.
5773         (parse_args): Likewise.
5774         * sysdeps/i386/fpu/libm-test-ulps: Update.
5775         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5776         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5777         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5779
5780         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5781         exceptions.
5782         * math/libm-test.inc ("Philosophy"): Update comment about
5783         exception testing.
5784         (UNDERFLOW_EXCEPTION): New macro.
5785         (UNDERFLOW_EXCEPTION_OK): Likewise.
5786         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5787         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5788         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5789         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5790         (INVALID_EXCEPTION_OK): Update value.
5791         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5792         (OVERFLOW_EXCEPTION_OK): Likewise.
5793         (IGNORE_ZERO_INF_SIGN): Likewise.
5794         (test_exceptions): Handle underflow exceptions.
5795         (acos_test): Update for underflow exception expectations.
5796         (cexp_test): Likewise.
5797         (clog_test): Likewise.
5798         (clog10_test): Likewise.
5799         (csqrt_test): Likewise.
5800         (ctan_test): Likewise.
5801         (ctanh_test): Likewise.
5802         (exp_test): Likewise.
5803         (exp10_test): Likewise.
5804         (exp2_test): Likewise.
5805         (expm1_test): Likewise.
5806         (fma_test): Likewise.
5807         (j0_test): Likewise.
5808         (jn_test): Likewise.
5809         (nexttoward_test): Likewise.
5810         (pow_test): Likewise.
5811         (scalbn_test): Likewise.
5812         (scalbln_test): Likewise.
5813         (tan_test): Likewise.
5814         (y1_test): Likewise.
5815         * sysdeps/i386/fpu/libm-test-ulps: Update.
5816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5817
5818 2012-05-23  David S. Miller  <davem@davemloft.net>
5819
5820         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5821         (__libc_sigaction): Remove unused local variables.
5822
5823 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5824
5825         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5826
5827 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5828
5829         mktime: avoid signed integer overflow
5830         * time/mktime.c (__mktime_internal): Do not mishandle the case
5831         where diff == INT_MIN.
5832
5833         mktime: simplify computation of average
5834         * time/mktime.c (ranged_convert): Use new time_t_avg function
5835         instead of rolling our own (probably-slower) code.
5836
5837         mktime: do not assume signed right shift propagates sign bit
5838         * time/mktime.c (isdst_differ): New static function.
5839         (__mktime_internal): No need to normalize tm_isdst now.
5840         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5841         tm_isdst values.
5842
5843         mktime: merge another wrapv change from gnulib
5844         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5845         from some compilers.
5846
5847         mktime: remove incorrect attempt at unusual arithmetics
5848         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5849         The code didn't really work on such machines anyway.
5850         (TYPE_MINIMUM): Assume two's complement.
5851         (twos_complement_arithmetic): Verify that long_int and time_t
5852         are two's complement (or unsigned, in the latter case).
5853
5854         mktime: check signed shifts on long_int and time_t, too
5855         * time/mktime.c (SHR): Check that shifts work as desired
5856         on the types long_int and time_t too, as SHR is used on
5857         such types.
5858
5859         mktime: do not assume 'long' is wide enough
5860         * time/mktime.c (verify): Move decl up.
5861         (long_int): New type.
5862         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5863         to remove assumption in the code that 'long' is wide enough to
5864         store year values.  This assumption is not true on x32 and on
5865         some non-glibc platforms.
5866
5867         mktime: merge wrapv change from gnulib
5868         * time/mktime.c (WRAPV): New macro.
5869         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5870         (guess_time_tm, __mktime_internal): Do not assume that signed
5871         integer overflow wraps around; modern compilers generate code
5872         where this assumption is no longer valid.
5873
5874 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5875
5876         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5877         Replace "jmp L(pseudo_end)" with "ret".
5878         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5879         Likewise.
5880
5881 2012-05-23  Andreas Jaeger  <aj@suse.de>
5882
5883         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5884         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5885
5886 2012-05-23  Andreas Jaeger  <aj@suse.de>
5887             Maximilian Attems  <max@stro.at>
5888
5889         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5890         New macros.
5891
5892 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5893
5894         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5895         code so that pseudo_end is just ret and the stack pointer is
5896         correct also for static library in error case.
5897
5898 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5899
5900         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5901         move to syscalls.list.
5902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5906
5907         * manual/install.texi (Running make install): Do not mention Linux
5908         kernel version for which pt_chown is not needed.
5909         (Linux): Do not mention problems with nscd with 2.0 kernels.
5910         * INSTALL: Regenerated.
5911
5912 2012-05-23  Andreas Jaeger  <aj@suse.de>
5913
5914         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5915         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5916         macro.
5917         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5918         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5919         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5920         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5921         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5922         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5923         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5924         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5925         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5926         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5927         * sysdeps/unix/sysv/linux/bits/in.h
5928         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5929
5930 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5931
5932         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5933         (PREPARE_VERSION): Just use assert instead, it will be elided
5934         under [NDEBUG] anyway.
5935
5936 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5937
5938         * sysdeps/unix/sysv/linux/Makefile: Include
5939         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5940         (sysdep_routines): Remove sysctl.
5941         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5942         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5943         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5944         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5945         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5946
5947 2012-05-22  Andreas Jaeger  <aj@suse.de>
5948
5949         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5950         that pseudo_end is just ret and the stack pointer is correct also
5951         for static library in error case.
5952
5953 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5954
5955         [BZ #14122]
5956         * nss/nsswitch.c (defconfig_entries): New variable.
5957         (__nss_database_lookup): Don't leak defconfig entries.
5958         (nss_parse_service_list): Don't leak on error paths.
5959         (free_database_entries): New function.
5960         (free_defconfig): New function.
5961         (free_mem): Move common code to free_database_entries.
5962
5963 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5964
5965         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5966         Add arch_prctl.
5967         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5968
5969         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5970         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5971         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5972         New macro.
5973         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5974         (INTERNAL_SYSCALL_TYPES): Likewise.
5975         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5976         (LOAD_REGS_TYPES_[1-6]): Likewise.
5977         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5978         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5979
5980 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5981
5982         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5983         copysignl for GLIBC_2_0.
5984         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5985         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5986         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5987         logbl for GLIBC_2_0.
5988         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5989         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5990
5991 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5992
5993         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5994         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5995
5996         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5997         Use "neg %eax".
5998
5999         * time/mktime.c: Update copyright years.
6000
6001 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6002
6003         mktime: merge comment-quoting-style change from gnulib
6004         * time/mktime.c: Quote 'like this' in comments.
6005         The GNU coding standards suggest that we no longer quote `like this',
6006         as "`" and "'" are typically rendered asymmetrically nowadays.
6007         The typical gnulib style is to quote 'like this' when quoting
6008         code, and "like this" when quoting English.
6009
6010         * time/mktime.c (compile-command): Add "-I.".
6011
6012         mktime: merge mktime-internal.h change from gnulib
6013         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6014
6015         mktime: merge time_r change from gnulib
6016         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6017
6018         mktime: merge DEBUG change from gnulib
6019         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6020         case system <time.h> has a #define.
6021
6022         mktime: merge <sys/types.h> change from gnulib
6023         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6024         since <time.t> is now guaranteed to define time_t.
6025
6026         mktime: merge HAVE_CONFIG_H change from gnulib
6027         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6028
6029 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6030
6031         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6032         Use "neg %eax".
6033
6034         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6035         __rlim_t cast.
6036         (struct rusage): Use anonymous union to pad each field to
6037         __syscall_slong_t.
6038
6039 2012-05-21  David S. Miller  <davem@davemloft.net>
6040
6041         * Makefules (o-iterator): Remove .s cases.
6042         (compile-command.s): Delete.
6043         (COMPILE.s): Delete.
6044         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6045
6046 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6047
6048         * configure.in (libc_cv_predef_stack_protector): Only consider
6049         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6050         * configure: Regenerated.
6051
6052 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6053
6054         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6055         New macro.  Use R*LP on int and pointer.
6056         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6057         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6058         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6059         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6060
6061         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6062         [__WORDSIZE_TIME64_COMPAT32] instead of
6063         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6064         (struct utmp): Likewise.
6065         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6066         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6067         Renamed to ...
6068         (__WORDSIZE_TIME64_COMPAT32): This.
6069         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6070         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6071         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6072         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6073         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6074         (__WORDSIZE_TIME64_COMPAT32): New macro.
6075
6076 2012-05-21  Andreas Jaeger  <aj@suse.de>
6077
6078         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6079         only if [SHARED]. Add prototype for __wcschr_ia32.
6080
6081 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6082
6083         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6084         of %rbp unmolested in the jmp_buf while mangling the low bits.
6085         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6086         unmolested high bits of %rbp while demangling the low bits.
6087         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6088
6089 2012-05-21  Andreas Jaeger  <aj@suse.de>
6090
6091         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6092         * sunrpc/svc_simple.c: Use it for registerrpc.
6093         * sunrpc/xcrypt.c: Use it for passwd2des.
6094
6095         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6096
6097 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6098
6099         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6100         Don't define if [__SYSCALL_WORDSIZE != 32].
6101         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6102         New macro.
6103
6104 2012-05-21  Bruno Haible  <bruno@clisp.org>
6105             Andreas Jaeger  <aj@suse.de>
6106
6107         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6108         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6109         inptr and inend for must_buffer_ch.
6110         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6111         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6112         * stdio-common/Makefile (tests): Remove bug15.
6113         (bug15-ENV): Remove macro.
6114         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6115         anymore.
6116
6117 2012-05-19  Andreas Jaeger  <aj@suse.de>
6118             Roland McGrath  <roland@hack.frob.com>
6119
6120         * manual/contrib.texi: Completely rewritten. It contains now an
6121         alphabetical list of contributors and their contributions.
6122
6123 2012-05-21  Richard Henderson  <rth@twiddle.net>
6124
6125         * misc/getauxval.c (__getauxval): Use unsigned long int.
6126         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6127         (getauxval): Use unsigned long int.
6128
6129 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6130
6131         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6132
6133 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6134
6135         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6136         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6137         __alignof__ (long double).
6138
6139 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6140
6141         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6142
6143 2012-05-20  Richard Henderson  <rth@twiddle.net>
6144
6145         * misc/getauxval.c: New file.
6146         * misc/sys/auxv.h: New file.
6147         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6148         (routines): Add getauxval.
6149         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6150         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6151         * elf/dl-sysdep.c (_dl_auxv): Remove.
6152         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6153         * elf/dl-support.c (_dl_auxv): New variable.
6154         (_dl_aux_init): Initialize it.
6155         * manual/startup.texi (Auxiliary Vector): New node.
6156         * sysdeps/generic/bits/hwcap.h: New file.
6157         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6158         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6159         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6160         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6161         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6162         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6164         Update.
6165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6166         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6168         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6170         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6173
6174 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6175
6176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6177
6178 2012-05-19  David S. Miller  <davem@davemloft.net>
6179
6180         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6181
6182 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6183
6184         [BZ #14123]
6185         * math/s_ccosh.c: Include <float.h>
6186         (__ccosh): Avoid internal overflow calculating sinh and cosh
6187         values before multiplying by sin and cos values.
6188         * math/s_ccoshf.c: Likewise.
6189         * math/s_ccoshl.c: Likewise.
6190         * math/s_csin.c: Likewise.
6191         * math/s_csinf.c: Likewise.
6192         * math/s_csinl.c: Likewise.
6193         * math/s_csinh.c: Likewise.
6194         * math/s_csinhf.c: Likewise.
6195         * math/s_csinhl.c: Likewise.
6196         * math/libm-test.inc (ccos_test): Add more tests.
6197         (ccosh_test): Likewise.
6198         (csin_test): Likewise.
6199         (csinh_test): Likewise.
6200         * sysdeps/i386/fpu/libm-test-ulps: Update.
6201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6202
6203 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6204
6205         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6206         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6207
6208         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6209
6210 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6211
6212         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6213         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6214         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6215         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6216         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6217         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6218         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6219         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6220         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6221         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6222         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6223         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6224         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6225         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6226         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6227         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6228         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6229         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6230         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6231         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6232         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6233         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6234         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6235         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6236         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6237         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6238         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6239         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6240         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6241         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6242         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6243
6244 2012-05-18  Andreas Jaeger  <aj@suse.de>
6245
6246         * csu/.gitignore: Delete.
6247
6248 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6249
6250         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6251         (timex): Use __syscall_slong_t.
6252
6253 2012-05-18  Andreas Jaeger  <aj@suse.de>
6254             Carlos O'Donell  <carlos_odonell@mentor.com>
6255
6256         * manual/install.texi (Configuring and compiling): Update
6257         description about files modified in the source directory.
6258         * INSTALL: Regenerated.
6259
6260 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6261
6262         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6263         value.  Use "or" to set return value to -1.
6264         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6265         negate return value.
6266
6267 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6268
6269         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6270         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6271         failure if the compiler has Graphite support disabled.
6272         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6273         Likewise.
6274         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6275         CFLAGS-memmove.c): Likewise.
6276         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6277         Likewise.
6278
6279 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6280
6281         * sysdeps/x86_64/x32/_itoa.h: New file.
6282
6283         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6284         getdents system call only if kernel and user dirents have the
6285         same d_ino and d_off.
6286
6287         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6288         LLONG_MAX != LONG_MAX.
6289         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6290         (_fitoa_word): Likewise.
6291
6292         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6293         years.
6294         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6295         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6296         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6297
6298         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6299         include <bits/wordsize.h>.  Check __x86_64__ instead of
6300         __WORDSIZE.
6301         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6302         if __x86_64__ is defined.  Use anonymous union on fpstate.
6303
6304         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6305         anonymous union.
6306
6307 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6308
6309         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6310         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6311         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6312         Refer to _rtld_local_ro instead of _rtld_global_ro.
6313         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6314         Likewise.
6315         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6316         Likewise.
6317         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6318         Likewise.
6319         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6320         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6321         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6322
6323         * sysdeps/powerpc/powerpc32/dl-machine.c
6324         (__elf_machine_runtime_setup) [PROF]: Don't reference
6325         _dl_prof_resolve.
6326
6327 2012-05-18  Andreas Jaeger  <aj@suse.de>
6328
6329         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6330         function only available for GCCs before 3.4 since GCC 3.4
6331         introduced a builtin.
6332         (lrint): Likewise.
6333         (llrintf): Likewise.
6334         (llrint): Likewise.
6335         (fmaxf): Likewise.
6336         (fmax): Likewise.
6337         (fminf): Likewise.
6338         (fmin): Likewise.
6339         (rint): Likewise.
6340         (rintf): Likewise.
6341         (nearbyint): Likewise.
6342         (nearbyintf): Likewise.
6343         (ceil): Likewise.
6344         (ceilf): Likewise.
6345         (floor): Likewise.
6346         (floorf): Likewise.
6347
6348 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6349
6350         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6351         on both fields and cast pointer to __syscall_ulong_t.
6352
6353         * bits/types.h (__fsword_t): New type.
6354         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6355         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6356         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6357         (__FSWORD_T_TYPE): Likewise.
6358         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6359         (__FSWORD_T_TYPE): Likewise.
6360         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6361         (__FSWORD_T_TYPE): Likewise.
6362         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6363         (__FSWORD_T_TYPE): Likewise.
6364         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6365         __SWORD_TYPE with __fsword_t.
6366         (statfs64): Likewise.
6367
6368 2012-05-17  David S. Miller  <davem@davemloft.net>
6369
6370         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6371
6372 2012-05-17  Andreas Jaeger  <aj@suse.de>
6373
6374         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6375         warning.
6376
6377 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6378
6379         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6380
6381 2012-05-17  Andreas Jaeger  <aj@suse.de>
6382
6383         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6384         when it is used.
6385
6386 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6387
6388         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6389
6390 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6393         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6394
6395 2012-05-17  Andreas Jaeger  <aj@suse.de>
6396             Carlos O'Donell  <carlos_odonell@mentor.com>
6397
6398         [BZ #14059]
6399         * sysdeps/x86_64/multiarch/init-arch.h
6400         (bit_YMM_Usable): Rename to...
6401         (bit_AVX_Usable): ... this.
6402         (bit_FMA4_Usable): New macro.
6403         (bit_XMM_state): New macro.
6404         (bit_YMM_state): New macro.
6405         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6406         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6407         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6408         (CPUID_OSXSAVE): New macro.
6409         (CPUID_AVX): New macro.
6410         (CPUID_FMA4): New macro.
6411         (index_YMM_Usable): Rename to...
6412         (index_AVX_Usable): ... this.
6413         (HAS_AVX): Use HAS_ARCH_FEATURE.
6414         (HAS_FMA4): Likewise.
6415         (HAS_YMM_USABLE): Remove.
6416         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6417         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6418         are present.
6419         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6420         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6421         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6422         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6423         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6424
6425 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6426
6427         * math/libm-test.c: Support platforms without multiple rounding modes.
6428         * math/bug-nextafter.c: Support platforms without FP exceptions.
6429         * math/bug-nexttoward.c: Likewise.
6430         * math/test-fenv.c: Likewise.
6431         * math/test-misc.c: Likewise.
6432         * stdlib/bug-getcontext.c: Likewise.
6433
6434 2012-05-17  Andreas Jaeger  <aj@suse.de>
6435
6436         * manual/examples/search.c (critter_cmp): Change signature to
6437         avoid warnings.
6438         * manual/string.texi (Collation Functions): Likewise.
6439
6440 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6441
6442         * bits/types.h: Fold copyright years.
6443         * bits/typesizes.h: Likewise.
6444         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6445         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6446         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6447         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6448         * time/time.h: Likewise.
6449
6450 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6451
6452         [BZ #208]
6453         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6454         in instead of returning them.  Return void.
6455         (__libc_mallinfo): Accumulate over all arenas.
6456         (__malloc_stats): Adjust for change in int_mallinfo interface.
6457
6458 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6459
6460         [BZ #10375]
6461         * configure.in (NM): Add AC_CHECK_TOOL for it.
6462         (libc_extra_cflags): New substituted variable.
6463         Check for -fstack-protector being used implicitly.
6464         * configure: Regenerated.
6465         * config.make.in (config-extra-cflags): New variable,
6466         gets @libc_extra_cflags@.
6467         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6468
6469         [BZ #10375]
6470         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6471         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6472         * configure: Regenerated.
6473         * config.make.in (CPPUNDEFS): New substituted variable.
6474         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6475         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6476         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6477
6478 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6479
6480         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6481         (mq_attr): Use __syscall_slong_t.
6482
6483 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6484
6485         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6486         Check __x86_64__ instead of __WORDSIZE.
6487         (_STAT_VER_LINUX): Likewise.
6488         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6489         __syscall_ulong_t and __syscall_slong_t.
6490         (stat64): Likewise.
6491
6492 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6493
6494         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6495
6496 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6497
6498         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6499
6500 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6501
6502         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6503         __syscall_ulong_t.
6504
6505         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6506         include <bits/wordsize.h>.  Check __x86_64__ instead of
6507         __WORDSIZE.
6508         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6509         defined.
6510         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6511
6512         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6513         include <bits/wordsize.h>.  Check __x86_64__ instead of
6514         __WORDSIZE.
6515         (user_regs_struct): Use "__extension__ unsigned long long"
6516         instead of "unsigned long" if __x86_64__ is defined.
6517         (user): Likewise.  Pad after pointer field if __ILP32__ is
6518         defined.
6519
6520 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6521
6522         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6523         versions 5 to 9.
6524         * configure: Regenerated.
6525         * manual/install.texi (texinfo): Increase version requirement to
6526         4.5 or later.
6527         * INSTALL: Regenerated.
6528
6529         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6530
6531 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6532
6533         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6534
6535         * sysdeps/x86_64/x32/ffs.c: New file.
6536
6537         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6538         __syscall_ulong_t.
6539         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6540         defined.  Use __syscall_ulong_t.
6541         (shminfo): Use __syscall_ulong_t.
6542         (shm_info): Likewise.
6543
6544         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6545         __syscall_ulong_t.
6546
6547         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6548         <bits/wordsize.h>.
6549         (msgqnum_t): Use __syscall_ulong_t.
6550         (msglen_t): Likewise.
6551         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6552         __syscall_ulong_t.
6553
6554         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6555         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6556
6557         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6558
6559         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6560         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6561
6562         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6563         __syscall_slong_t.
6564
6565         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6566         include <bits/wordsize.h>.  Check __x86_64__ instead of
6567         __WORDSIZE.
6568
6569         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6570         "unsigned long long int" if __x86_64__ is defined.
6571         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6572
6573         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6574         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6575         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6576
6577         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6578         <stdint.h>.
6579         (GET_PC): Cast to uintptr_t first.
6580         (GET_FRAME): Likewise.
6581         (GET_STACK): Likewise.
6582
6583         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6584         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6585         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6586         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6587         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6588         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6589         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6590         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6591         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6592         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6593         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6594         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6595         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6596         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6597         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6598         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6599         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6600         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6601         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6602         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6603         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6604         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6605         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6606         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6607         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6608         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6609         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6610         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6611         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6612
6613 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6614
6615         * Makerules (+depfiles): Also collect depfiles from .oS in
6616         $(extra-objs).
6617         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6618         .oS, $(libnldbl-routines)).
6619
6620         * Makerules (native-compile-mkdep-flags): Define.
6621         * sunrpc/Makefile (extra-objs): Add $(addprefix
6622         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6623         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6624         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6625         calling $(make-target-directory).
6626
6627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         * bits/types.h (__snseconds_t): Removed.
6630         * time/time.h (struct timespec): Replace __snseconds_t with
6631         __syscall_slong_t.
6632         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6633         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6634         Likewise.
6635         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6636         (__SNSECONDS_T_TYPE): Likewise.
6637         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6638         (__SNSECONDS_T_TYPE): Likewise.
6639         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6640         (__SNSECONDS_T_TYPE): Likewise.
6641
6642 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6643
6644         * sysdeps/mach/hurd/bits/typesizes.h
6645         (__SYSCALL_SLONG_TYPE): New macro.
6646         (__SYSCALL_ULONG_TYPE): Likewise.
6647
6648 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6649
6650         * bits/types.h (__syscall_slong_t): New type.
6651         (__syscall_ulong_t): Likewise.
6652
6653         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6654         (__SYSCALL_ULONG_TYPE): Likewise.
6655         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6656         (__SYSCALL_SLONG_TYPE): Likewise.
6657         (__SYSCALL_ULONG_TYPE): Likewise.
6658         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6659         (__SYSCALL_SLONG_TYPE): Likewise.
6660         (__SYSCALL_ULONG_TYPE): Likewise.
6661         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6662         (__SYSCALL_SLONG_TYPE): Likewise.
6663         (__SYSCALL_ULONG_TYPE): Likewise.
6664
6665 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6666
6667         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6668         Add sigaltstack-offsets.sym.
6669         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6670         <sigaltstack-offsets.h>.
6671         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6672         longjmp_msg pointer.
6673         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6674         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6675         signal stack.
6676         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6677
6678 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6679
6680         * elf/stackguard-macros.h: Remove file.
6681         * sysdeps/generic/stackguard-macros.h: New file.
6682         * sysdeps/i386/stackguard-macros.h: Likewise.
6683         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6684         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6685         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6686         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6687         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6688         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6689         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6690         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6691         <elf/stackguard-macros.h>.
6692
6693         [BZ #14109]
6694         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6695         __aligned__ in attribute.
6696         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6697         (gregset_t): Likewise.
6698
6699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6700
6701         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6702         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6703         * sysdeps/x86_64/x32/Implies-after: New file.
6704
6705 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6706
6707         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6708         and access return value for _dl_profile_fixup.  Use R10_LP to
6709         load frame size.
6710
6711 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6712
6713         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6714
6715 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6716
6717         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6718         * sysdeps/x86_64/x32/sysdep.h: New file.
6719
6720 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6721
6722         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6723         * sysdeps/x86_64/setjmp.S: Likewise.
6724
6725 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6726
6727         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6728         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6729         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6730         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6731         remove unused global constant.
6732
6733 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6734
6735         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6736         include of <not-cancel.h>.
6737
6738 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6739
6740         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6741
6742 2012-05-15  Jeff Law  <law@redhat.com>
6743             Andreas Jaeger  <aj@suse.de>
6744
6745         [BZ #13594]
6746         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6747         out from...
6748         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6749         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6750         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6751         code changing __hst_map_handle.map.
6752
6753 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6754
6755         * configure.in (sysnames): Look for Implies-before and Implies-after
6756         files.
6757         * configure: Regenerated.
6758
6759 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6760
6761         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6762         8-byte data alignment with LP_SIZE alignment.
6763
6764 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6765
6766         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6767         into R10_LP.
6768
6769 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6770
6771         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6772
6773 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6774
6775         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6776         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6777         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6778         Likewise.
6779         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6780
6781 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6782
6783         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6784         (stackinfo_sub_sp): Likewise.
6785
6786 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6787
6788         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6789         RAX_LP.
6790
6791 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6794         into R*_LP.
6795
6796 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6797
6798         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6799         sizes into R*_LP.
6800
6801 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6802
6803         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6804
6805 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6806
6807         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6808         into R11_LP and load __x86_64_shared_cache_size_half into
6809         R8_LP.
6810
6811 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6812
6813         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6814         R8_LP.
6815
6816 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6817
6818         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6819         logb for POWER7.
6820         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6821         logbf for POWER7.
6822         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6823         logbl for POWER7.
6824         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6825         powerpc32/power7/fpu/s_logb.c via #include.
6826         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6827         powerpc32/power7/fpu/s_logbf.c via #include.
6828         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6829         powerpc32/power7/fpu/s_logbl.c via #include.
6830
6831 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6832
6833         * README.libm: Remove file.
6834
6835 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6836
6837         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6838         count for x32.  Use R*_LP and omit operand-size suffix.
6839
6840 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6841
6842         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6843         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6844         * sysdeps/x86_64/x32/shlib-versions: New file.
6845
6846 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6847
6848         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6849         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6850         Use _dl_fatal_printf instead.
6851
6852 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6853
6854         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6855         set if not set by the user.  Do not allow for being unset.
6856         * sysdeps/unix/sysv/linux/configure: Regenerated.
6857
6858 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6859
6860         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6861         the `q' suffix from lea and replace .quad with ASM_ADDR.
6862
6863 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6864
6865         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6866         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6867         instead of $17.
6868         (PTR_DEMANGLE): Likewise.
6869
6870 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6871
6872         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6873         (LP_OP): Likewise.
6874         (ASM_ADDR): Likewise.
6875         (RAX_LP): Likewise.
6876         (RBP_LP): Likewise.
6877         (RBX_LP): Likewise.
6878         (RCX_LP): Likewise.
6879         (RDI_LP): Likewise.
6880         (RSI_LP): Likewise.
6881         (RSP_LP): Likewise.
6882         (R8_LP): Likewise.
6883         (R9_LP): Likewise.
6884         (R10_LP): Likewise.
6885         (R10_LP): Likewise.
6886         (R11_LP): Likewise.
6887         (R12_LP): Likewise.
6888         (R13_LP): Likewise.
6889         (R14_LP): Likewise.
6890         (R15_LP): Likewise.
6891
6892 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6893
6894         * sysdeps/x86_64/x32/dl-machine.h: New file.
6895
6896 2012-05-14  Andreas Jaeger  <aj@suse.de>
6897
6898         * manual/Makefile (subdir): Remove export of subdir.
6899         (all): Remove target.
6900         (.PHONY): Remove all from list.
6901         (mkinstalldirs): Remove.
6902         (.PHONY): Remove installdirs from list.
6903         ($(inst_infodir)/libc.info): Use make-target-directory.
6904         (installdirs): Remove.
6905         (subdir_%): Remove.
6906         (glibc-targets): Remove.
6907         (lib): Remove.
6908         (stubs): Remove.
6909         ($(objpfx)stubs ../po/manual.pot): Remove.
6910         ($(objpfx)stamp%): Remove.
6911         (make-target-directory): Remove.
6912         (subdir_install): Remove.
6913         (routines): Remove.
6914         (aux): Remove.
6915         (sources): Remove.
6916         (objects): Remove.
6917         (headers): Remove.
6918
6919         [BZ #13750]
6920         * manual/.gitignore: Remove, it's not needed anymore.
6921         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6922         all files in it.
6923         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6924         directory.
6925         (texis): Renamed to $(objpfx)texis.
6926         (texis-path): New, contains path to generated files.
6927         (chapters.%): Use texis-path for complete path, add extra argument
6928         libc-texinfo.sh.
6929         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6930         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6931         (summary,texi, stamp-summary): Use complete path of
6932         files. Generate files in build dir.
6933         (dir-add.texi): Build in build dir.
6934         (libm-err.texi,stamp-libm-err): Likewise.
6935         (version.texi, stamp-version): Likewise.
6936         (.%c.texi): Likewise.
6937         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6938         (mostlyclean): Remove target.
6939         (realclean): Remove target.
6940         (generated): Add new variable with contents from mostlyclean and
6941         realclean, remove entries duplicated in common-mostlyclean, add
6942         stamp-libm-err and stamp-version.
6943         (generated-dirs): Add libc directory.
6944         ($(inst_infodir)/libc.info): Install files from build dir.
6945
6946         * manual/install.texi (Configuring and compiling): Adjust since
6947         the info files are not part of the tar ball anymore.
6948
6949 2012-05-14  Andreas Jaeger  <aj@suse.de>
6950
6951         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6952         variable.
6953
6954 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6955
6956         [BZ #13717]
6957         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6958         to 2.2.0 where earlier.
6959         * sysdeps/unix/sysv/linux/configure: Regenerated.
6960         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6961         Remove conditional code.
6962         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6963         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6964         Remove conditional code.
6965         [!__NR_lchown]: Likewise.
6966         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6967         [__NR_lchown]: Likewise.
6968         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6969         comment referencing __ASSUME_LCHOWN_SYSCALL.
6970         * sysdeps/unix/sysv/linux/i386/sigaction.c
6971         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6972         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6973         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6974         Remove conditional code.
6975         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6976         (__protocol_available): Remove #if 0 code.
6977         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6978         conditional code.
6979         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6980         * sysdeps/unix/sysv/linux/kernel-features.h
6981         (__ASSUME_GETCWD_SYSCALL): Don't define.
6982         (__ASSUME_REALTIME_SIGNALS): Likewise.
6983         (__ASSUME_PREAD_SYSCALL): Likewise.
6984         (__ASSUME_PWRITE_SYSCALL): Likewise.
6985         (__ASSUME_POLL_SYSCALL): Likewise.
6986         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6987         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6988         non-SPARC.
6989         (__ASSUME_SIOCGIFNAME): Don't define.
6990         (__ASSUME_MSG_NOSIGNAL): Likewise.
6991         (__ASSUME_SENDFILE): Define unconditionally.
6992         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6993         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6994         conditional code.
6995         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6996         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6997         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6998         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6999         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7000         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7001         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7003         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7004         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7006         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7007         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7009         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7010         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7012         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7013         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7015         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7016         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7018         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7019         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7021         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7022         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7024         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7025         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7026         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7027         Remove conditional code.
7028         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7029         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7030         Remove conditional code.
7031         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7032         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7033         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7034         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7035         Remove conditional code.
7036         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7037         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7038         Remove conditional code.
7039         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7040         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7041         Remove conditional code.
7042         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7043         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7044         Remove conditional code.
7045         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7046         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7047         Remove conditional code.
7048         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7049         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7050         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7051         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7052         * sysdeps/unix/sysv/linux/sigaction.c
7053         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7054         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7055         * sysdeps/unix/sysv/linux/sigpending.c
7056         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7057         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7058         * sysdeps/unix/sysv/linux/sigprocmask.c
7059         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7060         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7061         * sysdeps/unix/sysv/linux/sigsuspend.c
7062         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7063         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7064         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7065         (__libc_missing_rt_sigs): Remove.
7066         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7067         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7068         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7069         Remove conditional code.
7070         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7071         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7072         return 1.
7073         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7074         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7075         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7076         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7077
7078 2012-05-14  Andreas Jaeger  <aj@suse.de>
7079
7080         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7081         it's not used in glibc.
7082         (__coshm1): Likewise.
7083         (__acosh1p): Likewise.
7084         (__sgn): Likewise.
7085
7086         * manual/string.texi (Copying and Concatenation): Add missing
7087         variable in concat example.
7088         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7089
7090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7091
7092         [BZ #14103]
7093         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7094         __builtin_clzl with __builtin_clzll.
7095
7096 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7097
7098         [BZ #14104]
7099         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7100         libc_freeres_ptr.
7101
7102 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7103
7104         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7105         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7106         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7107         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7108
7109 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7110
7111         * NEWS: Update ia64 info.
7112
7113 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7114
7115         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7116         used as bcopy.
7117
7118 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7119
7120         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7121         * sysdeps/unix/syscalls.list (dup3): Likewise.
7122         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7123         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7124
7125 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7126
7127         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7128         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7129
7130 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7131
7132         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7133         thread pointer.
7134         (TLS_IE): Use mov/add instead of movq/addq to load thread
7135         pointer.
7136         (TLS_GD_PREFIX): New.
7137         (TLS_GD): Use it.
7138
7139 2012-05-11  David S. Miller  <davem@davemloft.net>
7140
7141         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7142         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7143         (_FPU_SETCW): Likewise.
7144
7145 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7146
7147         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7148         is 32-byte aligned.
7149
7150 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7151
7152         [BZ #11837]
7153         * iconvdata/gb18030.c: Update tables.
7154         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7155         characters specially.
7156         (BODY for TO_LOOP): Add encoding of missing ranges.
7157
7158 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7159
7160         [BZ #13673]
7161         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7162         * sysdeps/mach/hurd/dup3.c: Likewise.
7163         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7164         * sysdeps/powerpc/memmove.c:: Likewise.
7165
7166 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7167
7168         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7169         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7170
7171 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7172
7173         * elf/elf.h (R_X86_64_RELATIVE64): New.
7174         (R_X86_64_NUM): Updated.
7175         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7176         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7177         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7178         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7179         tst-quad1pie tst-quad2pie
7180         (modules-names): Add tst-quadmod1 tst-quadmod2.
7181         ($(objpfx)tst-quad1): New dependency.
7182         ($(objpfx)tst-quad2): Likewise.
7183         ($(objpfx)tst-quad1pie): Likewise.
7184         ($(objpfx)tst-quad2pie): Likewise.
7185         * sysdeps/x86_64/tst-quad1.c: New file.
7186         * sysdeps/x86_64/tst-quad1pie.c: New file.
7187         * sysdeps/x86_64/tst-quad2.c: Likewise.
7188         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7189         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7190         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7191         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7192         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7193
7194 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7195
7196         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7197         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7198         * streams/stropts.h (t_scalar_t): Define type.
7199
7200         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7201         (_PATH_PRESERVE): Set to "/var/lib".
7202         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7203
7204         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7205         instead of int.
7206
7207         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7208         if __dir_mkfile succeeded.
7209
7210         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7211         checking for _hurd_dtablesize.  Unlock it right after having
7212         finished _hurd_dtable allocation.
7213
7214 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7215
7216         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7217         * sysdeps/mach/hurd/configure: Regenerated.
7218         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7219         special-casing to...
7220         * sysdeps/gnu/configure.in: ... this new file.
7221         * sysdeps/unix/sysv/linux/configure: Regenerated.
7222         * sysdeps/gnu/configure: New generated file.
7223
7224         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7225         for Linux: use nsec instead of usec, as well as:
7226         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7227         members of type struct timespec.
7228         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7229         New macros.
7230         (struct stat64): Likewise.
7231         (_STATBUF_ST_NSEC): New macro.
7232         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7233
7234         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7235         __strtoul_internal rather than strtoul.
7236
7237 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7238
7239         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7240         and reject them.
7241
7242 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7243
7244         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7245         which preserves existing values.
7246         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7247
7248 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7249
7250         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7251         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7252         greater than FD_SETSIZE.
7253
7254 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7255
7256         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7257         allocated, call __vm_protect to finish enabling the existing space, and
7258         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7259         allocate the remainder.
7260
7261 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7262
7263         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7264         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7265
7266 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7267
7268         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7269         sysdeps/mach/hurd/readlink.c.
7270
7271         * posix/tst-sysconf.c (posix_options): Only use
7272         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7273         _POSIX_SYNCHRONIZED_IO when they are defined
7274         * sysdeps/mach/hurd/bits/posix_opt.h:
7275         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7276         (_XOPEN_REALTIME): Undefine macro.
7277         (_XOPEN_REALTIME_THREADS): Undefine macro.
7278         (_XOPEN_SHM): Undefine macro.
7279         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7280         macro to -1.
7281         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7282         macro to -1.
7283         (_POSIX_ASYNC_IO): Undefine macro.
7284         (_POSIX_PRIORITIZED_IO): Undefine macro.
7285         (_POSIX_SPIN_LOCKS): Define macro to -1.
7286
7287         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7288         SA_NODEFER, SA_RESETHAND.
7289         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7290         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7291         F_DUPFD_CLOEXEC.
7292
7293 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7294
7295         * elf/Makefile (pldd-modules): Define unconditionally.
7296
7297 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7298
7299         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7300
7301 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7302
7303         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7304         Return ENOENT when name is empty.
7305         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7306
7307 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7308
7309         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7310
7311         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7312
7313 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7314
7315         Fix mlock in all cases except non-readable pages.
7316         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7317         instead of VM_PROT_ALL as parameter to __vm_wire function.
7318
7319         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7320         (__mkdir): When path is `/', just fail with EEXIST.
7321         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7322
7323 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7324
7325         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7326         <sys/uio.h> (for writev).
7327         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7328         and <sys/param.h> (for MIN).
7329
7330 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7331
7332         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7333         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7334         if interrupted.
7335
7336 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7337
7338         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7339         Depend on against $(link-rpcuserlibs).
7340
7341 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7342
7343         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7344         (__libc_stack_end): Do not use attribute_relro.
7345         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7346         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7347         to libthread-provided value.
7348         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7349         attribute_relro.
7350
7351 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7352
7353         [BZ #3748]
7354         * bits/libc-lock.h (__libc_once_get): New macro.
7355         * sysdeps/mach/bits/libc-lock.h: Likewise.
7356         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7357         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7358         instead of using implementation details.
7359
7360         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7361         * libio/freopen.c: Likewise.
7362         * libio/freopen64.c: Likewise.
7363         * misc/syslog.c: Likewise.
7364         * nscd/connections.c: Likewise.
7365         * nscd/netgroupcache.c: Likewise.
7366         * sysdeps/posix/getcwd.c: Likewise.
7367
7368 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7369
7370         * math/w_ilogbf.c: Add #include <limits.h>.
7371
7372 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7373
7374         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7375         path instead of returning without unlocking.
7376
7377         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7378         immediate-write ioctls.
7379         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7380
7381 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7382
7383         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7384         __builtin_frame_address instead of making assumptions about the
7385         location of the return address relative to DATA.  Force early load of
7386         the return address.
7387         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7388         __builtin_frame_address.
7389
7390         dup3 for GNU Hurd.
7391         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7392         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7393         implement dup3 and do some further code clean-ups.
7394         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7395         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7396
7397 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7398
7399         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7400
7401         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7402         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7403         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7404         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7405         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7406         d->port.lock.
7407
7408         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7409         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7410         when handler == SIG_ERR, not when handler != SIG_ERR.
7411
7412 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7413
7414         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7415         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7416         definitions.
7417
7418         accept4 for GNU Hurd.
7419         * include/sys/socket.h (__libc_accept4): New prototype.
7420         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7421         to implement __libc_accept4.
7422         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7423         __libc_accept4.
7424         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7425
7426         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7427         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7428         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7429         signal-defines.sym.
7430
7431 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7432
7433         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7434
7435 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7436
7437         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7438         assertion on O_CLOEXEC flag.
7439         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7440         * hurd/intern-fd.c: Likewise.
7441         * hurd/port2fd.c: Likewise.
7442
7443 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7444
7445         [BZ #3906]
7446         * bits/in.h (IPV6_PKTINFO): Define new macro.
7447         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7448
7449 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7450
7451         [BZ #13954]
7452         [BZ #13955]
7453         [BZ #13956]
7454         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7455         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7456         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7457         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7458         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7459         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7460         * math/libm-test.inc (logb_test) : Additional logb tests.
7461
7462 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7463             Andreas Jaeger  <aj@suse.de>
7464
7465         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7466         * configure: Regenerated.
7467         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7468         * config.make.in (link-obsolete-rpc): New substituted variable.
7469         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7470         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7471         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7472         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7473         so that libc.a contains the symbols.
7474         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7475         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7476         * sunrpc/auth_none.c: Likewise.
7477         * sunrpc/auth_unix.c: Likewise.
7478         * sunrpc/authdes_prot.c: Likewise.
7479         * sunrpc/authuxprot.c: Likewise.
7480         * sunrpc/clnt_gen.c: Likewise.
7481         * sunrpc/clnt_perr.c: Likewise.
7482         * sunrpc/clnt_raw.c: Likewise.
7483         * sunrpc/clnt_simp.c: Likewise.
7484         * sunrpc/clnt_tcp.c: Likewise.
7485         * sunrpc/clnt_udp.c: Likewise.
7486         * sunrpc/clnt_unix.c: Likewise.
7487         * sunrpc/des_crypt.c: Likewise.
7488         * sunrpc/des_soft.c: Likewise.
7489         * sunrpc/get_myaddr.c: Likewise.
7490         * sunrpc/key_call.c: Likewise.
7491         * sunrpc/key_prot.c: Likewise.
7492         * sunrpc/netname.c: Likewise.
7493         * sunrpc/pm_getmaps.c: Likewise.
7494         * sunrpc/pm_getport.c: Likewise.
7495         * sunrpc/pmap_clnt.c: Likewise.
7496         * sunrpc/pmap_prot.c: Likewise.
7497         * sunrpc/pmap_prot2.c: Likewise.
7498         * sunrpc/pmap_rmt.c: Likewise.
7499         * sunrpc/publickey.c: Likewise.
7500         * sunrpc/rpc_cmsg.c: Likewise.
7501         * sunrpc/rpc_common.c: Likewise.
7502         * sunrpc/rpc_dtable.c: Likewise.
7503         * sunrpc/rpc_prot.c: Likewise.
7504         * sunrpc/rpc_thread.c: Likewise.
7505         * sunrpc/rtime.c: Likewise.
7506         * sunrpc/svc.c: Likewise.
7507         * sunrpc/svc_auth.c: Likewise.
7508         * sunrpc/svc_raw.c: Likewise.
7509         * sunrpc/svc_run.c: Likewise.
7510         * sunrpc/svc_tcp.c: Likewise.
7511         * sunrpc/svc_udp.c: Likewise.
7512         * sunrpc/svc_unix.c: Likewise.
7513         * sunrpc/svcauth_des.c: Likewise.
7514         * sunrpc/xcrypt.c: Likewise.
7515         * sunrpc/xdr.c: Likewise.
7516         * sunrpc/xdr_array.c: Likewise.
7517         * sunrpc/xdr_float.c: Likewise.
7518         * sunrpc/xdr_intXX_t.c: Likewise.
7519         * sunrpc/xdr_mem.c: Likewise.
7520         * sunrpc/xdr_rec.c: Likewise.
7521         * sunrpc/xdr_ref.c: Likewise.
7522         * sunrpc/xdr_sizeof.c: Likewise.
7523         * sunrpc/xdr_stdio.c: Likewise.
7524
7525 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7526
7527         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7528         change.  Update copyright years.
7529
7530 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7531
7532         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7533
7534 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7535             Joseph Myers  <joseph@codesourcery.com>
7536             Paul Pluzhnikov  <ppluzhnikov@google.com>
7537
7538         [BZ #14012]
7539         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7540         requiring rpcgen.
7541         [cross-compiling] (extra-libs): Likewise.
7542         [cross-compiling] (extra-libs-others): Likewise.
7543         [cross-compiling] (librpcsvc-routines): Likewise.
7544         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7545         [cross-compiling] (omit-deps): Likewise.
7546         (sunrpc-CPPFLAGS): New variable.
7547         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7548         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7549         (cross-rpcgen-objs): New variable.
7550         (extra-objs): Append $(cross-rpcgen-objs).
7551         ($(cross-rpcgen-objs)): New rule.
7552         ($(objpfx)cross-rpcgen): Likewise.
7553         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7554         comment.
7555         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7556         ($(objpfx)x%.stmp): Likewise.
7557         * sunrpc/proto.h [IS_IN_build] (_): Define.
7558         [IS_IN_build] (_libc_intl_domainname): Likewise.
7559
7560 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7561
7562         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7563         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7564         and R_X86_64_TPOFF64.
7565
7566 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7567
7568         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7569         sysdeps/unix/sysv/syscalls.list.
7570         (stime): Likewise.
7571         (utime): Likewise.
7572         * sysdeps/unix/sysv/syscalls.list: Remove file.
7573
7574 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7575
7576         [BZ #3440]
7577         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7578         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7579         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7580         (__LC_IDENTIFICATION): Make these macros useful in #if
7581         expressions, as required by C99.
7582
7583 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7584
7585         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7586         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7587         after this.
7588
7589 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7590
7591         * stdlib/longlong.h: Updated from GCC.
7592
7593 2012-05-09  Andreas Jaeger  <aj@suse.de>
7594
7595         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7596         default is first entry.
7597         (run_mode): Set type.
7598         (main): Remove informal message about syslog.
7599         (options): Fix typo.
7600
7601         [BZ #14053]
7602         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7603         to asm.
7604         (lrint): Likewise.
7605         (llrintf): Likewise.
7606         (llrint): Likewise.
7607         (rint): Likewise.
7608         (rintf): Likewise.
7609         (nearbyint): Likewise.
7610         (nearbyintf): Likewise.
7611
7612 2012-05-09  Andreas Jaeger  <aj@suse.de>
7613             Pedro Alves  <palves@redhat.com>
7614
7615         * nscd/nscd.c (run_mode): Use enum.
7616         (main): Cleanup coding style issue.
7617
7618 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7619             Andreas Jaeger  <aj@suse.de>
7620
7621         * nscd/nscd.c (go_background): Replaced with...
7622         (run_mode): ... this.
7623         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7624         (options): Add -F --foreground.
7625         (main): Implement it.
7626         (parse_opt): Parse it.
7627
7628 2012-05-09  Andreas Jaeger  <aj@suse.de>
7629
7630         [BZ #14083]
7631         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7632         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7633         -Wconversion warning.
7634         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7635         Likewise.
7636
7637 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7638
7639         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7640         == 0.
7641         (LC_ALL): Use macro-int-constant.
7642         (LC_COLLATE): Likewise.
7643         (LC_CTYPE): Likewise.
7644         (LC_MESSAGES): Likewise.
7645         (LC_MONETARY): Likewise.
7646         (LC_NUMERIC): Likewise.
7647         (LC_TIME): Likewise.
7648         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7649         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7650         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7651         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7652         Specify type.
7653         [C99-based standards] (float_t): Expect type.
7654         [C99-based standards] (double_t): Expect type.
7655         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7656         type.
7657         [C99-based standards] (HUGE_VALL): Likewise.
7658         [C99-based standards] (INFINITY): Likewise.
7659         [C99-based standards] (NAN): Likewise.
7660         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7661         [C99-based standards] (FP_NAN): Likewise.
7662         [C99-based standards] (FP_NORMAL): Likewise.
7663         [C99-based standards] (FP_SUBNORMAL): Likewise.
7664         [C99-based standards] (FP_ZERO): Likewise.
7665         [C99-based standards] (FP_FAST_FMA): Use
7666         optional-macro-int-constant.  Specify type.  Require == 1.
7667         [C99-based standards] (FP_FAST_FMAF): Likewise.
7668         [C99-based standards] (FP_FAST_FMAL): Likewise.
7669         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7670         [C99-based standards] (FP_ILOGBNAN): Likewise.
7671         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7672         Specify type.
7673         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7674         [C99-based standards] (math_errhandling): Specify type.
7675         [ISO99 || ISO11] (signgam): Do not allow.
7676         [non-C99-based standards] (copysignf): Do not allow.
7677         [non-C99-based standards] (exp2f): Likewise.
7678         [non-C99-based standards] (log2f): Likewise.
7679         [non-C99-based standards] (modff): Allow.
7680         [non-C99-based standards] (erff): Do not allow.
7681         [non-C99-based standards] (erfcf): Likewise.
7682         [non-C99-based standards] (gammaf): Likewise.
7683         [non-C99-based standards] (hypotf): Likewise.
7684         [non-C99-based standards] (j0f): Likewise.
7685         [non-C99-based standards] (j1f): Likewise.
7686         [non-C99-based standards] (jnf): Likewise.
7687         [non-C99-based standards] (lgammaf): Likewise.
7688         [non-C99-based standards] (tgammaf): Likewise.
7689         [non-C99-based standards] (y0f): Likewise.
7690         [non-C99-based standards] (y1f): Likewise.
7691         [non-C99-based standards] (ynf): Likewise.
7692         [non-C99-based standards] (isnanf): Likewise.
7693         [non-C99-based standards] (acoshf): Likewise.
7694         [non-C99-based standards] (asinhf): Likewise.
7695         [non-C99-based standards] (atanhf): Likewise.
7696         [non-C99-based standards] (cbrtf): Likewise.
7697         [non-C99-based standards] (expm1f): Likewise.
7698         [non-C99-based standards] (ilogbf): Likewise.
7699         [non-C99-based standards] (log1pf): Likewise.
7700         [non-C99-based standards] (logbf): Likewise.
7701         [non-C99-based standards] (nextafterf): Likewise.
7702         [non-C99-based standards] (remainderf): Likewise.
7703         [non-C99-based standards] (rintf): Likewise.
7704         [non-C99-based standards] (scalbf): Likewise.
7705         [non-C99-based standards] (copysignl): Likewise.
7706         [non-C99-based standards] (exp2l): Likewise.
7707         [non-C99-based standards] (log2l): Likewise.
7708         [non-C99-based standards] (modfl): Allow.
7709         [non-C99-based standards] (erfl): Do not allow.
7710         [non-C99-based standards] (erfcl): Likewise.
7711         [non-C99-based standards] (gammal): Likewise.
7712         [non-C99-based standards] (hypotl): Likewise.
7713         [non-C99-based standards] (j0l): Likewise.
7714         [non-C99-based standards] (j1l): Likewise.
7715         [non-C99-based standards] (jnl): Likewise.
7716         [non-C99-based standards] (lgammal): Likewise.
7717         [non-C99-based standards] (tgammal): Likewise.
7718         [non-C99-based standards] (y0l): Likewise.
7719         [non-C99-based standards] (y1l): Likewise.
7720         [non-C99-based standards] (ynl): Likewise.
7721         [non-C99-based standards] (isnanl): Likewise.
7722         [non-C99-based standards] (acoshl): Likewise.
7723         [non-C99-based standards] (asinhl): Likewise.
7724         [non-C99-based standards] (atanhl): Likewise.
7725         [non-C99-based standards] (cbrtl): Likewise.
7726         [non-C99-based standards] (expm1l): Likewise.
7727         [non-C99-based standards] (ilogbl): Likewise.
7728         [non-C99-based standards] (log1pl): Likewise.
7729         [non-C99-based standards] (logbl): Likewise.
7730         [non-C99-based standards] (nextafterl): Likewise.
7731         [non-C99-based standards] (remainderl): Likewise.
7732         [non-C99-based standards] (rintl): Likewise.
7733         [non-C99-based standards] (scalbl): Likewise.
7734         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7735         [non-C99-based standards] (FP_*): Do not allow.
7736         [C99-based standards] (FP_*): Change to
7737         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7738         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7739         allow.
7740         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7741         (SIG_ERR): Likewise.
7742         [X/Open-based standards] (SIG_HOLD): Likewise.
7743         (SIG_IGN): Likewise.
7744         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7745         positive value.
7746         (SIGFPE): Likewise.
7747         (SIGILL): Likewise.
7748         (SIGINT): Likewise.
7749         (SIGSEGV): Likewise.
7750         (SIGTER): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7753         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7758         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7759         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7760         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7761         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7762         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7763         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7764         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7765         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7766         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7767         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7768         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7769         [X/Open-based standards] (SIGTRAP): Likewise.
7770         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7771         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7772         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7773         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7774         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7775         allow.
7776
7777 2012-05-08  Ian Wienand  <ianw@vmware.com>
7778
7779         [BZ #14080]
7780         * time/tzset.c (__tzset_parse_tz): Update default rules for
7781         daylight time changes in the Energy Policy Act of 2005.
7782
7783 2012-05-09  Andreas Jaeger  <aj@suse.de>
7784
7785         [BZ #13983]
7786         * elf/ldconfig.c (parse_conf): Change string to make clear that
7787         ldconfig only issued a warning if ld.so.conf does not exist.
7788
7789 2012-05-08  David S. Miller  <davem@davemloft.net>
7790
7791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7792         movxtod instead of popping the value on the stack.
7793
7794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7795
7796 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7797
7798         * config.h.in: Add HAVE_ARM_PCS_VFP.
7799
7800 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7801
7802         [BZ #13979]
7803         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7804         checking but the checks are disabled for any reason.
7805
7806 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7807
7808         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7809         and ELF64_R_TYPE with ELFW(R_TYPE).
7810
7811 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7812
7813         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7814         (ulimit): Likewise.
7815
7816         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7817         (settimeofday): Likewise.
7818
7819 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7820
7821         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7822         a struct th_u2 inside the union, and move tu_block/tu_code into
7823         a new th_u3 union of tu_block/tu_code inside of that.  Move
7824         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7825         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7826         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7827         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7828         (th_stuff): Change to th_u1.tu_stuff.
7829         (th_data): Define.
7830         (th_msg): Change to th_u1.th_u2.tu_data.
7831
7832 2012-05-07  David S. Miller  <davem@davemloft.net>
7833
7834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7835
7836         [BZ #14074]
7837         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7838         (SETUP_PIC_REG): Use it.
7839         (SETUP_PIC_REG_LEAF): Use it.
7840
7841 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7842
7843         [BZ #13885]
7844         [BZ #13923]
7845         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7846         USE_AS_EXPM1L.
7847         (EXPL_FINITE): Likewise.
7848         (FLDLOG): Likewise.
7849         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7850         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7851         e_expl.S.
7852         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7853         USE_AS_EXPM1L.
7854         (EXPL_FINITE): Likewise.
7855         (FLDLOG): Likewise.
7856         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7857         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7858         e_expl.S.
7859         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7860         test of -max_value argument for long double.
7861         * sysdeps/i386/fpu/libm-test-ulps: Update.
7862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7863
7864 2012-05-06  David S. Miller  <davem@davemloft.net>
7865
7866         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7867         quad soft-float symbols whose references which are compiler
7868         generated.
7869         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7870
7871 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7872
7873         [BZ #13884]
7874         [BZ #13914]
7875         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7876         USE_AS_EXP10L.
7877         (EXPL_FINITE): Likewise.
7878         (FLDLOG): Likewise.
7879         (c0): Likewise.
7880         (c1): Likewise.
7881         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7882         Adjust comments for base varying.
7883         (__expl_finite): Change alias to EXPL_FINITE.
7884         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7885         e_expl.S.
7886         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7887         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7888         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7889         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7890         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7891         USE_AS_EXP10L.
7892         (EXPL_FINITE): Likewise.
7893         (FLDLOG): Likewise.
7894         (c0): Likewise.
7895         (c1): Likewise.
7896         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7897         Adjust comments for base varying.
7898         (__expl_finite): Change alias to EXPL_FINITE.
7899         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7900         tests for bugs.
7901         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7902
7903         [BZ #14064]
7904         * math/libm-test.inc (check_float_internal): Correct ulp
7905         calculation for subnormal expected results.
7906
7907 2012-05-06  Andreas Jaeger  <aj@suse.de>
7908
7909         * Makeconfig (+math-flags): New, set to -frounding-math.
7910         (+cflags): Add +math-flags so that all of glibc gets compiled with
7911         it.
7912
7913         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7914
7915 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7916
7917         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7918         Disable one test.
7919
7920         [BZ #13787]
7921         [BZ #13922]
7922         [BZ #14036]
7923         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7924         (__ieee754_expl): Allow for and saturate large arguments.
7925         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7926         (u_threshold): Likewise.
7927         (__exp): Call __ieee754_exp before checking for overflow and
7928         underflow.
7929         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7930         (u_threshold): Likewise.
7931         (__expf): Call __ieee754_expf before checking for overflow and
7932         underflow.
7933         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7934         (u_threshold): Likewise.
7935         (__expl): Call __ieee754_expl before checking for overflow and
7936         underflow.
7937         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7938         (__ieee754_expl): Allow for and saturate large arguments.
7939         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7940         missing overflow exception on overflow.
7941         (expm1_test): Do not allow missing overflow exception on overflow.
7942
7943         * sysdeps/i386/fpu/e_expl.c: Move to ...
7944         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7945         rather than using inline asm.
7946         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7947         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7948         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7949
7950         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7951         (nice): Likewise.
7952         (poll): Likewise.
7953         (signal): Likewise.
7954         (time): Likewise.
7955         (times): Likewise.
7956
7957 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7958
7959         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7960         sysdeps/unix/common/syscalls.list.
7961         (fchmod): Likewise.
7962         (fchown): Likewise.
7963         (ftruncate): Likewise.
7964         (getrusage): Likewise.
7965         (gettimeofday): Likewise.
7966         (setpgid): Likewise.
7967         (setregid): Likewise.
7968         (setreuid): Likewise.
7969         (sigaction): Likewise.
7970         (truncate): Likewise.
7971         (vhangup): Likewise.
7972         * sysdeps/unix/common/syscalls.list: Remove file.
7973         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7974         * sysdeps/unix/sysv/linux/Implies: Likewise.
7975
7976 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7977
7978         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7980         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7981         Moved to ...
7982         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7983         Here.
7984         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7985         to ...
7986         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7987         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7988         to ...
7989         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7990         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7991         to ...
7992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7993         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7994         to ...
7995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7996         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7997         to ...
7998         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7999         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8000         to ...
8001         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8002         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8003         to ...
8004         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8005         Here.
8006         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8007         to ...
8008         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8009         Here.
8010         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8011         to ...
8012         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8013         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8014         Moved to ...
8015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8016         Here.
8017         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8018         to ...
8019         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8020
8021 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8022
8023         * sysdeps/unix/common/bits/dirent.h: Remove file.
8024         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8025
8026         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8027         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8028         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8029         * sysdeps/unix/bsd/isatty.c: Likewise.
8030         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8031         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8032         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8033
8034 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8035
8036         [BZ #13563]
8037         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8038         long double comparison inaccuracies.
8039         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8040         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8041
8042 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8043
8044         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8045         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8046
8047 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8048
8049         [BZ #14049]
8050         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8051         nonzero digits before rounding a hex value.
8052         * stdlib/tst-strtod.c (tests): Add another test.
8053
8054 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8055
8056         * sysdeps/s390/fpu/libm-test-ulps: Update.
8057
8058 2012-05-03  Andreas Jaeger  <aj@suse.de>
8059
8060         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8061         does not get optimized out.
8062         (malloc_opt_barrier): New.
8063
8064 2012-05-03  Andreas Jaeger  <aj@suse.de>
8065             Roland McGrath  <roland@hack.frob.com>
8066
8067         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8068         intermediate file deletion.
8069         (generated): Add .symlist files.
8070
8071 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8072
8073         [BZ #13775]
8074         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8075         Redirect under this condition.
8076         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8077         [__USE_GNU] (__dprintf_chk): Not under this condition.
8078         [__USE_GNU] (__vdprintf_chk): Likewise.
8079         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8080         under this condition.
8081         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8082         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8083         [__USE_XOPEN2K8] (vdprintf): Likewise.
8084         [__USE_GNU] (__dprintf_chk): Not under this condition.
8085         [__USE_GNU] (__vdprintf_chk): Likewise.
8086         [__USE_GNU] (dprintf): Likewise.
8087         [__USE_GNU] (vdprintf): Likewise.
8088
8089 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8090
8091         * elf/Makefile (common-generated): Set this instead of generated for
8092         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8093         $(all-built-dso)-derived lists.
8094
8095 2012-05-03  Andreas Jaeger  <aj@suse.de>
8096
8097         * sysdeps/i386/fpu/libm-test-ulps: Update.
8098
8099         * FAQ: Removed.
8100         * FAQ.in: Likewise.
8101         * scripts/gen-FAQ.pl: Likewise.
8102         * manual/install.texi (Installation): Point to online location of
8103         FAQ.
8104         * Makefile (files-for-dist): Remove FAQ.
8105         (FAQ): Remove.
8106
8107 2012-05-02  Allan McRae  <allan@archlinux.org>
8108
8109         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8110         (LDFLAGS-reldepmod5.so): Likewise.
8111         (LDFLAGS-reldep6mod1.so): Likewise.
8112         (LDFLAGS-reldep6mod4.so): Likewise.
8113         (LDFLAGS-reldep8mod3.so): Likewise.
8114         (LDFLAGS-unload4mod1.so): Likewise.
8115         (LDFLAGS-unload4mod2.so): Likewise.
8116         (LDFLAGS-tst-initorder): Likewise.
8117         (LDFLAGS-tst-initordera2.so): Likewise.
8118         (LDFLAGS-tst-initordera3.so): Likewise.
8119         (LDFLAGS-tst-initordera4.so): Likewise.
8120         (LDFLAGS-tst-initorderb2.so): Likewise.
8121         (LDFLAGS-noload): Likewise.
8122         (LDFLAGS-next): Likewise.
8123         (LDFLAGS-order2mod1.so): Likewise.
8124         (LDFLAGS-order2mod2.so): Likewise.
8125         (LDFLAGS-tst-initorder2): Likewise.
8126         (LDFLAGS-tst-initorder2a.so): Likewise.
8127         (LDFLAGS-tst-initorder2b.so): Likewise.
8128         (LDFLAGS-tst-initorder2c.so): Likewise.
8129         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8130
8131 2012-05-02  David S. Miller  <davem@davemloft.net>
8132
8133         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8134
8135 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8136
8137         [BZ #14055]
8138         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8139
8140 2012-05-02  Andreas Jaeger  <aj@suse.de>
8141
8142         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8143         since we manipulate rounding mode.
8144         (CPPFLAGS-test-idouble.c): Likewise.
8145         (CPPFLAGS-test-ifloat.c): Likewise.
8146         (CFLAGS-test-ldouble.c): Likewise.
8147         (CFLAGS-test-double.c): Likewise.
8148         (CFLAGS-test-float.c): Likewise.
8149         (CFLAGS-test-misc.c): Likewise.
8150         (CFLAGS-test-test-fenv.c): Likewise.
8151
8152 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8153
8154         [BZ #2550]
8155         [BZ #2570]
8156         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8157         comparisons to determine direction to adjust input.
8158
8159 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8160
8161         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8162         output to the target.
8163
8164         * scripts/localplt.awk: New file.
8165         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8166         (check-localplt-CFLAGS): Variable removed.
8167         ($(all-built-dso:=.jmprel)): New static pattern rule.
8168         (generated): Add those targets.
8169         (localplt-built-dso): New variable.
8170         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8171
8172         * elf/check-localplt.c: File removed.
8173
8174         * scripts/check-execstack.awk: New file.
8175         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8176         (check-execstack-CFLAGS): Variable removed.
8177         ($(objpfx)check-execstack.h): Target removed.
8178         ($(objpfx)execstack-default): New target.
8179         (generated): Add that instead of check-execstack.h.
8180         ($(all-built-dso:=.phdr)): New static pattern rule.
8181         (generated): Add those targets.
8182         * elf/check-execstack.c: File removed.
8183
8184         * scripts/check-textrel.awk: New file.
8185         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8186         (check-textrel-CFLAGS): Variable removed.
8187         (all-built-dso): Use := to define.o
8188         ($(all-built-dso:=.dyn)): New static pattern rule.
8189         (generated): Add those targets.
8190         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8191         * config.make.in (READELF): New substituted variable.
8192         * elf/check-textrel.c: File removed.
8193
8194 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8195
8196         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8197         allow.
8198         * conform/data/ctype.h-data [C99-based standards] (isblank):
8199         Expect function.
8200         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8201         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8202         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8203         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8204         Specify type.  Require positive value.
8205         (EILSEQ): Likewise.
8206         (ERANGE): Likewise.
8207         [ISO || POSIX] (EILSEQ): Do not expect.
8208         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8209         Specify type.  Require positive value.
8210         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8211         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8212         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8213         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8214         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8215         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8216         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8217         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8218         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8219         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8220         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8221         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8222         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8223         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8224         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8225         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8226         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8227         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8228         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8229         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8230         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8231         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8232         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8233         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8234         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8235         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8236         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8237         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8238         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8239         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8240         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8241         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8242         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8243         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8244         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8245         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8246         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8247         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8248         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8249         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8250         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8251         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8252         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8253         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8254         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8255         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8256         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8257         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8258         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8259         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8260         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8261         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8262         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8263         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8264         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8265         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8266         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8267         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8268         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8269         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8270         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8271         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8272         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8273         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8274         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8275         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8276         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8277         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8278         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8279         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8280         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8281         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8282         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8283         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8284         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8285         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8286         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8287         Require >= 2.
8288         (FLT_ROUNDS): Expect as macro, not constant.
8289         (FLT_MANT_DIG): Use macro-int-constant.
8290         (DBL_MANT_DIG): Likewise.
8291         (LDBL_MANT_DIG): Likewise.
8292         (FLT_DIG): Likewise.
8293         (DBL_DIG): Likewise.
8294         (LDBL_DIG): Likewise.
8295         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8296         (DBL_MIN_EXP): Likewise.
8297         (LDBL_MIN_EXP): Likewise.
8298         (FLT_MAX_EXP): Use macro-int-constant.
8299         (DBL_MAX_EXP): Likewise.
8300         (LDBL_MAX_EXP): Likewise.
8301         (FLT_MAX_10_EXP): Likewise.
8302         (DBL_MAX_10_EXP): Likewise.
8303         (LDBL_MAX_10_EXP): Likewise.
8304         (FLT_MAX): Use macro-constant.
8305         (DBL_MAX): Likewise.
8306         (LDBL_MAX): Likewise.
8307         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8308         (DBL_EPSILON): Likewise.
8309         (LDBL_EPSILON): Likewise.
8310         (FLT_MIN): Likewise.
8311         (DBL_MIN): Likewise.
8312         (LDBL_MIN): Likewise.
8313         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8314         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8315         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8316         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8317         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8318         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8319         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8320         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8321         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8322         [ISO11] (FLT_TRUE_MIN): Likewise.
8323         [ISO11] (LDBL_TRUE_MIN): Likewise.
8324         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8325         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8326         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8327         (SCHAR_MAX): Likewise.
8328         (UCHAR_MAX): Likewise.
8329         (CHAR_MIN): Likewise.
8330         (CHAR_MAX): Likewise.
8331         (MB_LEN_MAX): Use macro-int-constant.
8332         (SHRT_MIN): Use macro-int-constant.  Specify type.
8333         (SHRT_MAX): Likewise.
8334         (USHRT_MAX): Likewise.
8335         (INT_MAX): Likewise.
8336         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8337         bound negative.
8338         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8339         bound with "U".
8340         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8341         bound with "L".
8342         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8343         bound negative.  Suffix upper bound with "L".
8344         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8345         bound with "UL".
8346         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8347         Specify type.
8348         [C99-based standards] (LLONG_MAX): Likewise.
8349         [C99-based standards] (ULLONG_MAX): Likewise.
8350         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8351         == 0.
8352         [ISO11] (max_align_t): Require type.
8353         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8354
8355         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8356         from $CFLAGS, without defining away __attribute__ calls.
8357         (checknamespace): Use $CFLAGS_namespace.
8358
8359         * conform/conformtest.pl (@keywords): Only include C99 keywords
8360         for standards based on C99 or C11.
8361
8362         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8363         Disable tests.
8364         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8365         UNIX98]: Likewise.
8366
8367         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8368         usability of symbols in #if.
8369
8370         * conform/conformtest.pl: If macro or constant types start
8371         "promoted:", expect the symbol to be of the following type
8372         promoted by the integer promotions.
8373
8374         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8375         in one place.  Also handle "macro-constant".
8376
8377         * conform/conformtest.pl: Only accept expected macro values with
8378         "==".  Parse all "macro" lines in one place.
8379         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8380
8381         * conform/conformtest.pl: Handle braced types on "constant" lines
8382         instead of handling "typed-constant".
8383         * conform/data/signal.h-data: Use "constant" instead of
8384         "typed-constant".
8385
8386         * conform/conformtest.pl: Handle "optional-" at start of lines in
8387         one place rather than duplicating several cases.  Handle each
8388         format of "macro" line with initial "optional-".
8389
8390         * conform/conformtest.pl: Only accept expected constant or
8391         optional-constant values with "==".  Parse all "constant" lines in
8392         one place.  Parse all "optional-constant" lines in one place.
8393         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8394         * conform/data/fmtmsg.h-data: Likewise.
8395         * conform/data/netinet/in.h-data: Likewise.
8396         * conform/data/tar.h-data: Likewise.
8397         * conform/data/limits.h-data: Use "==" form on "constant" and
8398         "optional-constant" lines.
8399
8400         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8401         Use -std=c99 for XOPEN2K.
8402         (@knownproblems): Remove.
8403         (newtoken): Don't check %isknown.
8404
8405         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8406         Do not expect macro.
8407         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8419         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8420         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8437         [XPG3] (acosh): Likewise.
8438         [XPG3] (asinh): Likewise.
8439         [XPG3] (atanh): Likewise.
8440         [XPG3] (cbrt): Likewise.
8441         [XPG3] (expm1): Likewise.
8442         [XPG3] (ilogb): Likewise.
8443         [XPG3] (log1p): Likewise.
8444         [XPG3] (logb): Likewise.
8445         [XPG3] (nextafter): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8448         [XPG3] (remainder): Likewise.
8449         [XPG3] (rint): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8457         [UNIX98 || XOPEN2K] (scalb): Expect.
8458         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8459         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8574         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8575         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8576         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8577         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8578         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8579         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8580         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8581         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8582         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8583         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8584         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8585         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8586         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8587         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8588         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8589         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8590         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8591         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8592         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8593         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8594         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8595
8596         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8597         _XOPEN_SOURCE_EXTENDED for XPG4.
8598
8599         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8600
8601         * Makeconfig (localtime): Remove variable.
8602         (inst_localtime-file): Likewise.
8603
8604 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8605
8606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8607         Update.
8608         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8609         Update.
8610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8611         Update.
8612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8613         Update.
8614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8615         Update.
8616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8617         Update.
8618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8619         Update.
8620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8621         Update.
8622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8623         Update.
8624
8625 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8626
8627         [BZ #2550]
8628         [BZ #2570]
8629         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8630         comparisons to determine direction to adjust input.
8631         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8632         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8633         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8634         Likewise.
8635         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8636         Likewise.
8637         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8638         Likewise.
8639         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8640         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8641         Likewise.
8642         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8643         Likewise.
8644         * math/libm-test.inc (nexttoward_test): Add more tests.
8645
8646 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8647
8648         [BZ #14040]
8649         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8650         in version GLIBC_2.1, not GLIBC_2.0.
8651         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8652         Likewise.
8653
8654 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8655
8656         [BZ #13942]
8657         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8658         (1 - x) * (1 + x).
8659         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8660         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8661         * math/libm-test.inc (acos_test): Add more tests.
8662         (asin_test): Likewise.
8663         * sysdeps/i386/fpu/libm-test-ulps: Update.
8664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8665
8666         [BZ #14034]
8667         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8668         of square root.
8669         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8670         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8671         * math/libm-test.inc (acos_test_tonearest): New function.
8672         (acos_test_towardzero): Likewise.
8673         (acos_test_downward): Likewise.
8674         (acos_test_upward): Likewise.
8675         (asin_test_tonearest): Likewise.
8676         (asin_test_towardzero): Likewise.
8677         (asin_test_downward): Likewise.
8678         (asin_test_upward): Likewise.
8679         (main): Call the new functions.
8680         * sysdeps/i386/fpu/libm-test-ulps: Update.
8681         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8682
8683         [BZ #13884]
8684         [BZ #13924]
8685         * math/e_exp10.c: Include <float.h>.
8686         (__ieee754_exp10): Handle underflow here rather than multiplying
8687         large negative argument by M_LN10.
8688         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8689         of __ieee754_expf.
8690         * math/e_exp10l.c: Include <float.h>.
8691         (__ieee754_exp10l): Handle underflow here rather than multiplying
8692         large negative argument by M_LN10l.
8693         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8694         spurious overflow exception on underflow.
8695
8696 2012-04-29  Marek Polacek  <polacek@redhat.com>
8697
8698         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8699         (__fortify_function): New macro.
8700         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8701         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8702         __extern_always_inline.
8703         * libio/bits/stdio2.h: Likewise.
8704         * libio/bits/stdio.h: Likewise.
8705         * string/string.h: Likewise.
8706         * string/bits/string3.h: Likewise.
8707         * include/stdio.h: Likewise.
8708         * stdlib/bits/stdlib.h: Likewise.
8709         * stdlib/stdlib.h: Likewise.
8710         * rt/bits/mqueue2.h: Likewise.
8711         * rt/mqueue.h: Likewise.
8712         * posix/bits/unistd.h: Likewise.
8713         * posix/unistd.h: Likewise.
8714         * io/bits/poll2.h: Likewise.
8715         * io/bits/fcntl2.h: Likewise.
8716         * io/fcntl.h: Likewise.
8717         * io/sys/poll.h: Likewise.
8718         * misc/bits/syslog.h: Likewise.
8719         * misc/bits/syslog-ldbl.h: Likewise.
8720         * misc/sys/syslog.h: Likewise.
8721         * socket/bits/socket2.h: Likewise.
8722         * socket/sys/socket.h: Likewise.
8723         * debug/tst-chk1.c: Likewise.
8724         * wcsmbs/bits/wchar2.h: Likewise.
8725         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8726         * wcsmbs/wchar.h: Likewise.
8727
8728 2012-04-29  Andreas Jaeger  <aj@suse.de>
8729
8730         * Makerules (tests): Remove enable-check-abi protection.
8731         (check-abi-warn): Remove.
8732         (check-abi-%): Remove check-abi-warn usage.
8733
8734         * configure.in: Remove check-abi configure option.
8735         * configure: Regenerated.
8736         * config.make.in (enable-check-abi): Remove.
8737
8738 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8739
8740         [BZ #14033]
8741         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8742         double functions to double *_finite functions.
8743
8744         [BZ #13941]
8745         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8746         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8747         LDBL_MIN_EXP.
8748         * stdio-common/Makefile (tests): Add tst-sprintf3.
8749         * stdio-common/tst-sprintf3.c: New file.
8750
8751         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8752         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8753
8754 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8755
8756         * conform/conformtest.pl: Remove duplicate typed-constant
8757         handling.
8758
8759 2012-04-28  David S. Miller  <davem@davemloft.net>
8760
8761         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8762         (check-abi-%): Remove AWK script prerequisite and explicit
8763         abilist directory.
8764         (check-abi): Rewrite to just diff the symlist with the abilist.
8765         (config-tls, config-abi-config): Delete, no longer used.
8766         (update-abi-%): Remove AWK script and explicit abilist directory.
8767         (update-abi): Rewrite to simply compare and conditionally copy the
8768         symlist and the sysdep abilist file.  Remove update-abi-config
8769         checks.
8770         * abilist/ld.abilist: Remove.
8771         * abilist/libBrokenLocale.abilist: Remove.
8772         * abilist/libanl.abilist: Remove.
8773         * abilist/libcrypt.abilist: Remove.
8774         * abilist/libdl.abilist: Remove.
8775         * abilist/librt.abilist: Remove.
8776         * abilist/libthread_db.abilist: Remove.
8777         * abilist/libutil.abilist: Remove.
8778         * scripts/extract-abilist.awk: Remove.
8779         * scripts/merge-abilist.awk: Remove.
8780         * sysdeps/generic/libcidn.abilist: New file.
8781         * sysdeps/generic/libnss_compat.abilist: New file.
8782         * sysdeps/generic/libnss_db.abilist: New file.
8783         * sysdeps/generic/libnss_dns.abilist: New file.
8784         * sysdeps/generic/libnss_files.abilist: New file.
8785         * sysdeps/generic/libnss_hesiod.abilist: New file.
8786         * sysdeps/generic/libnss_nis.abilist: New file.
8787         * sysdeps/generic/libnss_nisplus.abilist: New file.
8788         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8789         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8790         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8791         file.
8792         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8793         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8794         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8795         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8796         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8797         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8798         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8799         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8800         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8801         file.
8802         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8803         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8804         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8805         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8806         file.
8807         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8808         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8809         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8810         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8811         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8812         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8813         file.
8814         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8815         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8816         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8817         file.
8818         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8819         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8820         New file.
8821         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8822         New file.
8823         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8824         New file.
8825         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8826         New file.
8827         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8828         New file.
8829         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8830         New file.
8831         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8832         New file.
8833         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8834         New file.
8835         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8836         New file.
8837         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8838         New file.
8839         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8840         New file.
8841         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8842         New file.
8843         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8844         New file.
8845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8846         file.
8847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8848         New file.
8849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8850         New file.
8851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8852         file.
8853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8854         New file.
8855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8856         New file.
8857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8858         file.
8859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8860         New file.
8861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8862         New file.
8863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8864         New file.
8865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8866         New file.
8867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8868         New file.
8869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8870         New file.
8871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8873         file.
8874         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8875         New file.
8876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8877         file.
8878         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8879         file.
8880         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8881         file.
8882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8883         file.
8884         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8885         file.
8886         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8887         New file.
8888         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8889         file.
8890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8891         file.
8892         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8893         New file.
8894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8895         file.
8896         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8897         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8898         file.
8899         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8900         New file.
8901         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8902         file.
8903         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8904         file.
8905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8906         file.
8907         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8908         file.
8909         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8910         file.
8911         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8912         New file.
8913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8914         file.
8915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8916         file.
8917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8918         New file.
8919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8920         file.
8921         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8922         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8923         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8924         file.
8925         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8926         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8927         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8928         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8929         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8930         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8931         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8932         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8933         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8934         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8936         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8937         file.
8938         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8939         New file.
8940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8941         file.
8942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8943         file.
8944         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8945         file.
8946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8947         file.
8948         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8949         file.
8950         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8951         New file.
8952         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8953         New file.
8954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8955         file.
8956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8957         New file.
8958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8959         file.
8960         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8961         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8962         file.
8963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8964         New file.
8965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8966         file.
8967         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8968         file.
8969         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8970         file.
8971         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8972         file.
8973         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8974         file.
8975         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8976         New file.
8977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8978         New file.
8979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8980         file.
8981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8982         New file.
8983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8984         file.
8985
8986 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8987
8988         * conform/conformtest.pl: Fix typo in handling typed-constant from
8989         allow-header.
8990
8991 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8992
8993         * README: Cut down references to pre-2.6 Linux kernels and
8994         Linuxthreads.  Update lists of configurations in libc and ports
8995         and sort alphabetically.  Say "or newer" with Linux kernel version
8996         requirements.
8997
8998         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8999
9000 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9001
9002         [BZ #887]
9003         * math/libm-test.inc (logb_test_downward): New test to expose
9004         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9005         rounding mode.
9006
9007 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9008
9009         [BZ #14027]
9010         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9011         to be done.
9012         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9013         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9014
9015 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9016
9017         * sysdeps/unix/i386/brk.S: Remove file.
9018         * sysdeps/unix/i386/dl-brk.S: Likewise.
9019         * sysdeps/unix/i386/pipe.S: Likewise.
9020         * sysdeps/unix/i386/sigreturn.S: Likewise.
9021         * sysdeps/unix/i386/syscall.S: Likewise.
9022         * sysdeps/unix/i386/vfork.S: Likewise.
9023         * sysdeps/unix/i386/wait.S: Likewise.
9024
9025         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9026         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9027
9028         * configure.in (arm*-none*): Do not allow without
9029         --enable-hacker-mode.
9030         (netbsd*): Remove case setting base_os.
9031         (386bsd*): Likewise.
9032         (freebsd*): Likewise.
9033         (bsdi*): Likewise.
9034         (osf*): Likewise.
9035         (sunos*): Likewise.
9036         (ultrix*): Likewise.
9037         (newsos*): Likewise.
9038         (dynix*): Likewise.
9039         (*bsd*): Likewise.
9040         (sysv*): Likewise.
9041         (isc*): Likewise.
9042         (esix*): Likewise.
9043         (sco*): Likewise.
9044         (minix*): Likewise.
9045         (irix4*): Likewise.
9046         (irix6*): Likewise.
9047         (solaris[2-9]*): Likewise.
9048         (none): Likewise.
9049         * configure: Regenerated.
9050
9051 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9052
9053         [BZ #11521]
9054         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9055         overflow or cancellation in calculating denominator.
9056         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9057         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9058         down expression to avoid unexpected rounding in newer GCCs.
9059         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9060
9061 2012-04-26  David S. Miller  <davem@davemloft.net>
9062
9063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9064         long-double compat symbols.
9065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9074         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9076         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9077         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9078
9079 2012-04-25  David S. Miller  <davem@davemloft.net>
9080
9081         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9082         HWCAP_* values only after the memory barriers have been defined.
9083         (atomic_full_barrier): Define.
9084         (atomic_read_barrier): Define.
9085         (atomic_write_barrier): Define.
9086
9087 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9088
9089         * shlib-versions: Add libgcc_s version information.
9090         * sysdeps/generic/libgcc_s.h: Remove.
9091         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9092         libgcc_s.h.
9093         * sysdeps/gnu/unwind-resume.c: Likewise.
9094         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9095
9096 2012-04-25  David S. Miller  <davem@davemloft.net>
9097
9098         * sysdeps/unix/sparc/brk.S: Delete.
9099         * sysdeps/unix/sparc/dl-brk.S: Delete.
9100         * sysdeps/unix/sparc/pipe.S: Delete.
9101         * sysdeps/unix/sparc/sysdep.S: Delete.
9102         * sysdeps/unix/sparc/sysdep.h: Delete.
9103         * sysdeps/unix/sparc/vfork.S: Delete.
9104         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9105         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9106         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9107         ret_ERRVAL, r0, r1, MOVE): Define.
9108         (JUMPTARGET): Remove.
9109         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9110         sysdeps/unix/sparc/sysdep.h
9111         (ENTRY, END): Remove.
9112         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9113
9114 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9115
9116         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9117         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9118         -DIS_IN_build.
9119
9120         * timezone/README: Update upstream location and email address for
9121         tzcode and tzdata.
9122         * timezone/zdump.c: Update from tzcode 2012b.
9123         * timezone/zic.c: Likewise.
9124
9125         * configure.in (libc_cv_as_needed): Remove test.
9126         * configure: Regenerated.
9127         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9128         conditional definition.
9129         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9130         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9131         * config.make.in (have-as-needed): Remove variable.
9132
9133 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9134             Paul Pluzhnikov  <ppluzhnikov@google.com>
9135
9136         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9137         strings correctly.
9138
9139 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9140
9141         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9142         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9143         * sysdeps/sh/strlen.S: Likewise.
9144
9145 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9146
9147         * sysdeps/unix/fork.S: Remove file.
9148         * sysdeps/unix/i386/fork.S: Likewise.
9149         * sysdeps/unix/sparc/fork.S: Likewise.
9150
9151         * sysdeps/unix/system.c: Remove file.
9152         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9153
9154         * sysdeps/unix/getegid.S: Remove file.
9155         * sysdeps/unix/geteuid.S: Likewise.
9156
9157 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9158
9159         * scripts/check-localplt.awk: New file.
9160         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9161         of diff.
9162         * scripts/data/localplt-generic.data: Add a comment.
9163
9164         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9165         NODE when __dir_mkfile failed.
9166         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9167         Reported by Ludovic Courtès <ludo@gnu.org>.
9168
9169 2012-04-24  Andreas Jaeger  <aj@suse.de>
9170
9171         * Makerules (common-clean): Also remove gen-as-const-headers
9172         files.
9173
9174 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9175
9176         * Makerules (native-compile): Do not change working directory for
9177         build.  Use $(OUTPUT_OPTION) in command.
9178         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9179
9180 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9181
9182         [BZ #13886]
9183         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9184         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9185         * math/libm-test.inc (floor_test): Add more tests.
9186         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9187
9188 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9189
9190         * sysdeps/unix/getdents.c: Remove file.
9191         * sysdeps/unix/sysv/getdents.c: Likewise.
9192         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9193
9194         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9195         sysdeps/unix/mman/syscalls.list.
9196         (mmap): Likewise.
9197         (mprotect): Likewise.
9198         (msync): Likewise.
9199         (munmap): Likewise.
9200         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9201         * sysdeps/unix/mman/syscalls.list: Remove.
9202         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9203
9204         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9205         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9206         * configure: Regenerated.
9207         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9208         $(libgcc_s_suffix).
9209         * config.make.in (libgcc_s_suffix): Remove variable.
9210
9211 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9212
9213         * sysdeps/unix/sysv/gethostname.c: Move to ...
9214         * sysdeps/posix/gethostname.c: ... here.
9215
9216         * sysdeps/unix/execve.S: Remove file.
9217
9218         * sysdeps/unix/_exit.S: Remove file.
9219
9220 2012-04-23  Andreas Jaeger  <aj@suse.de>
9221
9222         [BZ #13739]
9223         * manual/Makefile: Remove make dist support, there's no
9224         need for a stand-alone documentation tar ball.
9225         (TEXI2DVI): Define always, it's not in Makeconfig.
9226         (dist): Removed.
9227         (tar-it): Removed.
9228         (edition): Removed.
9229         (glibc-doc-$(edition).tar): Removed
9230         (%.Z): Removed.
9231         (%.gz): Removed.
9232         (%.uu): Removed.
9233         (ETAGS): Remove, it's in Makeconfig.
9234         (move-if-change): Remove, it's in Makeconfig.
9235
9236 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9237
9238         [BZ #13970]
9239         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9240         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9241         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9242         (strtod_l, strtof_l, strtold_l): Remove __wur.
9243         It is not necessarily an error to ignore strtol's return value.
9244         One can reliably look at the stored endptr to decide whether
9245         the number had valid syntax.
9246
9247 2012-04-21  Andreas Jaeger  <aj@suse.de>
9248
9249         [BZ #13739]
9250         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9251
9252 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9253
9254         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9255         * sysdeps/unix/sysv/Versions: Remove file.
9256
9257 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9258
9259         [BZ #13927]
9260         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9261
9262 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9263
9264         [BZ #7064]
9265         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9266         version from __vm86.
9267
9268 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9269
9270         * sysdeps/unix/common/lxstat.c: Remove file.
9271         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9272
9273         * sysdeps/unix/sysv/Makefile: Remove file.
9274
9275         * sysdeps/unix/sysv/direct.h: Remove file.
9276
9277         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9278         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9279         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9280         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9281         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9282         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9283         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9284
9285         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9286
9287         * sysdeps/unix/xmknod.c: Remove file.
9288         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9289
9290         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9291
9292         * sysdeps/unix/sysv/i386/time.S: Remove file.
9293
9294         * sysdeps/unix/fxstat.c: Remove file.
9295         * sysdeps/unix/xstat.c: Likewise.
9296         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9297
9298         * sysdeps/unix/sysv/sigaction.c: Remove file.
9299
9300         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9301         (sysdep_headers): Remove variable.
9302         [termio.h not in sysdep_headers] (generated): Likewise.
9303         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9304         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9305         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9306         * sysdeps/unix/sysv/tcflow.c: Likewise.
9307         * sysdeps/unix/sysv/tcflush.c: Likewise.
9308         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9309         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9310         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9311         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9312         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9313
9314         * sysdeps/unix/siglist.c: Remove file.
9315
9316         * sysdeps/unix/getppid.S: Remove file.
9317
9318         * sysdeps/unix/mkdir.c: Remove file.
9319         * sysdeps/unix/rmdir.c: Likewise.
9320
9321 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9322
9323         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9324         ERR_MAX value.
9325         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9326         errlist-compat value.
9327
9328 2012-04-18  David S. Miller  <davem@davemloft.net>
9329
9330         * sysdeps/generic/memcopy.h (reg_char): Delete.
9331         * debug/strcat_chk.c: Use char, not reg_char.
9332         * debug/strcpy_chk.c: Likewise.
9333         * debug/strncat_chk.c: Likewise.
9334         * debug/strncpy_chk.c: Likewise.
9335         * string/memchr.c: Likewise.
9336         * string/memrchr.c: Likewise.
9337         * string/rawmemchr.c: Likewise.
9338         * string/strcat.c: Likewise.
9339         * string/strchr.c: Likewise.
9340         * string/strchrnul.c: Likewise.
9341         * string/strcmp.c: Likewise.
9342         * string/strcpy.c: Likewise.
9343         * string/strncat.c: Likewise.
9344         * string/strncmp.c: Likewise.
9345         * string/strncpy.c: Likewise.
9346
9347 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9348
9349         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9350         __builtin_memcopy is called when src and dest ranges are known to not
9351         overlap.
9352
9353 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9354
9355         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9356         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9357         fwd_align_merge macro call.
9358         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9359         bwd_align_merge macro call.
9360         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9361
9362 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9363
9364         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9365         bwd_align_merge macros.
9366         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9367         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9368         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9369
9370 2012-04-18  David S. Miller  <davem@davemloft.net>
9371
9372         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9373
9374 2012-04-18  Andreas Jaeger  <aj@suse.de>
9375
9376         [BZ# 6794]
9377         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9378         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9379         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9380
9381         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9382         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9383         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9384
9385         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9386         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9387         Adjust for changed ldbl-128 files.
9388
9389         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9390         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9391         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9392
9393 2012-04-17  David S. Miller  <davem@davemloft.net>
9394
9395         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9396
9397 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9398
9399         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9400         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9401         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9402         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9403         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9404         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9405
9406 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9407
9408         [BZ #6794]
9409         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9410         * math/libm-test.inc: Add ilogb errno and exception tests.
9411         * math/w_ilogb.c: New file: ilogb wrapper.
9412         * math/w_ilogbf.c: New file: ilogbf wrapper.
9413         * math/w_ilogbl.c: New file: ilogbl wrapper.
9414         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9415         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9416         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9417         exception being thrown with 0.0 as argument.
9418         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9419         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9420         exception being thrown with 0.0 as argument.
9421         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9422         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9423         exception being thrown with 0.0 as argument.
9424         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9425         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9426         exception being thrown with 0.0 as argument.
9427         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9428         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9429         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9430         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9431         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9432         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9433         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9434         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9435         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9436
9437 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9438
9439         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9440         with altivec.
9441
9442 2012-04-16  Marek Polacek  <polacek@redhat.com>
9443
9444         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9445
9446 2012-04-16  Marek Polacek  <polacek@redhat.com>
9447
9448         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9449         operands of fdivp instruction.
9450
9451 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9452
9453         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9454         * elf/tst-auditmod3b.c: Likewise.
9455         * elf/tst-auditmod4b.c: Likewise.
9456         * elf/tst-auditmod5b.c: Likewise.
9457         * elf/tst-auditmod6b.c: Likewise.
9458         * elf/tst-auditmod6c.c: Likewise.
9459         * elf/tst-auditmod7b.c: Likewise.
9460         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9461         * sysdeps/x86_64/preconfigure.in: Likewise.
9462         * sysdeps/x86_64/preconfigure: Regenerated.
9463
9464 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9465
9466         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9467         __ILP32__.
9468
9469 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9470
9471         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9472         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9473
9474 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9475
9476         [BZ #13973]
9477         * locale/iso-639.def: Fix gl language name. Spotted by
9478         Yaron Shahrabani.
9479
9480 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9481
9482         [BZ #2074]
9483         * libio/libio.h (__io_write_fn): Update comment.
9484
9485 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9486
9487         [BZ #2074]
9488         * stdio.texi (Hook Functions): The user provided writer function
9489         is not allowed to return -1.
9490
9491 2012-04-11  David S. Miller  <davem@davemloft.net>
9492
9493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9494
9495 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9496
9497         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9498         Add a leading slash to rtkaio.
9499
9500 2012-04-11  Jim Meyering  <meyering@redhat.com>
9501
9502         [BZ #11959]
9503         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9504         It is not necessarily an error to ignore fwrite's return
9505         value.  One can reliably use ferror to test for errors after
9506         the fact.
9507
9508 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9509
9510         * bits/types.h (__snseconds_t): New type.
9511         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9512
9513         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9514         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9515         (__SNSECONDS_T_TYPE): Likewise.
9516         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9517         (__SNSECONDS_T_TYPE): Likewise.
9518         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9519         (__SNSECONDS_T_TYPE): Likewise.
9520
9521 2012-04-10  Andreas Jaeger  <aj@suse.de>
9522
9523         [BZ #2636]
9524         * manual/time.texi (Processor Time): Return type of times is
9525         elapsed real time since an arbitrary point in the past.
9526         (CPU Time): Move CLK_TCK from here...
9527         (Processor Time): ...to here.  Correct description.
9528         * manual/conf.texi (Constants for Sysconf): Correct description of
9529         _SC_CLK_TCK.
9530
9531 2012-04-10  David S. Miller  <davem@davemloft.net>
9532
9533         [BZ #13967]
9534         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9535         where the is a gap between DT_REL(A) and DT_JMPREL.
9536
9537 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9538
9539         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9540         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9541         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9542
9543 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9544
9545         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9546         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9547         (dl_main): Handle --inhibit-cache.
9548         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9549         _dl_inhibit_cache.
9550         * elf/dl-load.c (_dl_map_object): Use it.
9551         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9552
9553 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9554
9555         [BZ #13872]
9556         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9557         (__ieee754_powl): Saturate large exponents rather than testing for
9558         overflow of y*log2(x).
9559         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9560         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9561         exceptions.
9562
9563         [BZ #11521]
9564         * math/s_ctan.c: Include <float.h>.
9565         (__ctan): Avoid internal overflow or cancellation in calculating
9566         denominator.
9567         * math/s_ctanf.c: Likewise.
9568         * math/s_ctanl.c: Likewise.
9569         * math/s_ctanh.c: Likewise.
9570         * math/s_ctanhf.c: Likewise.
9571         * math/s_ctanhl.c: Likewise.
9572         * math/libm-test.inc (ctan_test): Add more tests.
9573         (ctanh_test): Likewise.
9574         * sysdeps/i386/fpu/libm-test-ulps: Update.
9575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9576
9577 2012-04-09  Andreas Jaeger  <aj@suse.de>
9578
9579         [BZ #6894]
9580         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9581         is an optional BSD extension.
9582
9583         [BZ #10254]
9584         * manual/stdio.texi (Opening Streams): Document additional fopen
9585         parameters.
9586
9587 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9588
9589         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9590         %eax without telling the compiler.
9591
9592 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9593
9594         [BZ # 13963]
9595         * manual/install.texi: Use sourceware.org.
9596
9597 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9598
9599         [BZ #13873]
9600         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9601         (__ieee754_pow): Generate overflow and underflow using huge*huge
9602         and tiny*tiny rather than just returning constant infinity or zero
9603         for large exponents.
9604         * math/libm-test.inc (pow_test): Require overflow exceptions for
9605         applicable cases of large exponents.
9606
9607         [BZ #706]
9608         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9609         (__ieee754_pow): Use iterative multiplication algorithm only for
9610         integer exponents with absolute value below 1024.  Check for odd
9611         integer exponents when using algorithm for real exponents.
9612         * math/libm-test.inc (pow_test): Add more tests.
9613         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9614
9615 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9616
9617         [BZ #13705]
9618         * math/libm-test.inc (exp_test): Do not allow overflow exception
9619         on underflow test.
9620
9621 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9622
9623         [BZ #13705]
9624         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9625         instead of __kernel_standard_f.
9626
9627 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9628
9629         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9630         * sysdeps/x86_64/memset_chk.S: Likewise.
9631
9632 2012-04-08  Andreas Jaeger  <aj@suse.de>
9633
9634         [BZ #10153]
9635         * manual/startup.texi (Environment Access): Describe return value
9636         for putenv and setenv.
9637
9638         [BZ #6895]
9639         * manual/filesys.texi (Directory Entries): Add description for
9640         DT_LNK.
9641
9642         [BZ #6890]
9643         * manual/filesys.texi (Directory Entries): Clarify that it's file
9644         system not operating system in the description of DT_UNKNOWN.
9645
9646         [BZ #6578]
9647         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9648
9649 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9650
9651         [BZ #6649]
9652         * manual/llio.texi (Opening and Closing Files): Add cross
9653         reference to explain mode argument.
9654
9655 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9656
9657         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9658         * sysdeps/x86_64/memset_chk.S: Likewise.
9659
9660 2012-04-07  David S. Miller  <davem@davemloft.net>
9661
9662         * elf/elf.h (R_SPARC_WDISP10): Define.
9663         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9664         R_SPARC_SIZE32.
9665         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9666         R_SPARC_SIZE64 and R_SPARC_H34.
9667
9668 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9669
9670         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9671         conditions and remove no longer applicable assertion.
9672
9673 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9674
9675         * bits/byteswap.h: Include <features.h>.
9676         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9677         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9678
9679 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9680
9681         * bits/byteswap.h (__bswap_16): Removed.
9682         Include <bits/byteswap-16.h> to get __bswap_16.
9683         * sysdeps/i386/bits/byteswap.h: Likewise.
9684         * sysdeps/s390/bits/byteswap.h: Likewise.
9685         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9686         * bits/byteswap-16.h: New file.
9687         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9688         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9689         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9690         * string/Makefile (headers): Add bits/byteswap-16.h.
9691
9692 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9693
9694         [BZ #13895]
9695         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9696         extra indirection.
9697         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9698         * nss/tst-nss-static.c: New.
9699
9700 2012-04-06  Robert Millan  <rmh@gnu.org>
9701
9702         [BZ #6486]
9703         * manual/llio.texi (File Position Primitive): lseek
9704         refers to WHENCE when it really means OFFSET.
9705
9706 2012-04-06  Andreas Jaeger  <aj@suse.de>
9707
9708         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9709         strncmp declarations.
9710
9711         * abilist/libc.abilist: Add __poll and __ppoll.
9712
9713 2012-04-05  David S. Miller  <davem@davemloft.net>
9714
9715         * scripts/check-local-headers.sh: Accept a host triplet in the
9716         path matched by the exclude regexp.
9717
9718         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9719         definition.
9720         * sysdeps/powerpc/powerpc32/dl-machine.h
9721         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9722         * sysdeps/s390/s390-32/dl-machine.h
9723         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9724         * sysdeps/sparc/sparc32/dl-machine.h
9725         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9726         * sysdeps/sparc/sparc64/dl-machine.h
9727         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9728
9729         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9730         lazy binding.
9731         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9732         undefined symbol errors.
9733
9734         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9735         DT_NEEDED entries.
9736
9737 2012-04-05  Michael Matz  <matz@suse.de>
9738
9739         [BZ #13592]
9740         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9741
9742 2012-04-05  Andreas Jaeger  <aj@suse.de>
9743
9744         [BZ #13908]
9745         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9746         comment.
9747
9748 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9749
9750         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9751         which ROUND is no valid rounding mode.
9752
9753 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9754
9755         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9756         read again.
9757         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9758
9759 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9760
9761         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9762         an exception using FPU order intentionally.
9763
9764 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9765
9766         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9767         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9768         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9769         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9770
9771 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9772
9773         [BZ #12340]
9774         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9775         EINVAL when BUFLEN is too smal.
9776
9777 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9778
9779         [BZ #13553]
9780         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9781         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9782
9783 2012-04-03  Andreas Jaeger  <aj@suse.de>
9784
9785         [BZ #13938]
9786         * manual/setjmp.texi (System V contexts): Fix sentence.
9787
9788         [BZ #13926]
9789         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9790         New macro for this case.
9791         [!__GNUC__] (__bswap_64): New inline function for this case.
9792         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9793         * bits/byteswap.h: Likewise.
9794         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9795         ull, guard with __GLIBC_HAVE_LONG_LONG.
9796
9797         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9798         __GLIBC_HAVE_LONG_LONG.
9799
9800         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9801         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9802
9803 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9804
9805         [BZ #13691]
9806         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9807         inptr and inend, rather than using last_ch.
9808
9809 2012-04-02  David S. Miller  <davem@davemloft.net>
9810
9811         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9812         * stdio-common/printf-parse.h (read_int): Change return type to
9813         'int', return -1 on INT_MAX overflow.
9814         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9815         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9816         overflows INT_MAX.  Check for overflow of in-format-string precision
9817         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9818         SIZE_MAX not INT_MAX for integer overflow test.
9819         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9820         skip the construct in the format string but do not record anything.
9821         * stdio-common/bug22.c: Adjust to test both width/prevision
9822         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9823         explicitly for proper errno values.
9824
9825 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9826
9827         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9828         CHAR_MAX.
9829         * string/test-strcmp.c [! WIDE]: Likewise.
9830         * time/tst-mktime2.c: Likewise for INT_MAX.
9831         * string/test-string.h: #include <sys/param.h> for MIN.
9832
9833         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9834         * sysdeps/i386/init-first.c (init): Likewise.
9835         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9836         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9837         * sysdeps/sh/init-first.c (init): Likewise.
9838
9839 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9840
9841         * po/ru.po: Update from translation team.
9842         * po/vi.po: Likewise.
9843
9844 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9845
9846         * resolv/nss_dns/dns-host.c: Merge copyright years.
9847
9848 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9849
9850         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9851         Optimize memcpy with prefetch if
9852         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9853         src, dst pointers have unequal 16 byte alignments.
9854
9855 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9856
9857         [BZ #13928]
9858         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9859         from a CNAME entry and return the minimum ttl for the query.
9860         (gaih_getanswer_slice): Likewise.
9861
9862 2012-03-30  Jeff Law  <law@redhat.com>
9863
9864         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9865         due to long keys.
9866         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9867         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9868
9869         * resolv/nss_dns/dns-host.c: Update copyright year.
9870
9871 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9872
9873         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9874         requests to save a system call.  Fix check that all bytes are sent.
9875
9876         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9877         comments for sendmmsg.
9878
9879 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9880
9881         [BZ #13691]
9882         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9883         with only 1 character between 0x0041 and 0x01b0.
9884         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9885         * wcsmbs/tst-mbsnrtowcs.c: New file.
9886
9887 2012-03-29  David S. Miller  <davem@davemloft.net>
9888
9889         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9890         small copies by hand.
9891
9892 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9893
9894         [BZ #13761]
9895         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9896         _nss_compat_initgroups_dyn): Fall back to malloc/free
9897         for large group memberships.
9898
9899 2012-03-28  David S. Miller  <davem@davemloft.net>
9900
9901         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9902         that branches into memcpy.
9903         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9904         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9905         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9906         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9907         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9908         bits.
9909         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9910         implementation too.
9911         * sysdeps/sparc/mempcpy.S: New file.
9912
9913         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9914         the IFUNC routine in the libc case.
9915         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9916
9917         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9918         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9919         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9920         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9921         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9922         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9923         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9924         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9925
9926         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9927         loop to 256 bytes instead of 64 bytes and fix test signedness.
9928
9929         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9930         * sysdeps/sparc/sparc32/Makefile: rather than here...
9931         * sysdeps/sparc/sparc64/Makefile: and here.
9932
9933 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9934
9935         * malloc/mallocbug.c: Avoid warnings about unused variables.
9936
9937 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9938
9939         [BZ #13760]
9940         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9941         in the right place. Discard and retry query if response is
9942         larger than input buffer size.
9943
9944 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9945
9946         [BZ #369]
9947         [BZ #2678]
9948         [BZ #3866]
9949         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9950         x for large integer exponent.
9951         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9952         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9953         sign of result as needed afterwards.
9954         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9955         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9956         result for underflowing pow the same as for overflow.
9957         (__kernel_standard_l): Handle powl overflow and underflow here
9958         rather than calling __kernel_standard.
9959         * math/libm-test.inc (pow_test): Add more tests.
9960
9961         [BZ #3868]
9962         [BZ #13879]
9963         [BZ #13910]
9964         [BZ #13911]
9965         [BZ #13912]
9966         [BZ #13913]
9967         [BZ #13915]
9968         [BZ #13916]
9969         [BZ #13917]
9970         [BZ #13918]
9971         [BZ #13919]
9972         [BZ #13920]
9973         [BZ #13921]
9974         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9975         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9976         (__kernel_standard_l): New function.
9977         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9978         __kernel_standard.
9979         * math/w_acosl.c (__acosl): Likewise.
9980         * math/w_asinl.c (__asinl): Likewise.
9981         * math/w_atan2l.c (__atan2l): Likewise.
9982         * math/w_atanhl.c (__atanhl): Likewise.
9983         * math/w_coshl.c (__coshl): Likewise.
9984         * math/w_exp10l.c (__exp10l): Likewise.
9985         * math/w_exp2l.c (__exp2l): Likewise.
9986         * math/w_fmodl.c (__fmodl): Likewise.
9987         * math/w_hypotl.c (__hypotl): Likewise.
9988         * math/w_j0l.c (__j0l, __y0l): Likewise.
9989         * math/w_j1l.c (__j1l, __y1l): Likewise.
9990         * math/w_jnl.c (__jnl, __ynl): Likewise.
9991         * math/w_lgammal.c (__lgammal): Likewise.
9992         * math/w_log10l.c (__log10l): Likewise.
9993         * math/w_log2l.c (__log2l): Likewise.
9994         * math/w_logl.c (__logl): Likewise.
9995         * math/w_powl.c (__powl): Likewise.
9996         * math/w_remainderl.c (__remainderl): Likewise.
9997         * math/w_scalbl.c (sysv_scalbl): Likewise.
9998         * math/w_sinhl.c (__sinhl): Likewise.
9999         * math/w_sqrtl.c (__sqrtl): Likewise.
10000         * math/w_tgammal.c (__tgammal): Likewise.
10001         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10002         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10003         * math/libm-test.inc (acos_test): Add more tests.
10004         (acosh_test): Likewise.
10005         (asin_test): Likewise.
10006         (atanh_test): Likewise.
10007         (exp_test): Likewise.
10008         (exp10_test): Likewise.
10009         (exp2_test): Likewise.
10010         (expm1_test): Likewise.
10011         (lgamma_test): Likewise.
10012         (log_test): Likewise.
10013         (log10_test): Likewise.
10014         (log1p_test): Likewise.
10015         (log2_test): Likewise.
10016         (pow_test): Do not allow some spurious overflow exceptions.
10017         (sqrt_test): Add more tests.
10018         (tgamma_test): Likewise.
10019         (y0_test): Likewise.
10020         (y1_test): Likewise.
10021         (yn_test): Likewise.
10022
10023 2012-03-27  Anton Blanchard  <anton@samba.org>
10024
10025         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10026         MAP_HUGETLB.
10027         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10028         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10029         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10030
10031 2012-03-27  David S. Miller  <davem@davemloft.net>
10032
10033         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10034
10035         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10036         have-as-vis3 check.
10037
10038 2012-03-27  Andreas Jaeger  <aj@suse.de>
10039
10040         * sysdeps/x86_64/elf/configure.in: Moved to ...
10041         * sysdeps/x86_64/configure.in: ... here.
10042         * sysdeps/x86_64/elf/start.S: Moved to ...
10043         * sysdeps/x86_64/start.S: ... here.
10044         * sysdeps/x86_64/elf/configure: Delete.
10045
10046         * sysdeps/x86_64/configure.in: Merge contents from
10047         sysdeps/i386/configure.in (without i686 check).
10048
10049         * sysdeps/i386/elf/Versions: Merge into ...
10050         * sysdeps/i386/Versions: ... this.
10051         * sysdeps/i386/elf/Versions: Delete file.
10052         * sysdeps/i386/elf/start.S: Moved to ...
10053         * sysdeps/i386/start.S: ...here.
10054         * sysdeps/i386/elf/configure.in: Merge into...
10055         * sysdeps/i386/configure.in: ...here.
10056         * sysdeps/i386/elf/configure.in: Delete file.
10057         * sysdeps/i386/elf/configure: Delete file.
10058
10059         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10060         * debug/backtracesyms.c: ... here.
10061         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10062         * debug/backtracesymsfd.c: ... here.
10063         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10064         * sysdeps/generic/ifunc-sel.h: ... here.
10065
10066         * sysdeps/unix/i386/start.c: Delete file.
10067         * sysdeps/unix/sparc/start.c: Delete file.
10068         * sysdeps/unix/start.c: Delete file.
10069
10070         * sysdeps/sh/elf/configure.in: Moved to ...
10071         * sysdeps/sh/configure.in: ... here.
10072         * sysdeps/sh/elf/start.S: Moved to ...
10073         * sysdeps/sh/start.S: ... here.
10074         * sysdeps/sh/elf/configure: Delete file.
10075
10076         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10077         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10078         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10079         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10080         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10081         * sysdeps/powerpc/powerpc64/start.S: here.
10082         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10083         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10084         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10085         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10086         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10087
10088         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10089         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10090         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10091         * sysdeps/powerpc/powerpc32/start.S: ... here.
10092         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10093         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10094         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10095
10096         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10097         * sysdeps/powerpc/ifunc-sel.h: ... here.
10098         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10099         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10100
10101         * sysdeps/sparc/elf/configure.in: Moved to ...
10102         * sysdeps/sparc/configure.in: ... here.
10103         * sysdeps/sparc/elf/configure: Delete file.
10104         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10105         * sysdeps/sparc/sparc32/start.S: ... here.
10106         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10107         * sysdeps/sparc/sparc64/start.S: ... here.
10108         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10109         * sysdeps/sparc/sparc32/Makefile: ... this.
10110         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10111         * sysdeps/sparc/sparc64/Makefile: ... this.
10112
10113         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10114         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10115         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10116         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10117         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10118         * sysdeps/s390/s390-32/setjmp.S: ... here.
10119         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10120         * sysdeps/s390/s390-32/configure.in: ... here.
10121         * sysdeps/s390/s390-32/elf/configure: Delete file.
10122         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10123         * sysdeps/s390/s390-32/start.S: ... here.
10124
10125         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10126         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10127         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10128         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10129         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10130         * sysdeps/s390/s390-64/setjmp.S: ... here.
10131         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10132         * sysdeps/s390/s390-64/configure.in: ... here
10133         * sysdeps/s390/s390-64/elf/configure: Delete file.
10134         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10135         * sysdeps/s390/s390-64/start.S: ... here.
10136         * sysdeps/s390/s390-64/elf/configure: Delete.
10137
10138         * configure.in: Remove support for elf directories in sysdeps.
10139
10140         * configure: Regenerated.
10141         * sysdeps/i386/configure: Regenerated.
10142         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10143         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10144         * sysdeps/s390/s390-32/configure: Regenerated.
10145         * sysdeps/s390/s390-64/configure: Regenerated.
10146         * sysdeps/sh/configure: Regenerated.
10147         * sysdeps/sparc/configure: Regenerated.
10148         * sysdeps/x86_64/configure: Regenerated.
10149
10150 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10151
10152         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10153
10154         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10155         denormal result into account.
10156
10157 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10158
10159         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10160         Reported by Allan McRae <allan@archlinux.org>.
10161
10162 2012-03-23  Jeff Law  <law@redhat.com>
10163
10164         * nss/getnssent.c (__nss_getent): Fix typo.
10165
10166 2012-03-23  David S. Miller  <davem@davemloft.net>
10167
10168         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10169
10170 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10171
10172         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10173         to pad to uint64_t for each field.
10174         (dl_tls_index): Replace unsigned long with uint64_t.
10175
10176 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10177         Paul Pluzhnikov  <ppluzhnikov@google.com>
10178
10179         [BZ #6528]
10180         * grp/Makefile (otherlibs): Don't set it.
10181         * inet/Makefile (otherlibs): Likewise.
10182         * login/Makefile (otherlibs): Likewise.
10183         * nscd/Makefile (otherlibs): Likewise.
10184         * posix/Makefile (otherlibs): Likewise.
10185         * pwd/Makefile (otherlibs): Likewise.
10186         * rt/Makefile (otherlibs): Likewise.
10187         * sunrpc/Makefile (otherlibs): Likewise.
10188         * nss/Makefile (otherlibs): Likewise.
10189         Add libnss_files to routines and static-only-routines.
10190         ($(objpfx)getent): Remove rule.
10191         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10192         static-only-routines.
10193
10194 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10195
10196         [BZ #13892]
10197         * math/s_cexp.c: Include <float.h>.
10198         (__cexp): Handle exp result overflowing not necessarily
10199         overflowing both real and imaginary parts of result.
10200         * math/s_cexpf.c: Likewise.
10201         * math/s_cexpl.c: Likewise.
10202         * math/libm-test.inc (cexp_test): Add more tests.
10203         * sysdeps/i386/fpu/libm-test-ulps: Update.
10204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10205
10206 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10207
10208         * include/link.h (ELFW): New macro.
10209         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10210         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10211
10212 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10213
10214         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10215         with uint64_t.
10216
10217 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10218
10219         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10220         declaration.
10221         (struct La_x32_retval): Likewise.
10222
10223 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10224
10225         * sysdeps/x86_64/preconfigure.in: New file.
10226         * sysdeps/x86_64/preconfigure: New generated file.
10227
10228 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10229
10230         [BZ #13824]
10231         * math/e_exp2l.c: Include <float.h>.
10232         (__ieee754_exp2l): Handle overflow and underflow cases
10233         separately.  Only pass fractional part of argument to
10234         __ieee754_expl.
10235         * math/libm-test.inc (exp2_test): Add more tests.
10236
10237         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10238         negating x to take absolute value.
10239         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10240         Likewise.
10241         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10242         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10243         Likewise.
10244         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10245         computing low part if x was negated.
10246         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10247
10248 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10249
10250         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10251         la_x32_gnu_pltexit.
10252         (pltexit): Cast int_retval to ptrdiff_t.
10253         * elf/tst-auditmod3b.c: Likewise.
10254         * elf/tst-auditmod4b.c: Likewise.
10255         * elf/tst-auditmod5b.c: Likewise.
10256         * elf/tst-auditmod6b.c: Likewise.
10257         * elf/tst-auditmod6c.c: Likewise.
10258         * elf/tst-auditmod7b.c: Likewise.
10259
10260         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10261         and x32_gnu_pltexit.
10262
10263         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10264         __ELF_NATIVE_CLASS.
10265         (La_x32_regs): New macro.
10266         (La_x32_retval): Likewise.
10267         (la_x32_gnu_pltenter): New function prototype.
10268         (la_x32_gnu_pltexit): Likewise.
10269
10270 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10271
10272         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10273         exponent.
10274
10275         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10276
10277         * configure.in (libc_cv_cc_nofma): Check for option to disable
10278         generation of FMA instructions.
10279         * configure: Regenerate.
10280         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10281         * sysdeps/ieee754/dbl-64/Makefile: New file.
10282         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10283         Remove brandred-fma4.
10284         (CFLAGS-brandred-fma4.c): Remove.
10285         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10286         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10287         define.
10288         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10289         define.
10290
10291 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10292
10293         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10294         LLONG_MAX != LONG_MAX.
10295         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10296         (_fitoa_word): Likewise.
10297         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10298         LLONG_MAX != LONG_MAX.
10299         * stdio-common/_itowa.h: Include <_itoa.h>.
10300         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10301         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10302         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10303         only if not defined.
10304         (_ITOA_WORD_TYPE): Likewise.
10305         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10306         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10307
10308 2012-03-21  David S. Miller  <davem@davemloft.net>
10309
10310         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10311
10312 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10313
10314         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10315         of x86_64 when setting libc_cv_slibdir, libdir and
10316         libc_cv_localedir.
10317         * sysdeps/unix/sysv/linux/configure: Regenerated.
10318
10319 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10320
10321         * manual/lang.texi (Old Varargs): Remove section.
10322         (How Variadic): Update menu.
10323         (va_start): Do not mention varargs.h.
10324
10325 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10326             Joseph Myers  <joseph@codesourcery.com>
10327
10328         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10329         link test.
10330         * configure: Regenerated.
10331
10332 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10333
10334         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10335         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10336         conformtest.pl
10337
10338 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10339
10340         * NOTES: Remove.
10341         * Makefile (files-for-dist): Remove NOTES.
10342         (NOTES): Remove rule.
10343         * README: Don't refer to NOTES.
10344         * manual/creature.texi: Don't include macros.texi.
10345         * manual/intro.texi (creature.texi): Remove comment referring to
10346         NOTES.
10347
10348         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10349         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10350         * configure: Regenerated.
10351         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10352         LIBC_TRY_CC_OPTION.
10353         (libc_cv_as_i686): Likewise.
10354         (libc_cv_cc_avx): Likewise.
10355         (libc_cv_cc_sse2avx): Likewise.
10356         (libc_cv_cc_fma4): Likewise.
10357         (libc_cv_cc_novzeroupper): Likewise.
10358         * sysdeps/i386/configure: Regenerated.
10359
10360         [BZ #13883]
10361         * sysdeps/i386/fpu/s_cexp.S: Remove.
10362         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10363         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10364         * math/libm-test.inc (cexp_test): Add more tests.
10365         * sysdeps/i386/fpu/libm-test-ulps: Update.
10366         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10367
10368 2012-03-21  Allan McRae  <allan@archlinux.org>
10369
10370         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10371
10372 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10373
10374         [BZ #13871]
10375         * math/w_exp2.c: Do not include <float.h>.
10376         (o_threshold, u_threshold): Remove.
10377         (__exp2): Calculate result before checking finiteness and calling
10378         __kernel_standard.
10379         * math/w_exp2f.c: Likewise.
10380         * math/w_exp2l.c: Likewise.
10381         * math/libm-test.inc (exp2_test): Require overflow exception for
10382         1e6 input.
10383
10384         [BZ #3866]
10385         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10386         range of signed 64-bit integers before using fistpll.  Remove
10387         checks for whether integers fit in mantissa bits.
10388         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10389         the range of signed 32-bit integers before using fistpl.  Remove
10390         checks for whether integers fit in mantissa bits.
10391         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10392         (__ieee754_powl): Test for y outside the range of signed 64-bit
10393         integers before using fistpll.  Reduce 64-bit values to 63-bit
10394         ones as needed.
10395         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10396         divide-by-zero is raised for zero to large negative powers.
10397         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10398         (__ieee754_powl): Test for y outside the range of signed 64-bit
10399         integers before using fistpll.  Reduce 64-bit values to 63-bit
10400         ones as needed.
10401         * math/libm-test.inc (pow_test): Add more tests.
10402
10403 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10404
10405         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10406         <stdio-common/_itoa.h>.
10407         * debug/segfault.c: Likewise.
10408         * elf/dl-cache.c: Likewise.
10409         * elf/dl-minimal.c: Likewise.
10410         * elf/dl-misc.c: Likewise.
10411         * elf/dl-sysdep.c: Likewise.
10412         * elf/dl-version.c: Likewise.
10413         * elf/rtld.c: Likewise.
10414         * hurd/hurdsock.c: Likewise.
10415         * hurd/lookup-retry.c: Likewise.
10416         * malloc/malloc.c: Likewise.
10417         * malloc/mtrace.c: Likewise.
10418         * nscd/nscd_getgr_r.c: Likewise.
10419         * nscd/nscd_getpw_r.c: Likewise.
10420         * nscd/nscd_getserv_r.c: Likewise.
10421         * posix/getopt_init.c: Likewise.
10422         * posix/wordexp.c: Likewise.
10423         * stdio-common/_itoa.c: Likewise.
10424         * stdio-common/printf_fphex.c: Likewise.
10425         * stdio-common/vfprintf.c: Likewise.
10426         * string/_strerror.c: Likewise.
10427         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10428         * sysdeps/i386/i686/hp-timing.h: Likewise.
10429         * sysdeps/mach/_strerror.c: Likewise.
10430         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10431         * sysdeps/mach/hurd/sethostid.c: Likewise.
10432         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10433         * sysdeps/mach/xpg-strerror.c: Likewise.
10434         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10435         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10436         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10437         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10438         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10439         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10440         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10441         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10442         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10443         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10444         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10445         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10446         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10447         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10448         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10449         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10450         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10451         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10452         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10453         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10454         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10455
10456         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10457
10458         * stdio-common/_itoa.h: Moved to ...
10459         * sysdeps/generic/_itoa.h: Here.
10460
10461         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10462
10463         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10464         instead of "_itoa.h" and "_itowa.h".
10465         * stdio-common/vfprintf.: Likewise.
10466
10467 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10468
10469         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10470         <bits/wordsize.h>.
10471         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10472         (__signbit): Likwise.
10473         (llrintf): Likwise.
10474         (llrint): Likwise.
10475
10476 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10477
10478         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10479         __WORDSIZE != 64.
10480
10481 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10482
10483         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10484         OVERFLOW_EXCEPTION_OK.
10485         * math/libm-test.inc ("Philosophy"): Update comment about
10486         exception testing.
10487         (OVERFLOW_EXCEPTION): Define.
10488         (OVERFLOW_EXCEPTION_OK): Likewise.
10489         (INVALID_EXCEPTION_OK): Renumber.
10490         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10491         (IGNORE_ZERO_INF_SIGN): Likewise.
10492         (test_exceptions): Handle FE_OVERFLOW.
10493         (exp10_test): Expect overflow exceptions.
10494         (exp2_test): Likewise.
10495         (expm1_test): Likewise.
10496         (nextafter_test): Likewise.
10497         (pow_test): Likewise.
10498         (scalbn_test): Likewise.
10499         (scalbln_test): Likewise.
10500
10501 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10502
10503         * sysdeps/x86_64/bits/atomic.h
10504         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10505         64bit integer.
10506         (atomic_exchange_acq): Likewise.
10507         (__arch_exchange_and_add_body): Likewise.
10508         (__arch_add_body): Likewise.
10509         (atomic_add_negative): Likewise.
10510         (atomic_add_zero): Likewise.
10511
10512 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10513
10514         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10515         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10516
10517 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10518
10519         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10520         Check __x86_64__ instead of __WORDSIZE.
10521
10522 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10523
10524         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10525
10526 2012-03-19  David S. Miller  <davem@davemloft.net>
10527
10528         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10529
10530         * sysdeps/sparc/fpu/fenv_private.h: New file.
10531         * sysdeps/sparc/fpu/math_private.h: Use it.
10532         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10533         Remove.
10534         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10535         (libc_feholdexcept_setroundl): Remove.
10536         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10537         Remove.
10538         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10539         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10540
10541 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10542
10543         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10544         int64_t instead of long int.
10545         (INSERT_WORDS64): Likwise.
10546
10547 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10548
10549         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10550         _Unwind_GetCFA return to _Unwind_Ptr first.
10551
10552 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10553
10554         [BZ #13629]
10555         * math/s_clog.c: Include <float.h>.
10556         (__clog): Scale large or subnormal inputs.
10557         * math/s_clogf.c: Likewise.
10558         * math/s_clogl.c: Likewise.
10559         * math/s_clog10.c: Include <float.h>.
10560         (M_LOG10_2): Define.
10561         (__clog10): Scale large or subnormal inputs.
10562         * math/s_clog10f.c: Likewise.
10563         * math/s_clog10l.c: Likewise.
10564         * math/libm-test.inc (clog_test): Add more tests.
10565         (clog10_test): Likewise.
10566         * sysdeps/i386/fpu/libm-test-ulps: Update.
10567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10568
10569         [BZ #11451]
10570         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10571         x and y.
10572         * math/libm-test.inc (atan2_test): Add another test.
10573
10574         * Makerules (common-objdir-compile): Remove.
10575         * sysdeps/unix/Makefile (config-generated): Do not add
10576         $(unix-generated) to variable.
10577         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10578         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10579         Remove rule.
10580         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10581         Likewise.
10582         [generic bits/local_lim.h] (before-compile): Do not append to
10583         variable.
10584         [generic bits/local_lim.h] (common-generated): Likewise.
10585         [generic sys/param.h] (before-compile): Do not append to variable.
10586         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10587         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10588         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10589         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10590         include.
10591         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10592         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10593         [generic sys/param.h] ($(addprefix
10594         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10595         [generic sys/param.h] (common-generated): Do not append to
10596         variable.
10597         [generic sys/param.h] (sysdep_headers): Likewise.
10598         [generic bits/errno.h] (before-compile): Do not append to
10599         variable.
10600         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10601         rule.
10602         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10603         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10604         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10605         [generic bits/errno.h] (common-generated): Do not append to
10606         variable.
10607         [generic bits/ioctls.h] (before-compile): Do not append to
10608         variable.
10609         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10610         rule.
10611         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10612         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10613         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10614         rule.
10615         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10616         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10617         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10618         [generic bits/ioctls.h] (common-generated): Do not append to
10619         variable.
10620         [generic sys/syscall.h] (syscall.h): Remove variable.
10621         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10622         rule.
10623         [generic sys/syscall.h] (before-compile): Do not append to
10624         variable.
10625         [generic sys/syscall.h] (common-generated): Likewise.
10626         * sysdeps/unix/errnos-tmpl.c: Remove file.
10627         * sysdeps/unix/errnos.awk: Likewise.
10628         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10629         * sysdeps/unix/ioctls.awk: Likewise.
10630         * sysdeps/unix/mk-local_lim.c: Likewise.
10631         * sysdeps/unix/snarf-ioctls: Likewise.
10632
10633 2012-03-19  Richard Henderson  <rth@twiddle.net>
10634
10635         * sysdeps/i386/fpu/fenv_private.h: New file.
10636         * sysdeps/i386/fpu/math_private.h: Use it.
10637         (math_opt_barrier, math_force_eval): Remove.
10638         (libc_feholdexcept_setround_53bit): Remove.
10639         (libc_feupdateenv_53bit): Remove.
10640         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10641         (math_opt_barrier, math_force_eval): Remove.
10642         (libc_feholdexcept): Remove.
10643         (libc_feholdexcept_setround): Remove.
10644         (libc_fetestexcept, libc_fesetenv): Remove.
10645         (libc_feupdateenv_test): Remove.
10646         (libc_feupdateenv, libc_feholdsetround): Remove.
10647         (libc_feresetround): Remove.
10648
10649         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10650         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10651
10652         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10653         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10654         (libc_feupdateenv_testl): New.
10655         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10656         (libc_feupdateenv_testf): New.
10657         (libc_feupdateenv): Use libc_feupdateenv_test.
10658         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10659         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10660
10661         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10662         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10663         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10664         (libc_feresetround_noex): New.
10665         (libc_feresetround_noexf): New.
10666         (libc_feresetround_noexl): New.
10667         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10668         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10669         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10670         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10671         SET_RESTORE_ROUND.
10672         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10673         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10674         (__cos): Likewise.
10675         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10676         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10677         SET_RESTORE_ROUND_NOEX.
10678         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10679         SET_RESTORE_ROUND_NOEXF.
10680         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10681         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10682         (libc_feholdsetroundf): New.
10683         (libc_feresetround, libc_feresetroundf): New.
10684
10685         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10686         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10687         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10688
10689         * sysdeps/generic/math_private.h: Include <fenv.h>.
10690         (default_libc_feholdexcept): New.
10691         (default_libc_feholdexcept_setround): New.
10692         (default_libc_fesetenv, default_libc_feupdateenv): New.
10693         (libc_feholdexcept): Only define if undefined.
10694         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10695         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10696         (libc_feholdexcept_setroundl): Likewise.
10697         (libc_feholdexcept_setround_53bit): Likewise.
10698         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10699         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10700         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10701         (libc_feupdateenv_53bit): Likewise.
10702         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10703         (libc_feholdexcept): Convert from macro to inline function.
10704         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10705         (libc_fesetenv, libc_feupdateenv): Likewise.
10706
10707         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10708         not previously defined.
10709         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10710         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10711         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10712         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10713         * sysdeps/ieee754/flt-32/math_private.h: New file.
10714         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10715         math_private.h below SET_FLOAT_WORD.
10716         (__isnan, __isinf_ns, __finite): Remove.
10717         (__isnanf, __isinf_nsf, __finitef): Remove.
10718
10719 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10720
10721         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10722
10723 2012-03-17  David S. Miller  <davem@davemloft.net>
10724
10725         [BZ #6471]
10726         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10727         for 2.16.
10728
10729 2012-03-16  David S. Miller  <davem@davemloft.net>
10730
10731         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10732         warnings.
10733
10734         [BZ #6471]
10735         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10736         properly.
10737         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10738         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10739         sysdep_routines when subdir is sysvipc.
10740         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10741         __getshmlba helper.
10742
10743         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10744
10745 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10746
10747         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10748         [__LP64__].
10749
10750 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10751
10752         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10753         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10754         (__lround): Renamed to ...
10755         (__llround): This.  Replace long int with long long int.
10756         Define lround functions as aliases of llround functions.
10757         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10758
10759 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10760
10761         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10762         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10763         adresses to uintptr_t.  Replace "long int" and "unsigned long
10764         int" with "greg_t" on va_arg.
10765
10766 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10767
10768         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10769         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10770
10771         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10772         Move e_machine check before EI_CLASS check.  Handle x32
10773         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10774         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10775         SKIP_EM_IA_64 and include
10776         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10777
10778         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10779         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10780         (add_system_dir): New macro.
10781
10782         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10783         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10784
10785 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10786
10787         [BZ #2551]
10788         [BZ #2552]
10789         [BZ #2553]
10790         [BZ #2554]
10791         [BZ #2562]
10792         [BZ #2563]
10793         [BZ #2565]
10794         [BZ #2566]
10795         [BZ #2576]
10796         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10797         (y0): Likewise.
10798         * math/w_j0f.c (j0f): Likewise.
10799         (y0f): Likewise.
10800         * math/w_j0l.c (__j0l): Likewise.
10801         (__y0l): Likewise.
10802         * math/w_j1.c (j1): Likewise.
10803         (y1): Likewise.
10804         * math/w_j1f.c (j1f): Likewise.
10805         (y1f): Likewise.
10806         * math/w_j1l.c (__j1l): Likewise.
10807         (__y1l): Likewise.
10808         * math/w_jn.c (jn): Likewise.
10809         (yn): Likewise.
10810         * math/w_jnf.c (jnf): Likewise.
10811         (ynf): Likewise.
10812         * math/w_jnl.c (__jnl): Likewise.
10813         (__ynl): Likewise.
10814         * math/libm-test.inc (j0_test): Add more tests.
10815         (j1_test): Likewise.
10816         (jn_test): Likewise.  Add trailing semicolon to existing test.
10817         (y0_test): Likewise.
10818         (y1_test): Likewise.
10819         * sysdeps/i386/fpu/libm-test-ulps: Update.
10820         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10821
10822         [BZ #13851]
10823         [BZ #13854]
10824         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10825         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10826         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10827         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10828         (__tanl): Set errno for infinite argument.
10829         * sysdeps/i386/fpu/mptan.c: Remove.
10830         * sysdeps/i386/fpu/s_tan.S: Likewise.
10831         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10832         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10833         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10834         * math/libm-test.inc (tan_test): Add more tests and enable more
10835         tests for double and long double.
10836         * sysdeps/i386/fpu/libm-test-ulps: Update.
10837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10838
10839 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10840
10841         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10842         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10843
10844 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10845
10846         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10847         * configure.in: Use it for both main tree and add-ons.
10848         * configure: Regenerated.
10849
10850 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10851
10852         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10853
10854 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10855
10856         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10857         in comment.
10858
10859         [BZ #13851]
10860         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10861         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10862         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10863         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10864         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10865         infinite argument.
10866         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10867         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10868         != 0 for prec == 2.
10869         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10870         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10871         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10872         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10873         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10874         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10875         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10876         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10877         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10878         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10879         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10880         * math/libm-test.inc (cos_test): Add more tests and enable more
10881         tests for long double.
10882         (sin_test): Likewise.
10883         (sincos_test): Likewise.
10884         * sysdeps/i386/fpu/libm-test-ulps: Update.
10885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10886
10887 2012-03-16  David S. Miller  <davem@davemloft.net>
10888
10889         * sysdeps/sparc/fpu/math_private.h: New file.
10890
10891 2012-03-15  David S. Miller  <davem@davemloft.net>
10892
10893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10894         file.
10895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10897         file.
10898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10899         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10900         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10901         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10902         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10903         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10904         sysdep routines.
10905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10906
10907         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10908         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10909
10910         * sysdeps/sparc/sparc-ifunc.h: New file.
10911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10912         sparc-ifunc.h
10913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10915         Likewise.
10916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10917         Likewise.
10918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10922         Likewise.
10923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10928         Likewise.
10929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10930         Likewise.
10931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10935         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10936         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10937         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10938         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10939         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10940         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10941         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10942         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10945         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10948         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10949         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10950         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10951         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10952         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10953         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10954         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10955
10956 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10957
10958         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10959         scaling.
10960         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10961
10962 2012-03-15  Andreas Jaeger  <aj@suse.de>
10963
10964         [BZ #13852]
10965         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10966         ieee754/flt-32 implementation for sin, cos and sincos.
10967         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10968         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10969         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10970         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10971         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10972         ieee754/flt-32 implementation for tan.
10973
10974         * math/libm-test.inc (cos_test): Enable some large input tests for
10975         float as well
10976         (sin_test): Likewise.
10977         (sincos_test): Likewise.
10978         (tan_test): Add tests for large input.
10979
10980         * sysdeps/i386/fpu/libm-test-ulps: Update.
10981
10982 2012-03-15  Andreas Jaeger  <aj@suse.de>
10983
10984         [BZ #13658]
10985         * math/libm-test.inc (cos_test): Add more test cases.
10986         (sin_test): Likewise.
10987         (sincos_test): Likewise.
10988
10989 2012-03-15  Andreas Jaeger  <aj@suse.de>
10990
10991         [BZ #13837]
10992         * math/libm-test.inc (cos_test): Add a test case for large input
10993         value.
10994         (sin_test): Likewise.
10995         (sincos_test): Likewise.
10996
10997 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10998         Joseph Myers  <joseph@codesourcery.com>
10999
11000         [BZ #13658]
11001         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11002         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11003         * sysdeps/i386/fpu/branred.c: Likewise.
11004         * sysdeps/i386/fpu/dosincos.c: Likewise.
11005         * sysdeps/i386/fpu/mpa.c: Likewise.
11006         * sysdeps/i386/fpu/s_cos.S: Likewise.
11007         * sysdeps/i386/fpu/s_sin.S: Likewise.
11008         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11009         * sysdeps/i386/fpu/sincos32.c: Likewise.
11010
11011         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11012         Define.
11013         (libc_feupdateenv_53bit): Define.
11014         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11015         Define.
11016         (libc_feupdateenv_53bit): Define.
11017
11018         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11019         53 bit (without extend i386 double precision).
11020
11021         * math/libm-test.inc (sincos_test): Add tests for large input.
11022         (sin): Likewise.
11023         (cos): Likewise.
11024
11025         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11026
11027 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11028
11029         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11030
11031 2012-03-15  David S. Miller  <davem@davemloft.net>
11032
11033         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11034         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11035         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11036         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11041         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11042         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11043         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11047         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11049         file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11052         file.
11053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11055         file.
11056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11058         file.
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11060         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11061         fmin/fmax sysdep routines.
11062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11063
11064 2012-03-14  David S. Miller  <davem@davemloft.net>
11065
11066         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11067         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11068         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11069         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11070         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11071         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11072         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11073         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11074         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11075         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11076         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11077         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11078         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11079         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11081         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11082         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11083         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11084         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11085         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11086         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11087         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11088         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11089         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11090         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11091         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11092         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11093         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11094         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11095         routines.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11097         file.
11098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11100         file.
11101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11103         file.
11104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11106         file.
11107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11109         file.
11110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11112         file.
11113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11114         file.
11115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11116         file.
11117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11118         file.
11119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11120         New file.
11121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11122         file.
11123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11124         file.
11125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11127         file.
11128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11130         file.
11131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11133         file.
11134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11136         VIS3 routines.
11137
11138         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11139         New file.
11140
11141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11142
11143         * sysdeps/sparc/configure.in: New file.
11144         * sysdeps/sparc/configure: Generate.
11145         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11146         * configure: Regenerate.
11147         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11148         * config.make.in (have-as-vis3): New.
11149         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11150         available use -Av9d instead of -Av9a.
11151         * sysdeps/sparc/sparc64/Makefile: Likewise.
11152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11154         New file.
11155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11156         file.
11157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11158         New file.
11159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11160         file.
11161         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11162         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11163         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11164         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11165         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11166
11167         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11168         fzeros/fnegs to load 0x80000000 into a float register instead of
11169         using the stack.
11170         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11171
11172 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11173
11174         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11175         bits/syscall.h.
11176         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11177         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11178         ($(inst_includedir)/bits/syscall.h): Remove rule.
11179         ($(objpfx)bits/syscall.d): Include instead of
11180         $(objpfx)syscall-list.d.
11181         (generated): Change syscall-list.h and syscall-list.d to
11182         bits/syscall.h and bits/syscall.d.
11183
11184 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11185
11186         [BZ #13846]
11187         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11188
11189 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11190
11191         [BZ #13841]
11192         * math/s_csqrt.c: Include <float.h>.
11193         (__csqrt): Scale large or subnormal inputs.
11194         * math/s_csqrtf.c: Likewise.
11195         * math/s_csqrtl.c: Likewise.
11196         * math/libm-test.inc (csqrt_test): Add more tests.
11197         * sysdeps/i386/fpu/libm-test-ulps: Update.
11198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11199
11200         [BZ #13840]
11201         * math/libm-test.inc (hypot_test): Add more tests.
11202
11203 2012-03-13  David S. Miller  <davem@davemloft.net>
11204
11205         [BZ #13840]
11206         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11207         double-precision for the calculation instead of scaling.
11208
11209 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11210
11211         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11212         manipulate bits before adding and subtracting TWO52[sx].
11213         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11214         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11215         Likewise.
11216         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11217
11218 2012-03-13  David S. Miller  <davem@davemloft.net>
11219
11220         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11221         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11222         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11223         rtld-global-offsets.h
11224         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11225
11226         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11227         large parameters.
11228
11229         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11230
11231         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11232         'err' in the ifdef scope in which it is actually used.
11233
11234         * nss/nss_db/db-init.c: Include string.h
11235
11236 2012-03-12  David S. Miller  <davem@davemloft.net>
11237
11238         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11239         masking out of the most significant byte of random value used.
11240         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11241         Fix coding style in previous change.
11242
11243         * sysdeps/unix/sysv/linux/kernel-features.h
11244         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11245         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11246         expression.
11247         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11248         later.
11249
11250 2012-03-11  David S. Miller  <davem@davemloft.net>
11251
11252         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11253         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11254         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11255         for 'resultvar' otherwise things get truncated on 64-bit.
11256
11257         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11258         Fix masking out of the most significant byte of random value used.
11259
11260         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11261
11262 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11263
11264         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11265
11266 2012-03-09  David S. Miller  <davem@davemloft.net>
11267
11268         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11269         variables with appropriate CPP guards.
11270         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11271         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11272         on resulting framesize and the management of the outregs buffer for pltexit.
11273         Preserve floating point return values across _dl_call_pltexit call.
11274         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11275         framesize and the management of the outregs buffer for pltexit.
11276         Preserve floating point return values across _dl_call_pltexit
11277         call.
11278         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11279         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11280         (print_exit): Fix format string for return register value.
11281
11282 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11283
11284         * sunrpc/Makefile (others): Add rpcgen.
11285         ($(objpfx)rpcgen): Remove special build rule and dependency on
11286         libc.
11287         * sunrpc/rpcgen.c: New file.
11288
11289 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11290
11291         [BZ #13673]
11292         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11293         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11294         * sysdeps/i386/crti.S: Likewise.
11295         * sysdeps/i386/crtn.S: Likewise.
11296         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11297         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11298         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11299         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11300         * sysdeps/sh/crti.S: Likewise.
11301         * sysdeps/sh/crtn.S: Likewise.
11302         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11303
11304         [BZ #13673]
11305         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11306         with URL.
11307         * locale/programs/locfile-kw.gperf: Likewise.
11308         * locale/programs/charmap-kw.h: Regenerated.
11309         * locale/programs/locfile-kw.h: Likewise.
11310
11311         [BZ #13673]
11312         * intl/plural.y: Replace FSF snail mail address with URL.
11313         * intl/plural.c: Regenerated.
11314
11315 2012-03-09  Richard Henderson  <rth@twiddle.net>
11316
11317         * include/math_private.h: Remove file.
11318         * math/math_private.h: Move file ...
11319         * sysdeps/generic/math_private.h: ... here.
11320
11321         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11322         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11323         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11324
11325         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11326         and <math_private.h>.
11327         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11328         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11329         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11330         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11331         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11355         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11356         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11357         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11358         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11359         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11360         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11361         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11362         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11363         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11366         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11367         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11368         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11369         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11370         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11371         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11372         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11373         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11374         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11375         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11376         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11377         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11378         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11379         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11394         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11395         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11396         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11397         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11398         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11399         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11400         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11401         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11402         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11403         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11404         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11405         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11406         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11407         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11408         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11409         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11410         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11411         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11412         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11413         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11414         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11415         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11416         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11417         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11418         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11419         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11420         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11421         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11422         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11423         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11424         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11425         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11426         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11427         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11428         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11429         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11430         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11431         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11432         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11433         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11434         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11435         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11436         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11437         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11438         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11439         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11440         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11441         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11442         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11443         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11444         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11445         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11446         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11447         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11448         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11449         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11450         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11451         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11452         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11453         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11454         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11455         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11456         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11457         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11458         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11459         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11460         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11461         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11462         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11463         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11464         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11465         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11466         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11467         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11468         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11469         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11470         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11471         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11472         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11473         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11474         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11475         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11476         * sysdeps/ieee754/k_standard.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11580         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11581         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11582         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11592         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11593         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11596         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11597         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11599         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11604         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11616         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11622         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11624         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11625         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11626         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11627         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11628         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11629         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11630         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11636         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11637         * sysdeps/ieee754/s_lib_version.c: Likewise.
11638         * sysdeps/ieee754/s_matherr.c: Likewise.
11639         * sysdeps/ieee754/s_signgam.c: Likewise.
11640         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11641         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11642         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11643         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11644         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11645         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11646         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11647         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11648         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11649         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11650         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11651         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11652         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11653         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11654         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11655         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11656         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11657         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11658         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11659         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11660         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11661
11662 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11663
11664         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11665         * sunrpc/rpc_main.c: Likewise.
11666         * sunrpc/rpc_svcout.c: Likewise.
11667
11668 2012-03-09  David S. Miller  <davem@davemloft.net>
11669
11670         * include/math_private.h: New file.
11671
11672 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11673
11674         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11675         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11676         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11677         from <bits/socket_type.h>.
11678         (enum __socket_type): Don't define here.
11679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11680         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11681         bits/socket_type.h.
11682
11683         [BZ #13566]
11684         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11685         checking __USE_GNU.
11686
11687         * Makerules ($(inst_includedir)/%.h): New rule.
11688         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11689         (install-others): Remove variable setting.
11690         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11691
11692 2012-03-08  Richard Henderson  <rth@twiddle.net>
11693
11694         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11695         from macro to inline function; merge with the
11696         !__LIBC_INTERNAL_MATH_INLINES version.
11697         (__ieee754_sqrtf): Likewise.
11698
11699         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11700         to inline function.
11701         (__rintf, __floor, __floorf): Likewise.
11702
11703         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11704         macro to inline function.
11705         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11706
11707         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11708         not <math/math_private.h>.
11709
11710 2012-03-08  David S. Miller  <davem@davemloft.net>
11711
11712         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11713         copyright year.
11714         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11715
11716 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11717
11718         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11719         normalization.
11720         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11721         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11722
11723 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11724
11725         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11726         be defined individually, they must be defined as a block.  Define
11727         S for printing a string instead of hidint the different by using a
11728         macro for adding the 'l'.
11729         * stdio-common/tst-fphex-wide.c: Adjust.
11730
11731 2012-03-07  Marek Polacek  <polacek@redhat.com>
11732
11733         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11734
11735 2012-03-08  Marek Polacek  <polacek@redhat.com>
11736
11737         [BZ #13806]
11738         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11739         * stdio-common/tst-fphex.c: Define a few macros to make the
11740         test reusable.  Use them.
11741         * stdio-common/tst-fphex-wide.c: New file.
11742
11743 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11744
11745         [BZ #6911]
11746         * manual/macros.texi (gnusystems): New macro.
11747         (nongnusystems): Likewise.
11748         (gnulinuxhurdsystems): Likewise.
11749         (gnuhurdsystems): Likewise..
11750         (gnulinuxsystems): Likewise.
11751         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11752         variants of the GNU system, not "GNU system".
11753         * manual/conf.texi: Likewise.
11754         * manual/errno.texi: Likewise.  Update example of errno macro
11755         expansion.
11756         * manual/filesys.texi: Likewise.
11757         (getumask): Document as specific to GNU/Hurd.
11758         * manual/install.texi: Likewise.  Reword some references to
11759         GNU/Linux.
11760         * manual/intro.texi: Likewise.
11761         * manual/io.texi: Likewise.
11762         (File Name Portability): Detail which constraints are inapplicable
11763         to all GNU systems and which are only inapplicable to GNU/Hurd.
11764         * manual/job.texi: Likewise.
11765         * manual/llio.texi: Likewise.
11766         (O_NOCTTY): Document as present on GNU/Linux.
11767         * manual/maint.texi: Likewise.
11768         * manual/memory.texi: Likewise.
11769         * manual/pattern.texi: Likewise.
11770         * manual/pipe.texi: Likewise.
11771         * manual/process.texi: Likewise.
11772         * manual/resource.texi: Likewise.
11773         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11774         child on GNU/Hurd.
11775         * manual/setjmp.texi: Likewise.
11776         * manual/signal.texi: Likewise.
11777         * manual/startup.texi: Likewise.
11778         * manual/stdio.texi: Likewise.
11779         * manual/terminal.texi: Likewise.
11780         (ONLCR): Document as POSIX.
11781         (OXTABS): Document availability on GNU/Linux as XTABS.
11782         (ONOEOT): Document availability separately from other bits.
11783         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11784         * manual/time.texi: Likewise.
11785         * manual/users.texi: Likewise.
11786         * INSTALL: Regenerated.
11787         * sysdeps/gnu/errlist.c: Regenerated.
11788
11789         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11790         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11791         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11792         puts.
11793         * configure: Regenerated.
11794
11795 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11796
11797         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11798         default includes instead of AC_HEADER_CHECK.
11799         * sysdeps/i386/configure: Regenerated.
11800
11801         [BZ #10716]
11802         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11803         * math/s_cacoshf.c (__cacoshf): Likewise.
11804         * math/s_cacoshl.c (__cacoshl): Likewise.
11805         * math/s_casinh.c (__casinh): Set signs of result from argument.
11806         * math/s_casinhf.c (__casinhf): Likewise.
11807         * math/s_casinhl.c (__casinhl): Likewise.
11808         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11809         (casinh_test): Add more tests.
11810         * sysdeps/i386/fpu/libm-test-ulps: Update.
11811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11812
11813 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11814
11815         * po/zh_TW.po: Update from translation team.
11816
11817         * login/Makefile (distribute): Remove variable.
11818         * catgets/Makefile: Likewise.
11819         * mach/Makefile: Likewise.
11820         * malloc/Makefile: Likewise.
11821         * misc/Makefile: Likewise.
11822         * iconv/Makefile: Likewise.
11823         * nscd/Makefile: Likewise.
11824         * hurd/Makefile: Likewise.
11825         * manual/Makefile: Likewise.
11826         * locale/Makefile: Likewise.
11827         * intl/Makefile: Likewise.
11828         * conform/Makefile: Likewise.
11829         * nss/Makefile: Likewise.
11830         * time/Makefile: Likewise.
11831         * soft-fp/Makefile: Likewise.
11832         * dirent/Makefile: Likewise.
11833         * gmon/Makefile: Likewise.
11834         * po/Makefile: Likewise.
11835         * rt/Makefile: Likewise.
11836         * socket/Makefile: Likewise.
11837         * math/Makefile: Likewise.
11838         * signal/Makefile: Likewise.
11839         * debug/Makefile: Likewise.
11840         * elf/Makefile: Likewise.
11841         * timezone/Makefile: Likewise.
11842         * stdlib/Makefile: Likewise.
11843         * iconvdata/Makefile: Likewise.
11844         * sunrpc/Makefile: Likewise.
11845         * io/Makefile: Likewise.
11846         * argp/Makefile: Likewise.
11847         * inet/Makefile: Likewise.
11848         * hesiod/Makefile: Likewise.
11849         * grp/Makefile: Likewise.
11850         * csu/Makefile: Likewise.
11851         * wctype/Makefile: Likewise.
11852         * crypt/Makefile: Likewise.
11853         * libio/Makefile: Likewise.
11854         * string/Makefile: Likewise.
11855         * nis/Makefile: Likewise.
11856         * resolv/Makefile: Likewise.
11857         * stdio-common/Makefile: Likewise.
11858         * wcsmbs/Makefile: Likewise.
11859         * dlfcn/Makefile: Likewise.
11860         * posix/Makefile: Likewise.
11861
11862         [BZ #6959]
11863         * timezone/Makefile: Don't install timezone files, just the programs
11864         and scripts.
11865
11866 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11867
11868         * nss/databases.def: Add missing gshadow entry.
11869
11870         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11871
11872 2012-03-06  Marek Polacek  <polacek@redhat.com>
11873
11874         [BZ #13726]
11875         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11876         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11877         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11878         * stdio-common/tst-long-dbl-fphex.c: New file.
11879
11880 2012-03-06  David S. Miller  <davem@davemloft.net>
11881
11882         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11883         (set_obp_int): New function.
11884         (get_obp_int): New function.
11885         (__get_clockfreq_via_dev_openprom): Likewise.
11886         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11887         Avoid unused variable warnings on 'val' and use builtin_expect.
11888         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11889         __builtin_expect.
11890         (INLINE_CLONE_SYSCALL): Likewise.
11891
11892 2012-03-05  David S. Miller  <davem@davemloft.net>
11893
11894         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11895
11896 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11897
11898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11899
11900         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11901         only for |x| >= 40.
11902         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11903
11904 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11905
11906         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11907         Replace gettimeofday with __vdso_gettimeofday.
11908
11909         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11910         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11911         __vdso_clock_gettime and __vdso_getcpu.
11912
11913         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11914         time with __vdso_time.
11915
11916 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11917
11918         * manual/lang.texi (size_t): Note types to which size_t may be
11919         equivalent with the GNU C Library, but do not describe when
11920         differences between them are significant.
11921
11922 2012-03-05  Andreas Jaeger  <aj@suse.de>
11923
11924         * sysdeps/i386/fpu/libm-test-ulps: Update.
11925
11926 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11927
11928         [BZ #3976]
11929         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11930         (__ieee754_pow): Save and restore rounding mode and use
11931         round-to-nearest for main computations.
11932         * math/libm-test.inc (pow_test_tonearest): New function.
11933         (pow_test_towardzero): Likewise.
11934         (pow_test_downward): Likewise.
11935         (pow_test_upward): Likewise.
11936         (main): Call the new functions.
11937         * sysdeps/i386/fpu/libm-test-ulps: Update.
11938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11939
11940         [BZ #3976]
11941         * math/libm-test.inc (cosh_test_tonearest): New function.
11942         (cosh_test_towardzero): Likewise.
11943         (cosh_test_downward): Likewise.
11944         (cosh_test_upward): Likewise.
11945         (sinh_test_tonearest): Likewise.
11946         (sinh_test_towardzero): Likewise.
11947         (sinh_test_downward): Likewise.
11948         (sinh_test_upward): Likewise.
11949         (main): Call the new functions.
11950         * sysdeps/i386/fpu/libm-test-ulps: Update.
11951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11952
11953 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11954
11955         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11956         default stack guard is set in last bytes.
11957         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11958
11959 2012-03-05  Kees Cook  <keescook@chromium.org>
11960
11961         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11962
11963         [BZ #13656]
11964         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11965         possibly allocate from heap instead of stack.
11966         * stdio-common/bug-vfprintf-nargs.c: New file.
11967         * stdio-common/Makefile (tests): Add nargs overflow test.
11968
11969 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11970
11971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11972
11973 2012-03-03  Marek Polacek  <polacek@redhat.com>
11974
11975         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11976         * math/math_private.h: Likewise.
11977         * stdlib/tst-strtod.c: Likewise.
11978         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11979         * sysdeps/x86_64/bits/atomic.h: Likewise.
11980
11981 2012-03-02  David S. Miller  <davem@davemloft.net>
11982
11983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11987         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11988         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11989         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11990         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11991
11992 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11993
11994         [BZ #13792]
11995         * manual/examples/README: New file, says the example source files
11996         can be used under GPL>=2.
11997         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11998         line containing just "*/".
11999         * manual/examples/add.c: Add copyright header (GPL>=2).
12000         * manual/examples/argp-ex1.c: Likewise.
12001         * manual/examples/argp-ex2.c: Likewise.
12002         * manual/examples/argp-ex3.c: Likewise.
12003         * manual/examples/argp-ex4.c: Likewise.
12004         * manual/examples/atexit.c: Likewise.
12005         * manual/examples/db.c: Likewise.
12006         * manual/examples/dir.c: Likewise.
12007         * manual/examples/dir2.c: Likewise.
12008         * manual/examples/execinfo.c: Likewise.
12009         * manual/examples/filecli.c: Likewise.
12010         * manual/examples/filesrv.c: Likewise.
12011         * manual/examples/fmtmsgexpl.c: Likewise.
12012         * manual/examples/genpass.c: Likewise.
12013         * manual/examples/inetcli.c: Likewise.
12014         * manual/examples/inetsrv.c: Likewise.
12015         * manual/examples/isockad.c: Likewise.
12016         * manual/examples/longopt.c: Likewise.
12017         * manual/examples/memopen.c: Likewise.
12018         * manual/examples/memstrm.c: Likewise.
12019         * manual/examples/mkfsock.c: Likewise.
12020         * manual/examples/mkisock.c: Likewise.
12021         * manual/examples/mygetpass.c: Likewise.
12022         * manual/examples/pipe.c: Likewise.
12023         * manual/examples/popen.c: Likewise.
12024         * manual/examples/rprintf.c: Likewise.
12025         * manual/examples/search.c: Likewise.
12026         * manual/examples/select.c: Likewise.
12027         * manual/examples/setjmp.c: Likewise.
12028         * manual/examples/sigh1.c: Likewise.
12029         * manual/examples/sigusr.c: Likewise.
12030         * manual/examples/stpcpy.c: Likewise.
12031         * manual/examples/strdupa.c: Likewise.
12032         * manual/examples/strftim.c: Likewise.
12033         * manual/examples/strncat.c: Likewise.
12034         * manual/examples/subopt.c: Likewise.
12035         * manual/examples/swapcontext.c: Likewise.
12036         * manual/examples/termios.c: Likewise.
12037         * manual/examples/testopt.c: Likewise.
12038         * manual/examples/testpass.c: Likewise.
12039         * manual/examples/timeval_subtract.c: Likewise.
12040
12041         [BZ #13792]
12042         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12043         function to ...
12044         * manual/timeval_subtract.c.texi: ... here, new file.
12045
12046 2012-03-02  David S. Miller  <davem@davemloft.net>
12047
12048         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12049
12050 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12051
12052         [BZ #3976]
12053         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12054         (__sin): Save and restore rounding mode and use round-to-nearest
12055         for all computations.
12056         (__cos): Save and restore rounding mode and use round-to-nearest
12057         for all computations.
12058         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12059         <fenv.h>.
12060         (tan): Save and restore rounding mode and use round-to-nearest for
12061         all computations.
12062         * math/libm-test.inc (cos_test_tonearest): New function.
12063         (cos_test_towardzero): Likewise.
12064         (cos_test_downward): Likewise.
12065         (cos_test_upward): Likewise.
12066         (sin_test_tonearest): Likewise.
12067         (sin_test_towardzero): Likewise.
12068         (sin_test_downward): Likewise.
12069         (sin_test_upward): Likewise.
12070         (tan_test_tonearest): Likewise.
12071         (tan_test_towardzero): Likewise.
12072         (tan_test_downward): Likewise.
12073         (tan_test_upward): Likewise.
12074         (main): Call the new functions.
12075         * sysdeps/i386/fpu/libm-test-ulps: Update.
12076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12077
12078         [BZ #10135]
12079         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12080         small n, then large n, before computing and testing k+n.
12081         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12082         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12083         Likewise.
12084         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12085         Likewise.
12086         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12087         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12088         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12089         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12090         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12091         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12092         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12093         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12094         * math/libm-test.inc (scalbn_test): Add more tests.
12095         (scalbln_test): Likewise.
12096
12097         * manual/filesys.texi (mode_t): Describe constraints on size and
12098         signedness, not exact equivalence to a particular type.
12099         (ino_t): Likewise.
12100         (ino64_t): Likewise.
12101         (dev_t): Likewise.
12102         (nlink_t): Likewise.
12103         (blkcnt_t): Likewise.
12104         (blkcnt64_t): Likewise.
12105         * manual/llio.texi (off_t): Likewise.
12106
12107         [BZ #3976]
12108         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12109         (__ieee754_exp): Save and restore rounding mode and use
12110         round-to-nearest for all computations.
12111         * math/libm-test.inc (exp_test_tonearest): New function.
12112         (exp_test_towardzero): Likewise.
12113         (exp_test_downward): Likewise.
12114         (exp_test_upward): Likewise.
12115         (main): Call the new functions.
12116         * sysdeps/i386/fpu/libm-test-ulps: Update.
12117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12118
12119 2012-03-01  Chris Demetriou  <cgd@google.com>
12120
12121         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12122         have predictable order.
12123
12124 2012-03-01  David S. Miller  <davem@davemloft.net>
12125
12126         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12127
12128         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12129         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12130         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12131         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12132
12133         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12134         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12135         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12137         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12138         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12139         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12140         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12141         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12142
12143         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12144
12145         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12146         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12147         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12148
12149         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12150         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12151         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12152         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12153         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12154         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12155         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12156         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12157         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12158         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12159         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12160         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12161         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12162         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12163         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12164         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12165         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12166         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12167         * sysdeps/sparc/elf/configure: Regenerated.
12168
12169 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12170
12171         * configure.in (AS, LD): Require binutils 2.20 or later.
12172         * configure: Regenerated.
12173         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12174         as required minimum version.
12175         * INSTALL: Regenerated.
12176
12177         [BZ #2541]
12178         [BZ #4108]
12179         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12180         before squaring exponent.
12181         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12182         bottom long double and 27 bits of top long double before squaring
12183         exponent.
12184         * math/libm-test.inc (erfc_test): Add more tests.
12185         * sysdeps/i386/fpu/libm-test-ulps: Update.
12186         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12188
12189 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12190
12191         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12192         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12193         containing bit-fields.
12194         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12195         * soft-fp/single.h (_FP_UNION_S): Likewise.
12196         * soft-fp/double.h (_FP_UNION_D): Likewise.
12197
12198 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12199
12200         [BZ #13786]
12201         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12202         not include ../strcmp.S.
12203         [USE_AS_STRNCASECMP_L]: Likewise.
12204         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12205         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12206         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12207         (__strncasecmp_l_ia32): Define as alias to
12208         __strncasecmp_l_nonascii.
12209
12210         [BZ #5794]
12211         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12212         * sysdeps/i386/fpu/libm-test-ulps: Update.
12213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12214
12215         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12217
12218 2012-02-29  Jeff Law  <law@redhat.com>
12219
12220         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12221         out of bounds read.
12222
12223 2012-02-29  Marek Polacek  <polacek@redhat.com>
12224
12225         [BZ #13706]
12226         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12227         * elf/Makefile: Add rules to run tst-unused-dep.out.
12228
12229 2012-02-28  David S. Miller  <davem@davemloft.net>
12230
12231         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12232         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12233         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12234         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12235         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12236         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12237
12238 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12239
12240         * math/libm-test.inc (llround_test): Move one test from
12241         lround_test.  Use TEST_f_L in moved test.
12242         (lround_test): Move misplaced test to llround_test.  Add testcase
12243         from bug 2561.
12244
12245 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12246
12247         * sysdeps/x86_64/fpu/e_expf.S: New file.
12248         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12249
12250 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12251
12252         [BZ #13637]
12253         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12254         of remain_len that may cause incomplete multi-byte character and
12255         false match.
12256         * posix/bug-regex33.c: New file.
12257         * posix/Makefile (tests): Add bug-regex33.
12258
12259 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12260
12261         * manual/macros.texi: New file.
12262         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12263         * manual/libc.texinfo: Include macros.texi.
12264         * manual/creatute.texi: Likewise.
12265         * manual/install.texi: Likewise.
12266         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12267         @glibcadj{} in references to the GNU C Library.
12268         * manual/charset.texi: Likewise.
12269         * manual/conf.texi: Likewise.
12270         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12271         when not using those macros.
12272         * manual/creature.texi: Likewise.
12273         * manual/crypt.texi: Likewise.
12274         * manual/errno.texi: Likewise.
12275         * manual/filesys.texi: Likewise.
12276         * manual/header.texi: Likewise.
12277         * manual/install.texi: Likewise.
12278         * manual/intro.texi: Likewise.
12279         * manual/io.texi: Likewise.
12280         * manual/job.texi: Likewise.
12281         * manual/lang.texi: Likewise.
12282         * manual/libc.texiinfo: Likewise.
12283         * manual/llio.texi: Likewise.
12284         * manual/locale.texi: Likewise.
12285         * manual/maint.texi: Likewise.
12286         * manual/math.texi: Likewise.
12287         * manual/memory.texi: Likewise.
12288         * manual/message.texi: Likewise.
12289         * manual/nss.texi: Likewise.
12290         * manual/pattern.texi: Likewise.
12291         * manual/process.texi: Likewise.
12292         * manual/resource.texi: Likewise.
12293         * manual/search.texi: Likewise.
12294         * manual/setjmp.texi: Likewise.
12295         * manual/signal.texi: Likewise.
12296         * manual/socket.texi: Likewise.
12297         * manual/startup.texi: Likewise.
12298         * manual/stdio.texi: Likewise.
12299         * manual/string.texi: Likewise.
12300         * manual/sysinfo.texi: Likewise.
12301         * manual/syslog.texi: Likewise.
12302         * manual/terminal.texi: Likewise.
12303         * manual/time.texi: Likewise.
12304         * manual/users.texi: Likewise.
12305         * INSTALL: Regenerated.
12306         * NOTES: Regenerated.
12307         * sysdeps/gnu/errlist.c: Regenerated.
12308
12309 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12310
12311         * include/dirent.h: Include <dirstream.h> before
12312         <dirent/dirent.h>.
12313
12314 2012-02-28  David S. Miller  <davem@davemloft.net>
12315
12316         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12317         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12318         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12319         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12320
12321 2012-02-27  David S. Miller  <davem@davemloft.net>
12322
12323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12325         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12326         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12327
12328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12329         frame pointer instead of stack pointer relative arg slot.
12330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12331         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12332         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12333
12334 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12335
12336         [BZ #3992]
12337         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12338
12339 2012-02-27  David S. Miller  <davem@davemloft.net>
12340
12341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12345         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12346         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12347         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12348         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12349
12350 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12351
12352         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12353         later.  Allow versions 5-9.
12354         * configure: Regenerated.
12355         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12356         required minimum version and 4.6 as recommended version.  Do not
12357         mention bugs in GCC 2.7 and 2.8.
12358         * INSTALL: Regenerated.
12359
12360 2012-02-27  David S. Miller  <davem@davemloft.net>
12361
12362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12366         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12367         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12368         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12369         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12370
12371         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12372         manipulate bits before adding and subtracting TWO112[sx].
12373         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12374
12375 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12376
12377         [BZ #13775]
12378         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12379         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12380         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12381         being in POSIX, because they are in 1003.1-2008.
12382
12383         * rt/tst-aio.c: Include <fcntl.h>.
12384         * rt/tst-aio7.c: Likewise.
12385         * rt/tst-aio64.c: Likewise.
12386
12387         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12388
12389 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12390
12391         * manual/install.texi (--with-headers): Describe headers as
12392         interface headers, not private headers.
12393         (Specific advice for GNU/Linux systems): Describe use of headers
12394         from "make headers_install", not private headers from older
12395         kernels.
12396         * INSTALL: Regenerated.
12397         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12398         Change to 2.6.19.
12399         * sysdeps/unix/sysv/linux/configure: Regenerated.
12400
12401         * manual/llio.texi (fclean): Remove documentation.
12402
12403         * manual/Makefile (libc-texi-generated): New variable.  Include
12404         version.texi.
12405         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12406         $(libc-texi-generated), not duplicated list of files.
12407         (version.texi, stamp-version): New rules.
12408         (realclean): Remove $(libc-texi-generated), not individual files
12409         from that list.  Do not remove dir-add.texinfo.
12410         * manual/libc.texinfo: Comment out uses of edition numbers and
12411         references to printed manual.  Remove last-updated dates.
12412         (EDITION): Comment out.
12413         (ISBN): Likewise.
12414         (VERSION, UPDATED): Remove.
12415         (version.texi): Include.
12416
12417 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12418
12419         * sysdeps/posix/spawni.c: Include <signal.h>.
12420         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12421         * sysdeps/pthread/aio_fsync.c: Likewise.
12422
12423 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12424
12425         * conform/Makefile (tests): Run only when not cross-compiling and
12426         when fast-check is not defined.
12427
12428         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12429         * conform/data/limits.h-data: Fixes for POSIX2008.
12430         * conform/run-conformtest.sh: Run all tests.
12431         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12432         headers.
12433         * include/bits/dlfcn.h: Likewise.
12434         * include/langinfo.h: Likewise.
12435         * include/monetary.h: Likewise.
12436         * include/sys/poll.h: Likewise.
12437
12438         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12439         for __USE_GNU.
12440         * posix/spawn.h: Define __need_sigset_t.
12441         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12442         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12443         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12444         to get sigevent_t only.
12445         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12446         only for __USE_GNU.
12447         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12448         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12449         process_vm_writev only for __USE_GNU.
12450         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12451
12452         * conform/Makefile: For now ignore errors from run-conformtest.
12453         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12454         POSIX to avoid namespace pollution.  Don't prepend headers.
12455         * conform/data/aio.h-data: Fixes for POSIX testing.
12456         * conform/data/fcntl.h-data: Likewise.
12457         * conform/data/glob.h-data: Likewise.
12458         * conform/data/grp.h-data: Likewise.
12459         * conform/data/pthread.h-data: Likewise.
12460         * conform/data/pwd.h-data: Likewise.
12461         * conform/data/signal.h-data: Likewise.
12462         * conform/data/spawn.h-data: Likewise.
12463         * conform/data/stdio.h-data: Likewise.
12464         * conform/data/stdlib.h-data: Likewise.
12465         * conform/data/stropts.h-data: Likewise.
12466         * conform/data/sys/mman.h-data: Likewise.
12467         * conform/data/sys/stat.h-data: Likewise.
12468         * conform/data/sys/types.h-data: Likewise.
12469         * conform/data/sys/wait.h-data: Likewise.
12470         * conform/data/time.h-data: Likewise.
12471         * conform/data/unistd.h-data: Likewise.
12472         * conform/data/utime.h-data: Likewise.
12473
12474         * io/sys/stat.h: fchmod was always in POSIX.
12475         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12476         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12477         * rt/aio.h: Define __need_timespec before including <time.h>.
12478         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12479         struct.  Add forward declaration of pthread_attr_t and use it in
12480         sigevent.
12481         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12482         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12483         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12484         always remove CLK_TCK definition.
12485
12486 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12487
12488         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12489
12490 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12491
12492         * conform/run-conformtest.sh: New file.
12493         * conform/Makefile: Run run-conformtest for tests.
12494         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12495         support.
12496
12497         * conform/data/uchar.h-data: New file.
12498         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12499         * conform/data/arpa/inet.h-data: Likewise.
12500         * conform/data/assert.h-data: Likewise.
12501         * conform/data/complex.h-data: Likewise.
12502         * conform/data/cpio.h-data: Likewise.
12503         * conform/data/ctype.h-data: Likewise.
12504         * conform/data/dirent.h-data: Likewise.
12505         * conform/data/dlfcn.h-data: Likewise.
12506         * conform/data/errno.h-data: Likewise.
12507         * conform/data/fcntl.h-data: Likewise.
12508         * conform/data/float.h-data: Likewise.
12509         * conform/data/fmtmsg.h-data: Likewise.
12510         * conform/data/fnmatch.h-data: Likewise.
12511         * conform/data/ftw.h-data: Likewise.
12512         * conform/data/glob.h-data: Likewise.
12513         * conform/data/grp.h-data: Likewise.
12514         * conform/data/iconv.h-data: Likewise.
12515         * conform/data/inttypes.h-data: Likewise.
12516         * conform/data/langinfo.h-data: Likewise.
12517         * conform/data/libgen.h-data: Likewise.
12518         * conform/data/limits.h-data: Likewise.
12519         * conform/data/locale.h-data: Likewise.
12520         * conform/data/math.h-data: Likewise.
12521         * conform/data/monetary.h-data: Likewise.
12522         * conform/data/mqueue.h-data: Likewise.
12523         * conform/data/ndbm.h-data: Likewise.
12524         * conform/data/net/if.h-data: Likewise.
12525         * conform/data/netdb.h-data: Likewise.
12526         * conform/data/netinet/in.h-data: Likewise.
12527         * conform/data/nl_types.h-data: Likewise.
12528         * conform/data/poll.h-data: Likewise.
12529         * conform/data/pthread.h-data: Likewise.
12530         * conform/data/pwd.h-data: Likewise.
12531         * conform/data/regex.h-data: Likewise.
12532         * conform/data/sched.h-data: Likewise.
12533         * conform/data/search.h-data: Likewise.
12534         * conform/data/semaphore.h-data: Likewise.
12535         * conform/data/setjmp.h-data: Likewise.
12536         * conform/data/signal.h-data: Likewise.
12537         * conform/data/spawn.h-data: Likewise.
12538         * conform/data/stdarg.h-data: Likewise.
12539         * conform/data/stdio.h-data: Likewise.
12540         * conform/data/stdlib.h-data: Likewise.
12541         * conform/data/string.h-data: Likewise.
12542         * conform/data/strings.h-data: Likewise.
12543         * conform/data/stropts.h-data: Likewise.
12544         * conform/data/sys/ipc.h-data: Likewise.
12545         * conform/data/sys/mman.h-data: Likewise.
12546         * conform/data/sys/msg.h-data: Likewise.
12547         * conform/data/sys/resource.h-data: Likewise.
12548         * conform/data/sys/select.h-data: Likewise.
12549         * conform/data/sys/sem.h-data: Likewise.
12550         * conform/data/sys/shm.h-data: Likewise.
12551         * conform/data/sys/socket.h-data: Likewise.
12552         * conform/data/sys/stat.h-data: Likewise.
12553         * conform/data/sys/statvfs.h-data: Likewise.
12554         * conform/data/sys/time.h-data: Likewise.
12555         * conform/data/sys/timeb.h-data: Likewise.
12556         * conform/data/sys/times.h-data: Likewise.
12557         * conform/data/sys/types.h-data: Likewise.
12558         * conform/data/sys/uio.h-data: Likewise.
12559         * conform/data/sys/un.h-data: Likewise.
12560         * conform/data/sys/utsname.h-data: Likewise.
12561         * conform/data/sys/wait.h-data: Likewise.
12562         * conform/data/syslog.h-data: Likewise.
12563         * conform/data/tar.h-data: Likewise.
12564         * conform/data/termios.h-data: Likewise.
12565         * conform/data/utime.h-data: Likewise.
12566         * conform/data/utmpx.h-data: Likewise.
12567         * conform/data/varargs.h-data: Likewise.
12568         * conform/data/wchar.h-data: Likewise.
12569         * conform/data/wctype.h-data: Likewise.
12570         * conform/data/wordexp.h-data: Likewise.
12571
12572         * include/stropts.h: New file.
12573         * include/uchar.h: New file.
12574         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12575         * include/assert.h: Likewise.
12576         * include/ctype.h: Likewise.
12577         * include/dirent.h: Likewise.
12578         * include/dlfcn.h: Likewise.
12579         * include/fcntl.h: Likewise.
12580         * include/fnmatch.h: Likewise.
12581         * include/glob.h: Likewise.
12582         * include/grp.h: Likewise.
12583         * include/libio.h: Likewise.
12584         * include/locale.h: Likewise.
12585         * include/math.h: Likewise.
12586         * include/net/if.h: Likewise.
12587         * include/netdb.h: Likewise.
12588         * include/netinet/in.h: Likewise.
12589         * include/pthread.h: Likewise.
12590         * include/pwd.h: Likewise.
12591         * include/regex.h: Likewise.
12592         * include/sched.h: Likewise.
12593         * include/search.h: Likewise.
12594         * include/setjmp.h: Likewise.
12595         * include/signal.h: Likewise.
12596         * include/stdio.h: Likewise.
12597         * include/stdlib.h: Likewise.
12598         * include/string.h: Likewise.
12599         * include/sys/cdefs.h: Likewise.
12600         * include/sys/mman.h: Likewise.
12601         * include/sys/msg.h: Likewise.
12602         * include/sys/resource.h: Likewise.
12603         * include/sys/select.h: Likewise.
12604         * include/sys/socket.h: Likewise.
12605         * include/sys/stat.h: Likewise.
12606         * include/sys/statvfs.h: Likewise.
12607         * include/sys/time.h: Likewise.
12608         * include/sys/times.h: Likewise.
12609         * include/sys/uio.h: Likewise.
12610         * include/sys/utsname.h: Likewise.
12611         * include/sys/wait.h: Likewise.
12612         * include/termios.h: Likewise.
12613         * include/time.h: Likewise.
12614         * include/ulimit.h: Likewise.
12615         * include/unistd.h: Likewise.
12616         * include/utime.h: Likewise.
12617         * include/wchar.h: Likewise.
12618         * include/wctype.h: Likewise.
12619         * include/wordexp.h: Likewise.
12620
12621         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12622
12623         * time/time.h: TIME_UTC must be a macro.
12624         Make timespec_get available for ISO C11 only as well.
12625
12626 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12627
12628         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12629         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12630
12631 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12632
12633         * configure.in: Use -o not -a in test for unsupported multi-arch.
12634
12635 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12636
12637         * manual/texinfo.tex: Update to version 2012-01-19.16.
12638
12639 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12640
12641         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12642
12643 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12644
12645         [BZ #13738]
12646         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12647         * manual/fdl-1.3.texi: New file.
12648         * manual/fdl-1.1.texi: File removed.
12649
12650         [BZ #13738]
12651         * manual/libc.texinfo (FDL_VERSION): New @set.
12652         Use it for mention of FDL in cover text.
12653         (Documentation License): Use it in @include file name.
12654
12655 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12656             Roland McGrath  <roland@hack.frob.com>
12657
12658         [BZ #5461]
12659         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12660         not LONG_LONG_MAX and LONG_LONG_MIN.
12661         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12662         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12663         name.
12664         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12665
12666 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12667
12668         [BZ #2547]
12669         [BZ #11365]
12670         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12671         manipulate bits before adding and subtracting TWO23[sx].
12672         * math/libm-test.inc (nearbyint_test): Add more tests.
12673
12674 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12675
12676         [BZ #2548]
12677         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12678         bits before adding and subtracting TWO23[sx].
12679         * math/libm-test.inc (rint_test): Add more tests.
12680         (rint_test_tonearest): Likewise.
12681         (rint_test_towardzero): Likewise.
12682         (rint_test_downward): Likewise.
12683         (rint_test_upward: Likewise.
12684
12685 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12686
12687         [BZ #10110]
12688         * include/stdc-predef.h: New file.  Extracted from features.h.
12689         * include/features.h: Include stdc-predef.h.
12690         * Makefile (headers): Add stdc-predef.h.
12691         * CONFORMANCE (Compiler limitations): Update.
12692
12693 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12694
12695         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12696
12697 2012-02-21  David S. Miller  <davem@davemloft.net>
12698
12699         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12700         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12701
12702 2012-02-20  David S. Miller  <davem@davemloft.net>
12703
12704         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12705         using a normal save/restore sequence, rather than allocating a
12706         dummy stack frame just to store a frame pointer and restore.
12707         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12708
12709 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12710
12711         * manual/install.texi: Fix stray word in line-wrapped comment.
12712
12713 2012-02-20  David S. Miller  <davem@davemloft.net>
12714
12715         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12716         both binutils and gcc support GOTDATA.
12717
12718         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12719         "rd %pc" in the PIC register setup sequences.
12720
12721         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12722         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12723         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12724         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12725         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12726         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12727         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12728         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12729         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12730         (SYSCALL_ERROR_HANDLER): Likewise.
12731         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12732         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12733         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12734         (SYSCALL_ERROR_HANDLER): Likewise.
12735
12736         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12737         (HAVE_GCC_GOTDATA): New.
12738         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12739         relocation support in both binutils and gcc.
12740         * sysdeps/sparc/elf/configure: Regenerate.
12741
12742         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12743         * sysdeps/sparc/sparc32/elf/configure: Delete.
12744         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12745         * sysdeps/sparc/sparc64/elf/configure: Delete.
12746         * sysdeps/sparc/elf/configure.in: New file.
12747         * sysdeps/sparc/elf/configure: Generate.
12748
12749         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12750         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12751         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12752         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12753         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12754
12755 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12756
12757         * manual/install.texi: Do not mention specific glibc version
12758         numbers.
12759         * manual/libc.texinfo (VERSION, UPDATED): Update.
12760         (@copying): Use @copyright{} and range of years.
12761
12762 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12763
12764         [BZ #13695]
12765         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12766         [crti.S not in sysdirs] (generated): Do not append.
12767         [crti.S not in sysdirs] (omit-deps): Likewise.
12768         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12769         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12770         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12771         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12772         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12773         Likewise.
12774         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12775         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12776         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12777         * csu/defs.awk: Remove file.
12778         * sysdeps/generic/initfini.c: Likewise.
12779         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12780         variable.
12781         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12782         Likewise.
12783
12784 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12785
12786         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12787         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12788         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12789         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12790         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12791         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12792         <bits/epoll.h>.
12793         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12794         (__EPOLL_PACKED): Define to empty if not defined by
12795         <bits/epoll.h>.
12796         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12797         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12798         bits/epoll.h.
12799
12800 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12801
12802         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12803         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12804         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12805         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12806         <bits/timerfd.h>.
12807         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12808         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12809         bits/timerfd.h.
12810
12811 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12812
12813         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12814         in C locale.
12815         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12816         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12817         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12819
12820 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12821
12822         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12823         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12824
12825 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12826
12827         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12828         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12829         defined.
12830         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12831         Likewise.
12832         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12833         entry for 2.16.
12834
12835 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12836
12837         * math/w_acos.c: Use non-signaling floating-point comparisons.
12838         * math/w_acosf.c: Likewise.
12839         * math/w_acosh.c: Likewise.
12840         * math/w_acoshf.c: Likewise.
12841         * math/w_acoshl.c: Likewise.
12842         * math/w_acosl.c: Likewise.
12843         * math/w_asin.c: Likewise.
12844         * math/w_asinf.c: Likewise.
12845         * math/w_asinl.c: Likewise.
12846         * math/w_atanh.c: Likewise.
12847         * math/w_atanhf.c: Likewise.
12848         * math/w_atanhl.c: Likewise.
12849         * math/w_exp2.c: Likewise.
12850         * math/w_exp2f.c: Likewise.
12851         * math/w_exp2l.c: Likewise.
12852         * math/w_j0.c: Likewise.
12853         * math/w_j0f.c: Likewise.
12854         * math/w_j0l.c: Likewise.
12855         * math/w_j1.c: Likewise.
12856         * math/w_j1f.c: Likewise.
12857         * math/w_j1l.c: Likewise.
12858         * math/w_jn.c: Likewise.
12859         * math/w_jnf.c: Likewise.
12860         * math/w_log.c: Likewise.
12861         * math/w_log10.c: Likewise.
12862         * math/w_log10f.c: Likewise.
12863         * math/w_log10l.c: Likewise.
12864         * math/w_log2.c: Likewise.
12865         * math/w_log2f.c: Likewise.
12866         * math/w_log2l.c: Likewise.
12867         * math/w_logf.c: Likewise.
12868         * math/w_logl.c: Likewise.
12869         * math/w_sqrt.c: Likewise.
12870         * math/w_sqrtf.c: Likewise.
12871         * math/w_sqrtl.c: Likewise.
12872         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12873         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12874         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12875         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12876         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12877
12878 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12879
12880         [BZ #9739]
12881         * manual/string.texi (strnlen): Use correct parameter name in
12882         equivalent expression.
12883
12884 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12885
12886         [BZ #11174]
12887         * manual/users.texi (seteuid): Consistently use neweuid for
12888         argument name.
12889
12890 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12891
12892         [BZ #13704]
12893         * manual/nss.texi (Services in the NSS configuration): Correct
12894         list of services in example configuration file.
12895
12896 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12897
12898         [BZ #11322]
12899         * manual/arith.texi: Remove statements about negative zero
12900         behaving identically to zero.
12901
12902 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12903
12904         [BZ #5993]
12905         * manual/install.texi: Do not document upgrading from libc5.
12906
12907 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12908
12909         [BZ #4596]
12910         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12911
12912 2012-02-18  David S. Miller  <davem@davemloft.net>
12913
12914         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12915         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12916         %o7 across the call.
12917         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12918         instead.
12919         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12920         SETUP_PIC_REG_LEAF.
12921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12922         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12923         * sysdeps/sparc/crtn.S: Likewise.
12924
12925 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12926
12927         * aout/Makefile: Remove.
12928
12929 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12930
12931         [BZ #13058]
12932         * manual/examples/argp-ex1.c (main): Format definition in GNU
12933         style.
12934         * manual/examples/argp-ex2.c (main): Likewise.
12935         * manual/examples/argp-ex3.c (main): Likewise.
12936         * manual/examples/argp-ex4.c (main): Likewise.
12937         * manual/examples/longopt.c (main): Use new-style prototype
12938         definition.
12939         * manual/examples/strncat.c (main): Specify return type and use
12940         (void) for arguments.
12941         * manual/examples/subopt.c (main): Use char **argv argument.
12942
12943 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12944
12945         [BZ #5077]
12946         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12947         rounding modes.
12948
12949 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12950
12951         [BZ #6907]
12952         * manual/string.texi (strchr): Change when strchrnul is
12953         recommended.
12954
12955 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12956
12957         [BZ #174]
12958         * manual/locale.texi (setlocale): Document LOCPATH.
12959
12960 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12961
12962         [BZ #10210]
12963         * manual/process.texi (execle): Move @dots{} before last argument.
12964
12965 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12966
12967         [BZ #12047]
12968         * manual/charset.texi (Generic Charset Conversion): Fix typo
12969         (LC_TYPE -> LC_CTYPE).
12970
12971 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12972
12973         [BZ #5805]
12974         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12975         (scalbnf): Likewise.
12976         (scalbnl): Likewise.
12977         (scalbln): Likewise.
12978         (scalblnf): Likewise.
12979         (scalblnl): Likewise.
12980         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12981         (vwarnx): Likewise.
12982         (verr): Likewise.
12983         (verrx): Likewise.
12984         * manual/filesys.texi (telldir): Use braces around return type.
12985         * manual/llio.texi (mmap): Add space after comma.
12986         (mmap64): Likewise.
12987         * manual/math.texi (jn): Use @var{} on parameter names.
12988         (jnf): Likewise.
12989         (jnl): Likewise.
12990         (yn): Likewise.
12991         (ynf): Likewise.
12992         (ynl): Likewise.
12993         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12994         line.
12995         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12996         "...".
12997         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12998         (sched_get_priority_max): Likewise.
12999         * manual/signal.texi (sigvec): Add space after comma.
13000         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13001         names.
13002         (if_indextoname): Likewise.
13003         (if_freenameindex): Likewise.
13004         (sendto): Use ',' instead of '.' in prototype.
13005         * manual/startup.texi (syscall): Use @dots{} instead of literal
13006         "...".
13007         * manual/stdio.texi (__fpending): Separate initial words of
13008         paragraph from @deftypefun line.
13009         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13010         "...".
13011         (vsyslog): Use @var{} on parameter names.
13012         * manual/terminal.texi (stty): Use @var{} on parameter names.
13013         * manual/users.texi (getutmp): Use @var{} on parameter names.
13014         (getutmpx): Likewise.
13015
13016 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13017
13018         [BZ #6884]
13019         * manual/stdio.texi (fopen): Fix typos in description of
13020         ",ccs=STRING".
13021
13022 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13023
13024         [BZ #4026]
13025         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13026         get clock_id definition.
13027
13028 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13029
13030         [BZ #4822]
13031         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13032         (madvise): Cast every argument to void on its own.
13033
13034 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13035
13036         [BZ #9902]
13037         * manual/startup.texi (Exit Status): Fix typo.
13038
13039 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13040
13041         [BZ #10140]
13042         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13043         * manual/examples/argp-ex2.c: Likewise.
13044         * manual/examples/argp-ex3.c: Likewise.
13045
13046 2012-02-16  Richard Henderson  <rth@redhat.com>
13047
13048         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13049         * sysdeps/s390/s390-32/initfini.c: Remove.
13050         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13051         * sysdeps/s390/s390-64/initfini.c: Remove.
13052
13053 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13054
13055         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13056         compiler output for sysdeps/generic/initfini.c.
13057         * sysdeps/sh/elf/initfini.c: Remove file.
13058
13059 2012-02-16  David S. Miller  <davem@davemloft.net>
13060
13061         [BZ #11494]
13062         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13063
13064         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13065         * sysdeps/sparc/crti.S: New file.
13066         * sysdeps/sparc/crtn.S: New file.
13067         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13068         * sysdeps/sparc/sparc64/Makefile: Likewise.
13069
13070 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13071
13072         [BZ #3335]
13073         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13074
13075 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13076
13077         [BZ #4822]
13078         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13079
13080         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13081         (write, read, close): Likewise.
13082         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13083
13084 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13085
13086         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13087         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13088         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13089         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13090         <bits/signalfd.h>.
13091         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13092         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13093         bits/signalfd.h.
13094
13095 2012-02-14  Marek Polacek  <polacek@redhat.com>
13096
13097         * sysdeps/x86_64/crti.S: New file.
13098         * sysdeps/x86_64/crtn.S: New file.
13099         * sysdeps/x86_64/elf/initfini.c: Remove file.
13100
13101 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13102
13103         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13104         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13105         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13106         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13107         <bits/inotify.h>.
13108         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13109         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13110         bits/inotify.h.
13111
13112 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13113
13114         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13115         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13116         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13117         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13118         <bits/eventfd.h>.
13119         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13120         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13121         bits/eventfd.h.
13122
13123 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13124
13125         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13126         __feraiseexcept instead of feraiseexcept.
13127
13128         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13129         nanosleep invocations.
13130         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13131         strings, and add error checking for a nanosleep invocations.
13132
13133 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13134
13135         Replace FSF snail mail address with URLs, as per GNU coding standards.
13136         Most of the snail mail addresses were wrong anyway, and omitting
13137         them makes the source code easier to maintain.  Almost all of the
13138         changes are to license notices and to locale LC_IDENTIFICATION
13139         addresses, except for this one:
13140         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13141         not its snail mail address.
13142
13143 2012-02-09  Richard Henderson  <rth@twiddle.net>
13144
13145         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13146         of kernel-features.h.
13147
13148         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13149
13150 2012-02-08  Marek Polacek  <polacek@redhat.com>
13151
13152         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13153         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13154         * sysdeps/gnu/_G_config.h: Likewise.
13155         * sysdeps/generic/_G_config.h: Likewise.
13156
13157 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13158
13159         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13160         tests.
13161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13162
13163         * sysdeps/powerpc/powerpc32/crti.S: New file.
13164         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13165         * sysdeps/powerpc/powerpc64/crti.S: New file.
13166         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13167
13168         * Makeconfig (have-initfini): Don't set.
13169         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13170         * configure.in (nopic_initfini): Don't substitute.
13171         * config.h.in (HAVE_INITFINI): Don't #undef.
13172         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13173         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13174
13175 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13176
13177         Support crti.S and crtn.S provided directly by architectures.
13178         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13179         [crti.S in sysdirs] (omit-deps): Likewise.
13180         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13181         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13182         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13183         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13184         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13185         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13186         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13187         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13188         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13189         compiler output for sysdeps/generic/initfini.c.
13190         * sysdeps/i386/elf/Makefile: Remove file.
13191         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13192
13193 2012-02-07  Marek Polacek  <polacek@redhat.com>
13194
13195         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13196         * sysdeps/gnu/_G_config.h: Likewise.
13197         * sysdeps/mach/hurd/_G_config.h: Likewise.
13198
13199 2012-02-07  Marek Polacek  <polacek@redhat.com>
13200
13201         * math/Makefile (tests): Add tst-CMPLX2.
13202         * math/tst-CMPLX2.c: New file.
13203
13204 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13205
13206         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13207
13208         * math/libm-test.inc (jn_test): Add missing L suffix.
13209
13210 2012-02-06  Marek Polacek  <polacek@redhat.com>
13211
13212         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13213         * sysdeps/i386/fpu/e_powf.S: Likewise.
13214         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13215         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13216         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13217         * sysdeps/i386/fpu/e_pow.S: Likewise.
13218         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13219         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13220         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13221         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13222         * sysdeps/i386/fpu/e_log2.S: Likewise.
13223         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13224         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13225         * sysdeps/i386/fpu/e_powl.S: Likewise.
13226         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13227         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13228         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13229         * sysdeps/i386/fpu/e_logl.S: Likewise.
13230         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13231         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13232         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13233         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13234         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13235         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13236         * sysdeps/i386/fpu/e_log.S: Likewise.
13237         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13238         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13239         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13240         * sysdeps/i386/fpu/e_logf.S: Likewise.
13241         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13242         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13243         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13244         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13245         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13246         * sysdeps/i386/fpu/e_log10.S: Likewise.
13247         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13248         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13249         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13250         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13251         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13252         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13253         * sysdeps/i386/asm-syntax.h: Likewise.
13254         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13255         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13256         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13257         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13258         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13259         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13260         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13261         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13262         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13263         * sysdeps/powerpc/sysdep.h: Likewise.
13264         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13265         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13266
13267 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13268
13269         [BZ #411]
13270         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13271
13272 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13273
13274         * sysdeps/i386/sysdep.h: Include <features.h>.
13275         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13276         version.
13277
13278 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13279
13280         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13281         Define.
13282         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13283         LOAD_PIC_REG_STR.
13284
13285 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13286
13287         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13288         (SETUP_PIC_REG): Use GET_PC_THUNK.
13289         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13290         macro.
13291
13292 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13293
13294         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13295         for non-PIC compilation.
13296         (SETUP_PIC_REG): Add .p2align directive.
13297         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13298         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13299         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13300         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13301         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13302         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13303         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13304         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13305         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13306         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13307         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13308         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13309         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13310         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13311         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13312         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13313         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13314         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13315         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13316         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13317         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13318         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13319         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13320         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13321         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13322         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13323         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13324         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13325         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13326         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13327         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13328         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13329         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13330         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13331         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13332         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13333         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13334         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13335         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13336         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13337         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13338
13339 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13340
13341         * math/tst-CMPLX.c: Include <stdio.h>.
13342
13343 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13344
13345         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13346         float.
13347         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13348         * sysdeps/sparc/bits/mathdef.h: Likewise.
13349
13350 2012-01-31  Marek Polacek  <polacek@redhat.com>
13351
13352         * libio/libio.h: Don't define _PARAMS.
13353         * locale/programs/config.h: Don't define PARAMS.
13354         * stdlib/strtol_l.c: Likewise.
13355         (__strtol_l): Remove PARAMS from the prototype.
13356
13357 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13358
13359         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13360         names.  Just use the correct names.  Remove unnecessary wrapper
13361         functions.
13362         * malloc/arena.c: Likewise.
13363         * malloc/hooks.c: Likewise.
13364
13365         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13366         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13367         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13368
13369 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13370
13371         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13372         into tail calls.
13373         (update_get_addr): New function.
13374         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13375         GET_ADDR_MODULE parameter.
13376
13377 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13378
13379         * crypt/cert.c: Remove __STDC__ conditionals.
13380         * crypt/crypt-entry.c: Likewise.
13381         * crypt/crypt_util.c: Likewise.
13382         * libio/filedoalloc.c: Likewise.
13383         * libio/fileops.c: Likewise.
13384         * libio/genops.c: Likewise.
13385         * libio/iofclose.c: Likewise.
13386         * libio/iofdopen.c: Likewise.
13387         * libio/iofopen.c: Likewise.
13388         * libio/iofopen64.c: Likewise.
13389         * libio/iogetdelim.c: Likewise.
13390         * libio/iopopen.c: Likewise.
13391         * libio/obprintf.c: Likewise.
13392         * libio/oldfileops.c: Likewise.
13393         * libio/oldiofclose.c: Likewise.
13394         * libio/oldiofdopen.c: Likewise.
13395         * libio/oldiofopen.c: Likewise.
13396         * libio/oldiopopen.c: Likewise.
13397         * libio/wfiledoalloc.c: Likewise.
13398         * libio/wgenops.c: Likewise.
13399         * locale/programs/xmalloc.c: Likewise.
13400         * misc/syslog.c: Likewise.
13401         * stdio-common/xbug.c: Likewise.
13402         * string/memchr.c: Likewise.
13403         * string/memcmp.c: Likewise.
13404         * string/memrchr.c: Likewise.
13405         * string/rawmemchr.c: Likewise.
13406         * sysdeps/posix/getcwd.c: Likewise.
13407         * time/strftime_l.c: Likewise.
13408
13409 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13410
13411         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13412         * config.make.in (config-cflags-sse2avx): Define.
13413         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13414         Fix typo.
13415
13416 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13417
13418         * scripts/config.guess: Update from upstream config git repository.
13419         * scripts/config.sub: Likewise.
13420
13421 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13422
13423         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13424         (EM_NUM): Update.
13425         (R_TILEPRO_*, R_TILEGX_*): New macros.
13426
13427         * scripts/firstversions.awk: Fix bug in version range handling.
13428
13429         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13430
13431         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13432
13433         * include/sys/epoll.h: New file.
13434         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13435         libc_hidden_def.
13436
13437 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13438
13439         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13440         Avoid unnecessary __WORDSIZE == 64 test.
13441         (fmaxf): Use VEX format if possible.
13442         (fmax): Likewise.
13443         (fminf): Likewise.
13444         (fmin): Likewise.
13445
13446         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13447         * math/math_private.h: Remove libc_fegetround* and
13448         libc_fesetround*.
13449         * sysdeps/i386/configure.in: Check for -msse2avx.
13450         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13451         also if SSE2AVX is defined.
13452         Remove libc_fegetround* and libc_fesetround*.
13453         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13454         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13455         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13456         of HAS_YMM_USABLE.
13457         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13458         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13459         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13460         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13461         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13462
13463         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13464
13465 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13466
13467         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13468         size is not set.
13469         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13470
13471 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13472
13473         [BZ #13618]
13474         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13475         relocation.
13476         * Makeconfig (libm): Define.
13477         * elf/Makefile: Add rules to build and run tst-relsort1.
13478         * elf/tst-relsort1.c: New file.
13479         * elf/tst-relsort1mod1.c: New file.
13480         * elf/tst-relsort1mod2.c: New file.
13481
13482 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13483
13484         * math/s_ldexp.c: Remove __STDC__ conditionals.
13485         * math/s_ldexpf.c: Likewise.
13486         * math/s_ldexpl.c: Likewise.
13487         * math/s_nextafter.c: Likewise.
13488         * math/s_nexttowardf.c: Likewise.
13489         * math/s_significand.c: Likewise.
13490         * math/s_significandf.c: Likewise.
13491         * math/s_significandl.c: Likewise.
13492         * math/w_jnl.c: Likewise.
13493         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13494         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13495         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13496         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13497         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13498         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13499         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13500         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13501         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13502         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13503         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13504         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13505         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13506         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13507         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13508         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13509         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13510         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13511         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13512         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13513         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13514         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13515         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13516         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13517         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13518         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13519         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13520         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13521         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13522         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13523         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13524         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13525         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13526         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13527         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13528         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13529         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13530         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13531         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13532         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13533         * sysdeps/ieee754/k_standard.c: Likewise.
13534         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13535         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13536         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13538         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13539         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13540         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13541         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13542         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13543         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13545         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13546         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13547         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13548         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13550         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13551         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13552         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13553         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13554         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13555         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13556         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13557         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13558         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13559         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13560         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13561         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13562         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13563         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13564         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13565         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13566         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13567         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13568         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13569         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13570         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13571         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13572         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13573         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13574         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13575         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13576         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13577         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13578         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13579         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13580         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13581         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13582         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13583         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13584         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13585         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13586         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13587         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13588         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13589         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13590         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13591         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13592         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13593         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13594         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13595         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13596         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13597         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13598         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13599         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13600         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13601         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13602         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13603         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13604         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13605         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13606         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13607         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13608         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13609         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13610         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13611         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13612         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13613         * sysdeps/ieee754/s_matherr.c: Likewise.
13614         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13615         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13616         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13617         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13618
13619 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13620
13621         * crypt/md5.h: Remove __STDC__ conditionals.
13622         * libio/libioP.h: Likewise.
13623         * locale/programs/config.h: Likewise.
13624         * sysdeps/generic/sysdep.h: Likewise.
13625         * sysdeps/i386/asm-syntax.h: Likewise.
13626         * sysdeps/s390/asm-syntax.h: Likewise.
13627         * sysdeps/unix/sysdep.h: Likewise.
13628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13630
13631 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13632
13633         * libio/libio.h: Remove __STDC__ conditionals.
13634         * malloc/obstack.h: Likewise.
13635         * math/complex.h: Likewise.
13636         * math/math.h: Likewise.
13637         * sysdeps/generic/_G_config.h: Likewise.
13638         * sysdeps/gnu/_G_config.h: Likewise.
13639         * sysdeps/mach/hurd/_G_config.h: Likewise.
13640         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13641         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13642         * sysdeps/sparc/bits/mathdef.h: Likewise.
13643
13644 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13645
13646         [BZ #13583]
13647         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13648         Clean up HAS_* macros.
13649         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13650         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13651         possible.
13652         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13653         HAS_AVX.
13654         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13655         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13656         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13657         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13658         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13659
13660 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13661
13662         * elf/tst-unique3.cc (gets): Remove declaration.
13663         * elf/tst-unique3lib.cc (gets): Likewise.
13664         * elf/tst-unique3lib2.cc (gets): Likewise.
13665         * elf/tst-unique4.cc (gets): Likewise.
13666
13667 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13668
13669         * include/stdio.h: Add C++ protection.  Add gets declarations and
13670         definitions.
13671         * debug/tst-chk1.c: Don't declare gets here.
13672         * stdio-common/tst-gets.c: Likewise.
13673
13674 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13675
13676         * posix/glob: Remove directory.
13677
13678 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13679
13680         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13681
13682 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13683
13684         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13685         of the non-standard EPFNOSUPPORT.
13686
13687 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13688
13689         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13690         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13691         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13692
13693 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13694
13695         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13696
13697 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13698
13699         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13700         transient errors.
13701         * nscd/grpcache.c (cache_addgr): Likewise.
13702         * nscd/hstcache.c (cache_addhst): Likewise.
13703         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13704         * nscd/pwdcache.c (cache_addpw): Likewise.
13705         * nscd/servicescache.c (cache_addserv): Likewise.
13706
13707 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13708
13709         * malloc/malloc.c: Various cleanups.
13710         * malloc/hooks.c: Likewise.
13711
13712         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13713         * stdlib/bug-fmtmsg1.c: New file.
13714
13715         * stdlib/fmtmsg.c (init): Add missing unlock.
13716         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13717
13718 2012-01-12  Marek Polacek  <polacek@redhat.com>
13719
13720         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13721         and _GNU_SOURCE.
13722
13723 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13724
13725         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13726         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13727         macro to ensure uniqueness of label name.
13728         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13729         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13730
13731 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13732
13733         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13734
13735         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13736         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13737         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13738         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13739
13740 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13741
13742         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13743
13744         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13745         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13746         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13747
13748         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13749
13750         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13751         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13752         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13753         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13754
13755         * math/bits/math-finite.h: Add ldexp support.
13756
13757 2012-01-10  Marek Polacek  <polacek@redhat.com>
13758
13759         * locale/programs/localedef.h (show_archive_content): Add noreturn
13760         attribute.
13761
13762 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13763
13764         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13765
13766 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13767
13768         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13769
13770         * io/Makefile (headers): Add bits/poll2.h.
13771
13772 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13773
13774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13775         typo #include statement.
13776
13777 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13778
13779         * include/sys/cdefs.h: Define __attribute_alloc_size.
13780         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13781         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13782         * elf/pldd.c: Likewise.
13783         * iconv/iconv_charmap.c: Likewise.
13784         * iconv/iconvconfig.c: Likewise.
13785         * iconv/strtab.c: Likewise.
13786         * locale/programs/locale.c: Likewise.
13787         * locale/programs/localedef.h: Likewise.
13788         * locale/programs/simple-hash.c: Likewise.
13789         * nscd/nscd.h: Likewise.
13790         * nss/makedb.c: Likewise.
13791         * sysdeps/generic/ldconfig.h: Likewise.
13792         * locale/programs/localedef.c: Remove xmalloc prototype.
13793         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13794
13795 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13796
13797         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13798         appropriate.
13799
13800 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13801
13802         * math/Makefile (tests): Add tst-CMPLX.
13803         * math/tst-CMPLX.c: New file.
13804
13805         * math/complex.h (CMPLXL): Fix typo.
13806
13807         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13808         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13809         GLIBC_2.16.
13810         * debug/tst-chk1.c: Add poll and ppoll tests.
13811         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13812         * include/sys/poll.h: Add hidden proto for ppoll.
13813         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13814         * sysdeps/mach/hurd/ppoll.c: Likewise.
13815         * io/ppoll.c: Likewise.
13816         * debug/poll_chk.c: New file.
13817         * debug/ppoll_chk.c: New file.
13818         * include/bits/poll2.h: New file.
13819         * io/bits/poll2.h: New file.
13820
13821         [BZ #1350]
13822         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13823
13824         * configure.in: static is always set to yes.  Remove.
13825         * config.make.in: Don't set build-static.
13826         * Makeconfig: Remove use of build-static.
13827         * dlfcn/Makefile: Likewise.
13828         * elf/Makefile: Likewise.
13829         * math/Makefile: Likewise.
13830         * misc/Makefile: Likewise.
13831         * nptl/Makefile: Likewise.
13832         * sysdeps/mach/hurd/Makefile: Likewise.
13833
13834         * configure.in: PWD_P is not used anymore.
13835         * config.make.in: Remove PWD_P entry.
13836
13837         * configure.in: Remove last remnants of RANLIB.
13838         No need to check for signed size_t anymore.
13839         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13840         and IA-64.
13841         Remove __builtin_expect test because we require at least gcc 3.4.
13842         * aclocal.m4: Likewise.
13843
13844         * wcsmbs/mbrtoc16.c: Implement using towc function.
13845         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13846         * wcsmbs/wcsmbsload.c: Likewise.
13847         * iconv/gconv_simple.c: Likewise.
13848         * iconv/gconv_int.h: Likewise.
13849         * iconv/gconv_builtin.h: Likewise.
13850         * iconv/iconv_prog.c: Remove CHAR16 handling.
13851
13852         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13853
13854         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13855
13856         * configure.in: Remove --with-elf and --enable-bounded options.
13857         Dont set base_machine for ia64.  More non-ELF conditions removed.
13858         Remove testing and setting of leading underscore information.
13859         * config.make.in (build-bounded): Set to no.
13860         * config.h.in: Remove NO_UNDERSCORES entry.
13861         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13862         them.
13863         * csu/start.c: Remove !NO_UNDERSCORE code.
13864         * locale/localeinfo.h: Likewise.
13865         * sysdeps/generic/machine-gmon.h: Likewise.
13866         * sysdeps/generic/sysdep.h: Likewise.
13867         * sysdeps/i386/sysdep.h: Likewise.
13868         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13869         * sysdeps/mach/sysdep.h: Likewise.
13870         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13871         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13872         * sysdeps/sh/sysdep.h: Likewise.
13873         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13874         * sysdeps/unix/i386/sysdep.S: Likewise.
13875         * sysdeps/unix/sparc/start.c: Likewise.
13876         * sysdeps/unix/sparc/sysdep.S: Likewise.
13877         * sysdeps/unix/sparc/sysdep.h: Likewise.
13878         * sysdeps/unix/start.c: Likewise.
13879         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13880         * sysdeps/x86_64/sysdep.h: Likewise.
13881
13882 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13883
13884         [BZ #13553]
13885         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13886         for non-gcc.
13887         * argp/argp-fmtstream.h: Use const instead __const.
13888         * argp/argp.h: Likewise.
13889         * assert/assert.h: Likewise.
13890         * bits/fenv.h: Likewise.
13891         * bits/sched.h: Likewise.
13892         * bits/sigset.h: Likewise.
13893         * bits/sigthread.h: Likewise.
13894         * catgets/nl_types.h: Likewise.
13895         * conform/data/pthread.h-data: Likewise.
13896         * crypt/crypt-private.h: Likewise.
13897         * crypt/crypt.h: Likewise.
13898         * crypt/crypt_util.c: Likewise.
13899         * ctype/ctype.h: Likewise.
13900         * debug/execinfo.h: Likewise.
13901         * debug/mbsnrtowcs_chk.c: Likewise.
13902         * debug/mbsrtowcs_chk.c: Likewise.
13903         * debug/wcsnrtombs_chk.c: Likewise.
13904         * debug/wcsrtombs_chk.c: Likewise.
13905         * debug/wcstombs_chk.c: Likewise.
13906         * dirent/dirent.h: Likewise.
13907         * dlfcn/dlfcn.h: Likewise.
13908         * elf/neededtest4.c: Likewise.
13909         * grp/grp.h: Likewise.
13910         * gshadow/gshadow.h: Likewise.
13911         * iconv/gconv.h: Likewise.
13912         * iconv/gconv_int.h: Likewise.
13913         * iconv/gconv_simple.c: Likewise.
13914         * iconv/iconv.h: Likewise.
13915         * iconv/loop.c: Likewise.
13916         * iconv/skeleton.c: Likewise.
13917         * include/aio.h: Likewise.
13918         * include/aliases.h: Likewise.
13919         * include/argz.h: Likewise.
13920         * include/arpa/inet.h: Likewise.
13921         * include/assert.h: Likewise.
13922         * include/dirent.h: Likewise.
13923         * include/dlfcn.h: Likewise.
13924         * include/execinfo.h: Likewise.
13925         * include/fcntl.h: Likewise.
13926         * include/fenv.h: Likewise.
13927         * include/glob.h: Likewise.
13928         * include/grp.h: Likewise.
13929         * include/libintl.h: Likewise.
13930         * include/mntent.h: Likewise.
13931         * include/netdb.h: Likewise.
13932         * include/pwd.h: Likewise.
13933         * include/rpc/netdb.h: Likewise.
13934         * include/sched.h: Likewise.
13935         * include/search.h: Likewise.
13936         * include/shadow.h: Likewise.
13937         * include/signal.h: Likewise.
13938         * include/stdio.h: Likewise.
13939         * include/stdlib.h: Likewise.
13940         * include/string.h: Likewise.
13941         * include/sys/socket.h: Likewise.
13942         * include/sys/stat.h: Likewise.
13943         * include/sys/statfs.h: Likewise.
13944         * include/sys/statvfs.h: Likewise.
13945         * include/sys/syslog.h: Likewise.
13946         * include/sys/time.h: Likewise.
13947         * include/sys/uio.h: Likewise.
13948         * include/time.h: Likewise.
13949         * include/unistd.h: Likewise.
13950         * include/utmp.h: Likewise.
13951         * include/wchar.h: Likewise.
13952         * include/wctype.h: Likewise.
13953         * inet/aliases.h: Likewise.
13954         * inet/arpa/inet.h: Likewise.
13955         * inet/netinet/ether.h: Likewise.
13956         * inet/netinet/in.h: Likewise.
13957         * intl/libintl.h: Likewise.
13958         * io/bits/fcntl2.h: Likewise.
13959         * io/fcntl.h: Likewise.
13960         * io/ftw.h: Likewise.
13961         * io/sys/poll.h: Likewise.
13962         * io/sys/stat.h: Likewise.
13963         * io/sys/statfs.h: Likewise.
13964         * io/sys/statvfs.h: Likewise.
13965         * io/utime.h: Likewise.
13966         * libio/bits/stdio.h: Likewise.
13967         * libio/bits/stdio2.h: Likewise.
13968         * libio/libio.h: Likewise.
13969         * libio/libioP.h: Likewise.
13970         * libio/stdio.h: Likewise.
13971         * locale/lc-ctype.c: Likewise.
13972         * locale/locale.h: Likewise.
13973         * login/utmp.h: Likewise.
13974         * malloc/arena.c: Likewise.
13975         * malloc/malloc.c: Likewise.
13976         * malloc/malloc.h: Likewise.
13977         * malloc/mcheck.c: Likewise.
13978         * malloc/mtrace.c: Likewise.
13979         * math/bits/mathcalls.h: Likewise.
13980         * math/fenv.h: Likewise.
13981         * math/math_private.h: Likewise.
13982         * misc/bits/error.h: Likewise.
13983         * misc/bits/syslog.h: Likewise.
13984         * misc/err.h: Likewise.
13985         * misc/error.h: Likewise.
13986         * misc/fstab.h: Likewise.
13987         * misc/mntent.h: Likewise.
13988         * misc/regexp.h: Likewise.
13989         * misc/search.h: Likewise.
13990         * misc/sgtty.h: Likewise.
13991         * misc/sys/mman.h: Likewise.
13992         * misc/sys/syslog.h: Likewise.
13993         * misc/sys/uio.h: Likewise.
13994         * misc/sys/xattr.h: Likewise.
13995         * misc/ttyent.h: Likewise.
13996         * nis/rpcsvc/ypclnt.h: Likewise.
13997         * nss/nss.h: Likewise.
13998         * posix/bits/unistd.h: Likewise.
13999         * posix/fnmatch.h: Likewise.
14000         * posix/glob.h: Likewise.
14001         * posix/sched.h: Likewise.
14002         * posix/spawn.h: Likewise.
14003         * posix/sys/wait.h: Likewise.
14004         * posix/unistd.h: Likewise.
14005         * posix/wordexp.h: Likewise.
14006         * pwd/pwd.h: Likewise.
14007         * resolv/netdb.h: Likewise.
14008         * resource/sys/resource.h: Likewise.
14009         * rt/aio.h: Likewise.
14010         * rt/bits/mqueue2.h: Likewise.
14011         * rt/mqueue.h: Likewise.
14012         * shadow/shadow.h: Likewise.
14013         * signal/signal.h: Likewise.
14014         * socket/send.c: Likewise.
14015         * socket/sendto.c: Likewise.
14016         * socket/sys/socket.h: Likewise.
14017         * stdio-common/printf.h: Likewise.
14018         * stdlib/bits/stdlib.h: Likewise.
14019         * stdlib/fmtmsg.h: Likewise.
14020         * stdlib/monetary.h: Likewise.
14021         * stdlib/stdlib.h: Likewise.
14022         * stdlib/ucontext.h: Likewise.
14023         * streams/stropts.h: Likewise.
14024         * string/argz.h: Likewise.
14025         * string/bits/string2.h: Likewise.
14026         * string/string.h: Likewise.
14027         * string/strings.h: Likewise.
14028         * sunrpc/rpc/auth.h: Likewise.
14029         * sunrpc/rpc/auth_des.h: Likewise.
14030         * sunrpc/rpc/clnt.h: Likewise.
14031         * sunrpc/rpc/netdb.h: Likewise.
14032         * sunrpc/rpc/pmap_clnt.h: Likewise.
14033         * sunrpc/rpc/xdr.h: Likewise.
14034         * sysdeps/generic/inttypes.h: Likewise.
14035         * sysdeps/generic/net/if.h: Likewise.
14036         * sysdeps/generic/sys/swap.h: Likewise.
14037         * sysdeps/gnu/net/if.h: Likewise.
14038         * sysdeps/gnu/utmpx.h: Likewise.
14039         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14040         * sysdeps/i386/i486/bits/string.h: Likewise.
14041         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14042         * sysdeps/s390/bits/string.h: Likewise.
14043         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14044         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14045         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14046         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14047         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14048         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14049         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14050         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14051         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14052         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14053         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14054         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14055         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14056         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14057         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14058         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14059         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14060         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14061         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14062         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14063         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14064         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14065         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14066         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14067         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14068         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14069         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14070         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14071         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14072         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14073         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14074         * sysvipc/sys/ipc.h: Likewise.
14075         * sysvipc/sys/msg.h: Likewise.
14076         * sysvipc/sys/sem.h: Likewise.
14077         * sysvipc/sys/shm.h: Likewise.
14078         * termios/termios.h: Likewise.
14079         * time/sys/time.h: Likewise.
14080         * time/time.h: Likewise.
14081         * wcsmbs/bits/wchar2.h: Likewise.
14082         * wcsmbs/uchar.h: Likewise.
14083         * wcsmbs/wchar.h: Likewise.
14084         * wctype/wctype.h: Likewise.
14085
14086         [BZ #13551]
14087         * Makeconfig: Remove all but ELF support including AIX support.
14088         * Makerules: Likewise.
14089         * config.h.in: Likewise.
14090         * config.make.in: Likewise.
14091         * configure: Likewise.
14092         * configure.in: Likewise.
14093         * csu/Makefile: Likewise.
14094         * csu/version.c: Likewise.
14095         * debug/Makefile: Likewise.
14096         * dlfcn/Makefile: Likewise.
14097         * elf/Makefile: Likewise.
14098         * extra-lib.mk: Likewise.
14099         * iconv/Makefile: Likewise.
14100         * include/libc-symbols.h: Likewise.
14101         * include/shlib-compat.h: Likewise.
14102         * resolv/Makefile: Likewise.
14103         * resolv/res_libc.c: Likewise.
14104         * rt/Makefile: Likewise.
14105         * sysdeps/i386/asm-syntax.h: Likewise.
14106         * sysdeps/i386/sysdep.h: Likewise.
14107         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14108         * sysdeps/mach/sysdep.h: Likewise.
14109         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14110         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14111         * sysdeps/s390/asm-syntax.h: Likewise.
14112         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14113         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14114         * sysdeps/sh/sysdep.h: Likewise.
14115         * sysdeps/unix/sparc/sysdep.h: Likewise.
14116         * sysdeps/wordsize-32/divdi3.c: Likewise.
14117         * sysdeps/x86_64/sysdep.h: Likewise.
14118
14119         * argp/Versions: Remove _argp_unlock_xxx.
14120
14121         [BZ #13559]
14122         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14123         * abilist/libBrokenLocale.abilist: Likewise.
14124         * abilist/libanl.abilist: Likewise.
14125         * abilist/libc.abilist: Likewise.
14126         * abilist/libcrypt.abilist: Likewise.
14127         * abilist/libdl.abilist: Likewise.
14128         * abilist/libm.abilist: Likewise.
14129         * abilist/libnsl.abilist: Likewise.
14130         * abilist/libpthread.abilist: Likewise.
14131         * abilist/libresolv.abilist: Likewise.
14132         * abilist/librt.abilist: Likewise.
14133         * abilist/libthread_db.abilist: Likewise.
14134         * abilist/libutil.abilist: Likewise.
14135         * abilist/libnss_db.abilist: New file.
14136
14137         * scripts/abilist.awk: Add support for indirect functions.
14138
14139         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14140
14141         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14142
14143         * shlib-versions: Remove entries for ports architectures.
14144
14145         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14146         files in ports.
14147         * elf/stackguard-macros.h: Remove support for IA-64.
14148         * elf/tst-auditmod1.c: Likewise.
14149         * sysdeps/generic/ldsodefs.h: Likewise.
14150
14151         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14152         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14153         configure files.
14154
14155         [BZ #13552]
14156         * configure.in: Remove --enable-omitfp support.
14157         * FAQ.in: Adjust.
14158         * config.make.in: Likewise.
14159         * Makeconfig: Likewise.
14160         * manual/install.texi: Likewise.
14161
14162         In case anyone cares, the IA-64 architecture could move to ports.
14163         * sysdeps/ia64/*: Removed.
14164         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14165         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14166
14167         [BZ #13555]
14168         * configure.in: Remove entries for unsupported architectures.
14169
14170         [BZ #13533]
14171         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14172         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14173         routines.
14174         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14175         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14176         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14177         fall back to using wcrtomb.
14178         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14179         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14180         renaming.
14181         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14182         * wcsmbs/tst-c16c32-1.c: New file.
14183
14184         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14185         local variable.
14186
14187         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14188
14189         * elf/tst-unique3.cc: Add explicit declaration of gets.
14190         * elf/tst-unique3lib.cc: Likewise.
14191         * elf/tst-unique3lib2.cc: Likewise.
14192         * elf/tst-unique4.cc: Likewise.
14193
14194         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14195
14196 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14197
14198         [BZ #13566]
14199         * assert/assert.h (static_assert): Don't define for C++.
14200         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14201         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14202
14203 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14204
14205         * iconv/loop.c (single loop): Fix assertion in storing of
14206         remaining bytes.
14207
14208         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14209
14210 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14211
14212         * posix/getconf.c: Update copyright year.
14213         * nss/getent.c: Likewise.
14214         * nss/makedb.c: Likewise.
14215         * iconv/iconvconfig.c: Likewise.
14216         * iconv/iconv_prog.c: Likewise.
14217         * elf/ldconfig.c: Likewise.
14218         * elf/pldd.c: Likewise.
14219         * elf/sotruss.ksh: Likewise.
14220         * catgets/gencat.c: Likewise.
14221         * csu/version.c: Likewise.
14222         * elf/ldd.bash.in: Likewise.
14223         * elf/sprof.c (print_version): Likewise.
14224         * locale/programs/locale.c: Likewise.
14225         * locale/programs/localedef.c: Likewise.
14226         * login/programs/pt_chown.c: Likewise.
14227         * nscd/nscd.c (print_version): Likewise.
14228         * debug/xtrace.sh: Likewise.
14229         * malloc/memusage.sh: Likewise.
14230         * malloc/mtrace.pl: Likewise.
14231         * debug/catchsegv.sh: Likewise.
14232
14233 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14234
14235         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14236         pure attribute.
14237
14238 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14239
14240         [BZ #13533]
14241         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14242         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14243         transformations.
14244         * iconv/gconv_int.h: Likewise.
14245         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14246         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14247         from libc for GLIBC_2.16.
14248         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14249         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14250         * wcsmbs/uchar.h: Really define mbstate_t.
14251         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14252         * wcsmbs/c16rtomb.c: New file.
14253         * wcsmbs/mbrtoc16.c: New file.
14254         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14255         for C/POSIX locale.
14256         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14257         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14258
14259         * wcsmbs/wchar.h: Add missing __restrict.
14260
14261 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14262
14263         [BZ #13532]
14264         * time/Makefile (routines): Add timespec_get.
14265         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14266         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14267         timespec for ISO C11.
14268         * time/timespec_get.c: New file.
14269         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14270         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14271
14272         [BZ #13531]
14273         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14274         * stdlib/stdlib.h: Declare aligned_alloc.
14275         * Versions.def: Add GLIBC_2.16 for libc.
14276         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14277
14278         [BZ 13527]
14279         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14280         ISO C11.
14281
14282         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14283         code.
14284
14285         [BZ #13528]
14286         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14287
14288         [BZ #13529]
14289         * assert/assert.h (static_assert): Define.
14290
14291         * version.h: Update for 2.16 development version.
14292
14293         [BZ #13526]
14294         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14295         _ISOC11_SOURCE.
14296
14297         * version.h (RELEASE): Bump for 2.15 release.
14298         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14299
14300         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14301         Patch by Marek Polacek <mpolacek@redhat.com>.
14302
14303         * bits/byteswap.h: Protect long long constants with __extension__.
14304         * sysdeps/i386/bits/byteswap.h: Likewise.
14305         * sysdeps/ia64/bits/byteswap.h: Likewise.
14306         * sysdeps/s390/bits/byteswap.h: Likewise.
14307         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14308
14309 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14310
14311         [BZ #13540]
14312         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14313         destination buffer.
14314         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14315
14316 2011-12-23  Marek Polacek  <polacek@redhat.com>
14317
14318         * elf/dl-addr.c (determine_info): Add inline keyword.
14319         * elf/tst-auditmod4b.c (check_avx): Likewise.
14320         * elf/tst-auditmod6b.c (check_avx): Likewise.
14321         * elf/tst-auditmod6c.c (check_avx): Likewise.
14322         * elf/tst-auditmod7b.c (check_avx): Likewise.
14323
14324 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14325
14326         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14327         !__SSE_MATH__.
14328
14329 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14330
14331         [BZ #13540]
14332         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14333         processing for last bytes.
14334
14335 2011-08-06  Bruno Haible  <bruno@clisp.org>
14336
14337         [BZ #13061]
14338         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14339         U+0385, not to U+1FEE.
14340
14341         [BZ #13062]
14342         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14343         entry for U+00A5 U+0301.
14344
14345 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14346
14347         [BZ #13166]
14348         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14349         buffer for the output is too small.
14350
14351         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14352         optimization.
14353
14354         [BZ #13185]
14355         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14356         SSE flags if possible.
14357
14358 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14359
14360         [BZ #13540]
14361         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14362         processing for last bytes.
14363
14364 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14365
14366         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14367         (syscall-list-default-options, syscall-list-default-condition)
14368         (syscall-list-includes): Define.
14369         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14370         list of ABIs and options and #if conditions for each ABI.  Do not
14371         handle common syscalls between ABIs specially.
14372         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14373         Remove.
14374         (syscall-list-variants, syscall-list-32bit-options)
14375         (syscall-list-32bit-condition, syscall-list-64bit-options)
14376         (syscall-list-64bit-condition): Define.
14377         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14378         (syscall-list-variants, syscall-list-32bit-options)
14379         (syscall-list-32bit-condition, syscall-list-64bit-options)
14380         (syscall-list-64bit-condition): Define.
14381         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14382         Remove.
14383         (syscall-list-variants, syscall-list-32bit-options)
14384         (syscall-list-32bit-condition, syscall-list-64bit-options)
14385         (syscall-list-64bit-condition): Define.
14386         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14387         Remove.
14388         (syscall-list-variants, syscall-list-32bit-options)
14389         (syscall-list-32bit-condition, syscall-list-64bit-options)
14390         (syscall-list-64bit-condition): Define.
14391
14392 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14393
14394         * locale/iso-639.def: Add brx entry.
14395
14396         [BZ #13328]
14397         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14398         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14399
14400         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14401         __feraiseexcept_renamed.
14402
14403 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14404
14405         [BZ #13538]
14406         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14407         EPOLLET with unsigned values.
14408         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14409         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14410
14411         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14412         to large cancellation.
14413         * math/s_cacoshf.c: Likewise.
14414         * math/s_cacoshl.c: Likewise.
14415
14416 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14417
14418         [BZ #13305]
14419         [BZ #12786]
14420         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14421         * math/s_cacoshf.c: Likewise.
14422         * math/s_cacoshl.c: Likewise.
14423
14424 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14425
14426         [BZ #13439]
14427         * iconv/gconv.h: Define __GCONV_SWAP.
14428         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14429         * iconvdata/utf-16.c: Likewise.
14430         * iconvdata/utf-32.c: Likewise.
14431
14432 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14433
14434         [BZ #13524]
14435         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14436         numerator after shifting it by one limb.
14437
14438 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14439
14440         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14441         under [__USE_EXTERN_INLINES].
14442
14443 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14444
14445         [BZ #13446]
14446         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14447
14448 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14449
14450         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14451         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14452         optimized code.
14453         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14454         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14455         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14456         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14457         for strncasecmp/strncasecmp_l compilation.
14458         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14459         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14460
14461 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14462
14463         [BZ #13484]
14464         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14465         of __asm__.
14466
14467 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14468
14469         [BZ #13506]
14470         * time/tzfile.c (__tzfile_read): Check values from file header.
14471
14472 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14473
14474         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14475         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14476         * powerpc/powerpc32/dl-start.S: Likewise.
14477         * powerpc/powerpc32/elf/start.S: Likewise.
14478         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14479         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14480         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14481         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14482         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14483         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14484         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14485         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14486         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14487         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14488         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14489         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14490         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14491         * powerpc/powerpc32/memset.S: Likewise.
14492         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14493         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14494         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14495         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14496         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14497         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14498         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14499         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14500         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14501         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14502         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14503         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14504         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14505
14506 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14507
14508         * math/libm-test.inc: Added more nearbyint tests.
14509         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14510         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14511         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14512         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14513
14514 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14515
14516         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14517         FD_CLOEXEC.
14518
14519 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14520
14521         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14522         Add wcscpy-ssse3 wcscpy-c.
14523         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14524         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14525         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14526         * sysdeps/x86_64/wcschr.S: New file.
14527         * sysdeps/x86_64/wcsrchr.S: New file.
14528         * string/test-strcmp.c: Remove checking of wcscmp function for
14529         wrong alignments.
14530         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14531         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14532         wcsrchr-sse2 wcsrchr-c.
14533         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14534         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14535         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14536         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14537         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14538         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14539         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14540         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14541         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14542         * wcsmbc/wcschr.c (WCSCHR): New macro.
14543
14544 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14545
14546         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14547         * wcsmbs/test-wcsrchr.c: New file.
14548         * string/test-strrchr.c: Add wcsrchr support.
14549         (WIDE): New macro.
14550         * wcsmbs/test-wcscpy.c: New file.
14551         * string/test-strcpy.c: Add wcscpy support.
14552         (WIDE): New macro.
14553
14554 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14555
14556         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14557         the inner loop.
14558
14559 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14560
14561         [BZ #13472]
14562         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14563
14564 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14565
14566         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14567         Minor optimizations.
14568
14569         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14570         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14571         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14572
14573 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14574
14575         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14576         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14577         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14578         for gcc to avoid warnings.
14579         * inet/Makefile (tests): Add tst-checks.
14580         * inet/tst-checks.c: New file.
14581
14582         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14583         warning.
14584
14585         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14586         __wmemcmp_sse2.
14587
14588         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14589         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14590
14591         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14592
14593 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14594
14595         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14596         problem.
14597
14598         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14599
14600 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14601
14602         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14603         conditional on GCC version.
14604         (__arch_compare_and_exchange_val_8_acq)
14605         (__arch_compare_and_exchange_val_16_acq)
14606         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14607         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14608         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14609
14610 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14611
14612         * sysdeps/sh/backtrace.c: New file.
14613
14614 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14615
14616         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14617         parenthesis.
14618
14619 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14620
14621         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14622         falling back to utime.
14623
14624 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14625
14626         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14627         expectations for float.
14628
14629 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14630
14631         * locale/weight.h (findidx): Add parameter len.
14632         * locale/weightwc.h (findidx): Likewise.
14633         * posix/fnmatch_loop.c (FCT): Adjust caller.
14634         * posix/regcomp.c (build_equiv_class): Likewise.
14635         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14636         * posix/regexec.c (check_node_accept_bytes): Likewise.
14637         * string/strcoll_l.c (STRCOLL): Likewise.
14638         * string/strxfrm_l.c (STRXFRM): Likewise.
14639
14640 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14641
14642         * Makefile.in: Remove CVSOPT handling.
14643         * configure.in: Remove use of AC_REVISION.
14644         * iconvdata/Makefile (distribute): No need to filter out CVS.
14645         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14646         handling.
14647
14648 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14649
14650         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14651         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14652         [USE_AS_STRNCASECMP_L]: Likewise.
14653         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14654         NO_TLS_DIRECT_SEG_REFS.
14655         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14656         Fix argument offsets for non-PIC.
14657         [USE_AS_STRNCASECMP_L]: Likewise.
14658         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14659         NO_TLS_DIRECT_SEG_REFS.
14660
14661 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14662
14663         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14664         O_CLOEXEC.
14665         * locale/loadlocale.c (_nl_load_locale): Likewise.
14666
14667 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14668
14669         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14670         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14671         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14672         (SYSCALL_GETTIME): Set errno on error.
14673
14674         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14675         count references to noai6ai_cached.
14676
14677 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14678
14679         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14680
14681         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14682         FD_CLOEXEC for /proc/self/maps.
14683
14684         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14685         FD_CLOEXEC for /proc/meminfo.
14686
14687         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14688         gai.conf.
14689
14690         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14691         FD_CLOEXEC for given file.
14692
14693         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14694
14695         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14696         FD_CLOEXEC for /etc/hosts.
14697         (_gethtent): Likewise.
14698
14699         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14700
14701         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14702         cancellation and set FD_CLOEXEC for /etc/netgroup.
14703
14704         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14705         reading /etc/publickey.
14706
14707         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14708         allow cancellation when reading /etc/group.
14709
14710         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14711         cancellation.
14712         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14713
14714         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14715         when using data file.
14716
14717         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14718
14719         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14720         (write_nis_obj): Use "c" and "e" in fopen.
14721
14722         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14723
14724         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14725
14726         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14727
14728         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14729
14730         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14731         locale.alias.
14732
14733         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14734
14735         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14736
14737         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14738
14739         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14740         file parsing and set FD_CLOEXEC.
14741
14742 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14743
14744         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14745
14746 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14747
14748         * malloc/arena.c (arena_get2): Don't call reused_arena when
14749         _int_new_arena failed.
14750
14751 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14752
14753         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14754         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14755         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14756         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14757         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14758         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14759         to compile strcasecmp and strncasecmp.
14760         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14761         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14762
14763         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14764
14765 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14766
14767         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14768         locale-defines.sym to gen-as-const-headers.
14769         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14770         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14771         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14772         to compile strcasecmp and strncasecmp.
14773         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14774         strcasecmp_l and strncasecmp_l.
14775         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14776         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14777         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14778         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14779         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14780         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14781         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14782         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14783         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14784         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14785         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14786
14787 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14788
14789         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14790         result of SYSDEP_GETTIME_CPU to retval.
14791         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14792         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14793
14794         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14795         variable.
14796
14797         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14798         mantissa words.
14799         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14800
14801         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14802         from unused variable.
14803
14804         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14805         DWARF definitions.
14806         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14807         for assembling.
14808
14809         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14810         over namespaces.
14811
14812         * sunrpc/rpc_prot.c (rejected): Fix case value.
14813
14814         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14815         unsigned long long int to avoid warnings in shift.
14816
14817         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14818         of use of trans.
14819         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14820         variable tmp.
14821
14822         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14823         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14824         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14825
14826         * nis/nis_table.c (nis_list): Use variable of correct type for
14827         result of __follow_path call.
14828
14829 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14830
14831         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14832         of math functions ceil, trunc, floor, round, and sqrt, when
14833         avaliable on the platform.
14834         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14835         name clash.
14836         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14837         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14838         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14839
14840 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14841
14842         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14843         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14844
14845 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14846
14847         * include/unistd.h: Fix __readlink return type.
14848         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14849
14850 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14851
14852         * stdlib/ucontext.h: Undo last change for makecontext.
14853
14854 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14855
14856         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14857
14858         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14859         * setjmp/setjmp.h: Mark functions as non-leaf.
14860         * setjmp/bits/setjmp2.h: Likewise.
14861         * stdlib/ucontext.h: Likewise.
14862
14863 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14864
14865         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14866         (reused_arena): Don't check arena limit.
14867         (arena_get2): Atomically check arena limit.
14868
14869 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14870
14871         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14872         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14873
14874         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14875         instructions.
14876
14877 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14878
14879         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14880         handler when locking.
14881
14882         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14883         Fix size of allocated buffer.
14884
14885 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14886
14887         [BZ #10103]
14888         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14889         declarations for long double functions.
14890         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14891
14892         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14893
14894 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14895
14896         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14897         installed.
14898
14899         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14900         is disabled.
14901
14902 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14903
14904         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14905
14906 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14907
14908         * include/alloca.h (stackinfo_alloca_round): Define.
14909         (extend_alloca): Use it.
14910         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14911         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14912         here.
14913
14914         * scripts/check-local-headers.sh: Ignore libaudit.h.
14915
14916         * nscd/Makefile (extra-objs): Make recursively expanded.
14917
14918 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14919
14920         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14921         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14922
14923         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14924         * posix/tst-rfc3484-2.c: Likewise.
14925         * posix/tst-rfc3484-3.c: Likewise.
14926
14927         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14928         process_vm_writev.
14929         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14930         process_vm_writev.
14931         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14932         process_vm_writev from libc using GLIBC_2.15 version.
14933
14934         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14935
14936 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14937
14938         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14939         stack usage.
14940
14941 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14942
14943         [BZ #13367]
14944         * nss/getent.c (initgroups_keys): Show error message in case no group
14945         names are given.
14946
14947         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14948         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14949         __bump_nl_timestamp.
14950         * nscd/connections (nscd_init): When host database is served open
14951         netlink socket and request notification about configuration changes.
14952         (main_loop_poll): Track netlink file descriptor and bump timestamp
14953         in case data becomes available.
14954         (main_loop_epoll): Likewise.
14955         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14956         (database_pers_head): Add extra_data fileds.
14957         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14958         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14959         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14960         Adjust caller.
14961         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14962         in6ai data, call __free_in6ai.
14963         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14964         Add -DHAVE_NETLINK.
14965         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14966         interface information.  Reuse previous data if netlink timestamp
14967         is not changed.
14968         (__bump_nl_timestamp): New function.
14969         (__free_in6ai): New function.
14970
14971 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14972
14973         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14974         close_not_cancel_no_status here.
14975         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14976
14977 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14978
14979         [BZ #13276]
14980         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14981         return value.
14982
14983         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14984         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14985         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14986
14987 2011-07-03  Andreas Jaeger  <aj@suse.de>
14988
14989         [BZ #10709]
14990         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14991         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14992         * math/libm-test.inc (sin_test): Add test case.
14993
14994 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14995
14996         [BZ #13337]
14997         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14998         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14999
15000         * elf/chroot_canon.c (chroot_canon): Cleanups.
15001
15002         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15003
15004         [BZ #13335]
15005         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15006         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15007
15008         * string/test-strchr.c: Make usable for strchrnul testing.
15009         * string/test-strchrnul.c: New file.
15010         * string/Makefile (strop-tests): Add strchrnul.
15011
15012         * po/it.po: Update from translation team.
15013         * po/es.po: Likewise.
15014
15015 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15016
15017         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15018         the three constants needed as parameters.  Drop the others.
15019         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15020         __m128i_strloadu_tolower.
15021         Create and initialize variable zero and use it in all the places
15022         where _mm_setzero_si128 was used.
15023
15024         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15025         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15026         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15027         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15028         anymore.
15029         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15030         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15031         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15032         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15033         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15034         __mpranred, __mptan.
15035         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15036         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15037         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15038         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15039         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15040         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15041         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15042         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15043         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15044
15045 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15046
15047         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15048         redefine if SHARED.
15049         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15050
15051         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15052         wide char related routines to wcsmbs subdir.
15053
15054 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15055
15056         [BZ #13344]
15057         * misc/sys/cdefs.h (__THROWNL): Define.
15058         * posix/unistd.h: Use __THREADNL instead of __THREAD
15059         for memory synchronization functions.
15060
15061 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15062
15063         [BZ #13349]
15064         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15065         doesn't exist.
15066         * manual/stdio.texi (Obstack Streams): Node removed.
15067
15068 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15069
15070         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15071         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15072         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15073
15074         * math/math_private.h (math_force_eval): Allow non-addressable
15075         arguments.
15076         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15077
15078 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15079
15080         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15081         file is not needed.
15082
15083         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15084         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15085         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15086         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15087         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15088         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15089         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15090         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15091         Add AVX variants.
15092         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15093         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15094         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15095         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15096         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15097         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15098         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15099         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15100         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15101         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15102         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15103         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15104         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15105         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15106         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15107         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15108         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15109         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15110         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15111
15112         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15113         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15114
15115         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15116         place.  Use VEX encoding when compiling for AVX.
15117
15118 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15119
15120         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15121         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15122
15123         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15124
15125 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15126
15127         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15128         useless if() expression.
15129         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15130         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15131         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15132         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15133         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15134         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15135         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15136         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15137         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15138         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15139         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15140         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15141         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15142         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15143         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15144         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15145         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15146         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15147         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15148
15149         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15150
15151 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15152
15153         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15154         condition.
15155         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15156
15157 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15158
15159         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15160         .text section.  Avoid duplicate constants.
15161         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15163         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15164         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15165         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15166         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15167         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15168         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15169         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15170         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15171         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15172         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15173         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15174         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15175         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15176         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15177         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15178         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15179         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15180         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15181         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15182         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15183         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15184         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15185         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15186         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15187         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15188         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15189         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15190         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15191         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15192         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15193         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15194         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15195         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15196         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15197         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15198         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15199         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15200         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15201         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15202         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15203         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15204         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15205         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15206
15207 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15208
15209         * sysdeps/x86_64/dla.h: Move to ...
15210         * sysdeps/x86_64/fpu/dla.h: ...here.
15211         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15212         situations.  Use __builtin_fma only for gcc 4.6 and up.
15213
15214         * config.make.in: Add have-mfma4 entry.
15215         * configure.in: Substitute libc_cv_cc_fma4.
15216         * math/Makefile (dbl-only-routines): Add sincostab.
15217         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15218         Use __sincostab not sincos.
15219         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15220         name is a macro.
15221         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15222         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15223         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15224         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15225         using __copysign.
15226         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15227         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15228         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15229         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15230         and __inv.
15231         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15232         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15233         __copysign.
15234         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15235         define aliases when function name is a macro.
15236         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15237         sysdeps/ieee754/dbl-64/sincos.tbl.
15238         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15239         fma4-enabled routines.
15240         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15241         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15242         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15243         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15244         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15245         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15246         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15247         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15248         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15249         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15250         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15251         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15252         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15253         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15254         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15255         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15256         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15257         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15258         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15259         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15260         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15261         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15262         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15263         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15264         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15265         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15266         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15267         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15268         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15269         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15270
15271         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15272         rename.
15273         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15274         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15275         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15276         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15277         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15278         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15279         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15280         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15281
15282 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15283
15284         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15285
15286 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15287
15288         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15289
15290         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15291         prediction.
15292         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15293
15294         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15295         Remove unused variable magic_bits.
15296         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15297
15298         * string/strnlen.c: Define and use STRNLEN macro.
15299         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15300         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15301         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15302         * wcsmbs/wcslen.c: Define and use WCSLEN.
15303         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15304         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15305         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15306         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15307         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15308         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15309         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15310
15311 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15312
15313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15314         strnlen-sse2-no-bsf.
15315         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15316         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15317         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15318         Add strnlen support.
15319         (USE_AS_STRNLEN): New macro.
15320         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15321         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15322         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15323         * sysdeps/x86_64/wcslen.S: New file.
15324
15325 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15326
15327         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15328         XMM-moves are used for copying on small sizes.
15329
15330 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15331
15332         * wcsmbs/Makefile (strop-tests): Add wcschr.
15333         * wcsmbs/test-wcschr.c: New file.
15334         * string/test-strchr.c: Update.
15335         Add wcschr support.
15336         (WIDE): New macro.
15337
15338 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15339
15340         * wcsmbs/Makefile (strop-tests): Add wcslen.
15341         * wcsmbs/test-wcslen.c: New file.
15342         * string/test-strlen.c: Update.
15343         Add wcslen support.
15344         (WIDE): New macro.
15345
15346 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15347
15348         * po/it.po: Update from translation team.
15349
15350 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15351
15352         * sysdeps/x86_64/wcscmp.S: Update.
15353         Fix wrong comparison semantics.
15354         wcscmp shall use signed comparison not unsigned.
15355         Don't use substraction to avoid overflow bug.
15356         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15357         * wcsmbc/wcscmp.c: Likewise.
15358         * string/test-strcmp.c: Likewise.
15359         Add new tests to check cases with negative values.
15360
15361 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15362
15363         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15364         * sysdeps/x86_64/dla.h: ...here.  New file.
15365         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15366         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15367         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15368         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15369         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15370         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15371         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15372         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15373         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15374
15375 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15376
15377         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15378         __ynl_finite aliases.
15379
15380 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15381
15382         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15383
15384         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15385         define DLA_FMA.
15386         [DLA_FMA] (EMULV): Use DLA_FMA.
15387         [DLA_FMA] (MUL12): Use EMULV.
15388         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15389         that are not needed.
15390         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15391         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15392         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15393         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15394         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15395         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15396         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15397
15398 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15399
15400         * math/s_nan.c: Undef __nan.
15401         * math/s_nanf.c: Undef __nanf.
15402         * math/s_nanl.c: Undef __nanl.
15403         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15404         "math_private.h".
15405
15406 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15407
15408         * math/s_catan.c: Add branch predictions.
15409         * math/s_catanf.c: Likewise.
15410         * math/s_catanh.c: Likewise.
15411         * math/s_catanhf.c: Likewise.
15412         * math/s_catanhl.c: Likewise.
15413         * math/s_catanl.c: Likewise.
15414         * math/s_cexp.c: Likewise.
15415         * math/s_cexpf.c: Likewise.
15416         * math/s_cexpl.c: Likewise.
15417         * math/s_clog.c: Likewise.
15418         * math/s_clog10.c: Likewise.
15419         * math/s_clog10f.c: Likewise.
15420         * math/s_clog10l.c: Likewise.
15421         * math/s_clogf.c: Likewise.
15422         * math/s_clogl.c: Likewise.
15423         * math/s_csqrt.c: Likewise.
15424         * math/s_csqrtf.c: Likewise.
15425         * math/s_csqrtl.c: Likewise.
15426         * math/s_ctanf.c: Likewise.
15427         * math/s_ctanh.c: Likewise.
15428         * math/s_ctanhf.c: Likewise.
15429         * math/s_ctanhl.c: Likewise.
15430         * math/s_ctanl.c: Likewise.
15431
15432         * math/math_private.h: Define __nan, __nanf, __nanl.
15433         * math/s_cacosh.c: Include <math_private.h>.
15434         * math/s_cacoshl.c: Likewise.
15435         * math/s_casinh.c: Likewise.
15436         * math/s_casinhf.c: Likewise.
15437         * math/s_casinhl.c: Likewise.
15438         * math/s_ccos.c: Rely entire on ccosh.
15439         * math/s_ccosf.c: Rely entire on ccoshf.
15440         * math/s_ccosl.c: Rely entirely on ccoshl.
15441         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15442         Remove tests for FE_INVALID.
15443         * math/s_ccoshf.c: Likewise.
15444         * math/s_ccoshl.c: Likewise.
15445         * math/s_csin.c: Likewise.
15446         * math/s_csinf.c: Likewise.
15447         * math/s_csinh.c Likewise.
15448         * math/s_csinhf.c: Likewise.
15449         * math/s_csinhl.c: Likewise.
15450         * math/s_csinl.c: Likewise.
15451         * math/s_ctan.c: Likewise.
15452         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15453         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15454         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15455
15456 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15457
15458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15459         compilation problems.
15460
15461         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15462         __builtin_expect.
15463
15464 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15465
15466         * sysdeps/i386/configure.in: Test for -mfma4 option.
15467         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15468         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15469         COMMON_CPUID_INDEX_80000001.
15470         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15471         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15472         use it if FMA3 is not supported.
15473         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15474
15475         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15476         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15477
15478 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15479
15480         [BZ #12892]
15481         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15482         it would create a cycle with a link time dependency.
15483
15484 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15485
15486         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15487         instruction.
15488         * string/Makefile (strop-tests): Add rawmemchr.
15489         * string/test-rawmemchr.c: New file.
15490
15491         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15492         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15493         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15494         when compiling str{,n}casecmp and when AVX is available.  Hook up
15495         new optimized code in initializers.
15496
15497 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15498
15499         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15500         __feraiseexcept instead of feraiseexcept.
15501
15502 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15503
15504         * math/math_private.h: Define defaults for libc_fetestexcept and
15505         libc_feupdateenv.
15506         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15507         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15508         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15509         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15510         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15511         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15512         libc_fetestexcept and libc_feupdateenv.
15513
15514         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15515         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15516         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15517         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15518         libc_feholdexcept_setround.
15519
15520         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15521         Add s_nearbyint-c and s_nearbyintf-c.
15522         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15523         nearbyintf inlines.
15524         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15525         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15526         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15527         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15528
15529         * math/math_private.h: Define defaults for libc_fegetround,
15530         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15531         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15532         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15533         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15534         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15535         standard functions.
15536         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15537         Remove comments and hacks for old compiler versions.
15538         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15539         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15540         libc_feholdexceptl.
15541
15542 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15543
15544         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15545         (__feraiseexcept_renamed): Add __NTH.
15546         (feraiseexcept): Add __NTH.  Rename local variables to fix
15547         namespace violations.
15548
15549 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15550
15551         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15552
15553         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15554
15555         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15556         recently added interfaces.
15557         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15558
15559         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15560         about macro parameter expansion.
15561
15562         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15563         __NO_MATH_INLINES is defined.  Cleanups.
15564
15565         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15566         and __floorf is target has SSE4.1.
15567         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15568         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15569         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15570         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15571
15572         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15573         name.
15574         (floorf): Likewise.
15575
15576         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15577
15578 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15579
15580         * misc/sys/cdefs.h: Fix last change.
15581
15582         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15583         database lookup.
15584
15585 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15586
15587         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15588
15589         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15590         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15591         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15592         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15593         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15594         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15595         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15596         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15597         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15598         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15599         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15600         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15601         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15602         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15603         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15604         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15605         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15606         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15607         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15608         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15609         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15610         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15611
15612         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15613         ceil, ceilf, floor, floorf.
15614
15615         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15616         Perform IRELATIVE relocations last.
15617
15618         * elf/do-rel.h: Add another parameter nrelative, replacing the
15619         local variable with the same name.  Change name of the function
15620         to end in Rel or Rela (uppercase).
15621         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15622         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15623         elf_dynamic_do_##reloc function.
15624
15625 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15626
15627         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15628         is sufficient, at least on modern CPUs.
15629
15630         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15631
15632         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15633         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15634
15635         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15636         __expl_finite.
15637         * math/bits/math-finite.h: Add entries for exp.
15638         * math/e_expl.c: Add __*_finite alias.
15639         * sysdeps/i386/fpu/e_exp.S: Likewise.
15640         * sysdeps/i386/fpu/e_expf.S: Likewise.
15641         * sysdeps/i386/fpu/e_expl.c: Likewise.
15642         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15643         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15644         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15645         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15646         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15647         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15648         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15649
15650         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15651         is sufficient, at least on modern CPUs.
15652
15653         * ctype/ctype-info.c (__ctype_init): Define.
15654         * include/ctype.h (__ctype_init): Declare.
15655         (__ctype_b_loc): The variable is always initialized.
15656         (__ctype_toupper_loc): Likewise.
15657         (__ctype_tolower_loc): Likewise.
15658         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15659         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15660
15661 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15662
15663         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15664
15665         * configure.in: Also look in $cxxmachine/include for C++ system
15666         headers.
15667
15668 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15669
15670         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15671         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15672         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15673         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15674         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15675         (USE_AS_WMEMCMP): New macro.
15676         Fixing indents.
15677         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15678         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15679         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15680         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15681         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15682         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15683         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15684         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15685         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15686         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15687         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15688         (USE_AS_WMEMCMP): New macro.
15689         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15690         * sysdeps/string/test-memcmp.c: Update.
15691         Fix simple_wmemcmp.
15692         Add new tests.
15693         * wcsmbs/wmemcmp.c: Update.
15694         (WMEMCMP): New macro.
15695         Fix overflow bug.
15696
15697 2011-10-12  Andreas Jaeger  <aj@suse.de>
15698
15699         [BZ #13268]
15700         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15701
15702 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15703
15704         * libio/iofwide.c (do_length): Avoid warning.
15705
15706         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15707
15708 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15709
15710         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15711
15712         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15713         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15714         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15715         * sysdeps/i386/i686/fpu/e_log.S: New file.
15716         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15717         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15718
15719         * ctype/ctype.h: Add support for inlined isXXX functions when
15720         compiling C++ code.
15721
15722 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15723
15724         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15725
15726         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15727
15728 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15729
15730         [BZ #13291]
15731         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15732
15733 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15734
15735         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15736         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15737         feraiseexcept.
15738
15739         * sysdeps/x86_64/memrchr.S: Check for zero size.
15740
15741         * string/stratcliff.c: Add memrchr tests.
15742
15743 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15744
15745         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15746         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15747         rawmemchr-sse2 rawmemchr-sse2-bsf.
15748         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15749         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15750         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15751         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15752         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15753         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15754         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15755         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15756         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15757         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15758         * string/memrchr.c (MEMRCHR): New macro.
15759
15760 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15761
15762         Add integration with gcc's -ffinite-math-only and optimize wrapper
15763         functions in libm.
15764         * Versions.def: Define GLIBC_2.15 version for libm.
15765         * math/Makefile (headers): Add bits/math-finite.h.
15766         * math/bits/math-finite.h: New file.
15767         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15768         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15769         * math/e_acoshl.c: Add __*_finite alias.
15770         * math/e_acosl.c: Likewise.
15771         * math/e_asinl.c: Likewise.
15772         * math/e_atan2l.c: Likewise.
15773         * math/e_atanhl.c: Likewise.
15774         * math/e_coshl.c: Likewise.
15775         * math/e_exp10.c: Likewise.
15776         * math/e_exp10f.c: Likewise.
15777         * math/e_exp10l.c: Likewise.
15778         * math/e_exp2l.c: Likewise.
15779         * math/e_fmodl.c: Likewise.
15780         * math/e_gammal_r.c: Likewise.
15781         * math/e_hypotl.c: Likewise.
15782         * math/e_j0l.c: Likewise.
15783         * math/e_j1l.c: Likewise.
15784         * math/e_jnl.c: Likewise.
15785         * math/e_lgammal_r.c: Likewise.
15786         * math/e_log10l.c: Likewise.
15787         * math/e_log2l.c: Likewise.
15788         * math/e_logl.c: Likewise.
15789         * math/e_powl.c: Likewise.
15790         * math/e_sinhl.c: Likewise.
15791         * math/e_sqrtl.c: Likewise.
15792         * math/e_scalb.c: Completely rewritten and optimized.
15793         * math/e_scalbf.c: Likewise.
15794         * math/e_scalbl.c: Likewise.
15795         * math/w_acos.c: Likewise.
15796         * math/w_acosf.c: Likewise.
15797         * math/w_acosl.c: Likewise.
15798         * math/w_acosh.c: Likewise.
15799         * math/w_acoshf.c: Likewise.
15800         * math/w_acoshl.c: Likewise.
15801         * math/w_asin.c: Likewise.
15802         * math/w_asinf.c: Likewise.
15803         * math/w_asinl.c: Likewise.
15804         * math/w_atan2.c: Likewise.
15805         * math/w_atan2f.c: Likewise.
15806         * math/w_atan2l.c: Likewise.
15807         * math/w_atanh.c: Likewise.
15808         * math/w_atanhf.c: Likewise.
15809         * math/w_atanhl.c: Likewise.
15810         * math/w_exp10.c: Likewise.
15811         * math/w_exp10f.c: Likewise.
15812         * math/w_exp10l.c: Likewise.
15813         * math/w_fmod.c: Likewise.
15814         * math/w_fmodf.c: Likewise.
15815         * math/w_fmodl.c: Likewise.
15816         * math/w_j0.c: Likewise.
15817         * math/w_j0f.c: Likewise.
15818         * math/w_j0l.c: Likewise.
15819         * math/w_j1.c: Likewise.
15820         * math/w_j1f.c: Likewise.
15821         * math/w_j1l.c: Likewise.
15822         * math/w_jn.c: Likewise.
15823         * math/w_jnf.c: Likewise.
15824         * math/w_log.c: Likewise.
15825         * math/w_logf.c: Likewise.
15826         * math/w_logl.c: Likewise.
15827         * math/w_log10.c: Likewise.
15828         * math/w_log10f.c: Likewise.
15829         * math/w_log10l.c: Likewise.
15830         * math/w_log2.c: Likewise.
15831         * math/w_log2f.c: Likewise.
15832         * math/w_log2l.c: Likewise.
15833         * math/w_pow.c: Likewise.
15834         * math/w_powf.c: Likewise.
15835         * math/w_powl.c: Likewise.
15836         * math/w_remainder.c: Likewise.
15837         * math/w_remainderf.c: Likewise.
15838         * math/w_remainderl.c: Likewise.
15839         * math/w_scalb.c: Likewise.
15840         * math/w_scalbf.c: Likewise.
15841         * math/w_scalbl.c: Likewise.
15842         * math/w_sqrt.c: Likewise.
15843         * math/w_sqrtf.c: Likewise.
15844         * math/w_sqrtl.c: Likewise.
15845         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15846         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15847         used.
15848         * math/math_private.h: Declare __kernel_standard_f.
15849         * math/w_cosh.c: Remove cruft and optimize a bit.
15850         * math/w_coshf.c: Likewise.
15851         * math/w_coshl.c: Likewise.
15852         * math/w_exp2.c: Likewise.
15853         * math/w_exp2f.c: Likewise.
15854         * math/w_exp2l.c: Likewise.
15855         * math/w_hypot.c: Likewise.
15856         * math/w_hypotf.c: Likewise.
15857         * math/w_hypotl.c: Likewise.
15858         * math/w_lgamma.c: Likewise.
15859         * math/w_lgamma_r.c: Likewise.
15860         * math/w_lgammaf.c: Likewise.
15861         * math/w_lgammaf_r.c: Likewise.
15862         * math/w_lgammal.c: Likewise.
15863         * math/w_lgammal_r.c: Likewise.
15864         * math/w_sinh.c: Likewise.
15865         * math/w_sinhf.c: Likewise.
15866         * math/w_sinhl.c: Likewise.
15867         * math/w_tgamma.c: Likewise.
15868         * math/w_tgammaf.c: Likewise.
15869         * math/w_tgammal.c: Likewise.
15870         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15871         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15872         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15873         Minor optimizations.  Pretty printing.  Remove cruft.
15874         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15875         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15876         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15877         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15878         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15879         * sysdeps/i386/fpu/e_asin.S: Likewise.
15880         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15881         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15882         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15883         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15884         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15885         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15886         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15887         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15888         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15889         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15890         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15891         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15892         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15893         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15894         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15895         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15896         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15897         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15898         * sysdeps/i386/fpu/e_log.S: Likewise.
15899         * sysdeps/i386/fpu/e_log10.S: Likewise.
15900         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15901         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15902         * sysdeps/i386/fpu/e_log2.S: Likewise.
15903         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15904         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15905         * sysdeps/i386/fpu/e_logf.S: Likewise.
15906         * sysdeps/i386/fpu/e_logl.S: Likewise.
15907         * sysdeps/i386/fpu/e_pow.S: Likewise.
15908         * sysdeps/i386/fpu/e_powf.S: Likewise.
15909         * sysdeps/i386/fpu/e_powl.S: Likewise.
15910         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15911         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15912         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15913         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15914         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15915         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15916         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15917         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15918         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15919         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15920         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15921         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15922         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15923         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15924         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15925         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15926         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15927         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15928         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15929         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15930         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15931         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15932         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15933         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15934         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15935         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15936         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15937         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15938         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15939         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15940         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15941         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15942         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15943         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15944         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15945         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15946         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15947         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15948         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15949         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15950         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15951         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15952         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15953         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15954         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15955         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15956         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15957         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15958         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15959         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15960         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15961         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15962         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15963         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15964         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15965         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15966         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15967         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15968         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15969         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15970         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15971         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15972         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15973         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15974         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15975         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15976         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15977         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15978         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15979         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15980         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15981         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15982         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15983         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15984         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15985         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15986         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15987         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15988         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15989         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15990         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15991         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15992         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15993         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15994         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15995         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15996         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15997         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15998         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15999         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16000         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16001         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16002         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16003         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16004         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16005         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16006         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16007         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16008         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16009         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16010         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16011         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16012         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16013         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16014         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16015         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16016         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16017         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16018         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16019         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16020         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16021         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16022         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16023         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16024         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16025         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16026         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16027         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16028         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16029         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16030         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16031         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16032         (__isnanf): Likewise.
16033         (__isinf_ns): Likewise.
16034         (__isinf_nsf): Likewise.
16035         (__finite): Likewise.
16036         (__finitef): Likewise.
16037         (__ieee754_sqrt): Define as macro.
16038         (__ieee754_sqrtf): Define as macro.
16039         (__ieee754_sqrtl): Define as macro.
16040         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16041         inlined copy.
16042         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16043         __FINITE_MATH_ONLY__ consistent.
16044         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16045
16046 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16047
16048         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16049         of rawmemchr.
16050
16051         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16052
16053 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16054
16055         * po/ja.po: Update from translation team.
16056
16057 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16058
16059         * locale/programs/locarchive.c (prepare_address_space): New function.
16060         (create_archive, enlarge_archive, open_archive): Use it.
16061
16062         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16063         inside [SHARED], where it is used.
16064
16065         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16066
16067         * nss/getent.c (netgroup_keys): Remove unused variable.
16068         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16069
16070 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16071
16072         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16073         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16074         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16075         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16076         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16077         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16078         * math/Makefile (libm-calls): Add s_isinf_ns.
16079         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16080         * math/multc3.c: Likewise.
16081         * math/s_casin.c: Likewise.
16082         * math/s_casinf.c: Likewise.
16083         * math/s_casinl.c: Likewise.
16084         * math/s_ccos.c: Likewise.
16085         * math/s_ccosf.c: Likewise.
16086         * math/s_ccosl.c: Likewise.
16087         * math/s_ctan.c: Likewise.
16088         * math/s_ctanf.c: Likewise.
16089         * math/s_ctanh.c: Likewise.
16090         * math/s_ctanhf.c: Likewise.
16091         * math/s_ctanhl.c: Likewise.
16092         * math/s_ctanl.c: Likewise.
16093         * math/w_fmod.c: Likewise.
16094         * math/w_fmodf.c: Likewise.
16095         * math/w_fmodl.c: Likewise.
16096         * math/w_remainder.c: Likewise.
16097         * math/w_remainderf.c: Likewise.
16098         * math/w_remainderl.c: Likewise.
16099         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16100         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16101         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16102         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16103         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16104         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16105         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16106         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16107
16108         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16109         of the number.
16110         * stdio-common/printf_fphex.c: Likewise.
16111         * stdio-common/printf_size.c: Likewise.
16112
16113         * math/e_exp10.c: Include math_private.h using <...> not "...".
16114         * math/e_exp10f.c: Likewise.
16115         * math/e_exp10l.c: Likewise.
16116         * math/e_exp2l.c: Likewise.
16117         * math/e_j0l.c: Likewise.
16118         * math/e_j1l.c: Likewise.
16119         * math/e_jnl.c: Likewise.
16120         * math/e_lgammal_r.c: Likewise.
16121         * math/e_rem_pio2l.c: Likewise.
16122         * math/e_scalb.c: Likewise.
16123         * math/e_scalbf.c: Likewise.
16124         * math/e_scalbl.c: Likewise.
16125         * math/k_cosl.c: Likewise.
16126         * math/k_sinl.c: Likewise.
16127         * math/k_tanl.c: Likewise.
16128         * math/s_cacoshf.c: Likewise.
16129         * math/s_catan.c: Likewise.
16130         * math/s_catanf.c: Likewise.
16131         * math/s_catanh.c: Likewise.
16132         * math/s_catanhf.c: Likewise.
16133         * math/s_catanhl.c: Likewise.
16134         * math/s_catanl.c: Likewise.
16135         * math/s_ccosh.c: Likewise.
16136         * math/s_ccoshf.c: Likewise.
16137         * math/s_ccoshl.c: Likewise.
16138         * math/s_cexp.c: Likewise.
16139         * math/s_cexpf.c: Likewise.
16140         * math/s_cexpl.c: Likewise.
16141         * math/s_clog.c: Likewise.
16142         * math/s_clog10.c: Likewise.
16143         * math/s_clog10f.c: Likewise.
16144         * math/s_clog10l.c: Likewise.
16145         * math/s_clogf.c: Likewise.
16146         * math/s_clogl.c: Likewise.
16147         * math/s_csin.c: Likewise.
16148         * math/s_csinf.c: Likewise.
16149         * math/s_csinh.c: Likewise.
16150         * math/s_csinhf.c: Likewise.
16151         * math/s_csinhl.c: Likewise.
16152         * math/s_csinl.c: Likewise.
16153         * math/s_csqrt.c: Likewise.
16154         * math/s_csqrtf.c: Likewise.
16155         * math/s_csqrtl.c: Likewise.
16156         * math/s_ctan.c: Likewise.
16157         * math/s_ctanf.c: Likewise.
16158         * math/s_ctanh.c: Likewise.
16159         * math/s_ctanhf.c: Likewise.
16160         * math/s_ctanhl.c: Likewise.
16161         * math/s_ctanl.c: Likewise.
16162         * math/s_ldexp.c: Likewise.
16163         * math/s_ldexpf.c: Likewise.
16164         * math/s_ldexpl.c: Likewise.
16165         * math/s_significand.c: Likewise.
16166         * math/s_significandf.c: Likewise.
16167         * math/s_significandl.c: Likewise.
16168         * math/w_acos.c: Likewise.
16169         * math/w_acosf.c: Likewise.
16170         * math/w_acosh.c: Likewise.
16171         * math/w_acoshf.c: Likewise.
16172         * math/w_acoshl.c: Likewise.
16173         * math/w_acosl.c: Likewise.
16174         * math/w_asin.c: Likewise.
16175         * math/w_asinf.c: Likewise.
16176         * math/w_asinl.c: Likewise.
16177         * math/w_atan2.c: Likewise.
16178         * math/w_atan2f.c: Likewise.
16179         * math/w_atan2l.c: Likewise.
16180         * math/w_atanh.c: Likewise.
16181         * math/w_atanhf.c: Likewise.
16182         * math/w_atanhl.c: Likewise.
16183         * math/w_cosh.c: Likewise.
16184         * math/w_coshf.c: Likewise.
16185         * math/w_coshl.c: Likewise.
16186         * math/w_dremf.c: Likewise.
16187         * math/w_exp10.c: Likewise.
16188         * math/w_exp10f.c: Likewise.
16189         * math/w_exp10l.c: Likewise.
16190         * math/w_exp2.c: Likewise.
16191         * math/w_exp2f.c: Likewise.
16192         * math/w_fmod.c: Likewise.
16193         * math/w_fmodf.c: Likewise.
16194         * math/w_fmodl.c: Likewise.
16195         * math/w_hypot.c: Likewise.
16196         * math/w_hypotf.c: Likewise.
16197         * math/w_hypotl.c: Likewise.
16198         * math/w_j0.c: Likewise.
16199         * math/w_j0f.c: Likewise.
16200         * math/w_j0l.c: Likewise.
16201         * math/w_j1.c: Likewise.
16202         * math/w_j1f.c: Likewise.
16203         * math/w_j1l.c: Likewise.
16204         * math/w_jn.c: Likewise.
16205         * math/w_jnf.c: Likewise.
16206         * math/w_jnl.c: Likewise.
16207         * math/w_lgamma.c: Likewise.
16208         * math/w_lgamma_r.c: Likewise.
16209         * math/w_lgammaf.c: Likewise.
16210         * math/w_lgammaf_r.c: Likewise.
16211         * math/w_lgammal.c: Likewise.
16212         * math/w_lgammal_r.c: Likewise.
16213         * math/w_log.c: Likewise.
16214         * math/w_log10.c: Likewise.
16215         * math/w_log10f.c: Likewise.
16216         * math/w_log10l.c: Likewise.
16217         * math/w_log2.c: Likewise.
16218         * math/w_log2f.c: Likewise.
16219         * math/w_log2l.c: Likewise.
16220         * math/w_logf.c: Likewise.
16221         * math/w_logl.c: Likewise.
16222         * math/w_pow.c: Likewise.
16223         * math/w_powf.c: Likewise.
16224         * math/w_powl.c: Likewise.
16225         * math/w_remainder.c: Likewise.
16226         * math/w_remainderf.c: Likewise.
16227         * math/w_remainderl.c: Likewise.
16228         * math/w_scalb.c: Likewise.
16229         * math/w_scalbf.c: Likewise.
16230         * math/w_scalbl.c: Likewise.
16231         * math/w_sinh.c: Likewise.
16232         * math/w_sinhf.c: Likewise.
16233         * math/w_sinhl.c: Likewise.
16234         * math/w_sqrt.c: Likewise.
16235         * math/w_sqrtf.c: Likewise.
16236         * math/w_sqrtl.c: Likewise.
16237         * math/w_tgamma.c: Likewise.
16238         * math/w_tgammaf.c: Likewise.
16239         * math/w_tgammal.c: Likewise.
16240
16241         * po/ja.po: Update from translation team.
16242
16243 2011-09-29  Andreas Jaeger  <aj@suse.de>
16244
16245         [BZ #13179]
16246         * sunrpc/netname.c (netname2host): Fix logic.
16247
16248         [BZ #6779]
16249         [BZ #6783]
16250         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16251         correctly.
16252         * math/w_remainder.c (__remainder): Likewise.
16253         * math/w_remainderf.c (__remainderf): Likewise.
16254         * math/libm-test.inc (remainder_test): Add test cases.
16255
16256 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16257
16258         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16259         sdiv_qrnnd.
16260
16261 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16262
16263         * string/test-memcmp.c: Avoid unncessary #defines.
16264         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16265
16266 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16267
16268         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16269         Use new sse2 version for core i3 - i7 as it's faster
16270         than sse42 version.
16271         (bit_Prefer_PMINUB_for_stringop): New.
16272         * sysdeps/x86_64/rawmemchr.S: Update.
16273         Replace with faster SSE2 version.
16274         * sysdeps/x86_64/memrchr.S: New file.
16275         * sysdeps/x86_64/memchr.S: Update.
16276         Replace with faster SSE2 version.
16277
16278 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16279
16280         * elf/dl-load.c (lose): Add cast to avoid warning.
16281
16282 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16283
16284         * po/ca.po: Update from translation team.
16285
16286         * inet/getnetgrent_r.c: Hook up nscd.
16287         * nscd/Makefile (routines): Add nscd_netgroup.
16288         (nscd-modules): Add netgroupcache.
16289         (CFLAGS-netgroupcache.c): Define.
16290         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16291         (cache_search): Add const to second parameter.
16292         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16293         INNETGR.
16294         (dbs): Add netgrdb entry.
16295         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16296         (verify_persistent_db): Handle netgrdb.
16297         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16298         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16299         GETFDNETGR.
16300         (netgroup_response_header): Define.
16301         (innetgroup_response_header): Define.
16302         (datahead): Add netgroup_response_header and innetgroup_response_header
16303         elements.
16304         * nscd/nscd.conf: Add entries for netgroup cache.
16305         * nscd/nscd.h (dbtype): Add netgrdb.
16306         (_PATH_NSCD_NETGROUP_DB): Define.
16307         (netgroup_iov_disabled): Declare.
16308         (xmalloc, xcalloc, xrealloc): Move declarations here.
16309         (cache_search): Adjust prototype.
16310         Add netgroup-related prototypes.
16311         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16312         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16313         (__nscd_innetgr): Declare.
16314         * nscd/selinux.c (perms): Use access_vector_t as element type and
16315         add netgroup-related initializers.
16316         * nscd/netgroupcache.c: New file.
16317         * nscd/nscd_netgroup.c: New file.
16318         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16319         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16320         For four parameters use innetgr.
16321         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16322         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16323         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16324         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16325
16326         * nscd/connections.c (register_traced_file): Don't register file
16327         for disabled databases.
16328
16329 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16330
16331         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16332
16333         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16334         from tree and freeing node.
16335
16336 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16337
16338         * nss/nsswitch.c (__nss_database_lookup): Handle
16339         nss_parse_service_list out of memory case.
16340
16341 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16342
16343         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16344         out of memory case.
16345
16346 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16347
16348         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16349         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16350         pass it down.
16351         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16352         elf_machine_rela, elf_machine_lazy_rel.
16353         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16354         (ELF_DYNAMIC_DO_REL): Likewise.
16355         (ELF_DYNAMIC_DO_RELA): Likewise.
16356         (ELF_DYNAMIC_RELOCATE): Likewise.
16357         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16358         to ELF_DYNAMIC_DO_REL.
16359         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16360         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16361         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16362         elf_machine_rela.
16363         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16364         skip_ifunc, don't call ifunc function if non-zero.
16365         (elf_machine_rela): Likewise.
16366         (elf_machine_lazy_rel): Likewise.
16367         (elf_machine_lazy_rela): Likewise.
16368         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16369         (elf_machine_lazy_rel): Likewise.
16370         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16371         Likewise.
16372         (elf_machine_lazy_rel): Likewise.
16373         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16374         Likewise.
16375         (elf_machine_lazy_rel): Likewise.
16376         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16377         (elf_machine_lazy_rel): Likewise.
16378         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16379         (elf_machine_lazy_rel): Likewise.
16380         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16381         (elf_machine_lazy_rel): Likewise.
16382         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16383         (elf_machine_lazy_rel): Likewise.
16384         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16385         (elf_machine_lazy_rel): Likewise.
16386         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16387         (elf_machine_lazy_rel): Likewise.
16388
16389 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16390
16391         * nss/nss_files/files-init.c (_nss_files_init): Use static
16392         initialization for all the *_traced_file variables.
16393
16394 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16395
16396         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16397
16398 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16399
16400         [BZ #13226]
16401         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16402
16403 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16404
16405         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16406         Reread the line before reparsing it.
16407
16408 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16409
16410         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16411
16412 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16413             Maxim Kuvyrkov  <maxim@codesourcery.com>
16414             Joseph Myers  <joseph@codesourcery.com>
16415
16416         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16417         if needed for __stack_chk_guard.
16418
16419 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16420
16421         * sysdeps/posix/spawni.c (script_execute): Always define it.
16422         It will be optimized away if unused.
16423         (maybe_script_execute): New function.
16424         (__spawni): Call it.
16425
16426         * Makerules: Don't include tls.make.
16427         (config-tls): Always set to thread.
16428         * tls.make.c: File removed.
16429
16430 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16431
16432         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16433         * config.make.in (CPPFLAGS-config): New substituted variable.
16434
16435 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16436
16437         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16438
16439         [BZ #13192]
16440         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16441         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16442
16443 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16444
16445         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16446         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16447         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16448         (CALL_FAIL): Likewise.
16449         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16450         (CALL_FAIL): Macro removed.
16451         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16452
16453 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16454
16455         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16456         for __FINITE_MATH_ONLY__ == 1.
16457
16458 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16459
16460         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16461         __ieee754_sqrt instead of sqrt.
16462         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16463         __ieee754_sqrtf instead of sqrtf.
16464         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16465         __floorf instead of floorf.
16466         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16467         __floorf, __truncf instead of floorf, truncf.
16468
16469 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16470
16471         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16472
16473         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16474         __extern_always_inline.
16475         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16476         32-bit.
16477
16478 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16479
16480         * elf/rtld.c (dl_main): Also relocate in dependency order when
16481         doing symbol dependency testing.
16482
16483 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16484
16485         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16486         Always define `refsym'.
16487
16488 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16489
16490         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16491         (__FD_ELT): Renamed from __FDELT.
16492         * misc/bits/select2.h (__FD_ELT): Likewise.
16493         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16494         __FD_MASK instead of __FDELT, __FDMASK.
16495         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16496         Likewise.
16497         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16498         Likewise.
16499
16500         * elf/Makefile (gen-ldd): Fix pattern.
16501
16502         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16503         (init_tls): Likewise.
16504
16505 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16506
16507         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16508
16509 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16510
16511         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16512         `struct cmsghdr *' instead of `void *'.
16513         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16514         Likewise.
16515
16516 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16517
16518         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16519         if non-absolute.
16520         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16521         ldd_rewrite_script.
16522
16523 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16524
16525         * configure.in: Remove --with-tls option.
16526         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16527         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16528         out in case it is missing.
16529         * sysdeps/ia64/elf/configure.in: Likewise.
16530         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16531         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16532         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16533         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16534         * sysdeps/sh/elf/configure.in: Likewise.
16535         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16536         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16537         * sysdeps/x86_64/elf/configure.in: Likewise.
16538         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16539         * sysdeps/mach/hurd/tls.h: Likewise.
16540
16541         [BZ #13067]
16542         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16543
16544         [BZ #13090]
16545         * configure.in: Fix use of AC_INIT.
16546
16547         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16548
16549 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16550
16551         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16552         __set_errno.
16553         * malloc/hooks.c: Likewise.
16554
16555         [BZ #11929]
16556         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16557         variables statically.
16558         (narenas): Initialize.
16559         (list_lock): Initialize.
16560         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16561         initializtion of main_arena and list_lock.  Small cleanups.
16562         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16563         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16564         Add initializers to main_arena and mp_.
16565         (malloc_state): Remove pagesize member.  Change all users to use
16566         GLRO(dl_pagesize).
16567
16568         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16569         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16570         is always initialized.
16571
16572         * malloc/malloc.c: Removed unused configurations and dead code.
16573         * malloc/arena.c: Likewise.
16574         * malloc/hooks.c: Likewise.
16575         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16576
16577         * include/tls.h: Removed.  USE___THREAD must always be defined.
16578         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16579         * elf/dl-libc.c: Likewise.
16580         * elf/dl-tsd.c: Likewise.
16581         * include/errno.h: Likewise.
16582         * include/netdb.h: Likewise.
16583         * include/resolv.h: Likewise.
16584         * inet/herrno-loc.c: Likewise.
16585         * inet/herrno.c: Likewise.
16586         * malloc/arena.c: Likewise.
16587         * malloc/hooks.c: Likewise.
16588         * malloc/malloc.c: Likewise.
16589         * resolv/res-state.c: Likewise.
16590         * resolv/res_libc.c: Likewise.
16591         * sysdeps/i386/dl-machine.h: Likewise.
16592         * sysdeps/ia64/dl-machine.h: Likewise.
16593         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16594         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16595         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16596         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16597         * sysdeps/sh/dl-machine.h: Likewise.
16598         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16599         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16600         * sysdeps/unix/i386/sysdep.S: Likewise.
16601         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16602         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16603         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16604         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16605         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16606         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16607         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16608         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16609         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16610         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16611         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16612         * sysdeps/x86_64/dl-machine.h: Likewise.
16613         * tls.make.c: Likewise.
16614
16615         * configure.in: Remove --with-__thread option.  Make tests for
16616         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16617         tls_model attribute fail if no support is available.  Remove
16618         USE_IN_LIBIO.
16619         * Makeconfig: Adjust for dropped configure option.  All features are
16620         now mandatory.
16621         * Makerules: Likewise.
16622         * Versions.def: Likewise.
16623         * argp/argp-fmtstream.c: Likewise.
16624         * argp/argp-fmtstream.h: Likewise.
16625         * argp/argp-help.c: Likewise.
16626         * assert/assert.c: Likewise.
16627         * config.h.in: Likewise.
16628         * config.make.in: Likewise.
16629         * configure: Likewise.
16630         * configure.in: Likewise.
16631         * csu/Versions: Likewise.
16632         * csu/init.c: Likewise.
16633         * elf/tst-audit2.c: Likewise.
16634         * elf/tst-tls10.c: Likewise.
16635         * elf/tst-tls10.h: Likewise.
16636         * elf/tst-tls11.c: Likewise.
16637         * elf/tst-tls12.c: Likewise.
16638         * elf/tst-tls14.c: Likewise.
16639         * elf/tst-tlsmod11.c: Likewise.
16640         * elf/tst-tlsmod12.c: Likewise.
16641         * elf/tst-tlsmod13.c: Likewise.
16642         * elf/tst-tlsmod13a.c: Likewise.
16643         * elf/tst-tlsmod14a.c: Likewise.
16644         * elf/tst-tlsmod15b.c: Likewise.
16645         * elf/tst-tlsmod16a.c: Likewise.
16646         * elf/tst-tlsmod16b.c: Likewise.
16647         * elf/tst-tlsmod7.c: Likewise.
16648         * elf/tst-tlsmod8.c: Likewise.
16649         * elf/tst-tlsmod9.c: Likewise.
16650         * gmon/gmon.c: Likewise.
16651         * grp/fgetgrent_r.c: Likewise.
16652         * grp/putgrent.c: Likewise.
16653         * hurd/fopenport.c: Likewise.
16654         * include/libc-symbols.h: Likewise.
16655         * include/tls.h: Likewise.
16656         * intl/gettextP.h: Likewise.
16657         * intl/loadinfo.h: Likewise.
16658         * locale/global-locale.c: Likewise.
16659         * locale/localeinfo.h: Likewise.
16660         * mach/devstream.c: Likewise.
16661         * malloc/arena.c: Likewise.
16662         * malloc/set-freeres.c: Likewise.
16663         * misc/err.c: Likewise.
16664         * misc/getttyent.c: Likewise.
16665         * misc/mntent_r.c: Likewise.
16666         * posix/getopt.c: Likewise.
16667         * posix/wordexp.c: Likewise.
16668         * pwd/fgetpwent_r.c: Likewise.
16669         * resolv/Versions: Likewise.
16670         * resolv/res_hconf.c: Likewise.
16671         * shadow/fgetspent_r.c: Likewise.
16672         * shadow/putspent.c: Likewise.
16673         * stdio-common/printf_fphex.c: Likewise.
16674         * stdio-common/tmpfile.c: Likewise.
16675         * stdlib/abort.c: Likewise.
16676         * stdlib/fmtmsg.c: Likewise.
16677         * sunrpc/auth_unix.c: Likewise.
16678         * sunrpc/clnt_perr.c: Likewise.
16679         * sunrpc/clnt_tcp.c: Likewise.
16680         * sunrpc/clnt_udp.c: Likewise.
16681         * sunrpc/clnt_unix.c: Likewise.
16682         * sunrpc/openchild.c: Likewise.
16683         * sunrpc/svc_simple.c: Likewise.
16684         * sunrpc/svc_tcp.c: Likewise.
16685         * sunrpc/svc_udp.c: Likewise.
16686         * sunrpc/svc_unix.c: Likewise.
16687         * sunrpc/xdr.c: Likewise.
16688         * sunrpc/xdr_array.c: Likewise.
16689         * sunrpc/xdr_rec.c: Likewise.
16690         * sunrpc/xdr_ref.c: Likewise.
16691         * sunrpc/xdr_stdio.c: Likewise.
16692
16693 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16694
16695         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16696
16697 2011-07-03  Andreas Jaeger  <aj@suse.de>
16698
16699         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16700         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16701         regenerate with gen-libm-tests.pl.
16702
16703 2010-05-12  Petr Baudis  <pasky@suse.cz>
16704
16705         [BZ #11589]
16706         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16707         around j0() zero points by switching to j1().
16708         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16709         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16710         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16711         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16712
16713 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16714
16715         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16716         instead of 0.
16717         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16718         instead of 0.                              .
16719         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16720         Patch in part by Pavel Roskin <proski@gnu.org>.
16721
16722         [BZ #13138]
16723         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16724         realloc.
16725         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16726         Free memory block if necessary.
16727
16728         [BZ #12847]
16729         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16730         be NULL.  Don't lock in this case.
16731
16732 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16733
16734         * elf/elf.h (ELFOSABI_GNU): New macro.
16735         (ELFOSABI_LINUX): Define to that.
16736
16737 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16738
16739         * string/strncat.c (strncat): Undef the symbol in case it has been
16740         defined in bits/string.h.
16741
16742 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16743
16744         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16745
16746         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16747         link map.
16748
16749 2011-08-17  Andreas Jaeger  <aj@suse.de>
16750
16751         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16752
16753 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16754             Ian Lance Taylor  <iant@google.com>
16755
16756         * math/libm-test.inc (lround_test): New testcase.
16757         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16758
16759 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16760
16761         * Makefile: Remove support for automatic cvs check-ins.
16762         * Makerules: Likewise.
16763         * config.make.in: Likewise.
16764         * configure.in: Likewise.
16765         * intl/Makefile: Likewise.
16766         * locale/Makefile: Likewise.
16767         * po/Makefile: Likewise.
16768         * posix/Makefile: Likewise.
16769         * sysdeps/gnu/Makefile: Likewise.
16770         * sysdeps/mach/hurd/Makefile: Likewise.
16771         * sysdeps/sparc/sparc32/Makefile: Likewise.
16772
16773         [BZ #13118]
16774         * posix/Makefile (bug-regex32-ENV): Define.
16775         Patch by John Stanley <jpsinthemix@verizon.net>.
16776
16777         * misc/Makefile (headers): Add bits/select2.h.
16778         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16779         * misc/bits/select2.h: New file.
16780         * include/bits/select2.h: New file.
16781         * debug/Makefile (routines): Add fdelt_chk.
16782         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16783         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16784         FD_ISSET.
16785         * debug/fdelt_chk.c: New file.
16786
16787         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16788         * wcsmbs/test-wmemcmp.c: Likewise.
16789         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16790         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16791
16792 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16793
16794         * string/Makefile (strop-tests): Add memcmp.
16795         * string/test-wmemcmp.c: New file.
16796         * string/test-memcmp.c: Add wmemcmp support.
16797
16798 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16799
16800         [BZ #13153]
16801         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16802         2011-07-19 change.
16803
16804         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16805         garbage value in a __mach_port_mod_refs call in the cases of the
16806         task-self and thread-self ports.
16807
16808 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16809
16810         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16811
16812 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16813
16814         * elf/dl-load.c (lose): Check for non-null L.
16815
16816 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16817
16818         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16819
16820         * elf/dl-libc.c (dlerror_run): Pass back error code from
16821         dl_catch_error.
16822
16823         [BZ #13123]
16824         * elf/dl-load.c (lose): Free l_origin if it is valid.
16825
16826         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16827         names.
16828         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16829         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16830         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16831         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16832         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16833         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16834
16835 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16836
16837         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16838         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16839         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16840         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16841         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16842         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16843         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16844         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16845         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16846         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16847
16848 2011-08-15  Alan Modra  <amodra@gmail.com>
16849
16850         [BZ #13092]
16851         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16852         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16853         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16854         ppc_mcount to static-only-routines.
16855         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16856         __mcount_internal.
16857         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16858         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16859
16860 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16861
16862         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16863         for finite and infinity parameters.
16864
16865 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16866
16867         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16868         and add nop instructions for throughput optimization.
16869         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16870
16871 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16872
16873         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16874         aligned copy for power7 with vector-scalar instructions.
16875         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16876
16877 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16878
16879         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16880         AVX check.
16881
16882 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16883
16884         [BZ #13144]
16885         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16886         last change.
16887
16888 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16889
16890         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16891         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16892         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16893         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16894         clock_gettime.
16895
16896 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16897
16898         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16899         Forgot to demangle the pointer.
16900
16901         * sysdeps/i386/sysdep.h: Define atom_text_section.
16902         * sysdeps/x86_64/sysdep.h: Likewise.
16903         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16904         section with atom_text_section.
16905         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16906         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16907         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16908         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16909         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16910
16911         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16912         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16913         already be defined.  Change to take two parameters and don't assign
16914         result to variable.  Adjust all users.
16915         Define INTERNAL_GETTIME if not already defined.
16916         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16917         call.
16918         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16919         HAVE_CLOCK_GETTIME_VSYSCALL.
16920         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16921
16922         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16923         gettimeofday vsyscall, just use time.
16924
16925 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16926
16927         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16928         <errno.h>.
16929
16930 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16931
16932         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16933         syscall on x86-64.
16934         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16935         syscall.
16936         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16937         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16938         syscall if possible.
16939
16940 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16941
16942         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16943         e_ident.  Don't pass to find_mapsXX.
16944         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16945
16946 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16947
16948         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16949         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16950         * sysdeps/x86_64/multiarch/strchr.S: Update.
16951         Check bit_slow_BSF bit.
16952         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16953         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16954         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16955
16956 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16957
16958         [BZ #13134]
16959         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16960         before glibc 2.15.
16961         (tryshell): Define.
16962         (__spawni): Change last parameter to be flag.  Test
16963         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16964         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16965         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16966         * posix/spawni.c: Likewise.
16967         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16968         * posix/spawnp.c: Likewise.  Change normal version to use
16969         SPAWN_XFLAGS_USE_PATH.
16970         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16971         SPAWN_XFLAGS_TRY_SHELL.
16972
16973         [BZ #13150]
16974         * posix/glob.h: Remove gcc 1.x support.
16975
16976         [BZ #13068]
16977         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16978
16979 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16980
16981         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16982         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16983         strrchr-sse2-bsf
16984         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16985         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16986         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16987         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16988         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16989         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16990
16991 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16992
16993         * sysdeps/x86_64/wcscmp.S: New file.
16994
16995         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16996         wcscmp-c wcscmp-sse2
16997         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16998         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16999         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17000         * wcsmbs/wcscmp.c: Allow renaming.
17001
17002 2011-09-05  David S. Miller  <davem@davemloft.net>
17003
17004         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17005         stack slot, rather than the struct return pointer slot.
17006         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17007         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17009         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17010
17011 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17012
17013         * po/ja.po: Update from translation team.
17014
17015         [BZ #13144]
17016         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17017         kernel in 64-bit binaries.
17018
17019 2011-09-01  David S. Miller  <davem@davemloft.net>
17020
17021         * elf/elf.h (HWCAP_SPARC_*): Move to..
17022         * sysdeps/sparc/sysdep.h: this new file and add new values.
17023         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17024         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17025         _DL_HWCAP_COUNT to 24.
17026         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17027         entries.
17028         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17029         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17030         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17032         instead of magic constants.
17033         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17034
17035 2011-08-31  David S. Miller  <davem@davemloft.net>
17036
17037         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17038         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17039         Reimplement to do errno handling inline.
17040         (SYSCALL_ERROR_HANDLER): New macro.
17041         (__SYSCALL_STRING): Do not do errno handling in asm.
17042         (__CLONE_SYSCALL_STRING): Delete.
17043         (__INTERNAL_SYSCALL_STRING): Delete.
17044         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17045         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17046         (PSEUDO): Reimplement to do errno handling inline.
17047         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17048         (SYSCALL_ERROR_HANDLER): New macro.
17049         (__SYSCALL_STRING): Do not do errno handling in asm.
17050         (__CLONE_SYSCALL_STRING): Delete.
17051         (__INTERNAL_SYSCALL_STRING): Delete.
17052         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17053         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17054         i386.
17055         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17056         (inline_syscall*): Add 'err' argument.
17057         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17058         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17059         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17060         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17061
17062         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17063         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17064
17065 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17066
17067         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17068
17069 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17070
17071         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17072         directive.
17073
17074 2011-08-24  David S. Miller  <davem@davemloft.net>
17075
17076         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17077
17078 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17079
17080         * elf/Makefile: Add rules to build and run unload8 test.
17081         * elf/unload8.c: New file.
17082         * elf/unload8mod1.c: New file.
17083         * elf/unload8mod1x.c: New file.
17084         * elf/unload8mod2.c: New file.
17085         * elf/unload8mod3.c: New file.
17086
17087         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17088         it wasn't used.
17089
17090 2011-08-23  David S. Miller  <davem@davemloft.net>
17091
17092         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17093         subtract stack bias.
17094         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17095         %sp not %fp in calculations.
17096         (_JMPBUF_UNWINDS_ADJ): Likewise.
17097
17098         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17099         (aio_suspend): Call it to force an exception region around the
17100         AIO_MISC_WAIT() invocation.
17101
17102 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17103
17104         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17105         backslash.
17106
17107 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17108
17109         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17110         protection macro.
17111         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17112         and <dl-machine.h>.
17113         (Elf64_FuncDesc): Remove.
17114
17115 2011-08-22  David S. Miller  <davem@davemloft.net>
17116
17117         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17118         sigaltstack check, add missing cfi directives.
17119         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17120         missing cfi directives, and sigaltstack handling.
17121
17122 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17123
17124         [BZ #11724]
17125         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17126         object is seen twice.
17127         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17128
17129         * elf/Makefile (distribute): Add tst-initorder2.c.
17130         (tests): Add tst-initorder2.
17131         (modules-names): Add tst-initorder2a tst-initorder2b
17132         tst-initorder2c tst-initorder2d.  Add rules to build them.
17133         ($(objpfx)tst-initorder2.out): New rule.
17134         * elf/tst-initorder2.c: New file.
17135         * elf/tst-initorder2.exp: New file.
17136
17137 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17138
17139         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17140
17141         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17142         dependencies back to end of function.
17143
17144         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17145         $(elfobjdir)/ld.so.
17146
17147 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17148
17149         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17150         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17151         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17152         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17153         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17154         of __vdso_gettimeofday.
17155         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17156         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17157         attribute_hidden.
17158         (_libc_vdso_platform_setup): Remove initialization of
17159         __vdso_gettimeofday and __vdso_time.
17160
17161 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17162
17163         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17164         and fgetc_unlocked.
17165         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17166         getc_unlocked.
17167
17168         * elf/dl-open.c (add_to_global): Report additions to the global scope
17169         for LD_DEBUG=scopes.
17170         (dl_open_worker): Also print scope of newly loaded dependencies.
17171         (_dl_show_scope): Indicate if there is no scope.
17172
17173         [BZ #13114]
17174         * stdio-common/Makefile (tests): Add bug24.
17175         * stdio-common/bug24.c: New file.
17176
17177 2011-08-19  Andreas Jaeger  <aj@suse.de>
17178
17179         [BZ #13114]
17180         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17181         non-existant file when using close-on-exec mode.
17182
17183 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17184
17185         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17186         the very first instruction.
17187
17188         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17189         the CFI state in the end.
17190         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17191         inclusion of dl-trampoline.h.
17192         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17193
17194 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17195
17196         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17197         expectations for long double.
17198
17199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17200         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17201
17202 2011-08-14  David S. Miller  <davem@davemloft.net>
17203
17204         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17205         artificual limit depends upon the system page size.
17206
17207 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17208
17209         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17210         * resolv/Makefile: Define CFLAGS-libresolv.
17211
17212 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17213
17214         * nss/makedb.c (compute_tables): Make variables used in nested
17215         function static.
17216
17217 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17218
17219         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17220         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17221         if buffer was too small.
17222
17223         * elf/pldd.c (main): Attach to all threads in the process.
17224         Rewrite /proc handling to use *at functions.
17225
17226 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17227
17228         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17229         specifies first scope to show.
17230         (dl_open_worker): Update callers.  Move printing scope of new
17231         object to before the relocation.
17232         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17233         * sysdeps/generic/ldsodefs.h: Update declaration.
17234
17235         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17236         string for the scope number.
17237
17238 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17239
17240         * nscd/servicescache.c (cache_addserv): Make sure written is always
17241         initialized.
17242
17243 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17244
17245         * sysdeps/i386/i486/bits/atomic.h
17246         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17247         statement expression, so as to suppress "set but not used" warning.
17248         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17249
17250         * string/strncat.c (STRNCAT): Use prototype definition.
17251
17252         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17253         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17254         -Iprograms here.
17255         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17256         (localedef-modules): Add localedef.
17257         (locale-modules): Add locale.
17258
17259         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17260         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17261         to avoid a warning.
17262
17263 2011-08-14  David S. Miller  <davem@davemloft.net>
17264
17265         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17266         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17267
17268 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17269
17270         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17271         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17272         * elf/rtld.c (dl_main): Set l_name of vDSO.
17273         Call _dl_show_scope when DL_DEBUG_SCOPES.
17274         (process_dl_debug): Recognize scopes flag and also set it for all.
17275         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17276         Declare _dl_show_scope.
17277
17278         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17279         (do_dlopen): Pass caller_dlopen to dl_open.
17280         (__libc_dlopen_mode): Initialize caller_dlopen.
17281
17282         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17283         of libc.  Make tolower call locale-independent.  Optimize a bit by
17284         using isdigit instead of isalnum.
17285         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17286
17287 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17288
17289         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17290         was a dependency or dynamically loaded.
17291
17292 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17293
17294         * intl/l10nflist.c: Allow architecture-specific pop function.
17295         * sysdeps/x86_64/l10nflist.c: New file.
17296
17297         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17298         classification.
17299
17300 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17301
17302         * include/dirent.h: Add libc_hidden_proto for scandirat and
17303         scandirat64.  Don't declare __scandirat64.
17304         * dirent/scandirat.c: Add libc_hidden_def.
17305         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17306         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17307
17308 2011-08-10  David S. Miller  <davem@davemloft.net>
17309
17310         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17311         enum.
17312         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17313         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17314         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17315
17316 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17317
17318         * Versions.def [libc]: Add GLIBC_2.15.
17319         * dirent/Makefile (routines): Add scandirat and scandirat64.
17320         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17321         GLIBC_2.15.
17322         * dirent/dirent.h: Declare scandirat and scandirat64.
17323         * dirent/scandirat.c: New file.
17324         * dirent/scandirat64.c: New file.
17325         * sysdeps/wordsize-64/scandirat.c: New file.
17326         * sysdeps/wordsize-64/scandirat64.c: New file.
17327         * dirent/opendir.c: Define opendirat.
17328         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17329         using scandirat.
17330         * dirent/scandir64.c: Adjust for scandir.c change.
17331         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17332         __scandirat64, and __scandir_cancel_handler.
17333         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17334         additional parameter and use openat instead of open (outside of ld.so).
17335         Add new __opendir as wrapper around __opendirat.
17336         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17337         here without requiring old scandirat implementation.
17338
17339 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17340
17341         * dirent/scandir.c (cancel_handler): Renamed to
17342         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17343         defined.  Adjust users.
17344         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17345         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17346
17347 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17348
17349         * string/test-string.h (IMPL): Use __STRING to expand name and then
17350         stringify it.
17351
17352         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17353         of cleanups.
17354
17355 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17356
17357         * string/Makefile: Update.
17358         (strop-tests): Append strncat.
17359         * string/test-wcscmp.c: New file.
17360         New comprehensive test for wcscmp.
17361         * string/test-strcmp.c: Update.
17362         (WIDE): New define.
17363
17364 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17365
17366         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17367         line.
17368
17369 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17370
17371         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17372         encoding to ACE if AI_IDN.
17373
17374 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17375
17376         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17377         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17378
17379 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17380
17381         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17382         Fix overflow bug in strncat.
17383         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17384
17385         * string/test-strncat.c: Update.
17386         Add new tests for checking overflow bugs.
17387
17388 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17389
17390         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17391         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17392         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17393         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17394         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17395         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17396         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17397         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17398         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17399
17400         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17401         (USE_AS_STRCAT): Define.
17402         Add strcat and strncat support.
17403         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17404
17405 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17406
17407         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17408         __n bigger than INT_MAX+1.
17409         (__strncmp_g): Likewise.
17410
17411 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17412
17413         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17414         * libio/stido.h: Likewise.
17415
17416         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17417         (AF_NFC): Define.
17418         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17419         (AF_NFC): Define.
17420
17421         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17422         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17423         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17424         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17425         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17426
17427         [BZ #13021]
17428         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17429         installed.
17430
17431         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17432         typo.
17433         (_dl_x86_64_save_sse): Likewise.
17434
17435 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17436
17437         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17438         OSXSAVE.
17439         (_dl_x86_64_save_sse): Likewise.
17440
17441         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17442
17443         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17444
17445 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17446
17447         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17448         change.
17449         (_dl_x86_64_save_sse): Use correct AVX check.
17450
17451 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17452
17453         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17454         bug in strncpy/strncat.
17455         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17456
17457 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17458
17459         * string/tester.c (test_strcat): Add tests for different alignments
17460         of source and destination.
17461         (test_strncat): Likewise.
17462
17463 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17464
17465         [BZ #12852]
17466         * posix/glob.c (glob): Check passed in values before using them in
17467         expressions to avoid some overflows.
17468         (glob_in_dir): Likewise.
17469
17470         [BZ #13007]
17471         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17472         check for AVX enablement so that we don't crash with old kernels and
17473         new hardware.
17474         * elf/tst-audit4.c: Add same checks here.
17475         * elf/tst-audit6.c: Likewise.
17476
17477         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17478
17479 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17480
17481         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17482
17483 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17484
17485         * po/cs.po: Update from translation team.
17486         * po/bg.po: Likewise.
17487
17488 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17489
17490         * misc/sys/cdefs.h: Add support for const attribute.
17491         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17492         to gnu_dev_{major,minor,makedev} functions.
17493
17494 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17495
17496         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17497
17498 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17499
17500         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17501         strlen results.
17502
17503 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17504
17505         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17506         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17507         register in order to avoid conflicts with the soft frame pointer
17508         being held in r11 when necessary.
17509         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17510         (INTERNAL_VSYSCALL_NCS): Likewise.
17511
17512 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17513
17514         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17515         * elf/dl-fini.c (_dl_fini): Adjust caller.
17516         * elf/dl-close.c (_dl_close_worker): Likewise.
17517         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17518
17519 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17520
17521         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17522         "aux_cache->nlibs < 0".
17523
17524         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17525         in the reload-count case.
17526
17527 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17528
17529         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17530         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17531         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17532         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17533         * sysdeps/x86_64/multiarch/strcat.S: New file.
17534         * sysdeps/x86_64/multiarch/strncat.S: New file.
17535         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17536         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17537         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17538         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17539         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17540         (USE_AS_STRCAT): Define.
17541         Add strcat and strncat support.
17542         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17543         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17544         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17545         * string/strncat.c: Update.
17546         (USE_AS_STRNCAT): Define.
17547         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17548         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17549         and i7.
17550         * sysdeps/x86_64/multiarch/init-arch.h
17551         (bit_Prefer_PMINUB_for_stringop): New.
17552         (index_Prefer_PMINUB_for_stringop): Likewise.
17553         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17554         bit_Prefer_PMINUB_for_stringop.
17555
17556 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17557
17558         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17559         buffer64.
17560         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17561         of casting of buffer.
17562         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17563         buffer32 and buffer64.
17564         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17565         writes instead of casting of buffer.
17566         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17567         buffer32.
17568         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17569         casting of buffer.
17570
17571 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17572
17573         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17574
17575 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17576
17577         * nscd/nscd.c (termination_handler): Don't do anything for a database
17578         if it has not yet been initialized.
17579
17580 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17581
17582         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17583
17584 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17585
17586         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17587
17588 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17589
17590         * po/nl.po: Update from translation team.
17591         * po/sv.po: Likewise.
17592
17593 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17594
17595         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17596         now disallowed by GCC.
17597
17598         * configure.in (use-default-link): Default to yes if a test -shared
17599         link meets our qualifications.
17600         * configure: Regenerated.
17601
17602         * config.make.in (output-format): New variable.
17603         * configure.in: Check for ld --print-output-format support.
17604         * configure: Regenerated.
17605         * Makerules ($(common-objpfx)format.lds)
17606         [$(output-format) != unknown]: Just use $(output-format),
17607         instead of the linker-script munging.
17608
17609 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17610
17611         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17612         of $(common-objpfx)shlib.lds.
17613         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17614
17615         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17616         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17617
17618         * configure.in (-z relro check): Adjust test code to add a large
17619         writable data section after it.
17620         * configure: Regenerated.
17621
17622 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17623
17624         * configure.in (-z relro check): Fix test code to make the variable
17625         truly const.
17626         * configure: Regenerated.
17627
17628 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17629
17630         * nscd/nscd.h (struct traced_file): Define.
17631         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17632         elements.  Add traced_files.
17633         (inotify_fd): Declare.
17634         (register_traced_file): Declare.
17635         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17636         (inotify_fd): Export.
17637         (resolv_conf_descr): Remove.
17638         (nscd_init): Move inotify descriptor creation to main.
17639         Don't register files for notification here.
17640         (register_traced_file): New function.
17641         (invalidate_cache): Don't use reset_res to determine whether to call
17642         res_init, go through the list of registered files.
17643         (main_loop_poll): The inotify descriptors are now stored in the
17644         structures for the traced files.
17645         (main_loop_epoll): Likewise
17646         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17647         to __nss_disable_nscd.
17648         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17649         for a database anymore.  Check the records for all the registered
17650         files instead.
17651         * nss/Makefile (libnss_files-routines): Add files-init.
17652         (libnss_db-routines): Add db-init.
17653         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17654         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17655         * nss/nss_db/db-init.c: New file.
17656         * nss/nss_files/files-init.c: New file.
17657         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17658         __nss_lookup_function.
17659         (__nss_lookup_function): Call nss_load_library.
17660         (nss_load_all_libraries): New function.
17661         (__nss_disable_nscd): Take parameter with callback function for files
17662         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17663         used for the cached services.
17664         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17665         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17666         options for features to all the files in nscd.
17667
17668         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17669
17670 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17671
17672         * csu/elf-init.c (__libc_csu_init): Comment typo.
17673
17674 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17675
17676         * po/pl.po: Update from translation team.
17677         * po/ja.po: Likewise.
17678         * po/ru.po: Likewise.
17679         * po/ko.po: Likewise.
17680         * po/fr.po: Likewise.
17681
17682 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17683
17684         * configure.in (.ctors/.dtors header and trailer check):
17685         Use an empirical test on a built program.
17686         * configure: Regenerated.
17687
17688         * configure.in (-z relro check): Use an empirical test on a built DSO.
17689         Detect, but do not require, on ia64.
17690         * configure: Regenerated.
17691
17692         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17693         Update tests that use readelf to use $READELF instead.
17694         * configure: Regenerated.
17695
17696 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17697
17698         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17699         if the result is not used.
17700
17701 2011-07-05  Andreas Jaeger  <aj@suse.de>
17702
17703         [BZ#9696]
17704         * stdlib/tst-strtod.c: Add testcase.
17705
17706 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17707
17708         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17709         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17710         The latter has a higher limit.  Take additional parameter to pass to
17711         the new function.
17712         (__pathconf): Pass file to __statfs_link_max.
17713         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17714         __statfs_link_max.
17715         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17716         __statfs_link_max.
17717
17718         [BZ #12868]
17719         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17720         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17721         Handle Lustre.
17722         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17723         (__statfs_filesize_max): Likewise.
17724         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17725
17726 2011-07-05  Andreas Jaeger  <aj@suse.de>
17727
17728         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17729
17730 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17731
17732         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17733         `status' variable.
17734         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17735         Likewise.
17736
17737 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17738
17739         * Makefile (strop-tests): Add strncat.
17740         * string/test-strncat.c: New file.
17741
17742 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17743
17744         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17745
17746 2011-06-21  Andreas Jaeger  <aj@suse.de>
17747
17748         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17749         Copy rule from iconvdata/Makefile.
17750
17751 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17752
17753         [BZ #12922]
17754         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17755         but no long options are defined, just return 'W'.
17756
17757 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17758
17759         [BZ #9696]
17760         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17761
17762 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17763
17764         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17765         netgroups to read.
17766         (innetgr): Likewise.
17767
17768 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17769
17770         * config.make.in (install_root): Default to $(DESTDIR).
17771
17772 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17773
17774         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17775
17776 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17777
17778         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17779
17780         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17781         containing directory rather than embedding absolute directory names.
17782
17783         * scripts/check-local-headers.sh: Rewritten using awk.
17784         Match by word, not by line.  Print error messages for matches.
17785         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17786
17787         * Makerules [shlib-lds-flags empty]:
17788         ($(common-objpfx)libc_pic.opts): New target.
17789         ($(common-objpfx)libc_pic.os.clean): New target.
17790         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17791
17792         * config.make.in (OBJCOPY): New variable.
17793         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17794         * configure: Regenerated.
17795
17796         * config.make.in (use-default-link): New variable.
17797         * configure.in (use_default_link): Grok --with-default-link to set it.
17798         * configure: Regenerated.
17799         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17800         (shlib-lds, shlib-lds-flags): Define to empty.
17801
17802         * Makerules (shlib-lds): New variable.
17803         (shlib-lds-flags): New variable.
17804         (build-shlib, build-moduile, build-module-asneeded): Use it.
17805         ($(common-objpfx)libc.so): Use $(shlib-lds).
17806         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17807         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17808
17809         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17810         DT_FLAGS/DT_FLAGS_1 with zero flags.
17811
17812         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17813         linker script munging.
17814
17815 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17816
17817         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17818         as 128-bit value.
17819         * crypt/sha512.c (sha512_process_block): Perform total addition using
17820         128-bit if possible.
17821         (__sha512_finish_ctx): Likewise.
17822         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17823         as 64-bit value.
17824         * crypt/sha256.c (SWAP64): Define.
17825         (sha256_process_block): Perform total addition using 64-bit if
17826         possible.
17827         (__sha256_finish_ctx): Likewise.
17828
17829 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17830
17831         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17832         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17833         * nscd/hstcache.c (cache_addhst): Likewise.
17834         * nscd/grpcache.c (cache_addgr): Likewise.
17835         * nscd/aicache.c (addhstaiX): Likewise
17836         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17837
17838 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17839
17840         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17841         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17842         * nscd/hstcache.c (cache_addhst): Likewise.
17843         * nscd/grpcache.c (cache_addgr): Likewise.
17844         * nscd/aicache.c (addhstaiX): Likewise
17845
17846 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17847
17848         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17849         domain only when needed.
17850
17851 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17852
17853         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17854         is always restored.
17855
17856 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17857
17858         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17859         are re-adding the entry.
17860         * nscd/servicescache.c (cache_addserv): Likewise.
17861
17862 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17863
17864         * sysdeps/generic/dl-irel.h: fix protection against multiple
17865         inclusions.
17866         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17867
17868 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17869
17870         [BZ #12935]
17871         * malloc/memusage.sh: Fix quoting in message.
17872         * debug/xtrace.sh: Likewise.
17873
17874         * configure.in: Remove support for --experimental-malloc option, make
17875         it the default.
17876         * config.make.in: Likewise.
17877         * malloc/Makefile: Likewise.
17878
17879 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17880
17881         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17882         two-byte characters.
17883
17884 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17885
17886         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17887         AC_CACHE_CHECK invocation.
17888         * configure: Regenerated.
17889
17890         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17891
17892 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17893
17894         [BZ #12350]
17895         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17896         bit from old_res_options.
17897
17898         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17899
17900         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17901         value type for setfct.
17902
17903 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17904
17905         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17906         __gettimeofday instead of gettimeofday.
17907
17908 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17909
17910         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17911
17912 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17913
17914         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17915
17916         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17917         info.
17918
17919 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17920
17921         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17922         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17923         strcpy-sse2-unaligned strncpy-sse2-unaligned
17924         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17925         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17926         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17927         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17928         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17929         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17930         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17931         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17932         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17933         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17934         (STRCPY): Support SSE2 and SSSE3 versions.
17935
17936 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17937
17938         [BZ #12874]
17939         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17940         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17941         kernels which artificially limit size of requests.
17942
17943 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17944
17945         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17946         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17947         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17948         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17949         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17950         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17951         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17952         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17953         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17954         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17955         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17956         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17957         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17958         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17959         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17960         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17961         Enable unaligned load optimization for Intel Core i3, i5 and i7
17962         processors.
17963         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17964         Define.
17965         (index_Fast_Unaligned_Load): Define.
17966         (HAS_FAST_UNALIGNED_LOAD): Define.
17967
17968 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17969
17970         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17971
17972 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17973
17974         [BZ #12907]
17975         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17976         until it is clear that the information is realy needed.
17977         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17978
17979 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17980
17981         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17982
17983 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17984
17985         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17986         /sys/devices/system/cpu/online if it is usable.
17987
17988         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17989         reading the information from the /proc filesystem to once a second.
17990
17991 2011-06-21  Andreas Jaeger  <aj@suse.de>
17992
17993         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17994         NULL after inclusion of kernel headers.
17995
17996 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17997
17998         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17999         calls to internal_setent.
18000
18001         [BZ #12885]
18002         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18003         addresses using gethostbyname4_r ignore IPv4 addresses.
18004
18005         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18006         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18007
18008         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18009
18010 2011-06-20  David S. Miller  <davem@davemloft.net>
18011
18012         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18013         inclusions.
18014         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18015
18016         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18017         (elf_irel): Use it.
18018         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18019         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18020         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18021         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18022         * sysdeps/x86_64/dl-irel.h: Likewise.
18023
18024         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18025         * elf/dl-sym.c: Likewise.
18026
18027 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18028
18029         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18030         need to dereference resplen2.
18031
18032 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18033
18034         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18035
18036 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18037
18038         * Makeconfig: Define vardbdir and inst_vardbdir.
18039         * nss/Makefile: Add rules to install db-Makefile.
18040
18041         * nss/nss_db/db-XXX.c: Cleanup.
18042
18043         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18044         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18045         GLIBC_PRIVATE.
18046         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18047         * nss/makedb.c: Implement -g option to specify that value strings
18048         are generated and should not be added to table iterated over for
18049         get*ent calls.
18050         * nss/nss_db/db-initgroups.c: New file.
18051
18052         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18053         interface.
18054
18055         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18056         (internal_getgrouplist): Adjust to name change.
18057         Update use_initgroups_entry if this is not the first call.
18058         * nss/databases.def: Add initgroups entry.
18059
18060         * nss/makedb.c (compute_tables): Check result of multiple hash table
18061         sizes to minimize maximum chain length.
18062
18063 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18064
18065         * Versions.def: Add entry for libnss_db.
18066         * shlib-versions: Likewise.
18067         * nss/Makefile: Add rules to build libnss_db.
18068         * nss/Versions: Add libnss_db information.  Organize libnss_files
18069         entries better.
18070         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18071         makedb progra.  Some minor improvements to generate smaller files.
18072         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18073         here from...
18074         * nss/makedb.c: ...here.
18075         Improve database format to be smaller and require less memory at
18076         runtime.
18077         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18078         db anymore.
18079         * nss/nss_db/db-netgrp.c: Likewise.
18080         * nss/nss_db/db-open.c: Likewise.
18081         * nss/nss_files/flies-XXX.x: Adjust comments.
18082         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18083         * nss/nss_files/files-grp.c: Likewise.
18084         * nss/nss_files/files-hosts.c: Likewise.
18085         * nss/nss_files/files-network.c: Likewise.
18086         * nss/nss_files/files-proto.c: Likewise.
18087         * nss/nss_files/files-pwd.c: Likewise.
18088         * nss/nss_files/files-rpc.c: Likewise.
18089         * nss/nss_files/files-service.c: Likewise.
18090         * nss/nss_files/files-sgrp.c: Likewise.
18091         * nss/nss_files/files-spwd.c: Likewise.
18092         * nss/nss_db/db-alias.c: Removed.
18093         * nss/nss_db/dummy-db.h: Removed.
18094
18095 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18096
18097         * nss/makedb.c: Rewritten to not use database library.
18098         * nss/Makefile: Update to build new makedb program.
18099
18100 2011-06-14  Andreas Jaeger  <aj@suse.de>
18101
18102         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18103         memset declaration.
18104
18105 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18106
18107         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18108         tmpbuf.
18109
18110 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18111
18112         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18113         * elf/Makefile ($(objpfx)ld.so): Likewise.
18114
18115         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18116         Don't list ld.so twice in dependencies.
18117
18118         * posix/bug-regex31.c: Include <stdlib.h>.
18119
18120         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18121
18122         * nis/nss_compat/compat-spwd.c
18123         (getspent_next_nss_netgr): Remove unused variable.
18124         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18125
18126         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18127         nonmembers" output to use the right array.
18128
18129         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18130
18131         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18132
18133         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18134         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18135         * catgets/gencat.c (read_input_file): Likewise.
18136         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18137
18138         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18139         variable definition inside #if's controlling its use.
18140
18141         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18142
18143         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18144
18145         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18146
18147         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18148         unreachable code.
18149
18150         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18151
18152         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18153         * configure: Regenerated.
18154
18155         * Makerules: Revert last change.
18156         * elf/Makefile: Likewise.
18157
18158 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18159
18160         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18161         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18162         (reloc-link): Likewise.
18163
18164 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18165
18166         * elf/Makefile: Add rules to build pldd.
18167         * elf/pldd.c: New file.
18168         * elf/pldd-xx.c: New file.
18169
18170 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18171
18172         * version.h: Update for 2.15 development version.
18173
18174 2011-06-07  David S. Miller  <davem@davemloft.net>
18175
18176         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18177         ifuncs.
18178         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18179         elf_machine_lazy_rel): Likewise.
18180         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18181         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18182         elf_machine_lazy_rel): Likewise.
18183         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18184         dl_hwcap via passed in argument.
18185         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18186         Likewise.
18187
18188 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18189
18190         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18191
18192 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18193
18194         [BZ #12849]
18195         * manual/fdl-1.1.texi: New file, verbatim from:
18196         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18197         * manual/lgpl-2.1.texi: New file, verbatim from:
18198         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18199         * manual/Makefile (licenses): New variable, list those new file names.
18200         (texis): Use it.
18201         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18202
18203         * manual/fdl.texi: File removed.
18204         * manual/lesser.texi: File removed.
18205         * manual/libc.texinfo (Copying, Documentation License):
18206         Use new @include file names, put @appendix directive before @include.
18207
18208 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18209
18210         [BZ #12841]
18211         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18212         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18213         (mq_open): Add __NTH.
18214
18215 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18216
18217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18218         Assume Intel Core i3/i5/i7 processor if AVX is available.
18219
18220 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18221
18222         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18223         typo.
18224
18225 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18226
18227         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18228         memory.  Use alloca_account.  Fix memory leak when retrying.
18229
18230 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18231
18232         * version.h (RELEASE): Bump for 2.14 release.
18233         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18234
18235         * config.make.in (RANLIB): Remove entry.
18236
18237 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18238
18239         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18240         (libc.pot): Work around missing support for .ksh extension in xgettext.
18241
18242         [BZ #12684]
18243         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18244         if both request failed.
18245         (send_dg): In case of server errors clear resplen or *resplen2.
18246
18247         [BZ #12454]
18248         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18249         when there are multiple maps.
18250         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18251         (_dl_fini): Remove test here.
18252
18253         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18254
18255 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18256
18257         [BZ #12350]
18258         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18259         bit from old_res_options.
18260         (gaih_inet): Likewise.
18261
18262         [BZ #11099]
18263         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18264         as signed.
18265
18266         * resolv/res_init.c (res_setoptions): Make the code more compact.
18267
18268         [BZ #11558]
18269         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18270         set RES_USEVC.
18271
18272         [BZ #11634]
18273         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18274
18275         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18276
18277         [BZ #11781]
18278         * malloc/malloc.h: Declare malloc hook variables as volatile.
18279
18280         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18281         in last patch.
18282
18283         [BZ #11799]
18284         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18285         raise in the comment.
18286         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18287         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18288         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18289
18290 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18291
18292         [BZ #12811]
18293         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18294         grow the buffers more if it already has to be sufficient.
18295         (build_wcs_upper_buffer): Likewise.
18296         * posix/regexec.c (check_matching): Likewise.
18297         (clean_state_log_if_needed): Likewise.
18298         (extend_buffers): Don't enlarge buffers beyond size of the input
18299         buffer.
18300         Patches mostly by Emil Wojak <emil@wojak.eu>.
18301         * posix/bug-regex32.c: New file.
18302         * posix/Makefile (tests): Add bug-regex32.
18303
18304         * locale/findlocale.c (_nl_find_locale): Return right away if
18305         _nl_explode_name failed.
18306         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18307
18308         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18309
18310         * debug/xtrace.sh: Unify messages.
18311         * malloc/memusage.sh: Likewise.
18312
18313         [BZ #12813]
18314         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18315         time symbol from vDSO.  Substitute with vsyscall if not available.
18316         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18317         __vdso_time.
18318
18319         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18320         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18321         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18322         Add sendmmsg and internal_sendmmsg.
18323         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18324         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18325         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18326
18327         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18328         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18329         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18330
18331 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18332
18333         [BZ #12813]
18334         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18335         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18336         available.
18337         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18338         __vdso_getcpu.
18339
18340         [BZ #12814]
18341         * iconvdata/Makefile (tests): Add bug-iconv9.
18342         * iconvdata/bug-iconv9.c: New file.
18343
18344 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18345
18346         [BZ #12814]
18347         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18348
18349 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18350
18351         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18352         (struct user_regs_struct): Change intcs field back to cs.
18353
18354 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18355
18356         * po/ja.po: Update from translation team.
18357
18358 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18359
18360         [BZ #12795]
18361         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18362         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18363
18364 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18365
18366         * stdlib/longlong.h: Update from GCC.
18367
18368 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18369
18370         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18371         parameter name.
18372         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18373         Add parameter name.
18374         (__sysconf): Pass it down.
18375
18376 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18377
18378         [BZ #12671]
18379         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18380         some situations.
18381         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18382         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18383         add in in __libc_use_alloca calls.  Adjust callers.
18384         (glob): Use malloc in some situations.
18385
18386         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18387         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18388         pltexit.
18389
18390 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18391
18392         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18393         and CLOCK_BOOTTIME_ALARM.
18394
18395         [BZ #12782]
18396         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18397         is returned.
18398
18399         * string/_strerror.c (__strerror_r): Print negative errors as signed
18400         numbers.
18401
18402         [BZ #12777]
18403         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18404         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18405         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18406
18407         * configure.in: Fix typo in redirection and correct removal of test
18408         files in two cases.
18409
18410         [BZ #12788]
18411         * locale/setlocale.c (new_composite_name): Fix test to check for
18412         identical name of all categories.
18413
18414         [BZ #12792]
18415         * libio/filedoalloc.c (local_isatty): New function.
18416         (_IO_file_doallocate): Use local_isatty.
18417         * stdio-common/perror.c (perror): In case a new stream is used
18418         forward the stream error.
18419         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18420         error flag.
18421
18422 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18423
18424         [BZ #11869]
18425         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18426         alloca.
18427         * include/alloca.h (extend_alloca_account): Define.
18428
18429         [BZ #11857]
18430         * posix/regex.h: Fix comments with documentation of user-accessible
18431         fields after compilation and describe correct free'ing of pattern
18432         after re_compile_pattern.
18433         Patch by Reuben Thomas <rrt@sc3d.org>.
18434
18435 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18436
18437         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18438         and -mno-altivec to prevent the compiler from using Altivec and/or
18439         VSX instructions when the corresponding registers are not available.
18440
18441 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18442
18443         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18444
18445 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18446
18447         * libio/freopen.c (freopen): Use __dup2, not dup2.
18448         * libio/freopen64.c (freopen64): Likewise.
18449
18450 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18451
18452         [BZ #12775]
18453         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18454         * math/Makefile (tests): Add test-powl.
18455         (CFLAGS-test-powl.c): Define.
18456         * math/test-powl.c: New file.
18457
18458 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18459
18460         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18461
18462 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18463
18464         [BZ #11837]
18465         * iconvdata/gb18030.c: Update to GB18020-2005.
18466
18467 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18468
18469         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18470         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18471         Patch by Aharon Robbins <arnold@skeeve.com>.
18472
18473         [BZ #11892]
18474         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18475         on the stack.
18476
18477         [BZ #11895]
18478         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18479         through underflows.
18480
18481         [BZ #12766]
18482         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18483         point to strings before performing equality test for error_one_per_line
18484         mode.
18485
18486         [BZ #11697]
18487         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18488
18489         [BZ #11820]
18490         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18491         (struct user_fpregs_struct): Avoid __uint*_t types.
18492
18493         [BZ #6420]
18494         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18495         symbol info.  Use it instead of calling _dl_addr locally.
18496         (lock_and_info): New function.
18497         (tr_freehook): Call lock_and_info and pass symbol info as additional
18498         parameter to tr_where.
18499         (tr_mallochook): Likewise.
18500         (tr_reallochook): Likewise.
18501         (tr_memalignhook): Likewise.
18502
18503         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18504         used and couldn't be at all thread-safe.
18505
18506 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18507
18508         * libio/freopen.c (freopen): Don't close old file descriptor
18509         before the new one is opened.  Instead dup the new file descriptor
18510         to the old one after the new stream is created.
18511         * libio/freopen64.c (freopen64): Likewise.
18512         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18513         * libio/fileops.c (_IO_new_file_close_it): Handle new
18514         _IO_FLAGS2_NOCLOSE flag.
18515         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18516         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18517         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18518         _IO_FLAGS2_NOCLOSE flag.
18519         * include/unistd.h: Add hidden_proto for dup3.
18520         Define __have_dup3.
18521         * io/dup3.c: Define hidden symbol.
18522         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18523
18524         [BZ #7101]
18525         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18526         when an incomplete long option is used.
18527         * posix/tst-getopt_long1.c: New file.
18528         * posix/Makefile (tests): Add tst-getopt_long1.
18529
18530         [BZ #10138]
18531         * scripts/config.guess: Update from autoconf-2.68.
18532         * scripts/config.sub: Likewise.
18533
18534         [BZ #10157]
18535         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18536         tests into ...
18537         (has_cpuclock): ...this.  New function.
18538         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18539         macro here based on has_cpuclock code.
18540
18541         [BZ #10149]
18542         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18543         First byte (not low byte) is now always NUL.
18544         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18545
18546         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18547         Use non-cancelable interfaces.
18548
18549         [BZ #9809]
18550         * locale/iso-639.def: Add entry for Sorani.
18551
18552         [BZ #11901]
18553         * include/stdlib.h: Move include protection to the right place.
18554         Define abort_msg_s.  Declare __abort_msg with it.
18555         * stdlib/abort.c (__abort_msg): Adjust type.
18556         * assert/assert.c (__assert_fail_base): New function.  Majority
18557         of code from __assert_fail.  Allocate memory for __abort_msg with
18558         mmap.
18559         (__assert_fail): Now call __assert_fail_base.
18560         * assert/assert-perr.c: Remove bulk of implementation.  Use
18561         __assert_fail_base.
18562         * include/assert.hL Declare __assert_fail_base.
18563         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18564         mmap.
18565         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18566
18567 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18568
18569         [BZ #11952]
18570         [BZ #12453]
18571         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18572         until all modules are registered in the DTV.
18573         * elf/Makefile: Add rules to build and run tst-tls19.
18574         * elf/tst-tls19.c: New file.
18575         * elf/tst-tls19mod1.c: New file.
18576         * elf/tst-tls19mod2.c: New file.
18577         * elf/tst-tls19mod3.c: New file.
18578         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18579
18580         [BZ #12083]
18581         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18582         correctly.
18583
18584         [BZ #12601]
18585         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18586         two-byte sequence errors.
18587         * iconvdata/Makefile (tests): Add bug-iconv8.
18588         * iconvdata/bug-iconv8.c: New file.
18589
18590         [BZ #12626]
18591         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18592         buf2 definition.
18593
18594         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18595
18596         [BZ #12432]
18597         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18598         (dummy_getcfa): New function.
18599         (init): Get _Unwind_GetCFA address, use dummy if not found.
18600         (backtrace_helper): In recursion check, also check whether CFA changes.
18601         (__backtrace): Completely initialize arg.
18602
18603         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18604         storing incomplete byte sequence in state object.  Avoid testing for
18605         guaranteed too small input if we know there is enough data available.
18606
18607 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18608
18609         * Makeconfig (+link-pie): Indent.
18610         * Rules (binaries-pie): Define if $(have-fpie) and
18611         $(build-shared).
18612         (binaries-shared): Also filter out $(binaries-pie).
18613         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18614         * nscd/Makefile (others-pie): Add nscd.
18615         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18616         ($(objpfx)nscd): Remove command override.
18617         * login/Makefile (others-pie): Add pt_chown.
18618         ($(objpfx)pt_chown): Remove command override.
18619         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18620         remove command overrides.
18621
18622 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18623
18624         * libio/tst_putwc.c: Fix error messages.
18625
18626         [BZ #12724]
18627         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18628         currently writing and seek to current position when not.
18629         * libio/Makefile (tests): Add bug-fclose1.
18630         * libio/bug-fclose1.c: New file.
18631
18632 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18633
18634         [BZ #12511]
18635         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18636         don't set DF_1_NODELETE here.
18637         (do_lookup_x): When entering new entry test for copy relocation
18638         and if necessary set DF_1_NODELETE flag.
18639         * elf/tst-unique4.cc: New file.
18640         * elf/tst-unique4.h: New file.
18641         * elf/tst-unique4lib.cc: New file.
18642         * elf/Makefile: Add rules to build and run tst-unique4.
18643         Patch by Piotr Bury <pbury@goahead.com>.
18644
18645 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18646
18647         [BZ #12052]
18648         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18649
18650         [BZ #12625]
18651         * misc/mntent_r.c (addmntent): Flush the stream after the output
18652
18653         [BZ #12393]
18654         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18655         (is_trusted_path_normalize): Skip initial colon.  Append slash
18656         to empty buffer.  Duplicate is_trusted_path code but allow
18657         constructed patch to be prefix.
18658         (is_dst): Allow $ORIGIN followed by /.
18659         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18660         Correct testing of result of is_trusted_path_normalize
18661         (decompose_rpath): Fix warning.
18662
18663 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18664
18665         [BZ #11257]
18666         * grp/initgroups.c (internal_getgrouplist): When we found the service
18667         list through the initgroups entry in nsswitch.conf do not always
18668         continue on a successful lookup.  Don't always use the
18669         __nss_group_database value if it is set.
18670         * nss/nsswitch.conf (initgroups): Change action for successful db
18671         lookup to continue for compatibility.
18672
18673 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18674
18675         [BZ #11532]
18676         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18677         and CP774 modules.
18678         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18679         and CP774 modules.
18680         * iconvdata/tst-tables.sh: Likewise.
18681         * iconvdata/cp770.c: New file.
18682         * iconvdata/cp771.c: New file.
18683         * iconvdata/cp772.c: New file.
18684         * iconvdata/cp773.c: New file.
18685         * iconvdata/cp774.c: New file.
18686         * iconvdata/testdata/CP770: New file.
18687         * iconvdata/testdata/CP770..UTF8: New file.
18688         * iconvdata/testdata/CP771: New file.
18689         * iconvdata/testdata/CP771..UTF8: New file.
18690         * iconvdata/testdata/CP772: New file.
18691         * iconvdata/testdata/CP772..UTF8: New file.
18692         * iconvdata/testdata/CP773: New file.
18693         * iconvdata/testdata/CP773..UTF8: New file.
18694         * iconvdata/testdata/CP774: New file.
18695         * iconvdata/testdata/CP774..UTF8: New file.
18696
18697         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18698         END CHARMAP line.
18699         * iconvdata/gen-8bit-gap.sh: Likewise.
18700         * iconvdata/gen-8bit.sh: Likewise.
18701
18702         * locale/iso-639.def: Add ary entry.
18703
18704         [BZ #11258]
18705         * locale/C-translit.h.in: Add U20A1 transliteration.
18706
18707         [BZ #12178]
18708         * locale/iso-639.def: Add wae entry.
18709         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18710
18711         [BZ #12545]
18712         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18713         for n.
18714
18715         [BZ #12711]
18716         * locale/C-translit.h.in: Add entry for U20B9.
18717         Patch by pravin.d.s@gmail.com.
18718
18719 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18720
18721         [BZ #12713]
18722         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18723         ENAMETOOLONG use generic getcwd.
18724         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18725         in rtld.  Use *stat64.
18726         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18727         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18728         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18729         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18730         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18731         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18732         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18733         __fstatat64 macros.
18734         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18735         * dirent/rewinddir.c: Add libc_hidden_def.
18736         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18737         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18738
18739         * include/dirent.h (__alloc_dir): Add flags parameter.
18740         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18741         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18742         __alloc_dir.
18743         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18744         from fdopendir if O_CLOEXEC is already set.
18745
18746 2011-03-15  Alan Modra  <amodra@gmail.com>
18747
18748         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18749         l_tls_firstbyte_offset non-zero.  Save padding offset in
18750         l_tls_firstbyte_offset for later use.
18751         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18752         freeing static tls block.
18753
18754 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18755
18756         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18757         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18758         being defined by the kernel headers.
18759
18760 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18761
18762         [BZ #12734]
18763         * resolv/resolv.h: Define RES_NOTLDQUERY.
18764         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18765         no-tld-query and set RES_NOTLDQUERY.
18766         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18767         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18768         modern BIND to search name as TLD unless forbidden.
18769
18770 2011-05-07  Petr Baudis  <pasky@suse.cz>
18771             Ulrich Drepper  <drepper@gmail.com>
18772
18773         [BZ #12393]
18774         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18775         (is_trusted_path): ...to here.
18776         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18777         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18778         using is_trusted_path_normalize() in setuid scripts.
18779
18780 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18781
18782         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18783         __BEGIN/__END_DECLS.
18784
18785 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18786
18787         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18788         NSS_STATUS_NOTFOUND if no record was found.
18789
18790 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18791
18792         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18793         (headers-not-in-tirpc): Remove rpc/netdb.h
18794         * resolv/netdb.h: Revert last change.
18795
18796 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18797
18798         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18799         circular dependency between libgcc.a and libc.a.
18800
18801 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18802
18803         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18804         * nis/Makefile: Don't install rpcsvc/*.
18805         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18806         instead of <rpc/types.h>.
18807         (MAXHOSTNAMELEN): Define.
18808
18809 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18810
18811         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18812
18813 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18814
18815         [BZ #12714]
18816         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18817         gethostbyname4_r when IPv6 results are possible.
18818
18819 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18820
18821         [BZ #12723]
18822         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18823         _PC_PIPE_BUF handling.
18824
18825 2011-04-30  Bruno Haible  <bruno@clisp.org>
18826
18827         [BZ #12717]
18828         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18829         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18830         to 'int'.
18831         * inet/getnameinfo.c (getnameinfo): Likewise.
18832
18833 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18834
18835         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18836         to groups setting in database lookup.
18837         * nss/nsswitch.conf: Add initgroups entry.
18838
18839 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18840
18841         [BZ #12685]
18842         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18843         mode string.
18844         Patch by Eric Blake <eblake@redhat.com>.
18845
18846 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18847
18848         * sunrpc/Makefile (need-export-routines): Add svc_run.
18849         (routines): Remove svc_run.
18850         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18851         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18852         * sunrpc/svc_run.c (svc_run): Likewise.
18853         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18854
18855 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18856
18857         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18858         problem in reallocation in last patch.
18859
18860 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18861
18862         * sunrpc/Makefile: Move inclusion of Rules.
18863
18864 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18865
18866         * nss/nss_files/files-initgroups.c: New file.
18867         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18868         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18869         _nss_files_initgroups_dyn.
18870
18871 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18872
18873         * elf/elf.h (R_ARM_IRELATIVE): Define.
18874
18875 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18876
18877         * po/ru.po: Update from translation team.
18878
18879 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18880
18881         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18882         dependencies.
18883
18884 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18885
18886         [BZ #12653]
18887         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18888         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18889         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18890         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18891         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18892
18893 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18894
18895         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18896         differing bytes.
18897         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18898         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18899         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18900
18901 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18902
18903         [BZ #12420]
18904         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18905         storing it.
18906         * stdlib/bug-getcontext.c: New file.
18907         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18908
18909 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18910
18911         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18912         instructions into .machine "z9-109".
18913         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18914         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18915
18916 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18917
18918         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18919         between environment variables and auxiliary vector.
18920
18921 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18922
18923         * Makefile: Add rules to build linkobj/libc.so.
18924         * include/libc-symbols.h: Define libc_hidden_nolink.
18925         * include/rpc/auth.h: Mark functions which are to be hidden.
18926         * include/rpc/auth_des.h: Likewise.
18927         * include/rpc/auth_unix.h: Likewise.
18928         * include/rpc/clnt.h: Likewise.
18929         * include/rpc/des_crypt.h: Likewise.
18930         * include/rpc/key_prot.h: Likewise.
18931         * include/rpc/pmap_clnt.h: Likewise.
18932         * include/rpc/pmap_prot.h: Likewise.
18933         * include/rpc/pmap_rmt.h: Likewise.
18934         * include/rpc/rpc_msg.h: Likewise.
18935         * include/rpc/svc.h: Likewise.
18936         * include/rpc/svc_auth.h: Likewise.
18937         * include/rpc/xdr.h: Likewise.
18938         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18939         * nss/Makefile: Likewise.
18940         * sunrpc/Makefile: Don't install headers.  Build library with normal
18941         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18942         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18943         for the compat linking library.  Remove use of INTDEF/INTUSE.
18944         * sunrpc/auth_none.c: Likewise.
18945         * sunrpc/auth_unix.c: Likewise.
18946         * sunrpc/authdes_prot.c: Likewise.
18947         * sunrpc/authuxprot.c: Likewise.
18948         * sunrpc/clnt_gen.c: Likewise.
18949         * sunrpc/clnt_perr.c: Likewise.
18950         * sunrpc/clnt_raw.c: Likewise.
18951         * sunrpc/clnt_simp.c: Likewise.
18952         * sunrpc/clnt_tcp.c: Likewise.
18953         * sunrpc/clnt_udp.c: Likewise.
18954         * sunrpc/clnt_unix.c: Likewise.
18955         * sunrpc/des_crypt.c: Likewise.
18956         * sunrpc/des_soft.c: Likewise.
18957         * sunrpc/get_myaddr.c: Likewise.
18958         * sunrpc/key_call.c: Likewise.
18959         * sunrpc/key_prot.c: Likewise.
18960         * sunrpc/netname.c: Likewise.
18961         * sunrpc/pm_getmaps.c: Likewise.
18962         * sunrpc/pm_getport.c: Likewise.
18963         * sunrpc/pmap_clnt.c: Likewise.
18964         * sunrpc/pmap_prot.c: Likewise.
18965         * sunrpc/pmap_prot2.c: Likewise.
18966         * sunrpc/pmap_rmt.c: Likewise.
18967         * sunrpc/publickey.c: Likewise.
18968         * sunrpc/rpc_cmsg.c: Likewise.
18969         * sunrpc/rpc_common.c: Likewise.
18970         * sunrpc/rpc_dtable.c: Likewise.
18971         * sunrpc/rpc_prot.c: Likewise.
18972         * sunrpc/rpc_thread.c: Likewise.
18973         * sunrpc/rtime.c: Likewise.
18974         * sunrpc/svc.c: Likewise.
18975         * sunrpc/svc_auth.c: Likewise.
18976         * sunrpc/svc_authux.c: Likewise.
18977         * sunrpc/svc_raw.c: Likewise.
18978         * sunrpc/svc_run.c: Likewise.
18979         * sunrpc/svc_simple.c: Likewise.
18980         * sunrpc/svc_tcp.c: Likewise.
18981         * sunrpc/svc_udp.c: Likewise.
18982         * sunrpc/svc_unix.c: Likewise.
18983         * sunrpc/svcauth_des.c: Likewise.
18984         * sunrpc/xcrypt.c: Likewise.
18985         * sunrpc/xdr.c: Likewise.
18986         * sunrpc/xdr_array.c: Likewise.
18987         * sunrpc/xdr_float.c: Likewise.
18988         * sunrpc/xdr_intXX_t.c: Likewise.
18989         * sunrpc/xdr_mem.c: Likewise.
18990         * sunrpc/xdr_rec.c: Likewise.
18991         * sunrpc/xdr_ref.c: Likewise.
18992         * sunrpc/xdr_sizeof.c: Likewise.
18993         * sunrpc/xdr_stdio.c: Likewise.
18994
18995 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18996
18997         [BZ #12650]
18998         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18999         * sysdeps/ia64/dl-tls.h: Likewise.
19000         * sysdeps/powerpc/dl-tls.h: Likewise.
19001         * sysdeps/s390/dl-tls.h: Likewise.
19002         * sysdeps/sh/dl-tls.h: Likewise.
19003         * sysdeps/sparc/dl-tls.h: Likewise.
19004         * sysdeps/x86_64/dl-tls.h: Likewise.
19005         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19006
19007 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19008
19009         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19010         rpath element also skip the following colon.
19011         (expand_dynamic_string_token): Add is_path parameter and pass
19012         down to DL_DST_REQUIRED and _dl_dst_substitute.
19013         (decompose_rpath): Call expand_dynamic_string_token with
19014         non-zero is_path.  Ignore empty rpaths.
19015         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19016         with zero is_path.
19017
19018 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19019
19020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19021         Make cancelable.
19022
19023 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19024
19025         [BZ #12655]
19026         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19027         Patch by Filipe David Manana <fdmanana@apache.org>.
19028
19029 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19030
19031         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19032         Maintain aligned stack.
19033         (CHECK_RSP): Remove unused macro.
19034
19035 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19036
19037         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19038         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19039
19040 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19041
19042         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19043
19044         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19045
19046 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19047
19048         [BZ #12518]
19049         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19050         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19051         * sysdeps/x86_64/memmove.c: New file.
19052         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19053         (memcpy): Renamed to ...
19054         (__new_memcpy): This.
19055         (memcpy): Provide GLIBC_2_14 memcpy.
19056         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19057         (memcpy): Provide GLIBC_2_2_5 memcpy.
19058
19059 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19060
19061         [BZ #12631]
19062         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19063
19064 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19065
19066         * misc/syncfs.c: New file.
19067         * misc/Makefile (routines): Add syncfs.
19068         * posix/unistd.h: Declare syncfs.
19069         * sysdeps/unix/syscalls.list: Add syncfs.
19070
19071 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19072
19073         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19074         open_by_handle_at.
19075         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19076         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19077         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19078         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19079         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19080         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19081         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19082
19083 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19084
19085         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19086         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19087         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19088         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19089         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19090         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19091         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19092
19093         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19094         sync_file_range.c with -fexceptions.
19095         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19096         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19097         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19098         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19099         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19100         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19101         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19102         sync_file_range as cancellation point
19103         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19104         now a wrapper around __call_sync_file_range with cancellation handling.
19105         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19106         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19107         function name to __call_sync_file_range.
19108         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19109         Add call_sync_file_range.
19110
19111 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19112
19113         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19114         bits/timex.h.
19115
19116 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19117
19118         * iconv/iconv.h: Fix typo in comment.
19119         * io/fcntl.h: Likewise.
19120         * libio/stdio.h: Likewise.
19121         * posix/spawn.h: Likewise.
19122         * posix/unistd.h: Likewise.
19123         * stdlib/stdlib.h: Likewise.
19124         * time/time.h: Likewise.
19125         * wcsmbs/wchar.h: Likewise.
19126
19127         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19128         open_by_handle): Add.
19129         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19130         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19131         Augment a few comments.
19132         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19133         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19134         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19135         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19136         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19137         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19138         open_by_handle.
19139
19140         * io/fcntl.h (AT_EMPTY_PATH): Define.
19141
19142 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19143
19144         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19145         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19146         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19147         to...
19148         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19149         * Versions.def: Add GLIBC_2.14.
19150         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19151         Export.
19152
19153 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19154
19155         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19156         round counter.
19157         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19158
19159 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19160
19161         [BZ #12597]
19162         * string/test-strncmp.c (do_page_test): New function.
19163         (check2): Likewise.
19164         (test_main): Call check2.
19165         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19166
19167 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19168
19169         [BZ #12587]
19170         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19171         Handle cache information in CPU leaf 4.
19172         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19173
19174 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19175
19176         [BZ #12583]
19177         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19178         character representation.
19179         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19180
19181 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19182
19183         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19184         END(__isnan) to END(__isnanf) to match function entry point/label
19185         EALIGN(__isnanf,...).
19186
19187 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19188
19189         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19190
19191 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19192
19193         [BZ #12510]
19194         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19195         copy from the symbol referenced in the relocation to initialize the
19196         used variable.
19197         Patch by Piotr Bury <pbury@goahead.com>.
19198         * elf/Makefile: Add rules to build and tst-unique3.
19199         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19200         * elf/tst-unique3.cc: New file.
19201         * elf/tst-unique3.h: New file.
19202         * elf/tst-unique3lib.cc: New file.
19203         * elf/tst-unique3lib2.cc: New file.
19204
19205         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19206
19207 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19208
19209         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19210         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19211         to _start.
19212
19213 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19214
19215         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19216         to-be-loaded object along a path to loader is ld.so.
19217
19218 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19219             Ulrich Drepper  <drepper@gmail.com>
19220
19221         * sysdeps/x86_64/memset.S: After aligning destination, code
19222         branches to different locations depending on the value of
19223         misalignment, when multiarch is enabled. Fix this.
19224
19225 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19226
19227         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19228         Set _x86_64_preferred_memory_instruction for AMD processsors.
19229         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19230         Set bit_Prefer_SSE_for_memop for AMD processors.
19231
19232 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19233
19234         * libio/fmemopen.c (fmemopen): Optimize a bit.
19235
19236 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19237
19238         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19239
19240 2011-03-03  Roland McGrath  <roland@redhat.com>
19241
19242         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19243
19244 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19245
19246         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19247         __bzero_ultra1 instead of __memset_ultra1.
19248
19249 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19250             Ulrich Drepper  <drepper@gmail.com>
19251
19252         [BZ #12509]
19253         * include/link.h (struct link_map): Add l_orig_initfini.
19254         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19255         returning unsuccessfully.
19256         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19257         close of a file loaded at startup, restore the original l_initfini
19258         list.
19259         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19260         list, store the pointer.
19261         * elf/Makefile ($(objpfx)noload-mem): New rule.
19262         (noload-ENV): Define.
19263         (tests): Add $(objpfx)noload-mem.
19264         * elf/noload.c: Include <memcheck.h>.
19265         (main): Call mtrace.  Close all opened handles.
19266
19267 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19268
19269         [BZ #12454]
19270         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19271         dependencies are missing.
19272
19273 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19274
19275         Fix __if_freereq crash: Unlike the generic version which uses free,
19276         Hurd needs munmap.
19277         * sysdeps/mach/hurd/ifreq.h: New file.
19278
19279 2011-01-27  Petr Baudis  <pasky@suse.cz>
19280             Ulrich Drepper  <drepper@gmail.com>
19281
19282         [BZ 12445]#
19283         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19284         to extend_alloca().
19285         * stdio-common/bug23.c: New file.
19286         * stdio-common/Makefile (tests): Add bug23.
19287
19288 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19289             Ulrich Drepper  <drepper@gmail.com>
19290
19291         [BZ #12489]
19292         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19293         before performing relro protection.  At old place add assertion
19294         to make sure nothing changed.
19295
19296 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19297             Glauber de Oliveira Costa  <glommer@gmail.com>
19298
19299         * elf/elf.h: Add new ARM TLS relocs.
19300
19301 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19302
19303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19304         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19305         cast from r3.
19306         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19307         'tests' variable.
19308         * sysdeps/wordsize-64/tst-writev.c: New file.
19309
19310 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19311
19312         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19313         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19314         insns in _dl_start to prevent a TOC reference before relocs are
19315         resolved.
19316
19317 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19318
19319         [BZ #12469]
19320         * Makeconfig: Remove RANLIB definition.
19321         * Makerules: Don't use RANLIB.
19322         * aclocal.m4: Remove ranlib test.
19323         * configure.in: No need to check for ranlib.
19324         * elf/rtld-Rules: Don't use RANLIB.
19325
19326 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19327
19328         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19329         protection macro.
19330         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19331         inclusion protection macro.
19332
19333         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19334         SIGRTMIN and SIGRTMAX and print information in that case only when
19335         SIGRTMIN is defined.
19336
19337 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19338
19339         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19340         arginfo fn returning -1.
19341
19342         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19343         and thousands string is zero terminated.
19344
19345 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19346
19347         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19348         sysdeps/unix/sysv/linux/bits/socket.h.
19349
19350 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19351
19352         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19353         (__CPU_COUNT): Remove old macros.
19354         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19355         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19356         (__CPU_ALLOC, __CPU_FREE): Add macros.
19357         (__sched_cpualloc, __sched_cpufree): Add declarations.
19358
19359 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19360
19361         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19362         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19363         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19364         (readdhstai): Return value of addhstaiX call.
19365         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19366         (addgrbyX): Return value returned by cache_addgr.
19367         (readdgrbyname): Return value returned by addgrbyX.
19368         (readdgrbygid): Likewise.
19369         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19370         (addpwbyX): Return value returned by cache_addpw.
19371         (readdpwbyname): Return value returned by addhstbyX.
19372         (readdpwbyuid): Likewise.
19373         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19374         (addservbyX): Return value returned by cache_addserv.
19375         (readdservbyname): Return value returned by addservbyX:
19376         (readdservbyport): Likewise.
19377         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19378         (addhstbyX): Return value returned by cache_addhst.
19379         (readdhstbyname): Return value returned by addhstbyX.
19380         (readdhstbyaddr): Likewise.
19381         (readdhstbynamev6): Likewise.
19382         (readdhstbyaddrv6): Likewise.
19383         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19384         (readdinitgroups): Return value returned by addinitgroupsX.
19385         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19386         (prune_cache): Keep track of timeout value of re-added entries.
19387         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19388         * nscd/nscd.h: Adjust prototypes of readd* functions.
19389
19390 2011-02-04  Roland McGrath  <roland@redhat.com>
19391
19392         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19393         (nis_stats): Likewise.
19394         * nis/nis_modify.c (nis_modify): Likewise.
19395         * nis/nis_remove.c (nis_remove): Likewise.
19396         * nis/nis_add.c (nis_add): Likewise.
19397
19398         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19399
19400         * posix/fnmatch_loop.c: Add some consts.
19401
19402         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19403
19404 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19405
19406         [BZ #12460]
19407         * config.make.in (config-cflags-novzeroupper): Define.
19408         * configure.in: Substitute libc_cv_cc_novzeroupper.
19409         * elf/Makefile (AVX-CFLAGS): Define.
19410         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19411         (CFLAGS-tst-auditmod4a.c): Likewise.
19412         (CFLAGS-tst-auditmod4b.c): Likewise.
19413         (CFLAGS-tst-auditmod6b.c): Likewise.
19414         (CFLAGS-tst-auditmod6c.c): Likewise.
19415         (CFLAGS-tst-auditmod7b.c): Likewise.
19416         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19417
19418 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19419
19420         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19421         function to the callback.
19422         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19423
19424 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19425
19426         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19427         of errno.
19428
19429 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19430
19431         [BZ #11724]
19432         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19433         of constructors.
19434         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19435         of destructors.
19436         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19437
19438         [BZ #11724]
19439         * elf/Makefile: Add rules to build and run new test.
19440         * elf/tst-initorder.c: New file.
19441         * elf/tst-initorder.exp: New file.
19442         * elf/tst-initordera1.c: New file.
19443         * elf/tst-initordera2.c: New file.
19444         * elf/tst-initordera3.c: New file.
19445         * elf/tst-initordera4.c: New file.
19446         * elf/tst-initorderb1.c: New file.
19447         * elf/tst-initorderb2.c: New file.
19448         * elf/tst-order-a1.c: New file.
19449         * elf/tst-order-a2.c: New file.
19450         * elf/tst-order-a3.c: New file.
19451         * elf/tst-order-a4.c: New file.
19452         * elf/tst-order-b1.c: New file.
19453         * elf/tst-order-b2.c: New file.
19454         * elf/tst-order-main.c: New file.
19455         New test case by George Gensure <werkt0@gmail.com>.
19456
19457 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19458
19459         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19460         decoding ACE if AI_CANONIDN.
19461
19462 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19463
19464         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19465
19466 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19467
19468         * version.h (RELEASE): Bump for 2.13 release.
19469         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19470
19471         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19472
19473         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19474         MADV_NOHUGEPAGE.
19475         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19476         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19477         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19478         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19479         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19480         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19481
19482         * posix/getconf.c: Update copyright year.
19483         * catgets/gencat.c: Likewise.
19484         * csu/version.c: Likewise.
19485         * debug/catchsegv.sh: Likewise.
19486         * debug/xtrace.sh: Likewise.
19487         * elf/ldconfig.c: Likewise.
19488         * elf/ldd.bash.in: Likewise.
19489         * elf/sprof.c (print_version): Likewise.
19490         * iconv/iconv_prog.c: Likewise.
19491         * iconv/iconvconfig.c: Likewise.
19492         * locale/programs/locale.c: Likewise.
19493         * locale/programs/localedef.c: Likewise.
19494         * malloc/memusage.sh: Likewise.
19495         * malloc/mtrace.pl: Likewise.
19496         * nscd/nscd.c (print_version): Likewise.
19497         * nss/getent.c: Likewise.
19498
19499         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19500         PF_CAIF, and PF_ALG.
19501         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19502
19503 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19504
19505         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19506         (modules-names): Use them.
19507         (ifunc-test-modules, ifunc-pie-tests): Define.
19508         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19509         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19510         (test-extras): Likewise.
19511         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19512         $(compile-command.c).
19513         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19514         (all-built-dso): Define.
19515         (check-textrel.out, check-execstack.out): Depend on it.
19516
19517         * configure.in: Don't override --enable-multi-arch.
19518
19519 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19520
19521         [BZ #6812]
19522         * nscd/hstcache.c (tryagain): Define.
19523         (cache_addhst): Return tryagain not notfound for temporary errors.
19524         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19525         failed.
19526
19527 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19528
19529         [BZ #10563]
19530         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19531         to make the syscall.
19532         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19533
19534         [BZ #12378]
19535         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19536         and fall back to matching as normal character if the string ends before
19537         the matching ']' is found.  This is what POSIX requires.
19538         * posix/testfnm.c: Adjust test result.
19539         * posix/globtest.sh: Adjust test result.  Add new test.
19540         * posix/tst-fnmatch.input: Likewise.
19541         * posix/tst-fnmatch2.c: Add new test.
19542
19543 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19544
19545         * elf/Makefile (check-execstack): Revert last change.  Depend on
19546         check-execstack.h.
19547         (check-execstack.h): New target.
19548         (generated): Add check-execstack.h.
19549         * elf/check-execstack.c: Include "check-execstack.h".
19550         (main): Revert last change.
19551         (handle_file): Return zero if GNU_STACK is absent and
19552         DEFAULT_STACK_PERMS doesn't include PF_X.
19553
19554 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19555
19556         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19557         in child fails because the descriptor is already closed.
19558         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19559         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19560         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19561
19562         [BZ #12397]
19563         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19564         syscall.
19565
19566         [BZ #10484]
19567         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19568         temporary buffer used to handle multi lookups locally.
19569         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19570
19571 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19572
19573         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19574         loader is ld.so.
19575
19576 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19577
19578         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19579         alignment for SSE2.
19580
19581 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19582
19583         [BZ #12394]
19584         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19585         characters.  When rounding increased number of integer digits recompute
19586         number of groups.
19587         * stdio-common/tst-grouping.c: New file.
19588         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19589
19590 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19591
19592         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19593         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19594
19595         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19596         void.
19597         * bits/select.h: Likewise.
19598
19599 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19600
19601         * po/ja.po: Update from translation team.
19602
19603 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19604
19605         [BZ #11155]
19606         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19607         implementation just like for lxstat, fxstatat, et al.
19608
19609 2010-12-27  Jim Meyering  <meyering@redhat.com>
19610
19611         [BZ #12348]
19612         * posix/regexec.c (build_trtable): Return failure indication upon
19613         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19614
19615 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19616
19617         [BZ #12201]
19618         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19619         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19620         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19621         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19622
19623         [BZ #12207]
19624         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19625
19626         [BZ #12204]
19627         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19628         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19629
19630 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19631
19632         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19633         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19634         script has SORT_BY_INIT_PRIORITY.
19635         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19636         NO_CTORS_DTORS_SECTIONS is defined.
19637         * elf/soinit.c: Likewise.
19638         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19639         NO_CTORS_DTORS_SECTIONS is defined.
19640         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19641         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19642         * sysdeps/sh/init-first.c: Likewise.
19643         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19644
19645 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19646
19647         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19648         always use the slow path.
19649
19650 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19651
19652         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19653         similar rule which adds the sysdep directories to the header search in
19654         order to pick up the correct platform stackinfo.h.
19655         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19656         perform test if it is, otherwise return successfully without testing.
19657         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19658         DEFAULT_STACK_PERMS define in stackinfo.h.
19659         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19660         defined in stackinfo.h.
19661         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19662         DEFAULT_STACK_PERMS defined in stackinfo.h.
19663         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19664         * sysdeps/ia64/stackinfo.h: Likewise.
19665         * sysdeps/s390/stackinfo.h: Likewise.
19666         * sysdeps/sh/stackinfo.h: Likewise.
19667         * sysdeps/sparc/stackinfo.h: Likewise.
19668         * sysdeps/x86_64/stackinfo.h: Likewise.
19669         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19670         PF_X for powerpc64.  Retain PF_X for powerpc32.
19671
19672 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19673
19674         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19675         accurately.
19676         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19677         GETDENTS_64BIT_ALIGNED.
19678
19679 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19680
19681         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19682
19683 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19684
19685         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19686         _GNU_SOURCE.
19687
19688         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19689         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19690         Remove __restrict.
19691         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19692         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19693
19694 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19695
19696         [BZ #11655]
19697         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19698         are initialized.
19699
19700 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19701
19702         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19703
19704 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19705
19706         * po/it.po: Update from translation team.
19707
19708 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19709
19710         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19711         unused codes.
19712
19713 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19714
19715         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19716
19717 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19718
19719         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19720         specially.
19721         (gaih_getanswer_slice): Likewise.
19722
19723 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19724
19725         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19726
19727 2010-05-31  Petr Baudis  <pasky@suse.cz>
19728
19729         [BZ #11149]
19730         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19731         silently even in the chroot mode.
19732
19733 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19734
19735         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19736         last patch a bit.  Pretty printing
19737
19738 2010-05-31  Petr Baudis <pasky@suse.cz>
19739
19740         [BZ #10085]
19741         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19742         initialization of skip_initgroups_dyn.
19743
19744 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19745
19746         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19747         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19748
19749 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19750
19751         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19752
19753 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19754
19755         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19756         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19757         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19758         ($(objpfx)tst-fnmatch-mem): New rule.
19759         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19760         * posix/tst-fnmatch.c (main): Call mtrace.
19761
19762 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19763
19764         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19765         Support Intel processor model 6 and model 0x2c.
19766
19767 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19768
19769         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19770           signed comparison.
19771
19772 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19773
19774         [BZ #12205]
19775         * string/test-strncasecmp.c (check_result): New function.
19776         (do_one_test): Use it.
19777         (check1): New function.
19778         (test_main): Use it.
19779         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19780         Support strcasecmp and strncasecmp.
19781
19782 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19783
19784         [BZ #12194]
19785         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19786         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19787
19788 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19789
19790         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19791         IFUNC support.
19792         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19793         memset-x86-64.
19794         * sysdeps/x86_64/multiarch/bzero.S: New file.
19795         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19796         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19797         * sysdeps/x86_64/multiarch/memset.S: New file.
19798         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19800         Set bit_Prefer_SSE_for_memop for Intel processors.
19801         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19802         Define.
19803         (index_Prefer_SSE_for_memop): Define.
19804         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19805
19806 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19807
19808         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19809         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19810
19811 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19812
19813         [BZ #12191]
19814         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19815         (__x86_64_raw_data_cache_size_half): Likewise.
19816         (__x86_64_raw_shared_cache_size): Likewise.
19817         (__x86_64_raw_shared_cache_size_half): Likewise.
19818
19819         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19820         (__x86_64_raw_data_cache_size_half): Likewise.
19821         (__x86_64_raw_shared_cache_size): Likewise.
19822         (__x86_64_raw_shared_cache_size_half): Likewise.
19823         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19824         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19825         and __x86_64_raw_shared_cache_size_half.  Round
19826         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19827         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19828         to multiple of 256 bytes.
19829
19830 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19831
19832         [BZ #12167]
19833         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19834         of inacessible symlinks.  Verify result of symlink before returning it.
19835         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19836         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19837
19838 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19839
19840         * math/math.h (isinf): Fix typo in comment.
19841
19842 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19843
19844         * po/da.po: Update from translation team.
19845
19846 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19847
19848         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19849         is added to the list.
19850
19851 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19852             Ulrich Drepper  <drepper@gmail.com>
19853
19854         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19855         the global list here.  Move code to...
19856         (_dl_add_to_namespace_list): ...here.  New function.
19857         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19858         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19859         * elf/dl-load.c (lose): Don't remove the element from the list.
19860         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19861         (_dl_map_object): Likewise.
19862
19863 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19864
19865         [BZ #12159]
19866         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19867         into all bytes of SSE register.
19868         Patch by Richard Li <richardpku@gmail.com>.
19869
19870 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19871
19872         [BZ #12140]
19873         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19874         perturbing.
19875
19876 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19877
19878         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19879         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19880         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19881         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19883         submachine.
19884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19885
19886 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19887
19888         * include/dlfcn.h (__RTLD_SECURE): Define.
19889         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19890         mode & __RTLD_SECURE instead.
19891         (open_path): Rename preloaded parameter to secure.
19892         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19893         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19894         * elf/dl-deps.c (openaux): Likewise.
19895         * elf/rtld.c (struct map_args): Remove is_preloaded.
19896         (map_doit): Don't use it.
19897         (dl_main): Likewise.
19898         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19899         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19900
19901 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19902
19903         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19904         (sysd-rules-targets): Remove duplicates.
19905         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19906         rtld-%.$o dependency.
19907
19908 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19909
19910         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19911         _dl_map_object do it.
19912
19913 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19914
19915         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19916         fast fma builtins, define the macros in the C99 standard.
19917         (FP_FAST_FMAF): Likewise.
19918         (FP_FAST_FMAL): Likewise.
19919         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19920
19921         * bits/mathdef.h: Update copyright year.
19922         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19923
19924 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19925
19926         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19927         builtins, define the macros in the C99 standard.
19928         (FP_FAST_FMAF): Likewise.
19929         (FP_FAST_FMAL): Likewise.
19930         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19931         multiply/add.
19932         (FP_FAST_FMAF): Likewise.
19933
19934 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19935
19936         [BZ #3268]
19937         * math/libm-test.inc (fma_test): Some new testcases.
19938         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19939         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19940         y and infinite z.  Do multiplication by C already in long double.
19941         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19942         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19943         y and infinite z.  Do bitwise or of inexact bit into u.d.
19944         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19945         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19946         * sysdeps/i386/fpu/s_fma.S: Removed.
19947         * sysdeps/i386/fpu/s_fmal.S: Removed.
19948
19949 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19950
19951         [BZ #3268]
19952         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19953         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19954         computation is not scheduled after fetestexcept.  Fix value
19955         of minimum denormal long double.
19956
19957 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19958
19959         [BZ #3268]
19960         * math/libm-test.inc (fma_test): Add some more tests.
19961         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19962         correctly.
19963
19964 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19965
19966         * scripts/data/localplt-s390-linux-gnu.data: New file.
19967         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19968
19969 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19970
19971         [BZ #3268]
19972         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19973         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19974         instead of dbl-64.
19975         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19976         inlines.
19977         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19978         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19979         if one of x and y is very large and the other is subnormal.
19980         * sysdeps/s390/fpu/s_fmaf.c: New file.
19981         * sysdeps/s390/fpu/s_fma.c: New file.
19982         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19983         * sysdeps/powerpc/fpu/s_fma.S: New file.
19984         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19985         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19986         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19987
19988 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19989
19990         [BZ #3268]
19991         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19992         fma tests.
19993         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19994         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19995         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19996         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19997         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19998         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19999         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20000
20001 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20002
20003         [BZ #12078]
20004         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20005         * posix/bug-regex31.input: Add test case.
20006
20007 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20008
20009         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20010         * posix/bug-regex31.input: New file.
20011
20012         [BZ #12078]
20013         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20014         (parse_sub_exp): Fix last change, use postorder.
20015
20016         * posix/bug-regex31.c: New file.
20017         * posix/Makefile: Add rules to build and run bug-regex31.
20018
20019         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20020
20021         [BZ #12078]
20022         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20023
20024         [BZ #12108]
20025         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20026         to have entries in sys_siglist.
20027
20028         [BZ #12093]
20029         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20030         be NULL.
20031
20032 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20033
20034         [BZ #3268]
20035         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20036         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20037         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20038         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20039         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20040         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20041         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20042         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20043         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20044         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20045         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20046         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20047         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20048         * math/ftestexcept.c (fetestexcept): Likewise.
20049         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20050         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20051         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20052         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20053         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20054         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20055         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20056
20057 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20058
20059         [BZ #12107]
20060         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20061         newline.
20062
20063 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20064
20065         * string/bug-strstr1.c: New file.
20066         * string/Makefile: Add rules to build and run bug-strstr1.
20067
20068 2010-10-05  Eric Blake  <eblake@redhat.com>
20069
20070         [BZ #12092]
20071         * string/str-two-way.h (two_way_long_needle): Always clear memory
20072         when skipping input due to the shift table.
20073
20074 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20075
20076         [BZ #12005]
20077         * malloc/mcheck.c: Handle large requests.
20078
20079         [BZ #12077]
20080         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20081         for strncmp and strncasecmp.
20082         * string/stratcliff.c: Add tests for strcmp and strncmp.
20083         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20084
20085 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20086
20087         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20088         __set_fpscr.
20089
20090 2010-09-30  Andreas Jaeger  <aj@suse.de>
20091
20092         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20093         (CGROUP_SUPER_MAGIC): Define.
20094         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20095         Handle btrfs and cgroup file systems.
20096         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20097         Likewise.
20098
20099 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20100
20101         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20102         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20103
20104 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20105
20106         [BZ #12067]
20107         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20108         trying to locate the ELF header.
20109
20110 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20111
20112         [BZ #11611]
20113         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20114         Mask out sign-bit copies when constructing f_fsid.
20115
20116 2010-09-24  Petr Baudis <pasky@suse.cz>
20117
20118         * debug/stack_chk_fail_local.c: Add missing licence exception.
20119         * debug/warning-nop.c: Likewise.
20120
20121 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20122
20123         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20124         implementing getdents64 using getdents syscall, set d_type if
20125         __ASSUME_GETDENTS32_D_TYPE.
20126
20127 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20128
20129         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20130         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20131
20132 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20133
20134         [BZ #12037]
20135         * posix/unistd.h: Undo change of feature selection for ftruncate from
20136         2010-01-11.
20137
20138 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20139
20140         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20141         detection.
20142
20143 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20144
20145         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20146         fanotify_mark.
20147         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20148
20149 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20150
20151         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20152         variables after CHECK_SP call.
20153         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20154
20155 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20156             Ulrich Drepper  <drepper@redhat.com>
20157
20158         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20159         re-relocationg ld.so.
20160         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20161         _dl_init_paths call.
20162         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20163         here anymore.
20164
20165 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20166
20167         * resolv/res_init.c (__res_vinit): Count the default server we added.
20168
20169 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20170             Ulrich Drepper  <drepper@redhat.com>
20171
20172         [BZ #11968]
20173         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20174         (____longjmp_chk): Use %ebx for saving value across system call.
20175         Add unwind info.
20176
20177 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20178
20179         * manual/Makefile: Don't mix pattern rules with normal rules.
20180
20181 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20182
20183         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20184         operation.
20185         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20186         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20187         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20188         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20189         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20190         Likewise.
20191
20192 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20193
20194         [BZ #11979]
20195         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20196         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20197
20198 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20199
20200         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20201         * sysdeps/x86_64/addmul_1.S: Likewise.
20202         * sysdeps/x86_64/lshift.S: Likewise.
20203         * sysdeps/x86_64/mul_1.S: Likewise.
20204         * sysdeps/x86_64/rshift.S: Likewise.
20205         * sysdeps/x86_64/sub_n.S: Likewise.
20206         * sysdeps/x86_64/submul_1.S: Likewise.
20207
20208 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20209
20210         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20211         Define __sched_param instead of SCHED_* and sched_param when
20212         <bits/sched.h> is included with __need_schedparam defined.
20213         * bits/sched.h [__need_schedparam]
20214         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20215         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20216         (__defined_schedparam): Define to 1.
20217         (__sched_param): New structure, identical to sched_param.
20218         (__need_schedparam): Undefine.
20219
20220 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20221
20222         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20223         (epoll_create1): Declare.
20224
20225         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20226
20227 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20228
20229         [BZ #7066]
20230         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20231         shifting retval into place.
20232
20233 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20234
20235         * nis/rpcsvc/nis.h: Update copyright notice.
20236         * nis/rpcsvc/nis.x: Likewise.
20237         * nis/rpcsvc/nis_callback.h: Likewise.
20238         * nis/rpcsvc/nis_callback.x: Likewise.
20239         * nis/rpcsvc/nis_object.x: Likewise.
20240         * nis/rpcsvc/nis_tags.h: Likewise.
20241         * nis/rpcsvc/yp.h: Likewise.
20242         * nis/rpcsvc/yp.x: Likewise.
20243         * nis/rpcsvc/ypupd.h: Likewise.
20244         * nis/yp_xdr.c: Likewise.
20245         * nis/ypupdate_xdr.c: Likewise.
20246
20247         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20248         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20249         (pmap_getport): Use __libc_rpc_getport.
20250         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20251         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20252         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20253
20254 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20255
20256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20257         fanotify_mark.
20258
20259 2010-08-27  Roland McGrath  <roland@redhat.com>
20260
20261         * sysdeps/i386/i686/multiarch/Makefile
20262         (CFLAGS-varshift.c): New variable.
20263
20264 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20265
20266         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20267         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20268
20269         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20270
20271         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20272
20273 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20274
20275         * sysdeps/x86_64/strlen.S: Unroll the loop.
20276         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20277         strlen-sse2 strlen-sse2-bsf.
20278         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20279         __strlen_no_bsf if bit_Slow_BSF is set.
20280         (__strlen_sse42): Removed.
20281         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20282         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20283
20284 2010-08-25  Roland McGrath  <roland@redhat.com>
20285
20286         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20287         * sysdeps/x86_64/multiarch/varshift.c: New file.
20288         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20289         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20290         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20291         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20292
20293 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20294
20295         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20296         strlen-sse2 strlen-sse2-bsf.
20297         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20298         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20299         (__strlen_sse2): Removed.
20300         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20301         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20302         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20303         bit_Slow_BSF for Atom.
20304         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20305         (index_Slow_BSF): Define.
20306         (HAS_SLOW_BSF): Define.
20307
20308 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20309
20310         [BZ #10851]
20311         * resolv/res_init.c (__res_vinit): When no server address at all
20312         is given default to loopback.
20313
20314 2010-08-24  Roland McGrath  <roland@redhat.com>
20315
20316         * configure.in: Remove config-name.h generation.
20317         * configure: Regenerated.
20318         * config-name.in: File removed.
20319         * scripts/config-uname.sh: New file.
20320         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20321         ($(objdir)config-name.h): New target.
20322
20323         * sunrpc/rpc_parse.h: Avoid nested comment.
20324
20325 2010-08-24  Richard Henderson  <rth@redhat.com>
20326             Ulrich Drepper  <drepper@redhat.com>
20327             H.J. Lu  <hongjiu.lu@intel.com>
20328
20329         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20330         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20331         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20332         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20333         _mm_alignr_epi8 with _mm_loadu_si128.
20334         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20335         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20336         (__m128i_shift_right): Removed.
20337         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20338         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20339         * sysdeps/x86_64/multiarch/varshift.h: New file.
20340         * sysdeps/x86_64/multiarch/varshift.S: New file.
20341
20342 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20343
20344         * configure.in: Move assembler checks to before sysdep dir checking.
20345
20346 2010-08-20  Petr Baudis  <pasky@suse.cz>
20347
20348         * LICENSES: Sync the sunrpc license.
20349
20350 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20351
20352         * sunrpc/auth_des.c: Update copyright notice once again.
20353         * sunrpc/auth_none.c: Likewise.
20354         * sunrpc/auth_unix.c: Likewise.
20355         * sunrpc/authdes_prot.c: Likewise.
20356         * sunrpc/authuxprot.c: Likewise.
20357         * sunrpc/bindrsvprt.c: Likewise.
20358         * sunrpc/clnt_gen.c: Likewise.
20359         * sunrpc/clnt_perr.c: Likewise.
20360         * sunrpc/clnt_raw.c: Likewise.
20361         * sunrpc/clnt_simp.c: Likewise.
20362         * sunrpc/clnt_tcp.c: Likewise.
20363         * sunrpc/clnt_udp.c: Likewise.
20364         * sunrpc/clnt_unix.c: Likewise.
20365         * sunrpc/des_crypt.c: Likewise.
20366         * sunrpc/des_soft.c: Likewise.
20367         * sunrpc/get_myaddr.c: Likewise.
20368         * sunrpc/getrpcport.c: Likewise.
20369         * sunrpc/key_call.c: Likewise.
20370         * sunrpc/key_prot.c: Likewise.
20371         * sunrpc/openchild.c: Likewise.
20372         * sunrpc/pm_getmaps.c: Likewise.
20373         * sunrpc/pm_getport.c: Likewise.
20374         * sunrpc/pmap_clnt.c: Likewise.
20375         * sunrpc/pmap_prot.c: Likewise.
20376         * sunrpc/pmap_prot2.c: Likewise.
20377         * sunrpc/pmap_rmt.c: Likewise.
20378         * sunrpc/rpc/auth.h: Likewise.
20379         * sunrpc/rpc/auth_unix.h: Likewise.
20380         * sunrpc/rpc/clnt.h: Likewise.
20381         * sunrpc/rpc/des_crypt.h: Likewise.
20382         * sunrpc/rpc/key_prot.h: Likewise.
20383         * sunrpc/rpc/netdb.h: Likewise.
20384         * sunrpc/rpc/pmap_clnt.h: Likewise.
20385         * sunrpc/rpc/pmap_prot.h: Likewise.
20386         * sunrpc/rpc/pmap_rmt.h: Likewise.
20387         * sunrpc/rpc/rpc.h: Likewise.
20388         * sunrpc/rpc/rpc_des.h: Likewise.
20389         * sunrpc/rpc/rpc_msg.h: Likewise.
20390         * sunrpc/rpc/svc.h: Likewise.
20391         * sunrpc/rpc/svc_auth.h: Likewise.
20392         * sunrpc/rpc/types.h: Likewise.
20393         * sunrpc/rpc/xdr.h: Likewise.
20394         * sunrpc/rpc_clntout.c: Likewise.
20395         * sunrpc/rpc_cmsg.c: Likewise.
20396         * sunrpc/rpc_common.c: Likewise.
20397         * sunrpc/rpc_cout.c: Likewise.
20398         * sunrpc/rpc_dtable.c: Likewise.
20399         * sunrpc/rpc_hout.c: Likewise.
20400         * sunrpc/rpc_main.c: Likewise.
20401         * sunrpc/rpc_parse.c: Likewise.
20402         * sunrpc/rpc_parse.h: Likewise.
20403         * sunrpc/rpc_prot.c: Likewise.
20404         * sunrpc/rpc_sample.c: Likewise.
20405         * sunrpc/rpc_scan.c: Likewise.
20406         * sunrpc/rpc_scan.h: Likewise.
20407         * sunrpc/rpc_svcout.c: Likewise.
20408         * sunrpc/rpc_tblout.c: Likewise.
20409         * sunrpc/rpc_util.c: Likewise.
20410         * sunrpc/rpc_util.h: Likewise.
20411         * sunrpc/rpcinfo.c: Likewise.
20412         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20413         * sunrpc/rpcsvc/key_prot.x: Likewise.
20414         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20415         * sunrpc/rpcsvc/mount.x: Likewise.
20416         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20417         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20418         * sunrpc/rpcsvc/rex.x: Likewise.
20419         * sunrpc/rpcsvc/rstat.x: Likewise.
20420         * sunrpc/rpcsvc/rusers.x: Likewise.
20421         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20422         * sunrpc/rpcsvc/spray.x: Likewise.
20423         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20424         * sunrpc/rtime.c: Likewise.
20425         * sunrpc/svc.c: Likewise.
20426         * sunrpc/svc_auth.c: Likewise.
20427         * sunrpc/svc_authux.c: Likewise.
20428         * sunrpc/svc_raw.c: Likewise.
20429         * sunrpc/svc_run.c: Likewise.
20430         * sunrpc/svc_simple.c: Likewise.
20431         * sunrpc/svc_tcp.c: Likewise.
20432         * sunrpc/svc_udp.c: Likewise.
20433         * sunrpc/svc_unix.c: Likewise.
20434         * sunrpc/svcauth_des.c: Likewise.
20435         * sunrpc/xcrypt.c: Likewise.
20436         * sunrpc/xdr.c: Likewise.
20437         * sunrpc/xdr_array.c: Likewise.
20438         * sunrpc/xdr_float.c: Likewise.
20439         * sunrpc/xdr_mem.c: Likewise.
20440         * sunrpc/xdr_rec.c: Likewise.
20441         * sunrpc/xdr_ref.c: Likewise.
20442         * sunrpc/xdr_sizeof.c: Likewise.
20443         * sunrpc/xdr_stdio.c: Likewise.
20444
20445         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20446         handling.
20447
20448 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20449
20450         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20451
20452 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20453
20454         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20455         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20456         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20457         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20458         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20459         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20460         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20461         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20462         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20463         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20464         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20465         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20466         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20467         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20468
20469 2010-07-26  Anton Blanchard  <anton@samba.org>
20470
20471         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20472         * malloc/arena.c (heap_trim): Likewise.
20473
20474 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20475
20476         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20477         here.  Not...
20478         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20479         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20480
20481 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20482
20483         * sysdeps/i386/elf/Makefile: New file.
20484
20485 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20486
20487         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20488         from fanotify_init.
20489         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20490         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20491
20492 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20493
20494         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20495         of strncasecmp_l.
20496         * sysdeps/multiarch/strcmp.S: Likewise.
20497
20498 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20499
20500         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20501         strncase_l-nonascii.
20502         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20503         Add strncase_l-ssse3.
20504         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20505         * sysdeps/x86_64/strcmp.S: Likewise.
20506         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20507         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20508         * sysdeps/x86_64/strncase.S: New file.
20509         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20510         * sysdeps/x86_64/strncase_l.S: New file.
20511         * string/Makefile (strop-tests): Add strncasecmp.
20512         * string/test-strncasecmp.c: New file.
20513
20514         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20515         warning.
20516
20517         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20518         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20519
20520 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20521
20522         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20523
20524 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20525
20526         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20527         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20528         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20529
20530 2010-05-01  Alan Modra  <amodra@gmail.com>
20531
20532         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20533         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20534         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20535         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20536         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20537         tidying.  Don't tail-call __sigjmp_save for static lib.
20538         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20539         save location.
20540         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20541         (CALL_MCOUNT): Add eh info, and nop after bl.
20542         (TAIL_CALL_SYSCALL_ERROR): New macro.
20543         (PSEUDO_RET): Use it.
20544         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20545         Correct save location of integer regs and cr.
20546         (_dl_profile_resolve): Correct cr save location.  Delete nops
20547         after bl when SHARED.  Reduce cfi size a little by better
20548         placement of cfi directives.
20549         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20550         make a stack frame.  Instead use parm save area as a temp.
20551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20552         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20554         Don't make a stack frame for parent, use parm save area.
20555         Increase child stack frame to 112 bytes.  Don't save unused reg,
20556         and adjust reg usage.  Set up cfi on error recovery and
20557         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20559         (__makecontext): Add dummy nop after jump to exit.
20560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20561         Use correct parm save area and cr save, reduce stack frame.
20562         Correct cfi for possible PSEUDO_RET frame setup.
20563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20564         Branch to local label emitted by PSEUDO_RET rather than
20565         __syscall_error.
20566
20567 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20568
20569         [BZ #11904]
20570         * locale/programs/locale.c (print_assignment): New function.
20571         (show_locale_vars): Use it.
20572
20573 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20574
20575         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20576         field.
20577         (struct statfs64): Likewise.
20578         (_STATFS_F_FLAGS): Define.
20579         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20580         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20581         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20582         (ST_VALID): Define locally.
20583         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20584         __statvfs_getflags, use the provided value.
20585         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20586         __ASSUME_STATFS_F_FLAGS.
20587
20588         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20589
20590         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20591         Add sys/fanotify.h.
20592         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20593         fanotify_mask for GLIBC_2.13.
20594         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20595         fanotify_init and fanotify_mark.
20596         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20597         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20598
20599         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20600         Add prlimit.
20601         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20602         prlimit64 for GLIBC_2.13.
20603         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20604         prlimit64.
20605         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20606         syscall.
20607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20608         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20609         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20610         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20611         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20612         add prlimit alias.
20613         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20614
20615         [BZ #11903]
20616         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20617         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20618
20619         * nss/Makefile: Add rules to build and run tst-nss-test1.
20620         * shlib-versions: Add entry for libnss_test1.
20621         * nss/nss_test1.c: New file.
20622         * nss/tst-nss-test1.c: New file.
20623
20624         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20625         (__nss_configure_lookup): Set appropriate entry in
20626         __nss_configure_lookup to true.
20627         * nss/nsswitch.h: Define enum with indeces of databases in
20628         databases and __nss_database_custom arrays.  Declare
20629         __nss_database_custom.
20630         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20631         to avoid using nscd when custom rules are installed.
20632         * nss/getXXbyYY_r.c: Likewise.
20633         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20634
20635         * nss/nss_files/files-parse.c: Whitespace fixes.
20636
20637 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20638
20639         [BZ #11883]
20640         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20641         * posix/fnmatch_loop.c: Likewise.
20642
20643 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20644
20645         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20646         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20647         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20648         * Versions.def [GLIBC_2.13]: Add.
20649
20650 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20651
20652         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20653         Also fail if tpwd after pwuid call is NULL.
20654
20655 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20656
20657         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20658         when converting to ms.
20659
20660 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20661
20662         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20663         EOPNOTSUPP errors with ENOTTY.
20664         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20665         EOPNOTSUPP errors with ENOTTY.
20666
20667 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20668
20669         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20670         Add strcasecmp_l-ssse3.
20671         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20672         strcasecmp.
20673         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20674         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20675         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20676
20677 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20678
20679         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20680
20681         * string/Makefile (strop-tests): Add strcasecmp.
20682         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20683         strcasecmp_l-nonascii.
20684         (gen-as-const-headers): Add locale-defines.sym.
20685         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20686         * sysdeps/x86_64/strcasecmp.S: New file.
20687         * sysdeps/x86_64/strcasecmp_l.S: New file.
20688         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20689         * sysdeps/x86_64/locale-defines.sym: New file.
20690         * string/test-strcasecmp.c: New file.
20691
20692         * string/test-strcasestr.c: Test both ends of the range of characters.
20693         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20694
20695 2010-07-29  Roland McGrath  <roland@redhat.com>
20696
20697         [BZ #11856]
20698         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20699
20700 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20701
20702         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20703         for ld.so.
20704
20705 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20706
20707         * manual/memory.texi (Malloc Tunable Parameters): Document
20708         M_PERTURB.
20709
20710 2010-07-26  Roland McGrath  <roland@redhat.com>
20711
20712         [BZ #11840]
20713         * configure.in (-fgnu89-inline check): Set and substitute
20714         gnu89_inline, not libc_cv_gnu89_inline.
20715         * configure: Regenerated.
20716         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20717
20718 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20719
20720         * string/test-strnlen.c: New file.
20721         * string/Makefile (strop-tests): Add strnlen.
20722         * string/tester.c (test_strnlen): Add a few more test cases.
20723         * string/tst-strlen.c: Better error reporting.
20724
20725         * sysdeps/x86_64/strnlen.S: New file.
20726
20727 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20728
20729         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20730         lower-latency instructions.
20731
20732 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20733
20734         * string/test-strcasestr.c: New file.
20735         * string/test-strstr.c: New file.
20736         * string/Makefile (strop-tests): Add strstr and strcasestr.
20737         * string/str-two-way.h: Don't undefine MAX.
20738         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20739
20740 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20741
20742         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20743         strcasestr-nonascii.
20744         (CFLAGS-strcasestr-nonascii.c): Define.
20745         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20746         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20747         Remove unused attribute.
20748
20749 2010-07-20  Roland McGrath  <roland@redhat.com>
20750
20751         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20752         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20753         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20754         like LD_HWCAP_MASK can disable hwcaps.
20755
20756 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20757
20758         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20759
20760 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20761
20762         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20763         call in strcasestr.
20764         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20765         __strcasestr_sse42_nonascii.
20766         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20767         strcasestr-nonascii.c.
20768         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20769
20770 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20771
20772         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20773         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20774         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20775         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20776
20777 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20778
20779         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20780         fcntl.
20781
20782 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20783
20784         [BZ #11577]
20785         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20786         dl_signal_cerror.
20787
20788 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20789
20790         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20791         _PC_PIPE_BUF using F_GETPIPE_SZ.
20792
20793 2010-07-05  Roland McGrath  <roland@redhat.com>
20794
20795         * manual/arith.texi (Rounding Functions): Fix rint description
20796         implicit in round description.
20797
20798 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20799
20800         * elf/Makefile: Fix linking for a few tests to make recent linker
20801         happy.
20802
20803 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20804
20805         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20806         $(common-objpfx)libc_nonshared.a.
20807
20808 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20809
20810         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20811         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20812         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20813         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20814         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20815         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20816         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20817         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20832         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20833         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20834         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20835         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20836         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20837         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20838         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20839         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20840         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20841         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20842         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20843         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20858
20859 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20860
20861         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20862         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20863         * string/memmove.c (memmove): Renamed to ...
20864         (MEMMOVE): ...this.  Default to memmove.
20865         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20866         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20867         (END_CHK): Define.
20868         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20869         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20870         mempcpy-ssse3-back memmove-ssse3-back.
20871         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20872         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20873         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20874         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20875         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20876         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20877         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20878         * sysdeps/x86_64/multiarch/memmove.c: New file.
20879         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20880         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20881         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20882         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20883         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20884         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20885         Define.
20886         (index_Fast_Copy_Backward): Define.
20887         (HAS_ARCH_FEATURE): Define.
20888         (HAS_FAST_REP_STRING): Define.
20889         (HAS_FAST_COPY_BACKWARD): Define.
20890
20891 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20892
20893         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20894         Restore proper fallback handling.
20895
20896 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20897
20898         [BZ #11701]
20899         * posix/group_member.c (__group_member): Correct checking loop.
20900
20901         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20902         OOM in getpwuid_r correctly.  Return error number when the caller
20903         should return, otherwise -1.
20904         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20905         call returning > 0 value.
20906         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20907
20908 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20909
20910         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20911         libc_nonshared.a from targets in modules-names.
20912
20913 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20914
20915         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20916         requires it.
20917
20918 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20919
20920         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20921         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20922         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20923         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20924
20925 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20926
20927         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20928
20929 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20930
20931         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20932         and F_GETPIPE_SZ.
20933         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20934         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20935         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20936         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20937         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20938         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20939
20940 2010-06-14  Roland McGrath  <roland@redhat.com>
20941
20942         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20943
20944 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20945
20946         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20947         __REDIRECT followed by __THROW.
20948         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20949         * posix/getopt.h (getopt): Likewise.
20950
20951 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20952
20953         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20954         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20955         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20956         in AT_FLAGS.
20957         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20958         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20959
20960 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20961
20962         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20963
20964 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20965
20966         [BZ #11640]
20967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20968         Properly check family and model.
20969
20970 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20971
20972         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20973
20974 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20975
20976         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20977
20978 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20979
20980         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20981         symbol reference.
20982
20983 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20984
20985         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20986         symbol reference.
20987
20988 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20989
20990         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20991         and internal_recvmmsg.
20992         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20993         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20994         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20995         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20996
20997         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20998         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20999         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21000
21001 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21002
21003         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21004
21005 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21006
21007         POWER7 optimizations.
21008         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21009         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21010
21011 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21012
21013         * version.h: Update for 2.13 development version.
21014
21015 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21016
21017         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21018         exceptions.  Return 0.
21019
21020 2010-05-07  Roland McGrath  <roland@redhat.com>
21021
21022         * elf/ldconfig.c (main): Add a const.
21023
21024 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21025
21026         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21027         (args_options): Add no-idn option.
21028         (ahosts_keys_int): Add idn_flags to ai_flags.
21029         (parse_option): Handle 'i' option to clear idn_flags.
21030
21031         * malloc/malloc.c (_int_free): Possible race in the most recently
21032         added check.  Only act on the data if no current modification
21033         happened.
21034
21035 See ChangeLog.17 for earlier changes.