Fix fma underflow exceptions in after-rounding edge cases.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
4         (__fma): Do not extract and scale down low bits on after-rounding
5         systems when result rounded to normal precision would have normal
6         exponent.
7         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
8         (__fmal): Do not extract and scale down low bits on after-rounding
9         systems when result rounded to normal precision would have normal
10         exponent.
11         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
12         (__fmal): Do not extract and scale down low bits on after-rounding
13         systems when result rounded to normal precision would have normal
14         exponent.
15         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
16         macro.
17         (fma_test): Add more tests.
18         (fma_test_towardzero): Likewise.
19         (fma_test_downward): Likewise.
20         (fma_test_upward): Likewise.
21
22 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
23
24         * sysdeps/i386/tininess.h: Renamed to ...
25         * sysdeps/x86/tininess.h: This.
26         * sysdeps/x86_64/tininess.h: Removed.
27
28 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
29
30         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
31         input.  Use $(build-program-cmd).
32         ($(objpfx)tst-array1-static.out): Likewise.
33         ($(objpfx)tst-array2.out): Likewise.
34         ($(objpfx)tst-array3.out): Likewise.
35         ($(objpfx)tst-array4.out): Likewise.
36         ($(objpfx)tst-array5.out): Likewise.
37         ($(objpfx)tst-array5-static.out): Likewise.
38
39 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
40
41         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
42         if defined.
43
44         * nss/nsswitch.h (nss_interface_function): Provide new
45         macro for use with NSS functions.
46         * grp/initgroups.c: Use new macro.
47         * nss/getXXbyYY.c: Likewise.
48         * nss/getXXbyYY_r.c: Likewise.
49         * nss/getXXent.c: Likewise.
50         * nss/getXXent_r.c: Likewise.
51         * sysdeps/posix/getaddrinfo.c: Likewise.
52
53 2012-10-30  Andreas Jaeger  <aj@suse.de>
54
55         * po/ru.po: Update Russion translation from translation project.
56
57 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
58
59         [BZ #14152]
60         [BZ #14783]
61         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
62         result and shift together with sticky bit instead of replicating
63         round-to-nearest rounding.
64         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
65         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
66         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
67         missing underflow exceptions.
68         (fma_test_towardzero): Add more tests.
69         (fma_test_downward): Likewise.
70         (fma_test_upward): Likewise.
71
72         [BZ #14047]
73         * sysdeps/generic/tininess.h: New file.
74         * sysdeps/i386/tininess.h: Likewise.
75         * sysdeps/sh/tininess.h: Likewise.
76         * sysdeps/x86_64/tininess.h: Likewise.
77         * stdlib/tst-strtod-underflow.c: Likewise.
78         * stdlib/tst-tininess.c: Likewise.
79         * stdlib/strtod_l.c: Include <tininess.h>.
80         (round_and_return): Do not set errno for exact underflow cases.
81         Force an underflow exception when setting errno for underflow.
82         Determine underflow based on rounding to normal precision if
83         TININESS_AFTER_ROUNDING.
84         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
85         ERANGE for exact underflow cases.
86         * stdlib/Makefile (tests): Add tst-tininess and
87         tst-strtod-underflow.
88         ($(objpfx)tst-tininess): Use $(link-libm).
89         ($(objpfx)tst-strtod-underflow): Likewise.
90
91 2012-10-30  Andreas Jaeger  <aj@suse.de>
92
93         [BZ#14767]
94         * elf/Makefile (tests): Remove conditional for have-initfini-array
95         since this is now always required and the variable does not exist
96         anymore.
97         (tests-static): Likewise.
98         (modules-names): Likewise.
99
100         * po/eo.po: Add Esperanto translation from translation project.
101
102         * elf/tst-array1.c (fini_array): Make writeable so that it can be
103         merged with constructor/destructor.
104         (init_array): Likewise.
105         * elf/tst-array2dep.c (fini_array): Likewise.
106         (init_array): Likewise.
107
108 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
109
110         * manual/message.texi: Delete @cartouche tags.
111
112 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
113
114         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
115         EOPNOTSUPP.
116         * sysdeps/mach/hurd/fsync.c: Likewise.
117
118         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
119         [_POSIX_REALTIME_SIGNALS]: Change condition to
120         [_POSIX_REALTIME_SIGNALS > 0].
121
122 2012-10-27  Andreas Jaeger  <aj@suse.de>
123
124         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
125         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
126         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
127         [__WORDSIZE != 64]: Likewise.
128
129 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
130
131         *  iconvdata/tst-table.sh: Remove ${SHELL}.
132         *  iconvdata/tst-tables.sh: Likewise.
133
134 2012-10-25  David S. Miller  <davem@davemloft.net>
135
136         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
137         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
138         of strtoull.
139
140         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
141         ifunc-impl-list.c
142         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
143         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
144         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
145         file.
146
147 2012-10-25  Roland McGrath  <roland@hack.frob.com>
148
149         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
150         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
151         __getdirentries.
152
153 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
154             Jim Blandy  <jimb@codesourcery.com>
155
156         * scripts/cross-test-ssh.sh: New file.
157         * manual/install.texi (Configuring and compiling): Document use of
158         cross-test-ssh.sh.
159         * INSTALL: Regenerated.
160
161 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
162
163         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
164         EOPNOTSUPP.
165
166 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
167
168         * Makeconfig (run-program-prefix): Fix comment.
169
170 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
171             Jim Blandy  <jimb@codesourcery.com>
172
173         * Makeconfig (test-wrapper): New variable,
174         (test-wrapper-env): Likewise.
175         [$(cross-compiling) = yes && $(test-wrapper) != ""]
176         (run-built-tests): Define to yes.
177         (run-program-prefix): Use $(test-wrapper).
178         (built-program-cmd): Likewise.
179         * Rules (make-test-out): Use $(test-wrapper-env) and
180         $(host-built-program-cmd).
181         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
182         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
183         tst-pathopt.sh.
184         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
185         $(test-wrapper-env) to tst-rtld-load-self.sh.
186         ($(objpfx)order2.out): Use $(test-wrapper).
187         ($(objpfx)tst-initorder.out): Likewise.
188         ($(objpfx)tst-initorder2.out): Likewise.
189         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
190         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
191         (test_wrapper_env): New variable.  Use it to run ld.so.
192         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
193         Use it to run ld.so.
194         (test_wrapper_env): Likewise.
195         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
196         $(test-wrapper) to run-iconv-test.sh.
197         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
198         (ICONV): Use $test_wrapper.
199         * posix/Makefile ($(objpfx)globtest.out): Pass
200         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
201         globtest.sh, not $(run-program-prefix).
202         * posix/globtest.sh (run_via_rtld_prefix): New variable.
203         (test_wrapper): Likewise.
204         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
205         set together with run_via_rtld_prefix.
206         (run_program_prefix): Define in terms of test_wrapper and
207         run_via_rtld_prefix.
208
209 2012-10-24  Roland McGrath  <roland@hack.frob.com>
210
211         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
212         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
213         Targets removed.
214
215         [BZ #14743]
216         * include/time.h: Remove librt_hidden_proto (clock_gettime).
217         Declare __clock_getres, __clock_gettime, __clock_settime,
218         __clock_nanosleep, and __clock_getcpuclockid.
219         * rt/clock_gettime.c: Define __clock_gettime as an alias.
220         Remove librt_hidden_def (clock_gettime).
221         * sysdeps/unix/clock_gettime.c: Likewise.
222         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
223         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
224         * rt/clock_getres.c: Define __clock_getres as an alias.
225         * sysdeps/posix/clock_getres.c: Likewise.
226         * rt/clock_settime.c: Define __clock_settime as an alias.
227         * sysdeps/unix/clock_settime.c: Likewise.
228         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
229         * sysdeps/unix/clock_nanosleep.c: Likewise.
230         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
231         * rt/clock-compat.c: New file.
232         * rt/Makefile (librt-routines): Add clock-compat and move
233         $(clock-routines) to ...
234         (routines): ... here, new variable.
235         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
236         Don't add get_clockfreq here.
237         * rt/Versions (libc: GLIBC_2.17): New version set.
238         Add clock_* symbols here.
239         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
240         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
241         (GLIBC_2.17): Add clock_* symbols.
242         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
243         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
244         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
246         Likewise.
247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
248         Likewise.
249         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
251         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
252         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
253         * NEWS: Mention the move.
254
255         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
256         Use __open, __read, __close rather than their public counterparts.
257         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
258         (__get_clockfreq_via_cpuinfo): Likewise.
259         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
260         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
261
262         * config.h.in (HAVE_IFUNC): New #undef.
263         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
264         was successful.
265         * configure: Regenerated.
266
267 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
268
269         * configure.in: Move READELF check to start of file.
270         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
271         libc_cv_asm_gnu_indirect_function in the process.
272         * configure: Regenerated.
273
274 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
275
276         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
277         send the output to /dev/null.
278         (libc_cv_cc_with_libunwind): Likewise.
279         (libc_cv_as_noexecstack): Likewise.
280         * configure: Regenerate.
281
282 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
283
284         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
285
286         * posix/globtest.sh (TMPDIR): Do not set.
287         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
288         (testout): Likewise.
289
290 2012-10-24  Andreas Jaeger  <aj@suse.de>
291
292         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
293         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
294         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
295         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
296         posix_fadvise64, posix_fallocate64.
297
298         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
299         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
300         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
301         Likewise.
302         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
303         Likewise.
304         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
305
306         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
307         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
308         <bits/fcntl-linux.h>.
309         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
310
311         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
312         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
313         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
314         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
315         [__WORDSIZE != 64]: Likewise.
316
317 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
318
319         * Makeconfig (run-built-tests): New variable.
320         * Rules [$(cross-compiling) = yes]: Change condition to
321         [$(run-built-tests) = no].
322         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
323         to [$(run-built-tests) = yes].
324         * elf/Makefile [$(cross-compiling) = no]: Likewise
325         * grp/Makefile [$(cross-compiling) = no]: Likewise.
326         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
327         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
328         * intl/Makefile [$(cross-compiling) = no]: Likewise.
329         * io/Makefile [$(cross-compiling) = no]: Likewise.
330         * libio/Makefile [$(cross-compiling) = no]: Likewise.
331         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
332         * misc/Makefile [$(cross-compiling) = no]: Likewise.
333         * posix/Makefile [$(cross-compiling) = no]: Likewise.
334         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
335         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
336         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
337         * string/Makefile [$(cross-compiling) = no]: Likewise.
338
339         * posix/Makefile ($(objpfx)globtest.out): Pass
340         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
341         $(rtld-installed-name).
342         * posix/globtest.sh (elf_objpfx): Remove variable.
343         (rtld_installed_name): Likewise.
344         (library_path): Likewise.
345         (run_program_prefix): New variable.  Use for running globtest
346         binary.
347
348 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
349             Joseph Myers  <joseph@codesourcery.com>
350
351         * Makeconfig (host-built-program-cmd): New variable.
352         * elf/Makefile (tst-stackguard1-ARGS): Use
353         $(host-built-program-cmd).
354         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
355         (tst-spawn-ARGS): Likewise.
356         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
357
358 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
359             Jim Blandy  <jimb@codesourcery.com>
360
361         * Makeconfig (run-via-rtld-prefix): New variable.
362         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
363         (built-program-cmd): Likewise.
364
365 2012-10-22  Andreas Jaeger  <aj@suse.de>
366
367         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
368         __O_RSYNC if it exists, otherwise to O_SYNC.
369
370 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
371             Joseph Myers  <joseph@codesourcery.com>
372
373         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
374         /dev/null.
375         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
376         from /dev/null
377         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
378         /dev/null.
379
380 2012-10-22  Andreas Jaeger  <aj@suse.de>
381
382         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
383         Define always.
384         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
385
386         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
387         bits/fcntl-linux.h.
388
389         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
390         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
391
392         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
393         to __O_LARGEFILE.
394         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
395         to __O_LARGEFILE.
396
397 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
398             Joseph Myers  <joseph@codesourcery.com>
399
400         * config.make.in (NM): New variable.
401
402 2012-10-21  Andreas Jaeger  <aj@suse.de>
403
404         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
405         definitions and declarations that are provided by
406         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
407
408 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
409
410         [BZ #14683]
411         * elf/Makefile (tests-static): Add tst-leaks1-static.
412         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
413         ($(objpfx)tst-leaks1-static): New rule.
414         ($(objpfx)tst-leaks1-static-mem): Likewise.
415         (tst-leaks1-static-ENV): New macro.
416         * elf/dl-open.c (dl_open_worker): Check the main application
417         only if SHARED is defined.
418         * elf/tst-leaks1-static.c: New file.
419
420 2012-10-20  Andreas Jaeger  <aj@suse.de>
421
422         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
423         generic values for Linux.
424         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
425         and declarations that are provided by <bits/fcntl-linux.h> and
426         include <bits/fcntl-linux.h>.
427         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
428         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
429
430 2012-10-20  Roland McGrath  <roland@hack.frob.com>
431
432         * io/fcntl.h: Move include of <bits/types.h> to the top and
433         include it unconditionally.
434
435 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
436
437         * wcsmbs/Makefile (tests-ifunc): New variable.
438         (tests): Add $(tests-ifunc).
439         * wcsmbs/test-wcschr-ifunc.c: New file.
440         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
441         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
442         * wcsmbs/test-wcslen-ifunc.c: Likewise.
443         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
444         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
445
446         * string/Makefile (tests-ifunc): New variable.
447         (tests): Add $(tests-ifunc).
448         * string/test-memccpy.c (TEST_NAME): New macro.
449         * string/test-memchr.c (TEST_NAME): Likewise.
450         * string/test-memcmp.c (TEST_NAME): Likewise.
451         * string/test-memcpy.c (TEST_NAME): Likewise.
452         * string/test-memmem.c (TEST_NAME): Likewise.
453         * string/test-memmove.c (TEST_NAME): Likewise.
454         * string/test-memset.c (TEST_NAME): Likewise.
455         * string/test-rawmemchr.c (TEST_NAME): Likewise.
456         * string/test-stpcpy.c (TEST_NAME): Likewise.
457         * string/test-stpncpy.c (TEST_NAME): Likewise.
458         * string/test-strcasecmp.c (TEST_NAME): Likewise.
459         * string/test-strcasestr.c (TEST_NAME): Likewise.
460         * string/test-strcat.c (TEST_NAME): Likewise.
461         * string/test-strchr.c (TEST_NAME): Likewise.
462         * string/test-strcmp.c(TEST_NAME): Likewise.
463         * string/test-strcpy.c (TEST_NAME): Likewise.
464         * string/test-strcspn.c (TEST_NAME): Likewise.
465         * string/test-strlen.c (TEST_NAME): Likewise.
466         * string/test-strncasecmp.c (TEST_NAME): Likewise.
467         * string/test-strncmp.c (TEST_NAME): Likewise.
468         * string/test-strncpy.c (TEST_NAME): Likewise.
469         * string/test-strnlen.c (TEST_NAME): Likewise.
470         * string/test-strpbrk.c (TEST_NAME): Likewise.
471         * string/test-strrchr.c (TEST_NAME): Likewise.
472         * string/test-strspn.c (TEST_NAME): Likewise.
473         * string/test-strstr.c (TEST_NAME): Likewise.
474         * string/test-bcopy-ifunc.c: New file.
475         * string/test-bzero-ifunc.c: Likewise.
476         * string/test-memccpy-ifunc.c: Likewise.
477         * string/test-memchr-ifunc.c: Likewise.
478         * string/test-memcmp-ifunc.c: Likewise.
479         * string/test-memcpy-ifunc.c: Likewise.
480         * string/test-memmem-ifunc.c: Likewise.
481         * string/test-memmove-ifunc.c: Likewise.
482         * string/test-mempcpy-ifunc.c: Likewise.
483         * string/test-memset-ifunc.c: Likewise.
484         * string/test-rawmemchr-ifunc.c: Likewise.
485         * string/test-stpcpy-ifunc.c: Likewise.
486         * string/test-stpncpy-ifunc.c: Likewise.
487         * string/test-strcasecmp-ifunc.c: Likewise.
488         * string/test-strcasestr-ifunc.c: Likewise.
489         * string/test-strcat-ifunc.c: Likewise.
490         * string/test-strchr-ifunc.c: Likewise.
491         * string/test-strchrnul-ifunc.c: Likewise.
492         * string/test-strcmp-ifunc.c: Likewise.
493         * string/test-strcpy-ifunc.c: Likewise.
494         * string/test-strcspn-ifunc.c: Likewise.
495         * string/test-strlen-ifunc.c: Likewise.
496         * string/test-strncasecmp-ifunc.c: Likewise.
497         * string/test-strncat-ifunc.c: Likewise.
498         * string/test-strncmp-ifunc.c: Likewise.
499         * string/test-strncpy-ifunc.c: Likewise.
500         * string/test-strnlen-ifunc.c: Likewise.
501         * string/test-strpbrk-ifunc.c: Likewise.
502         * string/test-strrchr-ifunc.c: Likewise.
503         * string/test-strspn-ifunc.c: Likewise.
504         * string/test-strstr-ifunc.c: Likewise.
505
506         * debug/Makefile (tests-ifunc): New variable.
507         (tests): Add $(tests-ifunc).
508         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
509         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
510         * debug/test-stpcpy_chk-ifunc.c: New file.
511         * debug/test-strcpy_chk-ifunc.c: Likewise.
512
513 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
514
515         [BZ #13601]
516         * elf/dl-load.c (open_verify): Retry read if the entire ELF
517         header is not read in.
518
519 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
520
521         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
522         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
523         directly.  Pass built executable to script as
524         $(built-program-cmd).
525         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
526         $testprogram without using LD_LIBRARY_PATH and $ldso.
527
528         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
529         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
530         $(rtld-installed-name).
531         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
532         (rtld_installed_name): Likewise.
533         (library_path): Likewise.
534         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
535         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
536         $(run-program-prefix) to tst-tables.sh.
537         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
538         it to run tst-table-from and tst-table-to.
539         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
540         Pass it to tst-table.sh.
541         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
542         $(run-program-prefix) to tst-gettext.sh.
543         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
544         tst-translit.sh.
545         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
546         tst-gettext2.sh.
547         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
548         to run tst-gettext.
549         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
550         to run tst-gettext2.
551         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
552         to run tst-translit.
553         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
554         $(run-program-prefix) to tst-mtrace.sh.
555         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
556         to run tst-mtrace.
557         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
558         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
559         $(rtld-installed-name).
560         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
561         (rtld_installed_name): Likewise.
562         (run_program_prefix): New variable.  Use it to run wordexp-test.
563
564         * Makeconfig (ARCH): Remove all definitions.
565         (machine): Likewise.
566         [ARCH]: Remove conditional code.
567         [!objdir]: Give error.
568         [!objdir] (objpfx): Remove.
569         [!objdir] (common-objpfx): Likewise.
570         [!objdir] (common-objdir): Likewise.
571         * configure.in (config_makefile): Remove.  Hardcode Makefile in
572         AC_CONFIG_FILES call.
573         * configure: Regenerated.
574
575         [BZ #13888]
576         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
577         or TMPDIR.
578         (testout): Likewise.
579
580         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
581         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
582         $(rtld-installed-name).
583         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
584         (rtld_installed_name): Likwise.
585         (runit): Remove function.
586         (run_getconf): New variable,  Use it for running getconf binary.
587
588 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
589
590         [BZ #14716]
591         * string/test-memmem.c (check_result): New function.
592         (do_one_test): Use it.
593         (check1): New function.
594         (test_main): Use it.
595
596 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
597
598         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
599
600 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
601
602         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
603         (_G_LSEEK64): Likewise.
604         (_G_MMAP64): Likewise.
605         (_G_FSTAT64): Likewise.
606         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
607         (_G_LSEEK64): Likewise.
608         (_G_MMAP64): Likewise.
609         (_G_FSTAT64): Likewise.
610         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
611         unconditional.  Call __mmap64 directly.
612         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
613         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
614         __lseek64 directly.
615         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
616         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
617         __mmap64 directly.
618         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
619         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
620         __lseek64 directly.
621         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
622         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
623         __lseek64 directly.
624         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
625         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
626         __lseek64 directly.
627         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
628         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
629         __fxstat64 directly.
630         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
631         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
632         unconditional.
633         (freopen64) [!_G_OPEN64]: Remove conditional code.
634         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
635         unconditional.
636         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
637         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
638         unconditional.
639         (ftello64) [!_G_LSEEK64]: Remove conditional code.
640         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
641         unconditional.
642         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
643         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
644         unconditional.
645         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
646         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
647         unconditional.
648         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
649         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
650         unconditional.
651         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
652         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
653         unconditional.
654         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
655
656 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
657
658         [BZ #12140]
659         * manual/memory.texi (Malloc Tunable Parameters): Add note
660         about free list pointers overwriting some perturb bytes.
661         Wording suggested by Roland McGrath.
662
663 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
664
665         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
666         (lgamma_test): Likewise.
667         (tgamma_test): Likewise.
668
669 2012-10-16  Florian Weimer  <fweimer@redhat.com>
670
671         [BZ #14700]
672         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
673         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
674
675 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
676
677         * NEWS: Mention BZ #14716.
678         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
679         when removing AVAILABLE1_USES_J macro.
680
681 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
682
683         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
684         (__bswap_64): __uint64_t for unsigned 64-bit int.
685
686 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
687
688         * include/string.h (memmem): Declare libc hidden alias.
689         * string/memmem.c (memmem): Define libc hidden alias.
690         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
691         __read, __close instead of open, read, close.
692
693 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
694
695         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
696         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
697         global and hidden.
698         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
699         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
700         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
701         Likewise.
702         (__rawmemchr_sse2): Likewise.
703         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
704         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
705         (__strchr_sse2): Likewise.
706         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
707         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
708         (__strcasecmp_sse2): Likewise.
709         (__strncasecmp_sse2): Likewise.
710         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
711         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
712         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
713         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
714         (__strrchr_sse2): Likewise.
715         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
716         ifunc-impl-list.c.
717         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
718         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
719         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
720         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
721         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
722         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
723         * sysdeps/x86_64/multiarch/memset.S: Likewise.
724         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
725         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
726         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
727         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
728         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
729         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
730         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
731         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
732         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
733         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
734         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
735         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
736         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
737         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
738         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
739         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
740         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
741         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
742         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
743         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
744         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
745         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
746         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
747
748         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
749         global and hidden.
750         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
751         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
752         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
753         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
754         Likewise.
755         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
756         Likewise.
757         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
758         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
759         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
760         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
761         ifunc-impl-list.c.
762         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
763         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
764         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
765         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
766         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
767         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
768         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
769         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
770         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
771         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
772         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
773         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
774         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
775         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
776         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
777         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
778         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
779         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
780         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
781         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
782         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
783         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
784         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
785         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
786         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
787         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
788         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
789         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
790         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
791         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
792         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
793         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
794         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
795         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
796         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
797         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
798         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
799         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
800         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
801         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
802         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
803
804         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
805         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
806         * include/ifunc-impl-list.h: New file.
807         * misc/ifunc-impl-list.c: Likewise.
808         * misc/Makefile (routines): Add ifunc-impl-list.
809         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
810         * string/test-string.h: Include <ifunc-impl-list.h>.
811         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
812         impl_array): New variables.
813         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
814         are defined.
815         (test_init): Call __libc_ifunc_impl_list to initialize
816         func_list if TEST_IFUNC and TEST_NAME are defined.
817
818         * string/Makefile (strop-tests): Add bcopy and bzero.
819         * string/test-bcopy.c: New file.
820         * string/test-bzero.c: Likewise.
821         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
822         defined.
823         * string/test-memset.c: Support bzero test if TEST_BZERO is
824         defined.
825         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
826         __libc_memmove.
827         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
828         __libc_memset.
829         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
830         of memset.
831
832 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
833
834         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
835         * configure: Regenerated.
836
837         * Makeconfig (+link-static-before-libc): Don't include
838         $(link-static-libc).
839
840         * libio/libio.h (_IO_pos_t): Remove.
841
842 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
843
844         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
845         McGrath.
846
847 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
848
849         * crypt/crypt-entry.c: Include fips-private.h.
850         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
851         * crypt/md5c-test.c (main): Tolerate disabled MD5.
852         * sysdeps/unix/sysv/linux/fips-private.h: New file.
853         * sysdeps/generic/fips-private.h: New file, dummy fallback.
854
855 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
856
857         * crypt/crypt-private.h: Include stdbool.h.
858         (_ufc_setup_salt_r): Return bool.
859         * crypt/crypt-entry.c: Include errno.h.
860         (__crypt_r): Return NULL with EINVAL for bad salt.
861         * crypt/crypt_util.c (bad_for_salt): New.
862         (_ufc_setup_salt_r): Check that salt is long enough and within
863         the specified alphabet.
864         * crypt/badsalttest.c: New file.
865         * crypt/Makefile (tests): Add it.
866         ($(objpfx)badsalttest): New.
867
868 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
869
870         * NEWS: Add entry for BZ #14602.
871
872 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
873
874         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
875         type-generic.
876         * math/libm-test.inc: Update comment listing what functions and
877         macros are tested.
878         (isgreater_test): New function.
879         (isgreaterequal_test): Likewise.
880         (isless_test): Likewise.
881         (islessequal_test): Likewise.
882         (islessgreater_test): Likewise.
883         (isunordered_test): Likewise.
884         (main): Call the new functions.
885
886 2012-10-09  Roland McGrath  <roland@hack.frob.com>
887
888         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
889         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
890         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
891         * sysdeps/i386/configure: Regenerated.
892         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
893         * sysdeps/mach/configure: Regenerated.
894         * sysdeps/mach/hurd/configure: Regenerated.
895         * sysdeps/powerpc/configure: Regenerated.
896         * sysdeps/powerpc/powerpc32/configure: Regenerated.
897         * sysdeps/powerpc/powerpc64/configure: Regenerated.
898         * sysdeps/s390/s390-32/configure: Regenerated.
899         * sysdeps/s390/s390-64/configure: Regenerated.
900         * sysdeps/sh/configure: Regenerated.
901         * sysdeps/sparc/configure: Regenerated.
902         * sysdeps/unix/sysv/linux/configure: Regenerated.
903         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
904         * sysdeps/x86_64/configure: Regenerated.
905
906         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
907         defined.  Don't check if MAP is NULL.
908
909 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
910
911         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
912         (_G_stat64): Likewise.
913         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
914         (_G_stat64): Likewise.
915         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
916         instead of struct _G_stat64.
917         * libio/fileops.c (mmap_remap_check): Likewise.
918         (decide_maybe_mmap): Likewise.
919         (_IO_new_file_seekoff): Likewise.
920         (_IO_file_stat): Likewise.
921         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
922         _G_off64_t.
923         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
924         instead of struct _G_stat64.
925         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
926
927 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
928
929         [BZ #14602]
930         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
931         Replace with ...
932         (CHECK_EOL): New macro.
933         (two_way_short_needle): Check beginning of haystack for EOL.  Use
934         CHECK_EOL.
935         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
936         Replace with CHECK_EOL.
937         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
938         Replace with CHECK_EOL.
939
940 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
941
942         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
943         type-generic.
944         * math/libm-test.inc: Update comment listing what functions and
945         macros are tested.
946         (finite_test): New function.
947         (isinf_test): Likewise.
948         (isnan_test): Likewise.
949         (fpclassify_test): Test subnormal input.
950         (isfinite_test): Likewise.
951         (isnormal_test): Likewise.
952         (main): Call the new functions.
953
954 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
955
956         [BZ #14660]
957         * Makerules (%.dynsym): Force C locale when running
958         $(OBJDUMP) --dynamic-syms.
959
960 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
961
962         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
963         <stdint.h>.
964
965 2012-10-06  David S. Miller  <davem@davemloft.net>
966
967         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
968         upper 32-bits of the length value in %o2 since we use branch-on-register
969         tests which consider the entire 64-bit register.
970
971 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
972
973         * string/test-strstr.c (check2): Add a test for page boundary.
974
975 2012-10-05  David S. Miller  <davem@davemloft.net>
976
977         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
978         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
979         file.
980         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
981         sysdep_routines.
982         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
983         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
984         and bzero when HWCAP_SPARC_CRYPTO is present.
985
986 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
987
988         [BZ #14602]
989         * string/test-strstr.c (check2): New function.
990         (test_main): Call check2.
991
992         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
993         and bug-strchr1.
994         * string/bug-strcasestr1.c (do_test): Moved to ...
995         * string/test-strcasestr.c (check1): Here.  New function.
996         (do_one_test): Break out result checking code into ...
997         (check_result): This.  New function.
998         (do_one_test): Call check_result.
999         (test_main): Call check1.
1000         * string/bug-strchr1.c (do_test): Moved to ...
1001         * string/test-strchr.c (check1): Here.  New function.
1002         (do_one_test): Break out result checking code into ...
1003         (check_result): This.  New function.
1004         (do_one_test): Call check_result.
1005         (test_main): Call check1.
1006         * string/bug-strstr1.c (main): Moved to ...
1007         * string/test-strchr.c (check1): Here.  New function.
1008         (do_one_test): Break out result checking code into ...
1009         (check_result): This.  New function.
1010         (do_one_test): Call check_result.
1011         (test_main): Call check1.
1012         * string/bug-strcasestr1.c: Removed.
1013         * string/bug-strchr1.c: Likewise.
1014         * string/bug-strstr1.c: Likewise.
1015
1016         * elf/Makefile (dl-routines): Add hwcaps.
1017         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1018         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1019         (_dl_important_hwcaps): Moved to ...
1020         * elf/dl-hwcaps.c: Here.  New file.
1021         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1022
1023         [BZ #14557]
1024         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1025         if IS_IN_rtld isn't defined.
1026
1027         * elf/dl-support.c (_dl_sysinfo_map): New.
1028         Include "get-dynamic-info.h" and "setup-vdso.h".
1029         (_dl_non_dynamic_init): Call setup_vdso.
1030         * elf/dynamic-link.h: Don't include <assert.h>.
1031         (elf_get_dynamic_info): Moved to ...
1032         * elf/get-dynamic-info.h: Here.  New file.
1033         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1034         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1035         * elf/setup-vdso.h: Here.  New file.
1036         * elf/rtld.c: Include "setup-vdso.h".
1037         (dl_main): Call setup_vdso.
1038
1039 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1040
1041         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1042         creal in comment listing functions tested.  List finite, isinf,
1043         isnan, isless, islessequal, isgreater, isgreaterequal,
1044         islessgreater, isunordered, lgamma_r and pow10 as functions and
1045         macros not tested.  Mention which functions not tested are aliases
1046         for other functions.  Fix typo.  Note that signs of NaNs are not
1047         tested.
1048
1049         * scripts/config.guess: Update from config.git.
1050         * scripts/config.sub: Likewise.
1051
1052 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1053
1054         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1055         * misc/madvise.c (madvise): Renamed to __madvise.
1056         Make madvise a weak alias.
1057         * include/sys/mman.h: Declare __madvise.
1058         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1059         * sysdeps/unix/syscalls.list
1060         (madvise): Make __madvise the strong name, and madvise a weak alias.
1061         * sysdeps/unix/sysv/linux/syscalls.list
1062         (madvise, mmap): Remove redundant entries.
1063         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1064         * malloc/malloc.c (mtrim): Likewise.
1065         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1066
1067 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1068
1069         * sysdeps/mach/hurd/dl-cache.c: File removed.
1070         * config.h.in (USE_LDCONFIG): New #undef.
1071         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1072         * configure: Regenerated.
1073         * elf/Makefile (dl-routines): Add dl-cache only under
1074         [$(use-ldconfig) = yes].
1075         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1076         cache on [USE_LDCONFIG].
1077         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1078         [USE_LDCONFIG].
1079         * elf/rtld.c (dl_main): Likewise.
1080
1081 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1082
1083         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1084         _SC_LEVEL4_CACHE_LINESIZE.
1085
1086 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1087
1088         * sysdeps/unix/bsd/confstr.h: File removed.
1089
1090 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1091
1092         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1093         sys/sdt-config.h.
1094
1095 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1096
1097         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1098         Make 'mapoff' field ElfW(Off) rather than off_t.
1099
1100 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1101
1102         * nscd/Makefile: Remove nscd-cflags and all its users.
1103         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1104         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1105
1106         [BZ #10631]
1107         * malloc.c (malloc_printerr): Clarify error message.
1108
1109 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1110
1111         [BZ #14648]
1112         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1113         Set bit_FMA_Usable if FMA is supported.
1114         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1115         macro.
1116         (bit_FMA4_Usable): Updated.
1117         (index_FMA_Usable): New macro.
1118         (CPUID_FMA): Likewise
1119         (HAS_FMA): Defined with bit_FMA_Usable.
1120
1121 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1122
1123         * bits/types.h (__swblk_t): Type removed.
1124         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1125         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1126         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1127         (__SWBLK_T_TYPE): Likewise.
1128         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1129         (__SWBLK_T_TYPE): Likewise.
1130         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1131         (__SWBLK_T_TYPE): Likewise.
1132         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1133         (__SWBLK_T_TYPE): Likewise.
1134
1135 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1136             Honza Horak <hhorak@redhat.com>
1137
1138         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1139         (xdr_mapname): Use YPMAXMAP as maxsize.
1140         (xdr_peername): Use YPMAXPEER as maxsize.
1141         (xdr_keydat): Use YPAXRECORD as maxsize.
1142         (xdr_valdat): Use YPMAXRECORD as maxsize.
1143
1144 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1145
1146         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1147
1148         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1149         * csu/init-first.c: ... here.
1150         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1151         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1152         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1153         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1154         * sysdeps/i386/init-first.c: File removed.
1155         * sysdeps/sh/init-first.c: File removed.
1156
1157 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1158
1159         [BZ #14645]
1160         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1161         if x * y might underflow to zero and z is zero.
1162         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1163         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1164         * math/libm-test.inc (min_subnorm_value): New variable.
1165         (fma_test): Add more tests.
1166         (fma_test_towardzero): Likewise.
1167         (fma_test_downward): Likewise
1168         (fma_test_upward): Likewise.
1169         (initialize): Set min_subnorm_value.
1170
1171 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1172
1173         [BZ #14638]
1174         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1175         0 + 0.
1176         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1177         mode for addition resulting in exact zero.
1178         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1179         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1180         exact 0 + 0.
1181         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1182         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1183         * math/libm-test.inc (fma_test): Add more tests.
1184         (fma_test_towardzero): New function.
1185         (fma_test_downward): Likewise.
1186         (fma_test_upward): Likewise.
1187         (main): Call the new functions.
1188
1189 2012-09-28  David S. Miller  <davem@davemloft.net>
1190
1191         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1192
1193 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1194
1195         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1196         instead of SIGALRM.
1197
1198         * sysdeps/gnu/_G_config.h: Moved to ...
1199         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1200         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1201         * sysdeps/generic/_G_config.h: ... here.
1202
1203         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1204
1205         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1206
1207         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1208         Conditionalize target on [libnss_test1.so-version].
1209
1210         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1211
1212         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1213         (elfobjdir): Move out of conditionals.
1214
1215         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1216         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1217         (__nss_lookup_function): Conditionalize label remove_from_tree on
1218         [!DO_STATIC_NSS || SHARED], matching its only use.
1219
1220 2012-09-28  David S. Miller  <davem@davemloft.net>
1221
1222         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1223         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1224         file.
1225         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1226         sysdep_routines.
1227         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1228         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1229         when HWCAP_SPARC_CRYPTO is present.
1230
1231 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1232
1233         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1234
1235 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1236
1237         [BZ #6530]
1238         * stdio-common/vfprintf.c (process_string_arg): Revert
1239         2000-07-22 change.
1240
1241 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1242
1243         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1244         for testcase.
1245         * stdio-common/tst-sprintf.c: Include <locale.h>
1246         (main): Test sprintf's handling of incomplete multibyte
1247         characters.
1248
1249 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1250
1251         * elf/dl-runtime.c (VERSYMIDX): Removed.
1252         * elf/dl-version.c (VERSYMIDX): Likewise.
1253         * elf/do-rel.h (VERSYMIDX): Likewise.
1254         (VALIDX): Likewise.
1255         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1256         * elf/rtld.c (VALIDX): Likewise.
1257         (ADDRIDX): Likewise.
1258         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1259         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1260         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1261         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1262         (VALIDX): Likewise.
1263         (ADDRIDX): Likewise.
1264
1265 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1266
1267         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1268
1269 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1270
1271         [BZ #11438]
1272         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1273         to global scope.
1274         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1275         addresses are in the same scope as 192.0.2/24.
1276         * posix/gai.conf: Document new scope table defaults.
1277
1278 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1279
1280         [BZ #5298]
1281         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1282         for ftell.  Compute offsets from write pointers instead.
1283         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1284
1285 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1286
1287         [BZ #14543]
1288         * libio/Makefile (tests): New test case tst-fseek.
1289         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1290         combination works in wide mode.
1291         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1292         state when the external buffer state changes.
1293
1294 2012-09-27  David S. Miller  <davem@davemloft.net>
1295
1296         [BZ #14376]
1297         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1298         pass reloc->r_addend in as the 'high' argument to
1299         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1300
1301         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1302
1303 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1304
1305         * rt/tst-aio2.c: Include <pthread.h>.
1306         * rt/tst-aio3.c: Likewise.
1307
1308 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1309
1310         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1311
1312 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1313
1314         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1315         contents on [SHARED].
1316
1317 2012-09-26  Marek Polacek  <polacek@redhat.com>
1318
1319         [BZ #14530]
1320         [BZ #13741]
1321         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1322         for C++ and GCC <4.3 as well as for non GCC compilers.
1323
1324 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1325
1326         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1327
1328 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1329
1330         * Makefile.in (all, install): Declare with .PHONY.
1331         Reported by Michael Hope <michael.hope@linaro.org>.
1332
1333 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1334
1335         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1336         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1337         system header.
1338         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1339         Likewise.
1340         (sydep_routines): Add the new and the internal functions.
1341         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1342         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1344         (GLIBC_2.17): Add the new function.
1345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1346         (GLIBC_2.17): Likewise.
1347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1348         (GLIBC_2.17): Likewise.
1349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1350         (GLIBC_2.17): Likewise.
1351         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1352
1353 2012-09-25  Alan Modra  <amodra@gmail.com>
1354
1355         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1356         Add release barrier before setting once_control to say
1357         initialisation is done.  Add hints on lwarx.  Use macro in
1358         place of isync.
1359         (clear_once_control): Add release barrier.
1360
1361 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1362
1363         [BZ #13629]
1364         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1365         specially.
1366         * math/s_clog10.c (__clog10): Likewise.
1367         * math/s_clog10f.c (__clog10f): Likewise.
1368         * math/s_clog10l.c (__clog10l): Likewise.
1369         * math/s_clogf.c (__clogf): Likewise.
1370         * math/s_clogl.c (__clogl): Likewise.
1371         * math/Makefile (libm-calls): Add x2y2m1.
1372         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1373         (__x2y2m1): Likewise.
1374         (__x2y2m1l): Likewise.
1375         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1376         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1377         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1378         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1379         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1380         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1381         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1382         * sysdeps/i386/fpu/libm-test-ulps: Update.
1383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1384
1385         [BZ #14621]
1386         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1387         int as type of variable DEPTH.
1388         (glob): Use size_t instead of int as type of variables NEWCOUNT
1389         and OLD_PATHC.
1390
1391 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1392
1393         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1394         Add s_sincosf-sse2.
1395         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1396         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1397         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1398         macros for using routine as __sincosf_ia32.
1399         Use macro for function declaration and weak_alias.
1400         * sysdeps/i386/fpu/libm-test-ulps: Update.
1401
1402         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1403         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1404
1405         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1406         subnormal argument.
1407         * math/s_cexpf.c (__cexpf): Likewise.
1408         * math/s_csinf.c (__csinf): Likewise.
1409         * math/s_csinhf.c (__csinhf): Likewise.
1410         * math/s_ctanf.c (__ctanf): Likewise.
1411         * math/s_ctanhf.c (__ctanhf): Likewise.
1412         * math/s_ccosh.c (__ccoshf): Likewise.
1413         * math/s_cexp.c (__cexpl): Likewise.
1414         * math/s_csin.c (__csin): Likewise.
1415         * math/s_csinh.c (__csinh): Likewise.
1416         * math/s_ctan.c (__ctan): Likewise.
1417         * math/s_ctanh.c (ctanh): Likewise.
1418         * math/s_ccoshl.c (__ccoshl): Likewise.
1419         * math/s_cexpl.c (__cexpl): Likewise.
1420         * math/s_csinl.c (__csinl): Likewise.
1421         * math/s_csinhl.c (__csinhl): Likewise.
1422         * math/s_ctanl.c (__ctanl): Likewise.
1423         * math/s_ctanhl.c (__ctanhl): Likewise.
1424
1425 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1426
1427         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1428         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1429         (_IO_off_t): Define to __off_t, not _G_off_t.
1430         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1431         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1432         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1433         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1434         type of __dummy and __dummy2 fields.
1435         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1436         (_G_ssize_t): Likewise.
1437         (_G_off_t): Likewise.
1438         (_G_pid_t): Likewise.
1439         (_G_uid_t): Likewise.
1440         (_G_wchar_t): Likewise.
1441         (_G_wint_t): Likewise.
1442         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1443         (_G_ssize_t): Likewise.
1444         (_G_off_t): Likewise.
1445         (_G_pid_t): Likewise.
1446         (_G_uid_t): Likewise.
1447         (_G_wchar_t): Likewise.
1448         (_G_wint_t): Likewise.
1449         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1450         (_G_ssize_t): Likewise.
1451         (_G_off_t): Likewise.
1452         (_G_pid_t): Likewise.
1453         (_G_uid_t): Likewise.
1454         (_G_wchar_t): Likewise.
1455         (_G_wint_t): Likewise.
1456
1457 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1458
1459         * malloc/arena.c: Include malloc-sysdep.h.
1460         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1461         is sufficient to shrink the heap or an unmap is needed.
1462         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1463         new function check_may_shrink_heap.
1464         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1465         new function check_may_shrink_heap.
1466
1467 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1468
1469         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1470         comments.
1471
1472 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1473
1474         * catgets/test-gencat.sh: Add "set -e".
1475         * elf/tst-pathopt.sh: Likewise.
1476         * grp/tst_fgetgrent.sh: Likewise.
1477         * iconvdata/run-iconv-test.sh: Likewise.
1478         * intl/tst-gettext.sh: Likewise.
1479         * intl/tst-gettext2.sh: Likewise.
1480         * intl/tst-gettext4.sh: Likewise.
1481         * intl/tst-gettext6.sh: Likewise.
1482         * intl/tst-translit.sh: Likewise.
1483         * io/ftwtest-sh: Likewise.
1484         * libio/test-freopen.sh: Likewise.
1485         * malloc/tst-mtrace.sh: Likewise.
1486         * posix/globtest.sh: Likewise.
1487         * posix/tst-getconf.sh: Likewise.
1488         * posix/wordexp-tst.sh: Likewise.
1489         * stdio-common/tst-printf.sh: Likewise.
1490         * stdio-common/tst-unbputc.sh: Likewise.
1491         * stdlib/tst-fmtmsg.sh: Likewise.
1492         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1493         * catgets/Makefile: Do not specify -e option when running
1494         testsuite shell scripts.
1495         * elf/Makefile: Likewise.
1496         * grp/Makefile: Likewise.
1497         * iconvdata/Makefile: Likewise.
1498         * intl/Makefile: Likewise.
1499         * io/Makefile: Likewise.
1500         * libio/Makefile: Likewise.
1501         * malloc/Makefile: Likewise.
1502         * posix/Makefile: Likewise.
1503         * stdio-common/Makefile: Likewise.
1504         * stdlib/Makefile: Likewise.
1505         * sysdeps/x86_64/Makefile: Likewise.
1506
1507         * io/ftwtest-sh: Add copyright header.
1508         * posix/globtest.sh: Likewise.
1509         * posix/tst-getconf.sh: Likewise.
1510         * posix/wordexp-tst.sh: Likewise.
1511         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1512
1513 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1514
1515         [BZ #13679]
1516         * Makeconfig (+link): Defined as $(+link-static) if
1517         $(build-shared) isn't yes.
1518         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1519         isn't yes.
1520         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1521
1522         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1523
1524         [BZ #14562]
1525         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1526         new chunk size with MALLOC_ALIGN_MASK.
1527
1528 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1529
1530         [BZ #5044]
1531         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1532         <rounding-mode.h>.
1533         (__printf_fphex): Determine rounding using get_rounding_mode and
1534         round_away.
1535         * stdio-common/tst-printf-round.c (struct hex_test): New
1536         structure.
1537         (hex_tests): New variable.
1538         (test_hex_in_one_mode): New function.
1539         (do_test): Also run tests for hex float output.
1540
1541 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1542
1543         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1544         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1545         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1546         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1547         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1548         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1549         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1550         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1551
1552 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1553
1554         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1555         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1556         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1557         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1558
1559 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1560
1561         [BZ #14579]
1562         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1563         mode only.
1564         * elf/tst-rtld-load-self.sh: New test.
1565         * elf/Makefile: Run it.
1566
1567 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1568
1569         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1570         (tst-writev-ENV): Remove.
1571         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1572
1573 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1574
1575         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1576
1577 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1578
1579         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1580         unconditional.
1581         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1582         Likewise.
1583         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1584         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1585         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1586         Likewise.
1587
1588 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1589
1590         [BZ #14587]
1591         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1592         * config.make.in (have-cpp-asm-debuginfo): Removed.
1593         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1594         * configure: Regenerated.
1595
1596 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1597
1598         [BZ #5044]
1599         * stdio-common/printf_fp.c: Include <stdbool.h> and
1600         <rounding-mode.h>.
1601         (___printf_fp): Determine rounding using get_rounding_mode and
1602         round_away.
1603         * stdio-common/tst-printf-round.c: New file.
1604         * stdio-common/Makefile (tests): Add tst-printf-round.
1605         (link-libm): New variable.
1606         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1607
1608 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1609
1610         [BZ #14576]
1611         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1612         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1613         Likewise.
1614         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1615         Likewise.
1616
1617 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1620         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1621         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1622         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1623
1624 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1625
1626         [BZ #14518]
1627         * include/rounding-mode.h: New file.
1628         * sysdeps/generic/get-rounding-mode.h: Likewise.
1629         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1630         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1631         (MAX_VALUE): New macro.
1632         (MIN_VALUE): Likewise.
1633         (overflow_value): New function.
1634         (underflow_value): Likewise.
1635         (round_and_return): Use overflow_value and underflow_value to
1636         determine return values in overflow and underflow cases.  Use
1637         round_away to determine rounding depending on rounding mode.
1638         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1639         determine return values in overflow and underflow cases.
1640         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1641         (struct test_results): New structure.
1642         (struct test): Use struct test_results to store expected results
1643         for all rounding modes.
1644         (TEST): Include expected results for all rounding modes.
1645         (test_in_one_mode): New function.
1646         (do_test): Use test_in_one_mode to compute and check results.
1647         Check results for all rounding modes.
1648         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1649         $(link-libm).
1650
1651 2012-12-09  Allan McRae  <allan@archlinux.org>
1652
1653         * sysdeps/i386/fpu/libm-test-ulps: Update
1654
1655 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1656
1657         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1658         (_G_int32_t): Likewise.
1659         (_G_uint16_t): Likewise.
1660         (_G_uint32_t): Likewise.
1661         (_G_HAVE_BOOL): Likewise.
1662         (_G_HAVE_ATEXIT): Likewise.
1663         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1664         (_G_HAVE_IO_FILE_OPEN): Likewise.
1665         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1666         (_G_int32_t): Likewise.
1667         (_G_uint16_t): Likewise.
1668         (_G_uint32_t): Likewise.
1669         (_G_HAVE_BOOL): Likewise.
1670         (_G_HAVE_ATEXIT): Likewise.
1671         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1672         (_G_HAVE_IO_FILE_OPEN): Likewise.
1673         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1674         (_G_int32_t): Likewise.
1675         (_G_uint16_t): Likewise.
1676         (_G_uint32_t): Likewise.
1677         (_G_HAVE_BOOL): Likewise.
1678         (_G_HAVE_ATEXIT): Likewise.
1679         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1680         (_G_HAVE_IO_FILE_OPEN): Likewise.
1681
1682 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1683
1684         * csu/libc-tls.c: Update copyright years.
1685
1686 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1687
1688         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1689         [!_G_USING_THUNKS]: Remove conditional code.
1690         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1691         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1692
1693         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1694         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1695         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1696         (_G_VTABLE_LABEL_PREFIX): Likewise.
1697         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1698         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1699         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1700         (_G_VTABLE_LABEL_PREFIX): Likewise.
1701         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1702         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1703         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1704         (_G_VTABLE_LABEL_PREFIX): Likewise.
1705         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1706
1707 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1708
1709         * libio/Makefile: Include ../Makeconfig before tests.
1710         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1711         only if $(build-shared) is yes.
1712
1713         * iconv/gconv_db.c: Update copyright years.
1714
1715 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1716
1717         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1718         unwind info if defined PIC. Fix special cases description.
1719         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1720
1721         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1722         DP_HI_MASK entry.
1723         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1724
1725 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1726
1727         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1728
1729         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1730         is NULL.
1731
1732         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1733         (LDLIBS-tst-chk4): This.
1734         (LDFLAGS-tst-chk5): Renamed to ...
1735         (LDLIBS-tst-chk5): This.
1736         (LDFLAGS-tst-chk6): Renamed to ...
1737         (LDLIBS-tst-chk6): This.
1738         (LDFLAGS-tst-lfschk4): Renamed to ...
1739         (LDLIBS-tst-lfschk4): This.
1740         (LDFLAGS-tst-lfschk5): Renamed to ...
1741         (LDLIBS-tst-lfschk5): This.
1742         (LDFLAGS-tst-lfschk6): Renamed to ...
1743         (LDLIBS-tst-lfschk6): This.
1744
1745         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1746         on $(common-objpfx)soversions.mk.
1747
1748 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1749
1750         [BZ #10014]
1751         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1752         example host name.
1753
1754 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1755
1756         * malloc/arena.c (arena_get_retry): New function that gets
1757         another arena for the caller to try its request on.
1758         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1759         current arena cannot fulfill the request.
1760         (__libc_memalign): Likewise.
1761         (__libc_memalign): Likewise.
1762         (__libc_pvalloc): Likewise.
1763         (__libc_calloc): Likewise.
1764
1765 2012-09-05  John Tobey  <john.tobey@gmail.com>
1766
1767         [BZ #13542]
1768         * manual/arith.texi (Operations on Complex): Fix description
1769         of carg branch cut.
1770
1771 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1772
1773         [BZ #10014]
1774         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1775         host name.
1776
1777         [BZ #10038]
1778         * manual/memory.texi (Memory): Make order of menu items match
1779         order of sections.
1780
1781 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1782
1783         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1784         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1785         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1786
1787 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1788
1789         * csu/libc-tls.c (static_dtv): Renamed to ...
1790         (_dl_static_dtv): This.  Make it global.
1791         (_dl_initial_dtv): Removed.
1792         (__libc_setup_tls): Updated.
1793         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1794         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1795         DL_INITIAL_DTV.
1796
1797 2012-09-06  Petr Machata  <pmachata@redhat.com>
1798
1799         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1800         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1801         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1802         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1803
1804 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1805
1806         [BZ #14545]
1807         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1808         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1809         freeing dtv[-1].
1810
1811 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1812
1813         [BZ #14544]
1814         * Makeconfig (link-static-before-libc): Replace $(+prector)
1815         with $(+prectorT).
1816         (link-static-after-libc): Replace $(+postctor) with
1817         $(+postctorT).
1818         (link-bounded): Replace $(+prector)/$(+postctor) with
1819         $(+prectorT)/$(+postctorT).
1820         (+prectorT): New macro.
1821         (+postctorT): Likewise.
1822
1823 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1824
1825         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1826         (round_str): Handle values above the maximum for IBM long double
1827         as inexact.
1828         * stdlib/tst-strtod-round.c (tests): Regenerated.
1829
1830 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1831
1832         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1833         assembler flag.
1834         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1835         zarch_nohighgprs around the zarch optimized routines.
1836         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1837         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1838         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1839         for zarch.
1840
1841 2012-09-05  David S. Miller  <davem@davemloft.net>
1842
1843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1844
1845         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1846         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1847         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1848         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1849         entries.
1850
1851 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1852
1853         * malloc/arena.c: Fold copyright years.
1854         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1855
1856 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1857
1858         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1859
1860 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1861
1862         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1863
1864 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1865
1866         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1867         change internal state upon failure.
1868
1869 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1870
1871         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1872         * malloc/memusage.c (mmap): Likewise.
1873         (mmap64, mremap): Likewise.  Adjust name in comment.
1874
1875 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1876
1877         * libio/fileops.c: Fix typos in comments.
1878         * libio/oldfileops.c: Likewise.
1879         * libio/wfileops.c: Likewise.
1880
1881 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1882
1883         [BZ #1349]
1884         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1885         (tst-malloc-usable-ENV): Set environment for test case.
1886         * malloc/hooks.c (malloc_check_get_size): New function to get
1887         requested size.
1888         * malloc/malloc.c (musable): Use malloc_check_get_size.
1889         * malloc/tst-malloc-usable.c: New test case.
1890
1891 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1892
1893         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1894
1895 2012-09-05  Allan McRae  <allan@archlinux.org>
1896
1897         [BZ #13966]
1898         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1899         determine header location.
1900         * configure: Regenerated.
1901
1902 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1903
1904         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1905         float format.
1906         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1907         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1908         format.
1909         (test): Regenerate.
1910
1911 2012-09-04  David S. Miller  <davem@davemloft.net>
1912
1913         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1914         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1915         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1916
1917 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1918
1919         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1920         failures.
1921
1922         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1923
1924 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1925
1926         [BZ #9914]
1927         * libio/iogetdelim.c: Include <limits.h>.
1928         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1929         + len + 1 would overflow.
1930
1931 2012-09-03  Andreas Jaeger  <aj@suse.de>
1932
1933         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1934         * sysdeps/i386/fpu/libm-test-ulps: Update.
1935
1936 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1937
1938         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1939         Add s_sinf-sse2, s_conf-sse2.
1940
1941         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1942         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1943         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1944         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1945
1946         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1947         for using routine as __sinf_ia32.
1948         Use macro for function declaration and weak_alias.
1949         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1950         for using routine as __cosf_ia32.
1951         Use macro for function declaration and weak_alias.
1952
1953         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1954         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1955
1956         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1957         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1958         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1959
1960         * math/libm-test.inc (cos_test): Add more test cases.
1961         (sin_test): Likewise.
1962         (sincos_test): Likewise.
1963
1964 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1965
1966         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1967         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1968         hidden.
1969         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1970
1971 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1972
1973         [BZ #14538]
1974         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1975         first element of the GOT.
1976         (elf_machine_load_address): Return the difference between
1977         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1978
1979 2012-09-01  Allan McRae  <allan@archlinux.org>
1980
1981         [BZ #13412]
1982         * configure.in (AWK): Require gawk version 3.0 or later.
1983         * configure: Regenerated.
1984
1985 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1986
1987         * sysdeps/unix/sysv/linux/kernel-features.h
1988         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1989         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1990         [__NR_clock_getres]: Make code unconditional.
1991         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1992         (clock_getcpuclockid): Remove code left unreachable by removal of
1993         conditionals.
1994         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1995         code unconditional.
1996         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1997         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1998         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1999         Make code unconditional.
2000         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2001         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2002         * sysdeps/unix/sysv/linux/clock_settime.c
2003         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2004         conditional code.
2005         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2006         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2007
2008 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2009
2010         [BZ #14476]
2011         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2012         scripts/test-installation.pl.
2013
2014         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2015         and $ld_so_version if it is set.
2016
2017 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2018
2019         [BZ #14516]
2020         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2021         failure if reading from procfs failed.
2022         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2023
2024 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2025
2026         * sysdeps/unix/sysv/linux/kernel-features.h
2027         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2028         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2029         Remove conditional code.
2030         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2031         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2032         Remove conditional code.
2033         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2034         * sysdeps/unix/sysv/linux/i386/fxstat.c
2035         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2036         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2037         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2038         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2039         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2040         * sysdeps/unix/sysv/linux/i386/lxstat.c
2041         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2042         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2043         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2044         Remove conditional code.
2045         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2046         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2047         Remove conditional code.
2048         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2049         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2050         <kernel-features.h>.
2051         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2052         Remove.
2053         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2054         Remove conditional code.
2055         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2056         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2057         Remove conditional.
2058
2059 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2060
2061         [BZ #5400]
2062         * NEWS: Add fixed bug number.
2063
2064 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2065
2066         [BZ #14519]
2067         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2068         underflowing exponent in case of negative sign.
2069         * stdlib/tst-strtod-round-data: Add more tests.
2070         * stdlib/tst-strtod-round.c (tests): Regenerated.
2071
2072         [BZ #3479]
2073         * stdlib/strtod_l.c (NDIG): Remove.
2074         (HEXNDIG): Likewise.
2075         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2076         smallest representable value.
2077         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2078         lie within an exact representation of 1/2 ulp of the result.
2079         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2080         unconditionally.
2081         (TENS_P9_IDX): Define unconditionally.
2082         (TENS_P9_SIZE): Likewise.
2083         (TENS_P10_IDX): Likewise.
2084         (TENS_P10_SIZE): Likewise.
2085         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2086         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2087         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2088         entries for 10^2^13 and 10^2^14.
2089         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2090         (TENS_P13_IDX): Define.
2091         (TENS_P13_SIZE): Likewise.
2092         (TENS_P14_IDX): Likewise.
2093         (TENS_P14_SIZE): Likewise.
2094         (_fpioconst_pow10): Change array size to
2095         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2096         unconditional.
2097         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2098         1024]: Add entries for 10^2^13 and 10^2^14.
2099         [LAST_POW10 > _LAST_POW10]: Remove #error.
2100         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2101         (_fpioconst_pow10): Change array size to
2102         FPIOCONST_POW10_ARRAY_SIZE.
2103         * stdlib/gen-fpioconst.c: New file.
2104         * stdlib/gen-tst-strtod-round.c: Likewise.
2105         * stdlib/tst-strtod-round-data: Likewise.
2106         * stdlib/tst-strtod-round.c: Likewise.
2107         * stdlib/Makefile (tests): Add tst-strtod-round.
2108
2109         [BZ #14459]
2110         * stdlib/strtod_l.c: Include <stdint.h>.
2111         (NDEBUG): Do not define.
2112         (round_and_return): Change EXPONENT parameter to type intmax_t.
2113         Rearrange calculations to avoid internal overflow possibilities.
2114         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2115         Rearrange calculations to avoid internal overflow possibilities.
2116         Assert that number fits inside MPNSIZE limbs.
2117         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2118         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2119         calculations and add assertions to avoid internal overflow
2120         possibilities.  Add casts to avoid signed/unsigned operations.
2121         * stdlib/tst-strtod-overflow.c: New file.
2122         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2123
2124 2012-08-25  Marek Polacek  <polacek@redhat.com>
2125
2126         * time/time.h: Fix some typos in comments.
2127
2128 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2129
2130         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2131         * posix/tst-rfc3484-2.c: Likewise.
2132         * posix/tst-rfc3484-3.c: Likewise.
2133
2134 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2135
2136         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2137         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2138
2139 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2140
2141         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2142         #include of fxstatat64.c.
2143
2144 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2145
2146         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2147         * shadow/getspent_r.c: Likewise.
2148         * shadow/getspnam.c: Likewise.
2149         * shadow/getspnam_r.c: Likewise.
2150         * gshadow/getsgent.c: Likewise.
2151         * gshadow/getsgent_r.c: Likewise.
2152         * gshadow/getsgnam.c: Likewise.
2153         * gshadow/getsgnam_r.c: Likewise.
2154         * inet/getnetbyad.c: Likewise.
2155         * inet/getnetbyad_r.c: Likewise.
2156         * inet/getnetbynm.c: Likewise.
2157         * inet/getnetbynm_r.c: Likewise.
2158         * inet/getnetent.c: Likewise.
2159         * inet/getnetent_r.c: Likewise.
2160         * inet/getproto.c: Likewise.
2161         * inet/getproto_r.c: Likewise.
2162         * inet/getprtent.c: Likewise.
2163         * inet/getprtent_r.c: Likewise.
2164         * inet/getprtname.c: Likewise.
2165         * inet/getprtname_r.c: Likewise.
2166         * inet/getrpcbyname.c: Likewise.
2167         * inet/getrpcbyname_r.c: Likewise.
2168         * inet/getrpcbynumber.c: Likewise.
2169         * inet/getrpcbynumber_r.c: Likewise.
2170         * inet/getrpcent.c: Likewise.
2171         * inet/getrpcent_r.c: Likewise.
2172         * inet/getaliasent.c: Likewise.
2173         * inet/getaliasent_r.c: Likewise.
2174         * inet/getaliasname.c: Likewise.
2175         * inet/getaliasname_r.c: Likewise.
2176         * nscd/getgrgid_r.c: Likewise.
2177         * nscd/getgrnam_r.c: Likewise.
2178         * nscd/gethstbyad_r.c: Likewise.
2179         * nscd/gethstbynm3_r.c: Likewise.
2180         * nscd/getpwnam_r.c: Likewise.
2181         * nscd/getpwuid_r.c: Likewise.
2182         * nscd/getsrvbynm_r.c: Likewise.
2183         * nscd/getsrvbypt_r.c: Likewise.
2184         * nscd/gai.c: Likewise.
2185
2186         * configure.in (build_nscd): New substituted variable, set
2187         by --disable-build-nscd and defaults to $use_nscd.
2188         * configure: Regenerated.
2189         * config.make.in (build-nscd): New substituted variable.
2190         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2191         Change conditional to require [$(build-nscd) = yes] as well.
2192         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2193
2194         [BZ# 13696]
2195         * configure.in (use_nscd): New substituted variable, set by
2196         --disable-nscd.  If enabled, define USE_NSCD.
2197         * configure: Regenerated.
2198         * config.h.in: Add USE_NSCD.
2199         * config.make.in (use-nscd): New substituted variable.
2200         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2201         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2202         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2203         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2204         (CFLAGS-getgrnam_r.c): Likewise.
2205         (CFLAGS-initgroups.c): Likewise.
2206         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2207         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2208         Variables removed.
2209         * inet/getnetgrent_r.c
2210         (nscd_setnetgrent): New function, broken out of ...
2211         (setnetgrent): ... here.  Call it.
2212         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2213         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2214         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2215         * nscd/Makefile (routines, aux): Move definitions after include of
2216         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2217         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2218         Conditionalize on [USE_NSCD].
2219         (is_nscd, nscd_init_cb): Likewise.
2220         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2221         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2222         * nss/nss_db/db-init.c: Likewise.
2223         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2224         [USE_NSCD].
2225         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2226         (make_request): Use it.
2227         (cache_valid_p): New function.
2228         (__check_pf): Use it.
2229         * NEWS: Add item for --disable-nscd.
2230
2231 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2232
2233         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2234         to support sed >= 4.2.1-20-ga9bf076.
2235         * configure: Regenerated.
2236
2237 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2238
2239         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2240         Conditionalize whole body on [IREL].
2241
2242 2012-08-22  Jeff Law <law@redhat.com>
2243
2244         [BZ #14505]
2245         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2246         if the family is PF_UNSPEC.
2247
2248 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2249
2250         * Makerules (lib-version): Rename from V.
2251         (install-lib-nosubdir): Change V to lib-version.
2252
2253 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2254
2255         [BZ #14252]
2256         * powerpc32/power6/wcschr.c: New file.
2257         * powerpc32/power6/wcscpy.c: New file.
2258         * powerpc32/power6/wcsrchr.c: New file.
2259         * powerpc64/power6/wcschr.c: New file.
2260         * powerpc64/power6/wcscpy.c: New file.
2261         * powerpc64/power6/wcsrchr.c: New file.
2262
2263 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2264
2265         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2266         (two_way_short_needle): Use it.
2267         * string/strstr.c (AVAILABLE1_USES_J): Define.
2268         * string/strcasestr.c: Likewise.
2269
2270         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2271         array references.
2272         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2273
2274         [BZ #11607]
2275         * NEWS: Add an entry.
2276         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2277         define their defaults.
2278         (two_way_short_needle): Detect end-of-string on-the-fly.
2279         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2280         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2281         * string/bug-strcasestr1.c: New test.
2282         * string/Makefile: Run it.
2283
2284 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2285
2286         [BZ #11607]
2287         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2288         the first character.
2289
2290 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2291
2292         * csu/elf-init.c (__libc_csu_irel): Function removed.
2293         * csu/libc-start.c (apply_irel): New function.
2294         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2295
2296 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2297
2298         * sysdeps/unix/sysv/linux/kernel-features.h
2299         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2300         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2301         <kernel-features.h>.
2302         [__NR_fadvise64_64]: Make code unconditional.
2303         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2304         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2305         !__NR_fadvise64_64)]: Likewise.
2306         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2307         !__NR_fadvise64_64))]: Likewise.
2308         [__NR_fadvise64]: Make code unconditional.
2309         [!__NR_fadvise64]: Remove conditional code.
2310         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2311         <kernel-features.h>.
2312         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2313         unconditional.
2314         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2315         conditional code.
2316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2317         not include <kernel-features.h>.
2318         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2319         unconditional.
2320         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2321         conditional code.
2322         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2323         include <kernel-features.h>.
2324         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2325         unconditional.
2326         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2327         conditional code.
2328
2329 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2330
2331         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2332         slight instruction rearrangements per scrollpipe analysis.
2333         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2334
2335 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2336
2337         * manual/syslog.texi (syslog; vsyslog, closelog):
2338         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2339         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2340
2341         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2342         DSOCAPS to match condition on defining it.
2343
2344 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2345
2346         * sysdeps/unix/sysv/linux/kernel-features.h
2347         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2349         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2350         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2352         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2353         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2355         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2356         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2357
2358         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2359         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2360
2361         * sysdeps/unix/sysv/linux/kernel-features.h
2362         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2363         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2364         unconditional.
2365         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2366         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2367         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2368         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2369         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2370         Make code unconditional.
2371         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2372         (__mmap64) [!__NR_mmap2]: Likewise.
2373         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2374         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2375         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2376         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2377         [__NR_mmap2]: Make code unconditional.
2378         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2379         (__mmap64) [!__NR_mmap2]: Likewise.
2380
2381 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2382
2383         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2384
2385 2012-08-18  Andreas Jaeger  <aj@suse.de>
2386
2387         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2388
2389 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2390
2391         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2392         * include/unistd.h (__have_sock_cloexec): Likewise.
2393         (__have_pipe2): Likewise.
2394         (__have_dup3): Likewise.
2395
2396 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2397
2398         [BZ #9685]
2399         * include/unistd.h (__have_pipe2): Change define into an extern int.
2400         (__have_dup3): Likewise.
2401         * socket/have_sock_cloexec.c: Include fcntl.h.
2402         (__have_pipe2): New variable.
2403         (__have_dup3): Likewise.
2404
2405 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2406
2407         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2408
2409 2012-08-17  Marek Polacek  <polacek@redhat.com>
2410
2411         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2412         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2413
2414 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2415
2416         * configure.in: Add AC_SUBST for sysheaders.
2417         * configure: Regenerated.
2418         * config.make.in (sysheaders): New substituted variable.
2419
2420         * sysdeps/unix/mkfifo.c: Moved ...
2421         * sysdeps/posix/mkfifo.c: ... here.
2422         * sysdeps/unix/mkfifoat.c: Moved ...
2423         * sysdeps/posix/mkfifoat.c: ... here.
2424
2425         * sysdeps/unix/utime.c: Moved ...
2426         * sysdeps/posix/utime.c: ... here.
2427
2428         * sysdeps/unix/time.c: Moved ...
2429         * sysdeps/posix/time.c: ... here.
2430         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2431         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2432
2433         * sysdeps/unix/nice.c: Moved ...
2434         * sysdeps/posix/nice.c: ... here.
2435
2436         * sysdeps/unix/alarm.c: Moved ...
2437         * sysdeps/posix/alarm.c: ... here.
2438
2439         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2440
2441 2012-08-17  Jeff Law <law@redhat.com>
2442
2443         * intl/Makefile (codeset_mo): New variable.
2444         ($(codeset_mo)): New target.
2445         (tst-codeset.out): Depend on that.  Remove explicit rule.
2446         (tst-gettext3.out, tst-gettext5.out): Likewise.
2447         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2448         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2449         * intl/tst-codeset.sh: Remove.
2450         * intl/tst-gettext3.sh: Likewise.
2451         * intl/tst-gettext5.sh: Likewise.
2452
2453 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2454
2455         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2456         * sysdeps/unix/syscalls.list: ... here.
2457
2458         * sysdeps/posix/getaddrinfo.c
2459         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2460         (gaiconf_init, gaiconf_reload): Use them.
2461         [!_STATBUF_ST_NSEC]
2462         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2463         Define using time_t rather than struct timespec.
2464
2465         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2466         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2467         Macros removed.
2468         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2469         [!NO_THREADS].
2470         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2471         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2472         Likewise.
2473
2474         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2475         __libc_cleanup_push argument.
2476
2477         * bits/param.h: New file.
2478         * misc/sys/param.h: New file.
2479         * include/sys/param.h: New file.
2480         * misc/Makefile (headers): Add bits/param.h.
2481         * sysdeps/generic/sys/param.h: File removed.
2482         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2483         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2484         * sysdeps/mach/hurd/bits/param.h: New file.
2485         * sysdeps/mach/hurd/sys/param.h: New file.
2486
2487         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2488         last change.
2489
2490         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2491         [_IO_MTSAFE_IO].
2492         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2493         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2494         New macros.
2495
2496         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2497         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2498         rather than -D_IO_MTSAFE_IO conditionally.
2499         * stdio-common/Makefile (CPPFLAGS): Likewise.
2500         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2501         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2502         Use $(libio-mtsafe).
2503         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2504         of -D_IO_MTSAFE_IO.
2505         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2506         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2507         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2508         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2509         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2510         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2511         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2512         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2513         (CFLAGS-fread_u_chk.c): Likewise.
2514         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2515         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2516         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2517         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2518         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2519         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2520         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2521         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2522         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2523
2524         * libio/Makefile: Test [$(libc-reentrant) = yes]
2525         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2526
2527         * Makeconfig
2528         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2529         * sysdeps/pthread/configure: File removed.
2530         * sysdeps/pthread/Makeconfig: New file.
2531         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2532         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2533
2534 2012-08-16  Gary Benson  <gbenson@redhat.com>
2535
2536         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2537         unmapping the first object in a namespace.
2538
2539 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2540
2541         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2542         (__internal_setnetgrent): ... this.  Add internal_function to
2543         definition.  Add libc_hidden_def.
2544         (setnetgrent): Update caller.
2545         (internal_endnetgrent): Renamed to ...
2546         (__internal_endnetgrent): ... this.  Add internal_function to
2547         definition.  Add libc_hidden_def.
2548         (endnetgrent): Update caller.
2549         (internal_getnetgrent_r): Renamed to ...
2550         (__internal_getnetgrent_r): ... this.  Add internal_function to
2551         definition.  Add libc_hidden_def.
2552         (__getnetgrent_r): Update caller.
2553         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2554
2555 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2556
2557         * stdlib/longlong.h: Update from GCC.
2558
2559 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2560
2561         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2562         on _QL, which is set by umul_ppmm but never used.
2563         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2564         variables, which are set by GMP macros but never used.
2565         * stdio-common/_itowa.c (_itowa): Likewise.
2566         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2567         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2568
2569 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2570
2571         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2572         struct La_sh_regs is not constant.
2573         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2574         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2575         and struct La_sparc64_regs are not constant.
2576
2577 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2578
2579         * sysdeps/unix/sysv/linux/kernel-features.h
2580         (__ASSUME_POSIX_TIMERS): Remove.
2581         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2582         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2583         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2584         Make code unconditional.
2585         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2586         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2587         Make code unconditional.
2588         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2589         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2590         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2591         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2592         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2593         Make code unconditional.
2594         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2595         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2596         (__libc_missing_posix_timers): Remove.
2597
2598 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2599
2600         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2601         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2602
2603         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2604
2605         * elf/dl-sym.c: Include <stdlib.h>.
2606
2607         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2608         constants, which avoids warnings in 32-bit builds.
2609
2610         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2611         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2612
2613         * misc/lseek.c: File moved to ...
2614         * io/lseek.c: ... here.
2615
2616         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2617
2618         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2619         shifting LEN more than 31 bits at once.
2620
2621 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2622
2623         [BZ #14195]
2624         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2625         segmentation fault for a case of two empty input strings.
2626         * string/test-strncasecmp.c (check1): Renamed to...
2627         (bz12205): ...this.
2628         (bz14195): Add new testcase for two empty input strings and N > 0.
2629         (test_main): Call new testcase, adapt for renamed function.
2630
2631 2012-08-15  Andreas Jaeger  <aj@suse.de>
2632
2633         [BZ #14090]
2634         * crypt/md5test2.c: New test, based on test supplied by Serge
2635         Belyshev <belyshev@depni.sinp.msu.ru>.
2636         * crypt/Makefile (xtests): Add md5test-giant..
2637         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2638
2639 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2640
2641         [BZ #14090]
2642         * crypt/md5.c (md5_process_block): Don't assume the buffer
2643         length is less than 2**32.
2644         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2645         length is less than 2**64.
2646
2647 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2648
2649         * string/str-two-way.h: Include <sys/param.h>.
2650         (MAX): Macro removed.
2651
2652         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2653         Move #define and #undef of memmove to just before and after
2654         including <string.h>.
2655
2656         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2657         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2658         and after including <string.h>.  Move declarations of
2659         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2660         to before #include "string/memmove.c".
2661
2662         * include/dirent.h: Declare __getdirentries.
2663
2664         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2665         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2666
2667 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2668
2669         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2670         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2671         * sysdeps/i386/configure: Regenerated.
2672         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2673         STABS_CURRENT_FILE, and STABS_FUN.
2674         (END): Remove call to STABS_FUN_END.
2675         (STABS_CURRENT_FILE1): Delete.
2676         (STABS_CURRENT_FILE): Likewise.
2677         (STABS_FUN): Likewise.
2678         (STABS_FUN_END): Likewise.
2679         (STABS_FUN2): Likewise.
2680         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2681         * sysdeps/x86_64/configure: Regenerated.
2682
2683 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2684
2685         * elf/dl-open.c: Include <atomic.h>.
2686         * elf/dl-lookup.c: Likewise.
2687
2688 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2689
2690         * sysdeps/unix/sysv/linux/kernel-features.h
2691         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2692         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2693         unconditionally.
2694         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2695         unconditionally.
2696         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2697         condition on __ASSUME_CLONE_THREAD_FLAGS.
2698
2699 2012-08-14  Andreas Jaeger  <aj@suse.de>
2700
2701         * sysdeps/i386/fpu/libm-test-ulps: Update.
2702
2703 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2704
2705         * include/atomic.h (atomic_exchange_and_add): Split into ...
2706         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2707         New atomic macros.
2708
2709 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2710
2711         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2712
2713 2012-08-13  Jeff Law <law@redhat.com>
2714
2715         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2716         null byte in the output string.
2717
2718 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2719
2720         * sysdeps/unix/sysv/linux/kernel-features.h
2721         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2722         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2723         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2724         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2725         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2726         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2727         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2728
2729 2012-08-09  Jeff Law <law@redhat.com>
2730
2731         [BZ #13939]
2732         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2733         When avoid_arena is set, don't retry in the that arena.  Pick the
2734         next one, whatever it might be.
2735         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2736         (arena_lock): Pass in new parameter to arena_get2.
2737         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2738         arena_get2.
2739         (__libc_malloc): Unify retrying after main arena failure with
2740         __libc_memalign version.
2741         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2742
2743 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2744
2745         [BZ #14166]
2746         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2747         to __redirect_strstr.
2748         (__strstr_sse42): Use typeof __redirect_strstr.
2749         (__strstr_ia32): Likewise.
2750         (__libc_strstr): New prototype.
2751         (strstr): Renamed to ...
2752         (__libc_strstr): This.
2753         (strstr): New strong alias of __libc_strstr.
2754         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2755         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2756         __redirect_time.
2757         Include <time.h>.
2758         (__libc_time): New prototype.
2759         (time_ifunc): Replace time with __libc_time.
2760         (time): New strong alias and hidden definition of __libc_time.
2761         (__GI_time): Remove strong alias.
2762         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2763         Include <stddef.h>.
2764         (memmove): Redefined to __redirect_memmove.
2765         (__memmove_sse2): Use typeof __redirect_memmove.
2766         (__memmove_ssse3): Likewise.
2767         (__memmove_ssse3_back): Likewise.
2768         (__libc_memmove): New prototype.
2769         (memmove): Renamed to ...
2770         (__libc_memmove): This.
2771         (memmove): New strong alias of __libc_memmove.
2772
2773 2012-08-08  Mark Salter  <msalter@redhat.com>
2774
2775         * elf/elf.h
2776         (R_MN10300_TLS_GD): Define.
2777         (R_MN10300_TLS_LD): Likewise.
2778         (R_MN10300_TLS_LDO): Likewise.
2779         (R_MN10300_TLS_GOTIE): Likewise.
2780         (R_MN10300_TLS_IE): Likewise.
2781         (R_MN10300_TLS_LE): Likewise.
2782         (R_MN10300_TLS_DTPMOD): Likewise.
2783         (R_MN10300_TLS_DTPOFF): Likewise.
2784         (R_MN10300_TLS_TPOFF): Likewise.
2785         (R_MN10300_SYM_DIFF): Likewise.
2786         (R_MN10300_ALIGN): Likewise.
2787         (R_MN10300_NUM): Update.
2788
2789 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2790
2791         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2792         Remove.
2793
2794 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2795
2796         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2797
2798         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2799         sysdeps/unix -> sysdeps/posix move.
2800         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2801
2802 2012-08-07      Allan McRae     <allan@archlinux.org>
2803
2804         [BZ #14303]
2805         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2806         (SUNOS_CPP): Likewise.
2807         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2808         not found.
2809         (open_input): Call CPP using execvp.
2810
2811 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2812
2813         * sysdeps/unix/sysv/linux/kernel-features.h
2814         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2815         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2816         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2817         (__ASSUME_WAITID_SYSCALL): Likewise.
2818         * sysdeps/unix/sysv/linux/dl-execstack.c
2819         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2820         code unconditional.
2821         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2822         conditional code.
2823         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2824         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2825         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2826         code.
2827         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2828         unconditional.
2829         [__ASSUME_WAITID_SYSCALL]: Likewise.
2830         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2831
2832 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2833
2834         * sysdeps/unix/closedir.c: Renamed to ...
2835         * sysdeps/posix/closedir.c: ... here.
2836         * sysdeps/unix/dirfd.c: Renamed to ...
2837         * sysdeps/posix/dirfd.c: ... here.
2838         * sysdeps/unix/dirstream.h: Renamed to ...
2839         * sysdeps/posix/dirstream.h: ... here.
2840         * sysdeps/unix/fdopendir.c: Renamed to ...
2841         * sysdeps/posix/fdopendir.c: ... here.
2842         * sysdeps/unix/opendir.c: Renamed to ...
2843         * sysdeps/posix/opendir.c: ... here.
2844         * sysdeps/unix/readdir.c: Renamed to ...
2845         * sysdeps/posix/readdir.c: ... here.
2846         * sysdeps/unix/readdir_r.c: Renamed to ...
2847         * sysdeps/posix/readdir_r.c: ... here.
2848         * sysdeps/unix/rewinddir.c: Renamed to ...
2849         * sysdeps/posix/rewinddir.c: ... here.
2850         * sysdeps/unix/seekdir.c: Renamed to ...
2851         * sysdeps/posix/seekdir.c: ... here.
2852         * sysdeps/unix/telldir.c: Renamed to ...
2853         * sysdeps/posix/telldir.c: ... here.
2854         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2855         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2856         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2857         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2858
2859         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2860         * bits/fcntl.h: ... here.
2861
2862         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2863         not 0.
2864         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2865         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2866         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2867         (struct flock): Move l_start, l_len to the beginning.
2868         Use __pid_t for l_pid.
2869         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2870         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2871         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2872         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2873         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2874         [__USE_LARGEFILE64] (struct flock64): New type.
2875         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2876
2877         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2878         * bits/dirent.h: ... here.
2879
2880         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2881         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2882
2883 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2886         Change from 2.6.0 to 2.6.16.
2887         * sysdeps/unix/sysv/linux/configure: Regenerated.
2888         * sysdeps/unix/sysv/linux/kernel-features.h
2889         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2890         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2891         version.
2892         (__ASSUME_UTIMES): Likewise.
2893         (__ASSUME_CLONE_STOPPED): Remove.
2894         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2895         architectures, not kernel version.
2896         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2897         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2898         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2899         (__ASSUME_WAITID_SYSCALL): Likewise.
2900         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2901         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2902         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2903         refer to older versions.
2904
2905 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2906
2907         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2908         Define alphasort64 as an alias.
2909         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2910         Define versionsort64 as an alias.
2911         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2912         Define scandir64 as an alias.
2913         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2914         Define scandirat64 as an alias.
2915         * dirent/alphasort64.c (alphasort64):
2916         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2917         * dirent/versionsort64.c: Likewise.
2918         * dirent/scandir64.c: Likewise.
2919         * dirent/scandirat64.c: Likewise.
2920         * sysdeps/wordsize-64/alphasort.c: File removed.
2921         * sysdeps/wordsize-64/alphasort64.c: File removed.
2922         * sysdeps/wordsize-64/scandir.c: File removed.
2923         * sysdeps/wordsize-64/scandir64.c: File removed.
2924         * sysdeps/wordsize-64/scandirat.c: File removed.
2925         * sysdeps/wordsize-64/scandirat64.c: File removed.
2926         * sysdeps/wordsize-64/versionsort.c: File removed.
2927         * sysdeps/wordsize-64/versionsort64.c: File removed.
2928         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2929         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2930         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2931         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2932         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2933         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2934         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2935         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2936
2937         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2938         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2939         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2940         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2941         [defined __arch64__ || defined __sparcv9]
2942         (__INO_T_MATCHES_INO64_T): New macro.
2943         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2944         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2945         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2946         * sysdeps/unix/sysv/linux/bits/dirent.h
2947         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2948         (_DIRENT_MATCHES_DIRENT64): New macro.
2949
2950         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2951         Define lockf64 as an alias.
2952         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2953         Define fseeko64 as an alias.
2954         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2955         Define ftello64 as an alias.
2956         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2957         Define _IO_fgetpos64 and fgetpos64 as aliases.
2958         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2959         Define _IO_fsetpos64 and fsetpos64 as aliases.
2960         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2961         Conditionalize body on this.
2962         * libio/fseeko64.c: Likewise.
2963         * libio/ftello64.c: Likewise.
2964         * libio/iofgetpos64.c: Likewise.
2965         * libio/iofsetpos64.c: Likewise.
2966         * sysdeps/wordsize-64/lockf.c: File removed.
2967         * sysdeps/wordsize-64/lockf64.c: File removed.
2968         * sysdeps/wordsize-64/fseeko.c: File removed.
2969         * sysdeps/wordsize-64/fseeko64.c: File removed.
2970         * sysdeps/wordsize-64/ftello.c: File removed.
2971         * sysdeps/wordsize-64/ftello64.c: File removed.
2972         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2973         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2974         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2975         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2976         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2977         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2978         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2979         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2980         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2981         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2982         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2983         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2984         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2985         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2986
2987         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2988         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2989         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2990         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2991         [defined __arch64__ || defined __sparcv9]
2992         (__OFF_T_MATCHES_OFF64_T): New macro.
2993         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2994         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2995         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2996         (__OFF_T_MATCHES_OFF64_T): New macro.
2997
2998 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2999
3000         * stdlib/secure-getenv.c (__secure_getenv): Replace
3001         GLIBC_2_16 with GLIBC_2_17.
3002
3003 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3004
3005         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3006         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3007
3008 2012-08-03  David S. Miller  <davem@davemloft.net>
3009
3010         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3011
3012 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3013
3014         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3015         Remove.
3016         (__ASSUME_CORRECT_SI_PID): Likewise.
3017         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3018         (__ASSUME_TMPFS_NAME): Likewise.
3019         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3020         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3021         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3022         (HAVE_AUX_SECURE): Make definition unconditional.
3023         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3024         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3025
3026 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3027
3028         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3029         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3030         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3031         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3032         __eloop_threshold instead of SYMLOOP_MAX.
3033
3034         * sysdeps/generic/eloop-threshold.h: New file.
3035         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3036         of MAXSYMLINKS.
3037         * elf/chroot_canon.c (chroot_canon): Likewise.
3038
3039 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3040
3041         [BZ #13717]
3042         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3043         Change to 2.6.0 everywhere.
3044         * sysdeps/unix/sysv/linux/configure: Regenerated.
3045         * sysdeps/unix/sysv/linux/kernel-features.h
3046         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3047         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3048         kernel versions.
3049         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3050         (__ASSUME_FUTEX_REQUEUE): Remove.
3051         (__ASSUME_STATFS64): Define unconditionally.
3052         (__ASSUME_AT_SECURE): Likewise.
3053         (__ASSUME_CORRECT_SI_PID): Likewise.
3054         (__ASSUME_TGKILL): Define without depending on kernel version for
3055         i386.
3056         (__ASSUME_UTIMES): Likewise.
3057         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3058         kernel version.
3059         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3060         (__ASSUME_TMPFS_NAME): Likewise.
3061         * README: Update reference to Linux kernel versions.
3062
3063 2012-08-02  Marek Polacek  <polacek@redhat.com>
3064
3065         [BZ# 14150]
3066         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3067         libc_cv_asm_type_prefix with %.
3068         * configure: Regenerated.
3069         * include/libc-symbols.h: Remove comment about
3070         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3071         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3072         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3073         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3074         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3075         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3076         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3077         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3078         * elf/tst-unique2mod1.c: Likewise.
3079         * elf/tst-unique1mod2.c: Likewise.
3080         * elf/tst-unique1mod1.c: Likewise.
3081         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3082         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3083         Replace ASM_TYPE_DIRECTIVE with .type.
3084         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3085         * sysdeps/i386/sysdep.h: Likewise.
3086         * sysdeps/x86_64/sysdep.h: Likewise.
3087         * sysdeps/sh/sysdep.h: Likewise.
3088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3089         Do not define ASM_TYPE_DIRECTIVE.
3090         * sysdeps/powerpc/sysdep.h: Likewise.
3091         * sysdeps/powerpc/powerpc32/sysdep.h:
3092         Replace ASM_TYPE_DIRECTIVE with .type.
3093         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3094         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3095         * sysdeps/i386/fpu/e_powf.S: Likewise.
3096         * sysdeps/i386/fpu/e_expl.S: Likewise.
3097         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3098         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3099         * sysdeps/i386/fpu/e_pow.S: Likewise.
3100         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3101         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3102         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3103         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3104         * sysdeps/i386/fpu/e_log2.S: Likewise.
3105         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3106         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3107         * sysdeps/i386/fpu/e_powl.S: Likewise.
3108         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3109         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3110         * sysdeps/i386/fpu/e_logl.S: Likewise.
3111         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3112         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3113         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3114         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3115         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3116         * sysdeps/i386/fpu/e_log.S: Likewise.
3117         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3118         * sysdeps/i386/fpu/e_logf.S: Likewise.
3119         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3120         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3121         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3122         * sysdeps/i386/fpu/e_log10.S: Likewise.
3123         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3124         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3125         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3126         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3127         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3128         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3129         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3130         * sysdeps/i386/i686/strtok.S: Likewise.
3131         * sysdeps/i386/i386-mcount.S: Likewise.
3132         * sysdeps/i386/strtok.S: Likewise.
3133         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3134         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3135         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3136         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3137         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3138         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3139         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3140         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3141         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3142         * sysdeps/x86_64/_mcount.S: Likewise.
3143         * sysdeps/x86_64/strtok.S: Likewise.
3144         * sysdeps/sh/_mcount.S: Likewise.
3145
3146 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3147
3148         * libio/iofopen.c: Include <fcntl.h>.
3149         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3150         (_IO_fopen64, fopen64): Define as aliases.
3151         * libio/iofopen64.c: Include <fcntl.h>.
3152         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3153         Conditionalize body on this.
3154         * sysdeps/wordsize-64/iofopen.c: File removed.
3155         * sysdeps/wordsize-64/iofopen64.c: File removed.
3156
3157 2012-08-01  Marek Polacek  <polacek@redhat.com>
3158
3159         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3160         Use dlfcn directly instead of a variable.
3161         (binfmt-subdir): Do not define.
3162         (dlfcn): Likewise.
3163
3164 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3165
3166         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3167         Remove all definitions.
3168         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3169         <kernel-features.h>.
3170         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3171         (miss_F_GETOWN_EX): Remove all definitions.
3172         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3173         macro definition.
3174         [!__ASSUME_FCNTL64]: Remove conditional code.
3175         [__ASSUME_FCNTL64]: Make code unconditional.
3176         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3177         <kernel-features.h>.
3178         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3179         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3180         (lockf64) [__NR_fcntl64]: Make code unconditional.
3181         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3182
3183         * sysdeps/unix/sysv/linux/kernel-features.h
3184         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3185         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3186         Make code unconditional.
3187         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3188         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3190         [__NR_vfork]: Make code unconditional.
3191         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3192         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3194         [__NR_vfork]: Make code unconditional.
3195         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3196         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3197
3198 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3199
3200         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3201         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3202
3203         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3204         Define mkstemp64 as an alias.
3205         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3206         Define mkstemps64 as an alias.
3207         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3208         Define mkostemp64 as an alias.
3209         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3210         Define mkostemps64 as an alias.
3211         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3212         Conditionalize body on this.
3213         * misc/mkostemp64.c: Likewise.
3214         * misc/mkostemps64.c: Likewise.
3215         * misc/mkstemps64.c: Likewise.
3216         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3217         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3218         * sysdeps/wordsize-64/mkostemp.c: File removed.
3219         * sysdeps/wordsize-64/mkstemp.c: File removed.
3220         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3221         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3222         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3223         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3224
3225         [BZ #14138]
3226         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3227         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3228         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3229         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3230
3231         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3232         compat_symbol macros from <shlib-compat.h> rather than the underlying
3233         default_symbol_version and symbol_version macros, so that DEFAULT
3234         lines in shlib-versions are respected.
3235         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3236
3237 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3238
3239         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3240         Declare with warn_unused_result.
3241         (setgid, setregid, setegid, setresgid): Likewise.
3242         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3243         Likewise.
3244         * WUR-REPORT: Remove set*id functions.
3245
3246 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3247
3248         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3249
3250 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3251
3252         * include/sys/socket.h (__libc_accept, __libc_accept4):
3253         Add attribute_hidden.
3254         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3255
3256         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3257         use of PTR_MANGLE.
3258         * inet/getnetgrent_r.c (setup): Likewise.
3259
3260         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3261
3262 2012-07-31  David S. Miller  <davem@davemloft.net>
3263
3264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3265
3266 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3267
3268         [BZ #13629]
3269         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3270         value between 1.0 and 2.0 and smaller part has absolute value less
3271         than 1.0.
3272         * math/s_clog10.c (__clog10): Likewise.
3273         * math/s_clog10f.c (__clog10f): Likewise.
3274         * math/s_clog10l.c (__clog10l): Likewise.
3275         * math/s_clogf.c (__clogf): Likewise.
3276         * math/s_clogl.c (__clogl): Likewise.
3277         * math/libm-test.inc (clog_test): Add more tests.
3278         (clog10_test): Likewise.
3279         * sysdeps/i386/fpu/libm-test-ulps: Update.
3280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3281
3282 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3283
3284         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3285         Exit with zero in case no suitable GID is found, and write a
3286         message to standard error.
3287
3288 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3289
3290         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3291         rather than to 1.
3292         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3293         (MAXPATHLEN): Removed.
3294         (NOGROUP, NODEV): New macros.
3295         (setbit, clrbit, isset, isclr): New macros.
3296         (howmany, roundup, powerof2): New macros.
3297         (DEV_BSIZE): New macro.
3298
3299         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3300         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3301
3302         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3303         definition on [!__NO_LONG_DOUBLE_MATH].
3304
3305         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3306         PTR_MANGLE and PTR_DEMANGLE.
3307
3308         * socket/accept4.c (accept4): Rename to __libc_accept4.
3309         Define accept4 as a weak alias.
3310
3311         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3312         on [_DIRENT_HAVE_D_TYPE].
3313         * io/ftw.c (ftw_dir): Likewise.
3314
3315         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3316
3317         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3318
3319         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3320         Use the BSD numbers rather than the arbitrary ones we had.
3321         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3322         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3323         (SIGXCPU, SIGXFSZ): New macros.
3324         (_NSIG): Now 32.
3325
3326         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3327         initializer on [_LIBC_REENTRANT].
3328
3329         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3330         definitions inside [_POSIX_MAPPED_FILES].
3331
3332         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3333
3334         * dirent/opendir.c: Include <fcntl.h>.
3335
3336         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3337         (__libc_getspecific): Likewise.
3338         (__libc_key_create): Likewise.
3339
3340         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3341         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3342         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3343         (tmpfile64): Define as alias.
3344         * sysdeps/wordsize-64/tmpfile.c: File removed.
3345         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3346         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3347         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3348
3349         * stdio-common/vfscanf.c: Include <stdbool.h>.
3350         * nss/makedb.c: Likewise.
3351         * stdio-common/_i18n_number.h: Likewise.
3352         * argp/argp-help.c: Likewise.
3353         * posix/wordexp.c: Likewise.
3354         * sysdeps/posix/spawni.c: Likewise.
3355         * nss/nss_files/files-initgroups.c: Likewise.
3356         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3357         * nss/nss_files/files-initgroups.c: Likewise.
3358         * nss/nss_db/db-netgrp.c: Likewise.
3359         * nss/nss_db/db-initgroups.c: Likewise.
3360         * io/fchmodat.c: Include <sys/stat.h>.
3361
3362         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3363         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3364
3365         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3366         [HAVE_MMAP].
3367
3368         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3369         Add multiple inclusion protection.
3370
3371 2012-07-27  David S. Miller  <davem@davemloft.net>
3372
3373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3374
3375 2012-07-27  Gary Benson  <gbenson@redhat.com>
3376
3377         [BZ #14298]
3378         * elf/rtld.c: Include <stap-probe.h>.
3379         (dl_main): Added static probes "init_start" and "init_complete".
3380         * elf/dl-load.c: Include <stap-probe.h>.
3381         (lose): Take new parameter "nsid".
3382         Added static probe "map_failed".
3383         (_dl_map_object_from_fd): Pass namespace id to lose.
3384         Added static probe "map_start".
3385         (open_verify): Pass namespace id to lose.
3386         * elf/dl-open.c: Include <stap-probe.h>.
3387         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3388         and "reloc_complete".
3389         * elf/dl-close.c: Include <stap-probe.h>.
3390         (_dl_close_worker): Added static probes "unmap_start" and
3391         "unmap_complete".
3392         * elf/rtld-debugger-interface.txt: New file documenting the above.
3393
3394 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3395
3396         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3397         rather than a string variable.
3398         * sunrpc/rpc_main.c (h_output): Likewise.
3399         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3400
3401 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3402
3403         * inet/check_native.c: New file.
3404
3405 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3406
3407         [BZ #13629]
3408         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3409         if larger part has absolute value 1.0.
3410         * math/s_clog10.c (__clog10): Likewise.
3411         * math/s_clog10f.c (__clog10f): Likewise.
3412         * math/s_clog10l.c (__clog10l): Likewise.
3413         * math/s_clogf.c (__clogf): Likewise.
3414         * math/s_clogl.c (__clogl): Likewise.
3415         * math/libm-test.inc (clog_test): Add more tests.
3416         (clog10_test): Likewise.
3417         * sysdeps/i386/fpu/libm-test-ulps: Update.
3418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3419
3420         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3421         (pltexit): Likewise.
3422         (La_regs): Likewise.
3423         (La_retval): Likewise.
3424         (int_retval): Likewise.
3425         Update #error for removed macros to refer only to definitions in
3426         tst-audit.h.
3427         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3428         macro.
3429         (pltexit): Likewise.
3430         (La_regs): Likewise.
3431         (La_retval): Likewise.
3432         (int_retval): Likewise.
3433         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3434         macro.
3435         (pltexit): Likewise.
3436         (La_regs): Likewise.
3437         (La_retval): Likewise.
3438         (int_retval): Likewise.
3439         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3440         macro.
3441         (pltexit): Likewise.
3442         (La_regs): Likewise.
3443         (La_retval): Likewise.
3444         (int_retval): Likewise.
3445         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3446         macro.
3447         (pltexit): Likewise.
3448         (La_regs): Likewise.
3449         (La_retval): Likewise.
3450         (int_retval): Likewise.
3451         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3452         macro.
3453         (pltexit): Likewise.
3454         (La_regs): Likewise.
3455         (La_retval): Likewise.
3456         (int_retval): Likewise.
3457         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3458         macro.
3459         (pltexit): Likewise.
3460         (La_regs): Likewise.
3461         (La_retval): Likewise.
3462         (int_retval): Likewise.
3463         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3464         macro definitions in tst-audit.h.
3465         * sysdeps/i386/tst-audit.h: New file.
3466         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3467         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3468         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3469         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3470         * sysdeps/sh/tst-audit.h: Likewise.
3471         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3472         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3473         * sysdeps/x86_64/tst-audit.h: Likewise.
3474
3475 2012-07-26  Andreas Jaeger  <aj@suse.de>
3476
3477         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3478         ptrace.
3479
3480         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3481         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3482         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3483         PTRACE_O_MASK.
3484         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3485         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3486         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3487
3488         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3489         value.
3490
3491         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3492         _sigsys.
3493         (si_call_addr, si_syscall, si_arch): Define new macro.
3494         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3495         _sigsys.
3496         (si_call_addr, si_syscall, si_arch): Define new marcro.
3497         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3498         _sigsys.
3499         (si_call_addr, si_syscall, si_arch): Define new macro.
3500         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3501         _sigsys.
3502         (si_call_addr, si_syscall, si_arch): Define new macro.
3503
3504 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3505
3506         [BZ #13717]
3507         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3508         Change to 2.4.21 where previously 2.4.1.
3509         * sysdeps/unix/sysv/linux/configure: Regenerated.
3510         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3511         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3512         Linux kernel version.
3513         (__ASSUME_STD_AUXV): Remove.
3514         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3515         kernel version.
3516         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3517         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3518         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3519         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3520         (__ASSUME_NETLINK_SUPPORT): Likewise.
3521         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3522         (__no_netlink_support): Remove conditional definition.
3523         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3524         Remove.
3525         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3526         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3527         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3528         (if_nameindex_ioctl): Remove.
3529         (if_nameindex_netlink): Do not handle __no_netlink_support.
3530         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3531         code.
3532         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3533         Remove conditional code.
3534         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3535         code.
3536         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3537         unconditional.
3538         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3539         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3540         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3541         Remove.
3542         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3543         [!__ASSUME_STD_AUXV]: Remove conditional code.
3544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3545         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3546         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3548         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3549         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3550         code.
3551         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3553         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3554         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3555         conditional code.
3556         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3558         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3559         code.
3560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3561         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3562         conditional code.
3563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3564         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3565         code unconditional.
3566         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3567         conditional code.
3568         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3569         unconditional.
3570         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3571         conditional code.
3572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3573         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3574         unconditional.
3575         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3576         conditional code.
3577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3578         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3579         code unconditional.
3580         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3581         conditional code.
3582         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3583         unconditional.
3584         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3585         conditional code.
3586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3587         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3588         code unconditional.
3589         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3590         conditional code.
3591         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3592         unconditional.
3593         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3594         conditional code.
3595
3596 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3597
3598         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3599         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3600         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3601         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3602         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3603         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3604         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3605         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3606         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3607         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3608         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3609         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3610         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3611         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3612         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3613         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3614         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3615         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3616         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3617         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3618         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3619         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3620         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3621
3622 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3623
3624         * Versions.def: Add GLIBC_2.17.
3625         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3626         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3627         Introduce __libc_secure_getenv.
3628         * stdlib/Versions (2.17): Add secure_getenv
3629         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3630         * stdlib/secure-getenv.c: Rename __secure_getenv to
3631         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3632         symbol __secure_getenv for GLIBC_2.0.
3633         * stdlib/tst-secure-getenv.c: New.
3634         * stdlib/Makefile (tests): Add testcase.
3635         * manual/startup.texi (Environment Access): Document
3636         secure_getenv.
3637         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3638         __libc_secure_getenv.
3639         * inet/ruserpass.c (ruserpass): Likewise.
3640         * malloc/mtrace.c (mtrace): Likewise.
3641         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3642         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3643         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3644         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3645         HAVE_SECURE_GETENV.
3646         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3647         __secure_getenv to __libc_secure_getenv.
3648         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3650         Likewise.
3651         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3652         Likewise.
3653         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3654         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3655         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3656         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3657         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3658         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3660
3661 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3662
3663         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3664         (struct La_i86_retval): Likewise.
3665         (struct La_x86_64_regs): Likewise.
3666         (struct La_x86_64_retval): Likewise.
3667         (struct La_x32_regs): Likewise.
3668         (struct La_x32_retval): Likewise.
3669         (struct La_ppc32_regs): Likewise.
3670         (struct La_ppc32_retval): Likewise.
3671         (struct La_ppc64_regs): Likewise.
3672         (struct La_ppc64_retval): Likewise.
3673         (struct La_sh_regs): Likewise.
3674         (struct La_sh_retval): Likewise.
3675         (struct La_s390_32_regs): Likewise.
3676         (struct La_s390_32_retval): Likewise.
3677         (struct La_s390_64_regs): Likewise.
3678         (struct La_s390_64_retval): Likewise.
3679         (struct La_sparc32_regs): Likewise.
3680         (struct La_sparc32_retval): Likewise.
3681         (struct La_sparc64_regs): Likewise.
3682         (struct La_sparc64_retval): Likewise.
3683         (struct audit_ifaces): Remove architecture-specific pltenter and
3684         pltexit members.
3685         * sysdeps/i386/ldsodefs.h: New file.
3686         * sysdeps/powerpc/ldsodefs.h: Likewise.
3687         * sysdeps/s390/ldsodefs.h: Likewise.
3688         * sysdeps/sh/ldsodefs.h: Likewise.
3689         * sysdeps/sparc/ldsodefs.h: Likewise.
3690         * sysdeps/x86_64/ldsodefs.h: Likewise.
3691
3692 2012-07-25  Marek Polacek  <polacek@redhat.com>
3693
3694         [BZ #6808]
3695         * math/libm-test.inc (yn_test): Add another test.
3696         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3697         to ERANGE when the result is +-Inf.
3698         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3699         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3700         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3701         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3702
3703 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3704
3705         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3706         equal to 0.
3707         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3708         clock_t.
3709         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3710
3711 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3712
3713         * configure.in <sysdeps resolving>: Correct printing
3714         Implies_before.
3715         * configure: Regenerate.
3716
3717 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3718
3719         * math/w_ilogb.c: Include <limits.h>.
3720         * math/w_ilogbl.c: Likewise.
3721
3722 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3723
3724         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3725         va_copy.  Document allowing for unavailable va_copy only as
3726         pre-C99 compatibility.
3727         * manual/string.texi (Copying and Concatenation): Use va_copy
3728         instead of __va_copy in concat example.
3729
3730 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3731
3732         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3733         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3734         it if not null.
3735
3736         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3737         with O_NOLINK passed to __file_name_lookup.
3738
3739         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3740         with O_NOLINK passed to __file_name_lookup.
3741
3742         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3743         negative N or less than NGIDS.
3744
3745         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3746         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3747         enough.  Use memcpy instead of strncpy.
3748
3749 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3750
3751         * elf/Makefile (check-data): Remove.
3752         (localplt.data): New vpath directive.
3753         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3754         instead of $(check-data).
3755         * scripts/data/localplt-generic.data: Move to ...
3756         * sysdeps/generic/localplt.data: ... here.
3757         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3758         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3759         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3761         ... here.
3762         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3764         ... here.
3765         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3766         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3767         ... here.
3768         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3770         ... here.
3771         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3772         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3773         ... here.
3774         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3775         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3776         ... here.
3777
3778 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3779
3780         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3781         PPC32 and PPC64 files.
3782         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3783         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3784
3785 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3786
3787         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3788         __makecontext_ret to ...
3789         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3790         ... here and call exit if uc_link is NULL.  New file.
3791         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3792         __makecontext_ret.S.
3793         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3794         __makecontext_ret to ...
3795         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3796         ... here and call exit if uc_link is NULL.  New file.
3797         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3798         __makecontext_ret.S.
3799
3800 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3801
3802         * elf/elf.h (R_390_IRELATIVE): New definition.
3803         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3804         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3805         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3806         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3807         (elf_machine_lazy_rel): Likewise.
3808         * sysdeps/s390/dl-irel.h: New file.
3809         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3810         * sysdeps/s390/s390-64/memset.S: New asm code.
3811         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3812         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3813         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3814         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3815         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3816         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3817         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3818         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3819         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3820         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3821         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3822         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3823         * sysdeps/s390/s390-32/memset.S: New asm code.
3824         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3825
3826 2012-07-17  Marek Polacek  <polacek@redhat.com>
3827
3828         [BZ #14349]
3829         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3830         * sysdeps/s390/s390-64/configure.in: Likewise.
3831         * sysdeps/sparc/configure.in: Likewise.
3832         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3833         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3834         * sysdeps/i386/configure.in: Likewise.
3835         * sysdeps/x86_64/configure.in: Likewise.
3836         * sysdeps/sh/configure.in: Likewise.
3837         * sysdeps/s390/s390-32/configure: Regenerated.
3838         * sysdeps/s390/s390-64/configure: Likewise.
3839         * sysdeps/x86_64/configure: Likewise.
3840         * sysdeps/sh/configure: Likewise.
3841         * sysdeps/powerpc/powerpc64/configure: Likewise.
3842         * sysdeps/powerpc/powerpc32/configure: Likewise.
3843         * sysdeps/sparc/configure: Likwise.
3844         * sysdeps/i386/configure: Likewise.
3845
3846         * elf/dl-open.c: Comment fixes.
3847
3848 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3849
3850         * Makefile [CXX] (check-data): Remove.
3851         [CXX] (c++-types.data): New vpath directive.
3852         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3853         vpath.  Do not allow for C++ type data being missing.
3854         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3855         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3856         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3857         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3858         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3859         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3860         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3862         ... here.
3863         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3865         ... here.
3866         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3867         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3868         ... here.
3869         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3870         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3871         ... here.
3872         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3873         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3874         ... here.
3875         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3876         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3877         ... here.
3878         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3879         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3880         ... here.
3881         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3883
3884         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3885         definitions to architecture-specific files.
3886         (TLS_IE): Likewise.
3887         (TLS_LD): Likewise.
3888         (TLS_GD): Likewise.
3889         * sysdeps/i386/tls-macros.h: New file.
3890         * sysdeps/powerpc/tls-macros.h: Likewise.
3891         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3892         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3893         * sysdeps/sh/tls-macros.h: Likewise.
3894         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3895         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3896         * sysdeps/x86_64/tls-macros.h: Likewise.
3897
3898 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3899
3900         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3901         zero value for regular exit case.
3902
3903         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3904         (__start_context): Preserve zero value for regular exit case.
3905
3906 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3907             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3908
3909         * manual/setjmp.texi (setcontext): Clarify normal process
3910         termination when uc_link is the null pointer.
3911         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3912         exit call.
3913
3914 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3915
3916         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3917         preprocessor.  Test for each exception mask separately.
3918
3919 2012-07-16  Andreas Jaeger  <aj@suse.de>
3920
3921         * po/ru.po: Update from translation team.
3922
3923 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3924
3925         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3926         equal to 0.
3927         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3928         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3929         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3930         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3931         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3932
3933 2012-07-13  Andreas Jaeger  <aj@suse.de>
3934
3935         * po/fr.po: Update from translation team.
3936
3937 2012-07-12  Marek Polacek  <polacek@redhat.com>
3938
3939         [BZ #14173]
3940         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3941         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3942         loop condition.
3943
3944 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3945
3946         [BZ #13717]
3947         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3948         Change to 2.4.1 where previously 2.4.0.
3949         * sysdeps/unix/sysv/linux/configure: Regenerated.
3950         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3951         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3952         version.
3953         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3954         (__ASSUME_AT_CLKTCK): Remove.
3955         (__ASSUME_AT_PAGESIZE): Likewise.
3956         (__ASSUME_AT_XID): Likewise.
3957         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3958         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3959         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3960         unconditionally.
3961         (HAVE_AUX_PAGESIZE): Likewise.
3962         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3963         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3964         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3965
3966 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3967
3968         [BZ #14307]
3969         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3970         the temporary buffer used to invoke __gethostbyname2_r,
3971         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3972         host_data / struct gaih_addrtuple.
3973         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3974         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3975         header file nss/nsswitch.h.
3976         * nss/nsswitch.h (global scope): Add definition of implementation
3977         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3978         resolv/nss_dns/dns-host.c).
3979
3980 2012-07-11  Andreas Jaeger  <aj@suse.de>
3981
3982         * po/fr.po: Update from translation team.
3983
3984         * po/sv.po: Update from translation team
3985         * po/fr.po: Another update from translation team.
3986
3987 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3988
3989         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3990         for subnormals or multiply small sinh result by itself.
3991         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3993
3994 2012-07-11  David S. Miller  <davem@davemloft.net>
3995
3996         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3997
3998 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3999
4000         [BZ #14347]
4001         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4002         (INTERNAL_MARK): Shift it here.
4003
4004 2012-07-10  Marek Polacek  <polacek@redhat.com>
4005
4006         [BZ #14151]
4007         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4008         libc_cv_asm_global_directive with .globl.
4009         * configure: Regenerated.
4010         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4011         with .globl.
4012         * sysdeps/i386/configure: Regenerated.
4013         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4014         with .globl.
4015         * sysdeps/x86_64/configure: Regenerated.
4016         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4017         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4018         * elf/tst-unique2mod2.c: Likewise.
4019         * elf/tst-unique2mod1.c: Likewise.
4020         * elf/tst-unique1mod2.c: Likewise.
4021         * elf/tst-unique1mod1.c: Likewise.
4022         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4023         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4024         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4025         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4026         * sysdeps/mach/sysdep.h: Likewise.
4027         * sysdeps/i386/sysdep.h: Likewise.
4028         * sysdeps/i386/i386-mcount.S: Likewise.
4029         * sysdeps/x86_64/_mcount.S: Likewise.
4030         * sysdeps/x86_64/sysdep.h: Likewise.
4031         * sysdeps/sh/_mcount.S: Likewise.
4032         * sysdeps/sh/sysdep.h: Likewise.
4033         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4034         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4035         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4036         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4037         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4038         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4039         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4040         * locale/localeinfo.h: Likewise.
4041         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4042         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4043
4044 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4045
4046         [BZ #14336]
4047         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4048         system".
4049         * manual/message.texi (The Uniforum approach): Likewise.
4050         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4051         (glibc iconv Implementation): Likewise.
4052
4053 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4054
4055         [BZ #14337]
4056         * math/s_clog.c (__clog): Avoid scaling a value down where that
4057         could result in underflow.
4058         * math/s_clog10.c (__clog10): Likewise.
4059         * math/s_clog10f.c (__clog10f): Likewise.
4060         * math/s_clog10l.c (__clog10l): Likewise.
4061         * math/s_clogf.c (__clogf): Likewise.
4062         * math/s_clogl.c (__clogl): Likewise.
4063         * math/libm-test.inc (clog_test): Add more tests.
4064         (clog10_test): Likewise.
4065         * sysdeps/i386/fpu/libm-test-ulps: Update.
4066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4067
4068 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4069
4070         [BZ #14283]
4071         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4072         by 7 not 8 to examine high bit of fractional part.
4073
4074         [BZ #14042]
4075         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4076         for call to __mcount_internal.
4077         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4078         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4079         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4080
4081 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4082
4083         [BZ #14154]
4084         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4085         approximation for values within 0x1p-13f of an odd multiple of
4086         pi/4.
4087         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4088         exception.  Add more tests.
4089         * sysdeps/i386/fpu/libm-test-ulps: Update.
4090
4091         [BZ #6778]
4092         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4093         inputs and return -1 for them.  Do not check for +Inf in case not
4094         reachable for +Inf.
4095         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4096         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4097         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4098         and return -1 for them.  Do not check for +Inf in case not
4099         reachable for +Inf.
4100         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4101         define.
4102         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4103         and return -1 for them.  Do not check for +Inf in case not
4104         reachable for +Inf.
4105         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4106         spurious underflow.
4107         * sysdeps/i386/fpu/libm-test-ulps: Update.
4108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4109
4110 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4111
4112         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4113
4114 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4115
4116         [BZ #14157]
4117         [BZ #14331]
4118         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4119         could result in spurious underflow.  Scale down values above
4120         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4121         * math/s_csqrtf.c (__csqrtf): Likewise.
4122         * math/s_csqrtl.c (__csqrtl): Likewise.
4123         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4124         spurious underflow.
4125         * sysdeps/i386/fpu/libm-test-ulps: Update.
4126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4127
4128 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4129
4130         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4131         xopen-msg.sed.
4132         * catgets/xopen-msg.awk: New file.
4133         * catgets/xopen-msg.sed: Removed.
4134
4135         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4136         po2text.sed.
4137         * intl/po2test.awk: New file.
4138         * intl/po2test.sed: Removed.
4139
4140 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4141
4142         [BZ #14328]
4143         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4144         or multiply small sinh result by itself.
4145         * math/s_ctanf.c (__ctanf): Likewise.
4146         * math/s_ctanh.c (__ctanh): Likewise.
4147         * math/s_ctanhf.c (__ctanhf): Likewise.
4148         * math/s_ctanhl.c (__ctanhl): Likewise.
4149         * math/s_ctanl.c (__ctanl): Likewise.
4150         * math/libm-test.inc (ctan_test_tonearest): New function.
4151         (ctan_test_towardzero): Likewise.
4152         (ctan_test_downward): Likewise.
4153         (ctan_test_upward): Likewise.
4154         (ctanh_test_tonearest): Likewise.
4155         (ctanh_test_towardzero): Likewise.
4156         (ctanh_test_downward): Likewise.
4157         (ctanh_test_upward): Likewise.
4158         (main): Call these new functions.
4159         * sysdeps/i386/fpu/libm-test-ulps: Update.
4160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4161
4162 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4163
4164         * .gitignore: Delete /ports entry.
4165
4166 2012-07-03  Andreas Jaeger  <aj@suse.de>
4167
4168         * po/bg.po: Update from translation team.
4169         * po/cs.po: Likewise.
4170         * po/de.po: Likewise.
4171         * po/hr.po: Likewise.
4172         * po/nl.pl: Likewise.
4173         * po/pl.po: Likewise.
4174         * po/vi.po: Likewise.
4175
4176 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4177
4178         * Makeconfig [!+link] (+link-before-libc): New variable.
4179         [!+link] (+link-after-libc): Likewise.
4180         [!+link] (+link-tests): Likewise.
4181         [!+link] (+link): Define in terms of $(+link-before-libc) and
4182         $(+link-after-libc).
4183         [!+link-static] (+link-static-before-libc): New variable.
4184         [!+link-static] (+link-static-after-libc): Likewise.
4185         [!+link-static] (+link-static-tests): Likewise.
4186         [!+link-static] (+link-static): Define in terms of
4187         $(+link-static-before-libc) and $(+link-static-after-libc).
4188         [build-shared] (link-libc-before-gnulib): New variable.
4189         [build-shared] (link-libc-tests): Likewise.
4190         [build-shared] (link-libc): Define in terms of
4191         $(link-libc-before-gnulib).
4192         [!build-shared] (link-libc-tests): New variable.
4193         (link-libc-static-tests): New variable.
4194         [!gnulib] (gnulib-arch): New variable.
4195         [!gnulib] (gnulib-tests): Likewise.
4196         [!gnulib] (static-gnulib-arch): Likewise.
4197         [!gnulib] (static-gnulib-tests): Likewise.
4198         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4199         Define with "=" instead of ":=".
4200         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4201         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4202         * Rules (binaries-all-notests): New variable.
4203         (binaries-all-tests): Likewise.
4204         (binaries-static-notests): Likewise.
4205         (binaries-static-tests): Likewise.
4206         (binaries-all): Define using $(binaries-all-notests) and
4207         $(binaries-all-tests).
4208         (binaries-static): Define using $(binaries-static-notests) and
4209         $(binaries-static-tests).
4210         (binaries-shared-tests): New variable.
4211         (binaries-shared-notests): Likewise.
4212         (binaries-shared): Remove variable.
4213         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4214         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4215         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4216         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4217         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4218         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4219         * elf/Makefile (sln-modules): New variable.
4220         (extra-objs): Add $(sln-modules:=.o).
4221         (ldconfig-modules): Add static-stubs.
4222         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4223         * elf/static-stubs.c: New file.
4224
4225         [BZ #14283]
4226         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4227         by 7 not 8 to examine high bit of fractional part.  Use volatile
4228         variables when splitting into final array of floats if
4229         __FLT_EVAL_METHOD__ != 0.
4230         * math/libm-test.inc (cos_test): Add another test.
4231         (sin_test): Likewise.
4232         * sysdeps/i386/fpu/libm-test-ulps: Update.
4233
4234         [BZ #14273]
4235         * math/libm-test.inc (cosh_test): Add more tests.
4236
4237         * version.h (RELEASE): Set to "development".
4238         (VERSION): Set to "2.16.90".
4239
4240 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4241
4242         * NEWS: Update copyright. Remove last-updated date.
4243         Mention math library bug fixes and timezone data changes.
4244         * README: Mention GNU/Hurd, x32, and HPPA support status.
4245
4246 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4247
4248         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4249
4250 2012-06-27  Andreas Jaeger  <aj@suse.de>
4251
4252         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4253
4254 2012-06-25  Andreas Jaeger  <aj@suse.de>
4255
4256         * sysdeps/s390/fpu/libm-test-ulps: Update.
4257
4258 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4259             Thomas Schwinge  <thomas@codesourcery.com>
4260
4261         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4262         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4263         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4264         fanotify_mark.
4265
4266 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4267
4268         * sysdeps/mach/start.c: Remove file.
4269         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4270         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4271         * sysdeps/sh/init-first.c: Likewise.
4272
4273         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4274         registers for frame unwinding purposes, add CFI directives.
4275         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4276         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4277         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4278         Likewise.
4279
4280         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4281         __fortify_fail returning.
4282         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4283
4284         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4285         sysdeps/sh/____longjmp_chk.S.
4286         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4287         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4288         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4289         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4290
4291         * sysdeps/sh/abort-instr.h: New file.
4292         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4293         process in case exit returns.
4294
4295         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4296         initialize the GOT register before use.
4297
4298         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4299         calculation of ARGC > 4.
4300
4301         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4302         meaningful names to some local labels.
4303
4304 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4305             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4306
4307         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4308         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4309         (__arch_compare_and_exchange_val_16_acq): Likewise.
4310         (__arch_compare_and_exchange_val_32_acq): Likewise.
4311         (atomic_exchange_and_add): Fix gUSA sequence.
4312         (atomic_add): Likewise.
4313         (atomic_add_negative): Likewise.
4314         (atomic_add_zero): Likewise.
4315         (atomic_bit_test_set): Likewise.
4316
4317 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4318
4319         [BZ #13579]
4320         * include/link.h (struct link_map): Add l_free_initfini.
4321         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4322         l_initfini.
4323         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4324         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4325         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4326         set.
4327
4328 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4329
4330         * configure.in: Use AC_LANG_SOURCE.
4331         * configure: Regenerate.
4332
4333 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4334
4335         * configure.in (libc_cv_localstatedir): New substituted variable.
4336         * configure: Regenerated.
4337         * config.make.in (localstatedir): New variable, substituted from
4338         libc_cv_localstatedir.
4339         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4340         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4341         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4342         * sysdeps/gnu/configure: Regenerated.
4343
4344 2012-06-21  Jeff Law  <law@redhat.com>
4345
4346         [BZ #14277]
4347         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4348         free.  Simplify list management for _LIBC case.
4349
4350 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4351
4352         [BZ #14273]
4353         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4354         Clear sign bit of 64-bit integer value before comparing against
4355         overflow value.
4356
4357         * sysdeps/mach/configure: Regenerated.
4358
4359 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4360
4361         [BZ #14278]
4362         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4363
4364 2012-06-21  Jeff Law  <law@redhat.com>
4365
4366         [BZ #13882]
4367         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4368         uint16_t for elements in the "seen" array to avoid char overflows.
4369         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4370         * elf/dl-open.c (dl_open_worker): Likewise.
4371
4372 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4373
4374         * scripts/list-sources.sh: Scan PORTS for translations.
4375         * po/libc.pot: Regenerated.
4376
4377 2012-06-21  Andreas Jaeger  <aj@suse.de>
4378
4379         [BZ #12194]
4380         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4381         warning.
4382         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4383         * bits/byteswap-16.h (__bswap_16): Likewise.
4384         * bits/byteswap.h (__bswap_constant_16): Likewise.
4385
4386 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         [BZ #14117]
4389         * sysdeps/i386/fpu_control.h: Removed.
4390         * sysdeps/x86_64/fpu_control.h: Moved to ...
4391         * sysdeps/x86/fpu_control.h: Here.
4392
4393         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4394         (_FPU_SETCW): Likewise.
4395
4396 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4397
4398         [BZ #14117]
4399         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4400         * sysdeps/x86/fpu/bits/mathinline.h: This.
4401         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4402
4403         [BZ #14050]
4404         [BZ #14117]
4405         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4406         functions if __x86_64__ is defined.
4407
4408 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4409
4410         * string/endian.h: Add !__ASSEMBLER__ condition for including
4411         conversion interfaces.
4412
4413 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4414
4415         [BZ #14241]
4416         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4417         of ABS(x) in calculating zero to negative powers other than odd
4418         integers.
4419         * math/libm-test.inc (pow_test): Add more tests.
4420
4421 2012-06-15  Andreas Jaeger  <aj@suse.de>
4422
4423         * manual/contrib.texi (Contributors): Update entry of Liubov
4424         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4425         Machado Filho.
4426
4427 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4428
4429         * string/string.h: Add __wur to GNU version of strerror_r.
4430
4431 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4432
4433         [BZ #14229]
4434         * string/Makefile (tests): Add tst-strtok_r.
4435         * string/tst-strtok_r.c: New file.
4436         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4437         RAX_LP/RDX_LP on SAVE_PTR.
4438
4439 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4440
4441         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4442
4443 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4444
4445         * libm_test.inc (csqrt_test): Allow more spurious underflow
4446         exceptions.
4447         (j0_test): Likewise.
4448         (j1_test): Likewise.
4449         (y0_test): Likewise.
4450         (y1_test): Likewise.
4451
4452 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4453
4454         * po/Makefile (libc.pot): Use UTF-8 charset.
4455
4456 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4457
4458         [BZ #14210]
4459         Suppress sign-conversion warning from FD_SET.
4460         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4461         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4462         not unsigned long int.
4463         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4464
4465 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4466
4467         [BZ #14050]
4468         [BZ #14117]
4469         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4470         __extern_always_inline instead of __extern_inline.
4471         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4472         (__signbit): Likewise.
4473         (__signbitl): Support C++ namespace.
4474         (lrintf): New inline function.
4475         (lrint): Likewise.
4476         (llrintf): Likewise.
4477         (llrint): Likewise.
4478         (fmaxf): Likewise.
4479         (fmax): Likewise.
4480         (fminf): Likewise.
4481         (fmin): Likewise.
4482         (rint): Likewise.
4483         (rintf): Likewise.
4484         (ceil): Likewise.
4485         (ceilf): Likewise.
4486         (floor): Likewise.
4487         (floorf): Likewise.
4488         (nearbyint): Likewise.
4489         (nearbyintf): Likewise.
4490
4491 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4492
4493         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4494         non-default versions.
4495
4496 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4497
4498         [BZ #14218]
4499         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4500
4501 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4502
4503         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4504         (FE_UPWARD, FE_DOWNWARD): Don't define.
4505         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4506         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4507
4508         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4509         reading it.
4510         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4511         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4512
4513 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4514
4515         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4516         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4517         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4518         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4519
4520 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4521
4522         [BZ #14117]
4523         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4524         * sysdeps/i386/fpu/Implies: New file.
4525         * sysdeps/x86_64/fpu/Implies: Likewise.
4526         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4527         * sysdeps/x86/fpu/bits/fenv.h: This.
4528
4529         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4530         __SSE_MATH__.
4531
4532 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4533
4534         [BZ #14134]
4535         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4536         character 0xffff that matches the last element of the
4537         conversion table.
4538
4539 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4540
4541         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4542         fmodl commit.
4543
4544 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4545
4546         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4547         values higher than 25.6283.
4548
4549 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4550
4551         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4552         subnormal exponent extraction and add some __builtin_expect.
4553         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4554         Fix for subnormal mantissa calculation.
4555
4556 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4557
4558         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4559         cpu2 is -1 and errno is not ENOSYS.
4560
4561 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4562
4563         [BZ #14117]
4564         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4565         * sysdeps/x86/bits/string.h: This.
4566         * sysdeps/x86_64/bits/string.h: Removed.
4567
4568         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4569         if not compiling for x86-64, but compiling for >= i486.
4570
4571         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4572         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4573
4574         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4575         New macro from Linux kernel 3.4.0.
4576         (FP_XSTATE_MAGIC2): Likewise.
4577         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4578         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4579         (struct _fpx_sw_bytes): New struct.
4580         (struct _xsave_hdr): Likewise.
4581         (struct _ymmh_state): Likewise.
4582         (struct _xstate): Likewise.
4583
4584         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4585         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4586         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4587         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4588         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4589         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4590
4591         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4592         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4593         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4594         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4595         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4596         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4597
4598 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4599
4600         [BZ #13743]
4601         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4602         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4603         (sysdep_headers): Include sys/platform/ppc.h.
4604         * sysdeps/powerpc/test-gettimebase.c: Test for
4605         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4606         * manual/Makefile (appendices): Include platform.texi.
4607         * manual/contrib.texi (Contributors): Update @node pointers.
4608         * manual/maint.texi (Maintenance): Likewise.
4609         (Platform): New node.
4610         * manual/platform.texi: New file.  Document the new features.
4611
4612 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4613             Jakub Jelinek  <jakub@redhat.com>
4614
4615         [BZ #14188]
4616         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4617         where __builtin_expect is unavailable.
4618
4619 2012-06-03  David S. Miller  <davem@davemloft.net>
4620
4621         * stdlib/longlong.h: Updated from GCC.
4622
4623 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4624
4625         [BZ #14042]
4626         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4627         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4628         __mcount_internal.
4629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4630         (GLIBC_2.16): Likewise.
4631
4632 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4633
4634         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4635
4636 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4637
4638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4639         (default-abi): New variable.
4640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4641         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4642         variable.
4643         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4644         Likewise.
4645         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4646         Likewise.
4647         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4648         Likewise.
4649
4650         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4651         definition.  Document in comment.
4652
4653 2012-06-01  David S. Miller  <davem@davemloft.net>
4654
4655         * stdlib/longlong.h: Updated from GCC.
4656
4657 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4658
4659         [BZ #14117]
4660         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4661         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4662         sys/debugreg.h sys/io.h here.
4663         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4664         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4665         sys/io.h.
4666         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4667         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4668         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4669         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4670         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4671         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4672
4673         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4674         Define only if __x86_64__ is defined.
4675
4676 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4677
4678         [BZ #14048]
4679         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4680         Use int64_t for variable i.
4681         * math/libm-test.inc (fmod_test): Add more tests.
4682
4683         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4684         z computation is not scheduled after fetestexcept.
4685         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4686         Use math_force_eval instead of asm to ensure calculation scheduled
4687         before exception test.
4688         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4689         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4690
4691 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4692
4693         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4694         computation is not scheduled after fetestexcept.
4695
4696 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4697
4698         [BZ #14117]
4699         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4700         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4701
4702 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4703
4704         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4705         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4706
4707 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4708
4709         [BZ #14117]
4710         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4711         <bits/wordsize.h>.
4712         (__WCHAR_MIN): Support __WORDSIZE == 64.
4713         (__WCHAR_MAX): Likewise.
4714
4715         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4716         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4717
4718         [BZ #14183]
4719         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4720         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4721
4722         [BZ #14117]
4723         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4724         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4725
4726         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4727         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4728
4729         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4730         Defined to 1 if __x86_64__ isn't defined.
4731         (_STAT_VER_LINUX_OLD): New.
4732         (st_atime): Remove duplicate.
4733         (st_mtime): Likewise.
4734         (st_ctime): Likewise.
4735
4736 2012-05-31  David S. Miller  <davem@davemloft.net>
4737
4738         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4739         entries.
4740
4741 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4742
4743         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4744         gen-libm-test.pl.
4745
4746         [BZ #14132]
4747         * elf/dl-reloc.c: Include <_itoa.h>.
4748         (_dl_reloc_bad_type): Remove use of INTUSE.
4749         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4750         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4751         * stdio-common/psiginfo.c (psiginfo): Likewise.
4752         * stdio-common/psignal.c (psignal): Likewise.
4753         * string/strsignal.c (strsignal): Likewise.
4754         * include/signal.h (_sys_siglist): Declare hidden proto.
4755         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4756         INTVARDEF with libc_hidden_data_def.
4757         * stdio-common/itoa-udigits.c: Likewise.
4758         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4759         (_itoa_lower_digits_internal): Remove declaration.
4760         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4761         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4762         (_sys_sigabbrev_internal): Remove aliases.
4763         (_sys_siglist): Define hidden alias.
4764
4765 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4766
4767         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4768         bits/sysctl.h.
4769
4770 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4771
4772         [BZ #14117]
4773         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4774         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4775
4776         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4777         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4778         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4779         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4780         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4781         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4782
4783         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4784         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4785         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4786
4787         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4788         with __addr.
4789         (insw): Likewise.
4790         (insl): Likewise.
4791         (outsb): Likewise.
4792         (outsw): Likewise.
4793         (outsl): Likewise.
4794
4795         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4796         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4797         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4798
4799         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4800         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4801         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4802         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4803         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4804         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4805
4806         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4807         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4808
4809         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4810         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4811
4812         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4813         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4814         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4815
4816         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4817         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4818         to ...
4819         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4820
4821         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4822         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4823         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4824
4825         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4826         for x86-64.
4827         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4828
4829 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4830
4831         * math/math.h (M_El): Use two more decimal places.
4832         (M_LOG2El): Likewise.
4833         (M_LOG10El): Likewise.
4834         (M_LN2l): Likewise.
4835         (M_LN10l): Likewise.
4836         (M_PIl): Likewise.
4837         (M_PI_2l): Likewise.
4838         (M_PI_4l): Likewise.
4839         (M_1_PIl): Likewise.
4840         (M_2_PIl): Likewise.
4841         (M_2_SQRTPIl): Likewise.
4842         (M_SQRT2l): Likewise.
4843         (M_SQRT1_2l): Likewise.
4844
4845 2012-05-31  David S. Miller  <davem@davemloft.net>
4846
4847         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4848         values between float registers.
4849         * sysdeps/sparc/sparc64/memset.S: Likewise.
4850         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4851
4852 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4853
4854         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4855         -D_FORTIFY_SOURCE=1.
4856         (CPPFLAGS-tst-longjmp_chk.c): Define.
4857         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4858         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4859         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4860         CFLAGS-tst-wchar-h.c.
4861
4862 2012-05-31  Marek Polacek  <polacek@redhat.com>
4863
4864         [BZ #14132]
4865         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4866         __endmntent_internal): Remove declaration.
4867         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4868         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4869         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4870
4871 2012-05-30  David S. Miller  <davem@davemloft.net>
4872
4873         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4874         (___Q_simulate_exceptions): Use real FP ops rather than writing
4875         into the %fsr.
4876         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4877         Likewise.
4878
4879 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4880
4881         [BZ #14117]
4882         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4883         * sysdeps/x86/bits/xtitypes.h: This.
4884
4885         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4886         * sysdeps/x86/bits/wordsize.h: This.
4887
4888         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4889         * sysdeps/x86/bits/huge_vall.h: This.
4890
4891         * sysdeps/i386/bits/select.h: Removed.
4892         * sysdeps/x86_64/bits/select.h: Renamed to ...
4893         * sysdeps/x86/bits/select.h: This.
4894
4895         * sysdeps/i386/bits/setjmp.h: Removed.
4896         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4897         * sysdeps/x86/bits/setjmp.h: This.
4898
4899         * sysdeps/i386/bits/mathdef.h: Removed.
4900         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4901         * sysdeps/x86/bits/mathdef.h: This.
4902
4903 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4904
4905         [BZ #14132]
4906         * include/sys/socket.h (__connect_internal)
4907         (__libc_sa_len_internal): Remove declaration.
4908         (__connect, __libc_sa_len): Declare hidden_proto.
4909         (SA_LEN): Remove use of INTUSE.
4910         * socket/connect.c: Add libc_hidden_def.
4911         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4912         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4913         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4914         alias.
4915         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4916         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4917         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4918         of adding _internal alias.
4919
4920 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4921
4922         [BZ #14117]
4923         * sysdeps/i386/bits/link.h: Removed.
4924         * sysdeps/i386/bits/linkmap.h: Likewise.
4925         * sysdeps/x86_64/bits/link.h: Renamed to ...
4926         * sysdeps/x86/bits/link.h: This.
4927         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4928         * sysdeps/x86/bits/linkmap.h: This.
4929
4930         * sysdeps/i386/bits/endian.h: Removed.
4931         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4932         * sysdeps/x86/bits/endian.h: This.
4933
4934         * sysdeps/i386/bits/byteswap.h: Removed.
4935         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4936         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4937         * sysdeps/x86/bits/byteswap.h: This.
4938         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4939         * sysdeps/x86/bits/byteswap-16.h: This.
4940         * sysdeps/i386/Implies: Add x86.
4941         * sysdeps/x86_64/Implies: Likewise.
4942
4943 2012-05-30  David S. Miller  <davem@davemloft.net>
4944
4945         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4946         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4947         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4948         (FP_TRAPPING_EXCEPTIONS): Define.
4949         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4950         (FP_TRAPPING_EXCEPTIONS): Define.
4951         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4952         subnormals only when inexact has been signalled or underflow
4953         exceptions are enabled.
4954         (_FP_PACK_CANONICAL): Likewise.
4955
4956 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4957
4958         [BZ #14183]
4959         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4960         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4961
4962 2012-05-30  Richard Henderson  <rth@twiddle.net>
4963
4964         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4965         with #ifndef NOT_IN_libc.
4966
4967         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4968         marked to avoid plt entry.
4969
4970 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4971
4972         [BZ #14112]
4973         * Makeconfig (default-abi): New macro.
4974         (abi-includes): Likewise.
4975         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4976         $(abi-$(default-abi)-lib-soname) for soname if defined.
4977         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4978         abi-variants.
4979         * Makefile (installed-stubs): Likewise.
4980         * include/stubs-biarch.h: Removed.
4981         * scripts/lib-names.awk: Only handle one library at a time.
4982         * scripts/soversions.awk: Remove WORDSIZE support.
4983         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4984         entries.
4985         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4986         Removed.
4987         (syscall-list-default-condition): Likewise.
4988         (syscall-list-default-condition): Likewise.
4989         (syscall-list-includes): Likewise.
4990         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4991         syscall-list-* with abi-*.  Handle undefined abi-variants.
4992         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4993         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4994         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4995         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4996         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4997         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4998         Removed.
4999         (syscall-list-32-options): Likewise.
5000         (syscall-list-32-condition): Likewise.
5001         (syscall-list-64-options): Likewise.
5002         (syscall-list-64-condition): Likewise.
5003         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5004         macro.
5005         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5006         Renamed to ...
5007         (abi-*): This.
5008         (abi-64-ld-soname): New macro.
5009         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5010         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5011         Renamed to ...
5012         (abi-*): This.
5013         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5014         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5015
5016 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5017
5018         * sysdeps/unix/sysv/linux/kernel-features.h
5019         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5020         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5021         include <kernel-features.h>.
5022         [!__NR_ftruncate64]: Remove conditional code.
5023         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5024         [__NR_ftruncate64]: Make code unconditional.
5025         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5026         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5027         include <kernel-features.h>.
5028         [!__NR_ftruncate64]: Remove conditional code.
5029         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5030         [__NR_ftruncate64]: Make code unconditional.
5031         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5033         include <kernel-features.h>.
5034         [!__NR_ftruncate64]: Remove conditional code.
5035         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5036         [__NR_ftruncate64]: Make code unconditional.
5037         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5039         include <kernel-features.h>.
5040         [!__NR_ftruncate64]: Remove conditional code.
5041         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5042         [__NR_ftruncate64]: Make code unconditional.
5043         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5044
5045         * configure.in (libc_cv_fpie): Weaken to a compile test using
5046         LIBC_TRY_CC_OPTION.
5047         * configure: Regenerated.
5048
5049 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5050
5051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5054         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5055         Refreshed.
5056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5057         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5061         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5062         Refreshed.
5063
5064 2012-05-27  David S. Miller  <davem@davemloft.net>
5065
5066         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5067         (___Q_zero): New.
5068         (__Q_simulate_exceptions): Return void.  Change to simulate
5069         exceptions by writing into the %fsr.
5070         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5071         (__Qp_handle_exceptions): Likewise.
5072         (numbers): Delete.
5073         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5074         __Qp_handle_exceptions.
5075         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5076         __Qp_handle_exceptions.
5077         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5078         as unused and give dummy FP_RND_NEAREST initializer.
5079         (FP_INHIBIT_RESULTS): Define.
5080         (___Q_simulate_exceptions): Update declaration.
5081         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5082         formatting.
5083         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5084         as unused and give dummy FP_RND_NEAREST initializer.
5085         (__Qp_handle_exceptions): Update declaration.
5086         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5087         formatting.
5088
5089 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5090
5091         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5092         the temporary FPU control word.
5093         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5094         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5095         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5096         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5097         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5098         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5099         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5100         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5101         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5102         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5103         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5104
5105 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5106
5107         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5108         fields.
5109
5110 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5111
5112         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5113         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5114         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5115         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5116         Likewise.
5117         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5118         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5119         Likewise.
5120
5121 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5122
5123         * po/h.po: Update from translation team.
5124
5125 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5126
5127         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5128
5129         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5130         handling of denormals.
5131         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5132         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5133         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5134         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5135         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5136         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5137         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5138         Likewise.
5139
5140 2012-05-26  Marek Polacek  <polacek@redhat.com>
5141
5142         [BZ #14152]
5143         * math/libm-test.inc (fma_test): Don't always expect underflow
5144         exception.
5145
5146 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5147
5148         [BZ #12416]
5149         * elf/tst-execstack.c: Include stackinfo.h.
5150         (do_test): Adjust test case to ensure that pthread_getattr_np
5151         behaviour remains the same after marking stack executable.
5152
5153 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5154
5155         * sysdeps/unix/sysv/linux/kernel-features.h
5156         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5157         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5158         kernel-features.h.
5159         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5160         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5161         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5162         kernel-features.h.
5163         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5164         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5165
5166 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5167
5168         * configure.in: Define the default includes to being none.
5169         * configure: Regenerated.
5170
5171 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5172
5173         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5174         * sysdeps/x86_64/setjmp.S: Likewise.
5175         * sysdeps/i386/bsd-setjmp.S: Likewise.
5176         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5177         * sysdeps/i386/setjmp.S: Likewise.
5178         * sysdeps/i386/__longjmp.S: Likewise.
5179         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5180         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5181
5182         * include/stap-probe.h: New file.
5183         * configure.in: Handle --enable-systemtap.
5184         * configure: Regenerated.
5185         * config.h.in (USE_STAP_PROBE): New #undef.
5186         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5187         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5188         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5189
5190 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5191
5192         [BZ #13717]
5193         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5194         to 2.4.0 where earlier.
5195         * sysdeps/unix/sysv/linux/configure: Regenerated.
5196         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5197         <kernel-features.h>.
5198         [__ASSUME_32BITUIDS]: Make code unconditional.
5199         [!__ASSUME_32BITUIDS]: Remove conditional code.
5200         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5201         <kernel-features.h>.
5202         [__ASSUME_32BITUIDS]: Make code unconditional.
5203         [!__ASSUME_32BITUIDS]: Remove conditional code.
5204         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5205         [__ASSUME_32BITUIDS]: Make code unconditional.
5206         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5207         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5208         <kernel-features.h>.
5209         [__ASSUME_32BITUIDS]: Make code unconditional.
5210         [!__ASSUME_32BITUIDS]: Remove conditional code.
5211         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5212         <kernel-features.h>.
5213         [__ASSUME_32BITUIDS]: Make code unconditional.
5214         [!__ASSUME_32BITUIDS]: Remove conditional code.
5215         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5216         <kernel-features.h>.
5217         [__ASSUME_32BITUIDS]: Make code unconditional.
5218         [!__ASSUME_32BITUIDS]: Remove conditional code.
5219         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5220         <kernel-features.h>.
5221         [__ASSUME_32BITUIDS]: Make code unconditional.
5222         [!__ASSUME_32BITUIDS]: Remove conditional code.
5223         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5224         <kernel-features.h>.
5225         [__ASSUME_32BITUIDS]: Make code unconditional.
5226         [!__ASSUME_32BITUIDS]: Remove conditional code.
5227         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5228         <kernel-features.h>.
5229         [__ASSUME_32BITUIDS]: Make code unconditional.
5230         [!__ASSUME_32BITUIDS]: Remove conditional code.
5231         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5232         <kernel-features.h>.
5233         [__ASSUME_32BITUIDS]: Make code unconditional.
5234         [!__ASSUME_32BITUIDS]: Remove conditional code.
5235         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5236         <kernel-features.h>.
5237         [__ASSUME_32BITUIDS]: Make code unconditional.
5238         [!__ASSUME_32BITUIDS]: Remove conditional code.
5239         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5240         <kernel-features.h>.
5241         [__ASSUME_32BITUIDS]: Make code unconditional.
5242         [!__ASSUME_32BITUIDS]: Remove conditional code.
5243         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5244         <kernel-features.h>.
5245         [__ASSUME_32BITUIDS]: Make code unconditional.
5246         [!__ASSUME_32BITUIDS]: Remove conditional code.
5247         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5248         <kernel-features.h>.
5249         [__NR_setresgid] (__setresgid): Do not declare.
5250         [__ASSUME_32BITUIDS]: Make code unconditional.
5251         [!__ASSUME_32BITUIDS]: Remove conditional code.
5252         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5253         <kernel-features.h>.
5254         [__NR_setresuid] (__setresuid): Do not declare.
5255         [__ASSUME_32BITUIDS]: Make code unconditional.
5256         [!__ASSUME_32BITUIDS]: Remove conditional code.
5257         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5258         <kernel-features.h>.
5259         [__ASSUME_32BITUIDS]: Make code unconditional.
5260         [!__ASSUME_32BITUIDS]: Remove conditional code.
5261         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5262         <kernel-features.h>.
5263         [__ASSUME_32BITUIDS]: Make code unconditional.
5264         [!__ASSUME_32BITUIDS]: Remove conditional code.
5265         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5266         <kernel-features.h>.
5267         [__ASSUME_32BITUIDS]: Make code unconditional.
5268         [!__ASSUME_32BITUIDS]: Remove conditional code.
5269         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5270         <kernel-features.h>.
5271         [__ASSUME_32BITUIDS]: Make code unconditional.
5272         [!__ASSUME_32BITUIDS]: Remove conditional code.
5273         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5274         <kernel-features.h>.
5275         [__ASSUME_32BITUIDS]: Make code unconditional.
5276         [!__ASSUME_32BITUIDS]: Remove conditional code.
5277         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5278         <kernel-features.h>.
5279         [__ASSUME_32BITUIDS]: Make code unconditional.
5280         [!__ASSUME_32BITUIDS]: Remove conditional code.
5281         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5282         <kernel-features.h>.
5283         [__ASSUME_32BITUIDS]: Make code unconditional.
5284         [!__ASSUME_32BITUIDS]: Remove conditional code.
5285         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5286         <kernel-features.h>.
5287         [__ASSUME_32BITUIDS]: Make code unconditional.
5288         [!__ASSUME_32BITUIDS]: Remove conditional code.
5289         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5290         <kernel-features.h>.
5291         [__ASSUME_32BITUIDS]: Make code unconditional.
5292         [!__ASSUME_32BITUIDS]: Remove conditional code.
5293         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5294         <kernel-features.h>.
5295         [__ASSUME_32BITUIDS]: Make code unconditional.
5296         [!__ASSUME_32BITUIDS]: Remove conditional code.
5297         * sysdeps/unix/sysv/linux/kernel-features.h
5298         (__ASSUME_SETRESUID_SYSCALL): Remove.
5299         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5300         (__ASSUME_32BITUIDS): Likewise.
5301         (__ASSUME_LDT_WORKS): Likewise.
5302         (__ASSUME_O_DIRECTORY): Likewise.
5303         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5304         architecture but not kernel version.
5305         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5306         (__ASSUME_MMAP2_SYSCALL): Likewise.
5307         (__ASSUME_STAT64_SYSCALL): Likewise.
5308         (__ASSUME_IPC64): Likewise.
5309         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5310         <kernel-features.h>.
5311         [__ASSUME_32BITUIDS]: Make code unconditional.
5312         [!__ASSUME_32BITUIDS]: Remove conditional code.
5313         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5314         <kernel-features.h>.
5315         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5316         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5317         132096]: Remove conditional code.
5318         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5319         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/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/setegid.c: Do not include
5328         <kernel-features.h>.
5329         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5330         unconditional.
5331         (__setresgid): Do not declare.
5332         [__ASSUME_32BITUIDS]: Make code unconditional.
5333         [!__ASSUME_32BITUIDS]: Remove conditional code.
5334         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5335         <kernel-features.h>.
5336         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5337         unconditional.
5338         (__setresuid): Do not declare.
5339         [__ASSUME_32BITUIDS]: Make code unconditional.
5340         [!__ASSUME_32BITUIDS]: Remove conditional code.
5341         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5342         <kernel-features.h>.
5343         [__ASSUME_32BITUIDS]: Make code unconditional.
5344         [!__ASSUME_32BITUIDS]: Remove conditional code.
5345         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5346         <kernel-features.h>.
5347         [__ASSUME_32BITUIDS]: Make code unconditional.
5348         [!__ASSUME_32BITUIDS]: Remove conditional code.
5349
5350 2012-05-25  Richard Henderson  <rth@twiddle.net>
5351
5352         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5353         dl_hwcap to ifunc resolver.
5354         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5355         elf_ifunc_invoke.
5356         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5357         dl_hwcap to ifunc resolver.
5358         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5359
5360 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5361
5362         [BZ #14153]
5363         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5364         for |x| <= 2**-26, not 2**-57.
5365         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5366         exception.
5367
5368 2012-05-24  Jeff Law  <law@redhat.com>
5369
5370         * stdio-common/Makefile (tests): Add bug25.
5371         * stdio-common/bug25.c: New test.
5372
5373 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5374
5375         [BZ #13576]
5376         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5377         multiple of MALLOC_ALIGNMENT in size.
5378         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5379
5380 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5381
5382         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5383         Require >= 256.
5384         (FILENAME_MAX): Use macro-int-constant.
5385         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5386         (_IOFBF): Use macro-int-constant.
5387         (_IOLBF): Likewise.
5388         (_IONBF): Likewise.
5389         (SEEK_CUR): Likewise.
5390         (SEEK_END): Likewise.
5391         (SEEK_SET): Likewise.
5392         (TMP_MAX): Likewise.
5393         (EOF): Use macro-int-constant.  Require < 0.
5394         (NULL): Use macro-constant.  Require == 0.
5395         (stdin): Require type to be FILE *.
5396         (stdout): Likewise.
5397         (stderr): Likewise.
5398         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5399         macro-int-constant.
5400         (EXIT_SUCCESS): Likewise.
5401         (NULL): Use macro-constant.  Require == 0.
5402         (RAND_MAX): Use macro-int-constant.
5403         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5404         [C99-based standards] (strtof): Require function.
5405         [C99-based standards] (strtold): Likewise.
5406         [C99-based standards] (strtoll): Likewise.
5407         [C99-based standards] (strtoull): Likewise.
5408         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5409         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5410         [ISO || ISO99 || ISO11] (math.h): Likewise.
5411         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5412         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5413         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5414
5415 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5416
5417         [BZ #14132]
5418         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5419         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5420         * intl/dgettext.c (DCGETTEXT): Likewise.
5421         * intl/gettext.c (DCGETTEXT): Likewise.
5422         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5423         * posix/regex_internal.h (gettext): Likewise.
5424         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5425         Remove declaration.
5426         * include/argz.h (__argz_count_internal)
5427         (__argz_stringify_internal): Remove declaration.
5428         (__argz_count, __argz_stringify): Declare hidden proto.
5429         * intl/dcgettext.c: Remove use of INTDEF.
5430         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5431         * string/argz-stringify.c: Likewise.
5432         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5433         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5434         Declare hidden proto.
5435         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5436         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5437         Declare hidden proto.
5438         * include/stdio.h (__asprintf_internal): Don't declare.
5439         (__asprintf): Don't define as macro.  Declare hidden proto.
5440         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5441         (__fsetlocking): Declare hidden proto.
5442         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5443         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5444         hidden proto.
5445         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5446         (_IO_setlinebuf): Remove use of INTUSE.
5447         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5448         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5449         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5450         Remove declaration.
5451         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5452         (_IO_do_flush): Remove use of INTUSE.
5453         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5454         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5455         (_IO_adjust_column, _IO_least_wmarker)
5456         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5457         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5458         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5459         (_IO_default_doallocate, _IO_wdefault_doallocate)
5460         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5461         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5462         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5463         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5464         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5465         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5466         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5467         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5468         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5469         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5470         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5471         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5472         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5473         proto.
5474         (_IO_flush_all_internal, _IO_adjust_column_internal)
5475         (_IO_default_uflow_internal, _IO_default_finish_internal)
5476         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5477         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5478         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5479         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5480         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5481         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5482         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5483         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5484         (_IO_file_close_internal, _IO_file_close_it_internal)
5485         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5486         (_IO_file_init_internal, _IO_file_attach_internal)
5487         (_IO_file_fopen_internal, _IO_file_read_internal)
5488         (_IO_file_sync_internal, _IO_file_seek_internal)
5489         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5490         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5491         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5492         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5493         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5494         (_IO_list_all_internal, _IO_link_in_internal)
5495         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5496         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5497         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5498         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5499         (_IO_do_write_internal, _IO_padn_internal)
5500         (_IO_getline_info_internal, _IO_getline_internal)
5501         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5502         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5503         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5504         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5505         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5506         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5507         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5508         with libc_hidden_ver, remove use of INTUSE.
5509         * libio/genops.c: Likewise.
5510         * libio/freopen.c: Likewise.
5511         * libio/freopen64.c: Likewise.
5512         * libio/iofclose.c: Likewise.
5513         * libio/iofdopen.c: Likewise.
5514         * libio/iofflush.c: Likewise.
5515         * libio/iofflush_u.c: Likewise.
5516         * libio/iofgets.c: Likewise.
5517         * libio/iofgets_u.c: Likewise.
5518         * libio/iofopen.c: Likewise.
5519         * libio/iofopncook.c: Likewise.
5520         * libio/iofread.c: Likewise.
5521         * libio/iofread_u.c: Likewise.
5522         * libio/ioftell.c: Likewise.
5523         * libio/iofwrite.c: Likewise.
5524         * libio/iogetline.c: Likewise.
5525         * libio/iogets.c: Likewise.
5526         * libio/iogetwline.c: Likewise.
5527         * libio/iopadn.c: Likewise.
5528         * libio/iopopen.c: Likewise.
5529         * libio/ioseekoff.c: Likewise.
5530         * libio/ioseekpos.c: Likewise.
5531         * libio/iosetbuffer.c: Likewise.
5532         * libio/iosetvbuf.c: Likewise.
5533         * libio/ioungetc.c: Likewise.
5534         * libio/ioungetwc.c: Likewise.
5535         * libio/iovdprintf.c: Likewise.
5536         * libio/iovsprintf.c: Likewise.
5537         * libio/iovsscanf.c: Likewise.
5538         * libio/memstream.c: Likewise.
5539         * libio/obprintf.c: Likewise.
5540         * libio/oldfileops.c: Likewise.
5541         * libio/oldiofclose.c: Likewise.
5542         * libio/oldiofdopen.c: Likewise.
5543         * libio/oldiofopen.c: Likewise.
5544         * libio/oldiopopen.c: Likewise.
5545         * libio/oldstdfiles.c: Likewise.
5546         * libio/putc.c: Likewise.
5547         * libio/setbuf.c: Likewise.
5548         * libio/setlinebuf.c: Likewise.
5549         * libio/stdfiles.c: Likewise.
5550         * libio/strops.c: Likewise.
5551         * libio/vasprintf.c: Likewise.
5552         * libio/vscanf.c: Likewise.
5553         * libio/vsnprintf.c: Likewise.
5554         * libio/vswprintf.c: Likewise.
5555         * libio/wfiledoalloc.c: Likewise.
5556         * libio/wfileops.c: Likewise.
5557         * libio/wgenops.c: Likewise.
5558         * libio/wmemstream.c: Likewise.
5559         * libio/wstrops.c: Likewise.
5560         * libio/__fpurge.c: Likewise.
5561         * libio/__fsetlocking.c: Likewise.
5562         * assert/assert.c: Likewise.
5563         * debug/fgets_chk.c: Likewise.
5564         * debug/fgets_u_chk.c: Likewise.
5565         * debug/fread_chk.c: Likewise.
5566         * debug/fread_u_chk.c: Likewise.
5567         * debug/gets_chk.c: Likewise.
5568         * debug/obprintf_chk.c: Likewise.
5569         * debug/vasprintf_chk.c: Likewise.
5570         * debug/vdprintf_chk.c: Likewise.
5571         * debug/vsnprintf_chk.c: Likewise.
5572         * debug/vsprintf_chk.c: Likewise.
5573         * malloc/mtrace.c: Likewise.
5574         * misc/error.c: Likewise.
5575         * misc/syslog.c: Likewise.
5576         * stdio-common/asprintf.c: Likewise.
5577         * stdio-common/fxprintf.c: Likewise.
5578         * stdio-common/getw.c: Likewise.
5579         * stdio-common/isoc99_fscanf.c: Likewise.
5580         * stdio-common/isoc99_scanf.c: Likewise.
5581         * stdio-common/isoc99_vfscanf.c: Likewise.
5582         * stdio-common/isoc99_vscanf.c: Likewise.
5583         * stdio-common/isoc99_vsscanf.c: Likewise.
5584         * stdio-common/printf-prs.c: Likewise.
5585         * stdio-common/printf_fp.c: Likewise.
5586         * stdio-common/printf_fphex.c: Likewise.
5587         * stdio-common/printf_size.c: Likewise.
5588         * stdio-common/putw.c: Likewise.
5589         * stdio-common/scanf.c: Likewise.
5590         * stdio-common/sprintf.c: Likewise.
5591         * stdio-common/tmpfile.c: Likewise.
5592         * stdio-common/vfprintf.c: Likewise.
5593         * stdio-common/vfscanf.c: Likewise.
5594         * stdlib/strfmon_l.c: Likewise.
5595         * sunrpc/openchild.c: Likewise.
5596         * sunrpc/xdr_stdio.c: Likewise.
5597         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5598         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5599
5600 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5601
5602         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5603
5604         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5605         in the third column, to generate for the shared library an IFUNC
5606         that uses _dl_vdso_vsym.
5607         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5608         * Makeconfig (object-suffixes-noshared): New variable.
5609
5610         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5611         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5612         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5613         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5614
5615         [BZ #14132]
5616         * include/sys/time.h (__gettimeofday): Remove macro.
5617         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5618         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5619         Remove INTDEF.
5620         (__gettimeofday): Add libc_hidden_def.
5621         (gettimeofday): Add libc_hidden_weak.
5622         * sysdeps/mach/gettimeofday.c: Likewise.
5623         * sysdeps/posix/gettimeofday.c: Likewise.
5624         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5625         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5626         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5627         (__gettimeofday_internal): Remove strong_alias.
5628         (__gettimeofday): Add libc_hidden_def.
5629         (gettimeofday): Add libc_hidden_weak.
5630         * sysdeps/unix/syscalls.list (gettimeofday):
5631         Remove __gettimeofday_internal alias.
5632
5633 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5634             H.J. Lu  <hongjiu.lu@intel.com>
5635
5636         [BZ #12495]
5637         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5638         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5639         (largebin_index_32_big): New.
5640         (largebin_index): Use it for 16-byte alignment.
5641         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5642         correction with front_misalign.
5643
5644 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5645
5646         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5647         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5648         Likewise.
5649         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5650         Likewise.
5651         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5652         Likewise.
5653         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5654         Likewise.
5655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5656         Likewise.
5657         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5658         Likewise.
5659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5660         Likewise.
5661         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5662         Likewise.
5663         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5664         Likewise.
5665         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5666         Likewise.
5667         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5668         Likewise.
5669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5670         Likewise.
5671
5672         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5673         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5674
5675 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5676
5677         [BZ #10846]
5678         [BZ #14036]
5679         * math/libm-test.inc (exp_test): Add test from bug 14036.
5680         (pow_test): Add test from bug 10846.
5681
5682         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5683         and other flags.
5684         (special_function): Do not include flags in test name.
5685         (parse_args): Likewise.
5686         * sysdeps/i386/fpu/libm-test-ulps: Update.
5687         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5688         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5689         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5691
5692         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5693         exceptions.
5694         * math/libm-test.inc ("Philosophy"): Update comment about
5695         exception testing.
5696         (UNDERFLOW_EXCEPTION): New macro.
5697         (UNDERFLOW_EXCEPTION_OK): Likewise.
5698         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5699         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5700         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5701         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5702         (INVALID_EXCEPTION_OK): Update value.
5703         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5704         (OVERFLOW_EXCEPTION_OK): Likewise.
5705         (IGNORE_ZERO_INF_SIGN): Likewise.
5706         (test_exceptions): Handle underflow exceptions.
5707         (acos_test): Update for underflow exception expectations.
5708         (cexp_test): Likewise.
5709         (clog_test): Likewise.
5710         (clog10_test): Likewise.
5711         (csqrt_test): Likewise.
5712         (ctan_test): Likewise.
5713         (ctanh_test): Likewise.
5714         (exp_test): Likewise.
5715         (exp10_test): Likewise.
5716         (exp2_test): Likewise.
5717         (expm1_test): Likewise.
5718         (fma_test): Likewise.
5719         (j0_test): Likewise.
5720         (jn_test): Likewise.
5721         (nexttoward_test): Likewise.
5722         (pow_test): Likewise.
5723         (scalbn_test): Likewise.
5724         (scalbln_test): Likewise.
5725         (tan_test): Likewise.
5726         (y1_test): Likewise.
5727         * sysdeps/i386/fpu/libm-test-ulps: Update.
5728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5729
5730 2012-05-23  David S. Miller  <davem@davemloft.net>
5731
5732         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5733         (__libc_sigaction): Remove unused local variables.
5734
5735 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5736
5737         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5738
5739 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5740
5741         mktime: avoid signed integer overflow
5742         * time/mktime.c (__mktime_internal): Do not mishandle the case
5743         where diff == INT_MIN.
5744
5745         mktime: simplify computation of average
5746         * time/mktime.c (ranged_convert): Use new time_t_avg function
5747         instead of rolling our own (probably-slower) code.
5748
5749         mktime: do not assume signed right shift propagates sign bit
5750         * time/mktime.c (isdst_differ): New static function.
5751         (__mktime_internal): No need to normalize tm_isdst now.
5752         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5753         tm_isdst values.
5754
5755         mktime: merge another wrapv change from gnulib
5756         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5757         from some compilers.
5758
5759         mktime: remove incorrect attempt at unusual arithmetics
5760         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5761         The code didn't really work on such machines anyway.
5762         (TYPE_MINIMUM): Assume two's complement.
5763         (twos_complement_arithmetic): Verify that long_int and time_t
5764         are two's complement (or unsigned, in the latter case).
5765
5766         mktime: check signed shifts on long_int and time_t, too
5767         * time/mktime.c (SHR): Check that shifts work as desired
5768         on the types long_int and time_t too, as SHR is used on
5769         such types.
5770
5771         mktime: do not assume 'long' is wide enough
5772         * time/mktime.c (verify): Move decl up.
5773         (long_int): New type.
5774         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5775         to remove assumption in the code that 'long' is wide enough to
5776         store year values.  This assumption is not true on x32 and on
5777         some non-glibc platforms.
5778
5779         mktime: merge wrapv change from gnulib
5780         * time/mktime.c (WRAPV): New macro.
5781         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5782         (guess_time_tm, __mktime_internal): Do not assume that signed
5783         integer overflow wraps around; modern compilers generate code
5784         where this assumption is no longer valid.
5785
5786 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5787
5788         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5789         Replace "jmp L(pseudo_end)" with "ret".
5790         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5791         Likewise.
5792
5793 2012-05-23  Andreas Jaeger  <aj@suse.de>
5794
5795         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5796         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5797
5798 2012-05-23  Andreas Jaeger  <aj@suse.de>
5799             Maximilian Attems  <max@stro.at>
5800
5801         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5802         New macros.
5803
5804 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5805
5806         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5807         code so that pseudo_end is just ret and the stack pointer is
5808         correct also for static library in error case.
5809
5810 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5811
5812         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5813         move to syscalls.list.
5814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5818
5819         * manual/install.texi (Running make install): Do not mention Linux
5820         kernel version for which pt_chown is not needed.
5821         (Linux): Do not mention problems with nscd with 2.0 kernels.
5822         * INSTALL: Regenerated.
5823
5824 2012-05-23  Andreas Jaeger  <aj@suse.de>
5825
5826         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5827         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5828         macro.
5829         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5830         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5831         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5832         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5833         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5834         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5835         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5836         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5837         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5838         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5839         * sysdeps/unix/sysv/linux/bits/in.h
5840         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5841
5842 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5843
5844         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5845         (PREPARE_VERSION): Just use assert instead, it will be elided
5846         under [NDEBUG] anyway.
5847
5848 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * sysdeps/unix/sysv/linux/Makefile: Include
5851         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5852         (sysdep_routines): Remove sysctl.
5853         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5854         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5855         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5856         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5857         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5858
5859 2012-05-22  Andreas Jaeger  <aj@suse.de>
5860
5861         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5862         that pseudo_end is just ret and the stack pointer is correct also
5863         for static library in error case.
5864
5865 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5866
5867         [BZ #14122]
5868         * nss/nsswitch.c (defconfig_entries): New variable.
5869         (__nss_database_lookup): Don't leak defconfig entries.
5870         (nss_parse_service_list): Don't leak on error paths.
5871         (free_database_entries): New function.
5872         (free_defconfig): New function.
5873         (free_mem): Move common code to free_database_entries.
5874
5875 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5876
5877         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5878         Add arch_prctl.
5879         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5880
5881         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5882         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5884         New macro.
5885         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5886         (INTERNAL_SYSCALL_TYPES): Likewise.
5887         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5888         (LOAD_REGS_TYPES_[1-6]): Likewise.
5889         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5890         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5891
5892 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5893
5894         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5895         copysignl for GLIBC_2_0.
5896         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5897         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5898         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5899         logbl for GLIBC_2_0.
5900         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5901         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5902
5903 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5904
5905         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5906         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5907
5908         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5909         Use "neg %eax".
5910
5911         * time/mktime.c: Update copyright years.
5912
5913 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5914
5915         mktime: merge comment-quoting-style change from gnulib
5916         * time/mktime.c: Quote 'like this' in comments.
5917         The GNU coding standards suggest that we no longer quote `like this',
5918         as "`" and "'" are typically rendered asymmetrically nowadays.
5919         The typical gnulib style is to quote 'like this' when quoting
5920         code, and "like this" when quoting English.
5921
5922         * time/mktime.c (compile-command): Add "-I.".
5923
5924         mktime: merge mktime-internal.h change from gnulib
5925         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5926
5927         mktime: merge time_r change from gnulib
5928         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5929
5930         mktime: merge DEBUG change from gnulib
5931         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5932         case system <time.h> has a #define.
5933
5934         mktime: merge <sys/types.h> change from gnulib
5935         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5936         since <time.t> is now guaranteed to define time_t.
5937
5938         mktime: merge HAVE_CONFIG_H change from gnulib
5939         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5940
5941 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5942
5943         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5944         Use "neg %eax".
5945
5946         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5947         __rlim_t cast.
5948         (struct rusage): Use anonymous union to pad each field to
5949         __syscall_slong_t.
5950
5951 2012-05-21  David S. Miller  <davem@davemloft.net>
5952
5953         * Makefules (o-iterator): Remove .s cases.
5954         (compile-command.s): Delete.
5955         (COMPILE.s): Delete.
5956         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5957
5958 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5959
5960         * configure.in (libc_cv_predef_stack_protector): Only consider
5961         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5962         * configure: Regenerated.
5963
5964 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5965
5966         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5967         New macro.  Use R*LP on int and pointer.
5968         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5969         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5970         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5971         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5972
5973         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5974         [__WORDSIZE_TIME64_COMPAT32] instead of
5975         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5976         (struct utmp): Likewise.
5977         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5978         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5979         Renamed to ...
5980         (__WORDSIZE_TIME64_COMPAT32): This.
5981         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5982         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5983         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5984         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5985         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5986         (__WORDSIZE_TIME64_COMPAT32): New macro.
5987
5988 2012-05-21  Andreas Jaeger  <aj@suse.de>
5989
5990         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5991         only if [SHARED]. Add prototype for __wcschr_ia32.
5992
5993 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5994
5995         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5996         of %rbp unmolested in the jmp_buf while mangling the low bits.
5997         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5998         unmolested high bits of %rbp while demangling the low bits.
5999         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6000
6001 2012-05-21  Andreas Jaeger  <aj@suse.de>
6002
6003         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6004         * sunrpc/svc_simple.c: Use it for registerrpc.
6005         * sunrpc/xcrypt.c: Use it for passwd2des.
6006
6007         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6008
6009 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6010
6011         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6012         Don't define if [__SYSCALL_WORDSIZE != 32].
6013         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6014         New macro.
6015
6016 2012-05-21  Bruno Haible  <bruno@clisp.org>
6017             Andreas Jaeger  <aj@suse.de>
6018
6019         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6020         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6021         inptr and inend for must_buffer_ch.
6022         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6023         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6024         * stdio-common/Makefile (tests): Remove bug15.
6025         (bug15-ENV): Remove macro.
6026         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6027         anymore.
6028
6029 2012-05-19  Andreas Jaeger  <aj@suse.de>
6030             Roland McGrath  <roland@hack.frob.com>
6031
6032         * manual/contrib.texi: Completely rewritten. It contains now an
6033         alphabetical list of contributors and their contributions.
6034
6035 2012-05-21  Richard Henderson  <rth@twiddle.net>
6036
6037         * misc/getauxval.c (__getauxval): Use unsigned long int.
6038         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6039         (getauxval): Use unsigned long int.
6040
6041 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6042
6043         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6044
6045 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6046
6047         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6048         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6049         __alignof__ (long double).
6050
6051 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6052
6053         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6054
6055 2012-05-20  Richard Henderson  <rth@twiddle.net>
6056
6057         * misc/getauxval.c: New file.
6058         * misc/sys/auxv.h: New file.
6059         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6060         (routines): Add getauxval.
6061         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6062         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6063         * elf/dl-sysdep.c (_dl_auxv): Remove.
6064         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6065         * elf/dl-support.c (_dl_auxv): New variable.
6066         (_dl_aux_init): Initialize it.
6067         * manual/startup.texi (Auxiliary Vector): New node.
6068         * sysdeps/generic/bits/hwcap.h: New file.
6069         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6070         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6071         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6072         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6073         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6074         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6076         Update.
6077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6079         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6080         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6082         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6083         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6084         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6085
6086 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6087
6088         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6089
6090 2012-05-19  David S. Miller  <davem@davemloft.net>
6091
6092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6093
6094 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6095
6096         [BZ #14123]
6097         * math/s_ccosh.c: Include <float.h>
6098         (__ccosh): Avoid internal overflow calculating sinh and cosh
6099         values before multiplying by sin and cos values.
6100         * math/s_ccoshf.c: Likewise.
6101         * math/s_ccoshl.c: Likewise.
6102         * math/s_csin.c: Likewise.
6103         * math/s_csinf.c: Likewise.
6104         * math/s_csinl.c: Likewise.
6105         * math/s_csinh.c: Likewise.
6106         * math/s_csinhf.c: Likewise.
6107         * math/s_csinhl.c: Likewise.
6108         * math/libm-test.inc (ccos_test): Add more tests.
6109         (ccosh_test): Likewise.
6110         (csin_test): Likewise.
6111         (csinh_test): Likewise.
6112         * sysdeps/i386/fpu/libm-test-ulps: Update.
6113         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6114
6115 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6116
6117         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6118         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6119
6120         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6121
6122 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6123
6124         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6125         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6126         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6127         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6128         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6129         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6130         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6131         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6132         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6133         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6134         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6135         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6136         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6137         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6138         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6139         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6140         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6141         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6142         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6143         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6144         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6145         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6146         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6147         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6148         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6149         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6150         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6151         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6152         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6153         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6154         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6155
6156 2012-05-18  Andreas Jaeger  <aj@suse.de>
6157
6158         * csu/.gitignore: Delete.
6159
6160 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6161
6162         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6163         (timex): Use __syscall_slong_t.
6164
6165 2012-05-18  Andreas Jaeger  <aj@suse.de>
6166             Carlos O'Donell  <carlos_odonell@mentor.com>
6167
6168         * manual/install.texi (Configuring and compiling): Update
6169         description about files modified in the source directory.
6170         * INSTALL: Regenerated.
6171
6172 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6173
6174         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6175         value.  Use "or" to set return value to -1.
6176         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6177         negate return value.
6178
6179 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6180
6181         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6182         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6183         failure if the compiler has Graphite support disabled.
6184         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6185         Likewise.
6186         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6187         CFLAGS-memmove.c): Likewise.
6188         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6189         Likewise.
6190
6191 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6192
6193         * sysdeps/x86_64/x32/_itoa.h: New file.
6194
6195         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6196         getdents system call only if kernel and user dirents have the
6197         same d_ino and d_off.
6198
6199         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6200         LLONG_MAX != LONG_MAX.
6201         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6202         (_fitoa_word): Likewise.
6203
6204         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6205         years.
6206         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6207         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6208         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6209
6210         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6211         include <bits/wordsize.h>.  Check __x86_64__ instead of
6212         __WORDSIZE.
6213         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6214         if __x86_64__ is defined.  Use anonymous union on fpstate.
6215
6216         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6217         anonymous union.
6218
6219 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6220
6221         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6222         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6223         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6224         Refer to _rtld_local_ro instead of _rtld_global_ro.
6225         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6226         Likewise.
6227         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6228         Likewise.
6229         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6230         Likewise.
6231         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6232         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6233         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6234
6235         * sysdeps/powerpc/powerpc32/dl-machine.c
6236         (__elf_machine_runtime_setup) [PROF]: Don't reference
6237         _dl_prof_resolve.
6238
6239 2012-05-18  Andreas Jaeger  <aj@suse.de>
6240
6241         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6242         function only available for GCCs before 3.4 since GCC 3.4
6243         introduced a builtin.
6244         (lrint): Likewise.
6245         (llrintf): Likewise.
6246         (llrint): Likewise.
6247         (fmaxf): Likewise.
6248         (fmax): Likewise.
6249         (fminf): Likewise.
6250         (fmin): Likewise.
6251         (rint): Likewise.
6252         (rintf): Likewise.
6253         (nearbyint): Likewise.
6254         (nearbyintf): Likewise.
6255         (ceil): Likewise.
6256         (ceilf): Likewise.
6257         (floor): Likewise.
6258         (floorf): Likewise.
6259
6260 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6261
6262         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6263         on both fields and cast pointer to __syscall_ulong_t.
6264
6265         * bits/types.h (__fsword_t): New type.
6266         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6267         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6268         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6269         (__FSWORD_T_TYPE): Likewise.
6270         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6271         (__FSWORD_T_TYPE): Likewise.
6272         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6273         (__FSWORD_T_TYPE): Likewise.
6274         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6275         (__FSWORD_T_TYPE): Likewise.
6276         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6277         __SWORD_TYPE with __fsword_t.
6278         (statfs64): Likewise.
6279
6280 2012-05-17  David S. Miller  <davem@davemloft.net>
6281
6282         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6283
6284 2012-05-17  Andreas Jaeger  <aj@suse.de>
6285
6286         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6287         warning.
6288
6289 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6290
6291         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6292
6293 2012-05-17  Andreas Jaeger  <aj@suse.de>
6294
6295         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6296         when it is used.
6297
6298 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6299
6300         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6301
6302 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6303
6304         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6305         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6306
6307 2012-05-17  Andreas Jaeger  <aj@suse.de>
6308             Carlos O'Donell  <carlos_odonell@mentor.com>
6309
6310         [BZ #14059]
6311         * sysdeps/x86_64/multiarch/init-arch.h
6312         (bit_YMM_Usable): Rename to...
6313         (bit_AVX_Usable): ... this.
6314         (bit_FMA4_Usable): New macro.
6315         (bit_XMM_state): New macro.
6316         (bit_YMM_state): New macro.
6317         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6318         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6319         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6320         (CPUID_OSXSAVE): New macro.
6321         (CPUID_AVX): New macro.
6322         (CPUID_FMA4): New macro.
6323         (index_YMM_Usable): Rename to...
6324         (index_AVX_Usable): ... this.
6325         (HAS_AVX): Use HAS_ARCH_FEATURE.
6326         (HAS_FMA4): Likewise.
6327         (HAS_YMM_USABLE): Remove.
6328         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6329         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6330         are present.
6331         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6332         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6333         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6334         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6335         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6336
6337 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6338
6339         * math/libm-test.c: Support platforms without multiple rounding modes.
6340         * math/bug-nextafter.c: Support platforms without FP exceptions.
6341         * math/bug-nexttoward.c: Likewise.
6342         * math/test-fenv.c: Likewise.
6343         * math/test-misc.c: Likewise.
6344         * stdlib/bug-getcontext.c: Likewise.
6345
6346 2012-05-17  Andreas Jaeger  <aj@suse.de>
6347
6348         * manual/examples/search.c (critter_cmp): Change signature to
6349         avoid warnings.
6350         * manual/string.texi (Collation Functions): Likewise.
6351
6352 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6353
6354         * bits/types.h: Fold copyright years.
6355         * bits/typesizes.h: Likewise.
6356         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6357         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6358         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6359         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6360         * time/time.h: Likewise.
6361
6362 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6363
6364         [BZ #208]
6365         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6366         in instead of returning them.  Return void.
6367         (__libc_mallinfo): Accumulate over all arenas.
6368         (__malloc_stats): Adjust for change in int_mallinfo interface.
6369
6370 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6371
6372         [BZ #10375]
6373         * configure.in (NM): Add AC_CHECK_TOOL for it.
6374         (libc_extra_cflags): New substituted variable.
6375         Check for -fstack-protector being used implicitly.
6376         * configure: Regenerated.
6377         * config.make.in (config-extra-cflags): New variable,
6378         gets @libc_extra_cflags@.
6379         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6380
6381         [BZ #10375]
6382         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6383         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6384         * configure: Regenerated.
6385         * config.make.in (CPPUNDEFS): New substituted variable.
6386         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6387         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6388         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6389
6390 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6393         (mq_attr): Use __syscall_slong_t.
6394
6395 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6396
6397         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6398         Check __x86_64__ instead of __WORDSIZE.
6399         (_STAT_VER_LINUX): Likewise.
6400         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6401         __syscall_ulong_t and __syscall_slong_t.
6402         (stat64): Likewise.
6403
6404 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6405
6406         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6407
6408 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6409
6410         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6411
6412 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6413
6414         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6415         __syscall_ulong_t.
6416
6417         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6418         include <bits/wordsize.h>.  Check __x86_64__ instead of
6419         __WORDSIZE.
6420         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6421         defined.
6422         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6423
6424         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6425         include <bits/wordsize.h>.  Check __x86_64__ instead of
6426         __WORDSIZE.
6427         (user_regs_struct): Use "__extension__ unsigned long long"
6428         instead of "unsigned long" if __x86_64__ is defined.
6429         (user): Likewise.  Pad after pointer field if __ILP32__ is
6430         defined.
6431
6432 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6433
6434         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6435         versions 5 to 9.
6436         * configure: Regenerated.
6437         * manual/install.texi (texinfo): Increase version requirement to
6438         4.5 or later.
6439         * INSTALL: Regenerated.
6440
6441         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6442
6443 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6444
6445         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6446
6447         * sysdeps/x86_64/x32/ffs.c: New file.
6448
6449         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6450         __syscall_ulong_t.
6451         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6452         defined.  Use __syscall_ulong_t.
6453         (shminfo): Use __syscall_ulong_t.
6454         (shm_info): Likewise.
6455
6456         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6457         __syscall_ulong_t.
6458
6459         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6460         <bits/wordsize.h>.
6461         (msgqnum_t): Use __syscall_ulong_t.
6462         (msglen_t): Likewise.
6463         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6464         __syscall_ulong_t.
6465
6466         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6467         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6468
6469         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6470
6471         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6472         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6473
6474         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6475         __syscall_slong_t.
6476
6477         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6478         include <bits/wordsize.h>.  Check __x86_64__ instead of
6479         __WORDSIZE.
6480
6481         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6482         "unsigned long long int" if __x86_64__ is defined.
6483         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6484
6485         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6486         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6487         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6488
6489         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6490         <stdint.h>.
6491         (GET_PC): Cast to uintptr_t first.
6492         (GET_FRAME): Likewise.
6493         (GET_STACK): Likewise.
6494
6495         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6496         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6497         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6498         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6499         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6500         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6501         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6502         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6503         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6504         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6505         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6506         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6507         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6508         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6509         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6510         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6512         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6513         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6514         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6515         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6516         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6517         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6518         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6519         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6520         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6521         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6522         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6523         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6524
6525 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6526
6527         * Makerules (+depfiles): Also collect depfiles from .oS in
6528         $(extra-objs).
6529         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6530         .oS, $(libnldbl-routines)).
6531
6532         * Makerules (native-compile-mkdep-flags): Define.
6533         * sunrpc/Makefile (extra-objs): Add $(addprefix
6534         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6535         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6536         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6537         calling $(make-target-directory).
6538
6539 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6540
6541         * bits/types.h (__snseconds_t): Removed.
6542         * time/time.h (struct timespec): Replace __snseconds_t with
6543         __syscall_slong_t.
6544         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6545         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6546         Likewise.
6547         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6548         (__SNSECONDS_T_TYPE): Likewise.
6549         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6550         (__SNSECONDS_T_TYPE): Likewise.
6551         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6552         (__SNSECONDS_T_TYPE): Likewise.
6553
6554 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6555
6556         * sysdeps/mach/hurd/bits/typesizes.h
6557         (__SYSCALL_SLONG_TYPE): New macro.
6558         (__SYSCALL_ULONG_TYPE): Likewise.
6559
6560 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6561
6562         * bits/types.h (__syscall_slong_t): New type.
6563         (__syscall_ulong_t): Likewise.
6564
6565         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6566         (__SYSCALL_ULONG_TYPE): Likewise.
6567         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6568         (__SYSCALL_SLONG_TYPE): Likewise.
6569         (__SYSCALL_ULONG_TYPE): Likewise.
6570         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6571         (__SYSCALL_SLONG_TYPE): Likewise.
6572         (__SYSCALL_ULONG_TYPE): Likewise.
6573         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6574         (__SYSCALL_SLONG_TYPE): Likewise.
6575         (__SYSCALL_ULONG_TYPE): Likewise.
6576
6577 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6578
6579         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6580         Add sigaltstack-offsets.sym.
6581         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6582         <sigaltstack-offsets.h>.
6583         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6584         longjmp_msg pointer.
6585         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6586         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6587         signal stack.
6588         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6589
6590 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6591
6592         * elf/stackguard-macros.h: Remove file.
6593         * sysdeps/generic/stackguard-macros.h: New file.
6594         * sysdeps/i386/stackguard-macros.h: Likewise.
6595         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6596         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6597         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6598         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6599         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6600         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6601         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6602         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6603         <elf/stackguard-macros.h>.
6604
6605         [BZ #14109]
6606         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6607         __aligned__ in attribute.
6608         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6609         (gregset_t): Likewise.
6610
6611 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6612
6613         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6614         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6615         * sysdeps/x86_64/x32/Implies-after: New file.
6616
6617 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6618
6619         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6620         and access return value for _dl_profile_fixup.  Use R10_LP to
6621         load frame size.
6622
6623 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6624
6625         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6626
6627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6628
6629         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6630         * sysdeps/x86_64/x32/sysdep.h: New file.
6631
6632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6633
6634         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6635         * sysdeps/x86_64/setjmp.S: Likewise.
6636
6637 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6638
6639         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6640         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6641         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6642         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6643         remove unused global constant.
6644
6645 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6646
6647         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6648         include of <not-cancel.h>.
6649
6650 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6651
6652         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6653
6654 2012-05-15  Jeff Law  <law@redhat.com>
6655             Andreas Jaeger  <aj@suse.de>
6656
6657         [BZ #13594]
6658         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6659         out from...
6660         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6661         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6662         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6663         code changing __hst_map_handle.map.
6664
6665 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6666
6667         * configure.in (sysnames): Look for Implies-before and Implies-after
6668         files.
6669         * configure: Regenerated.
6670
6671 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6672
6673         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6674         8-byte data alignment with LP_SIZE alignment.
6675
6676 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6677
6678         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6679         into R10_LP.
6680
6681 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6682
6683         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6684
6685 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6686
6687         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6688         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6689         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6690         Likewise.
6691         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6692
6693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6694
6695         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6696         (stackinfo_sub_sp): Likewise.
6697
6698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6699
6700         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6701         RAX_LP.
6702
6703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6704
6705         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6706         into R*_LP.
6707
6708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6709
6710         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6711         sizes into R*_LP.
6712
6713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6714
6715         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6716
6717 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6718
6719         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6720         into R11_LP and load __x86_64_shared_cache_size_half into
6721         R8_LP.
6722
6723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6724
6725         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6726         R8_LP.
6727
6728 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6729
6730         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6731         logb for POWER7.
6732         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6733         logbf for POWER7.
6734         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6735         logbl for POWER7.
6736         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6737         powerpc32/power7/fpu/s_logb.c via #include.
6738         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6739         powerpc32/power7/fpu/s_logbf.c via #include.
6740         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6741         powerpc32/power7/fpu/s_logbl.c via #include.
6742
6743 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6744
6745         * README.libm: Remove file.
6746
6747 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6748
6749         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6750         count for x32.  Use R*_LP and omit operand-size suffix.
6751
6752 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6753
6754         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6755         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6756         * sysdeps/x86_64/x32/shlib-versions: New file.
6757
6758 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6759
6760         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6761         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6762         Use _dl_fatal_printf instead.
6763
6764 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6765
6766         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6767         set if not set by the user.  Do not allow for being unset.
6768         * sysdeps/unix/sysv/linux/configure: Regenerated.
6769
6770 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6771
6772         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6773         the `q' suffix from lea and replace .quad with ASM_ADDR.
6774
6775 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6776
6777         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6778         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6779         instead of $17.
6780         (PTR_DEMANGLE): Likewise.
6781
6782 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6783
6784         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6785         (LP_OP): Likewise.
6786         (ASM_ADDR): Likewise.
6787         (RAX_LP): Likewise.
6788         (RBP_LP): Likewise.
6789         (RBX_LP): Likewise.
6790         (RCX_LP): Likewise.
6791         (RDI_LP): Likewise.
6792         (RSI_LP): Likewise.
6793         (RSP_LP): Likewise.
6794         (R8_LP): Likewise.
6795         (R9_LP): Likewise.
6796         (R10_LP): Likewise.
6797         (R10_LP): Likewise.
6798         (R11_LP): Likewise.
6799         (R12_LP): Likewise.
6800         (R13_LP): Likewise.
6801         (R14_LP): Likewise.
6802         (R15_LP): Likewise.
6803
6804 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6805
6806         * sysdeps/x86_64/x32/dl-machine.h: New file.
6807
6808 2012-05-14  Andreas Jaeger  <aj@suse.de>
6809
6810         * manual/Makefile (subdir): Remove export of subdir.
6811         (all): Remove target.
6812         (.PHONY): Remove all from list.
6813         (mkinstalldirs): Remove.
6814         (.PHONY): Remove installdirs from list.
6815         ($(inst_infodir)/libc.info): Use make-target-directory.
6816         (installdirs): Remove.
6817         (subdir_%): Remove.
6818         (glibc-targets): Remove.
6819         (lib): Remove.
6820         (stubs): Remove.
6821         ($(objpfx)stubs ../po/manual.pot): Remove.
6822         ($(objpfx)stamp%): Remove.
6823         (make-target-directory): Remove.
6824         (subdir_install): Remove.
6825         (routines): Remove.
6826         (aux): Remove.
6827         (sources): Remove.
6828         (objects): Remove.
6829         (headers): Remove.
6830
6831         [BZ #13750]
6832         * manual/.gitignore: Remove, it's not needed anymore.
6833         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6834         all files in it.
6835         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6836         directory.
6837         (texis): Renamed to $(objpfx)texis.
6838         (texis-path): New, contains path to generated files.
6839         (chapters.%): Use texis-path for complete path, add extra argument
6840         libc-texinfo.sh.
6841         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6842         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6843         (summary,texi, stamp-summary): Use complete path of
6844         files. Generate files in build dir.
6845         (dir-add.texi): Build in build dir.
6846         (libm-err.texi,stamp-libm-err): Likewise.
6847         (version.texi, stamp-version): Likewise.
6848         (.%c.texi): Likewise.
6849         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6850         (mostlyclean): Remove target.
6851         (realclean): Remove target.
6852         (generated): Add new variable with contents from mostlyclean and
6853         realclean, remove entries duplicated in common-mostlyclean, add
6854         stamp-libm-err and stamp-version.
6855         (generated-dirs): Add libc directory.
6856         ($(inst_infodir)/libc.info): Install files from build dir.
6857
6858         * manual/install.texi (Configuring and compiling): Adjust since
6859         the info files are not part of the tar ball anymore.
6860
6861 2012-05-14  Andreas Jaeger  <aj@suse.de>
6862
6863         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6864         variable.
6865
6866 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6867
6868         [BZ #13717]
6869         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6870         to 2.2.0 where earlier.
6871         * sysdeps/unix/sysv/linux/configure: Regenerated.
6872         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6873         Remove conditional code.
6874         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6875         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6876         Remove conditional code.
6877         [!__NR_lchown]: Likewise.
6878         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6879         [__NR_lchown]: Likewise.
6880         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6881         comment referencing __ASSUME_LCHOWN_SYSCALL.
6882         * sysdeps/unix/sysv/linux/i386/sigaction.c
6883         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6884         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6885         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6886         Remove conditional code.
6887         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6888         (__protocol_available): Remove #if 0 code.
6889         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6890         conditional code.
6891         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6892         * sysdeps/unix/sysv/linux/kernel-features.h
6893         (__ASSUME_GETCWD_SYSCALL): Don't define.
6894         (__ASSUME_REALTIME_SIGNALS): Likewise.
6895         (__ASSUME_PREAD_SYSCALL): Likewise.
6896         (__ASSUME_PWRITE_SYSCALL): Likewise.
6897         (__ASSUME_POLL_SYSCALL): Likewise.
6898         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6899         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6900         non-SPARC.
6901         (__ASSUME_SIOCGIFNAME): Don't define.
6902         (__ASSUME_MSG_NOSIGNAL): Likewise.
6903         (__ASSUME_SENDFILE): Define unconditionally.
6904         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6905         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6906         conditional code.
6907         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6908         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6909         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6910         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6911         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6912         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6913         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6915         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6916         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6917         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6918         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6919         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6920         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6921         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6922         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6924         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6925         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6927         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6928         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6930         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6931         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6933         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6934         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6936         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6937         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6938         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6939         Remove conditional code.
6940         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6941         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6942         Remove conditional code.
6943         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6944         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6945         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6946         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6947         Remove conditional code.
6948         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6949         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6950         Remove conditional code.
6951         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6952         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6953         Remove conditional code.
6954         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6955         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6956         Remove conditional code.
6957         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6958         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6959         Remove conditional code.
6960         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6961         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6962         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6963         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6964         * sysdeps/unix/sysv/linux/sigaction.c
6965         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6966         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6967         * sysdeps/unix/sysv/linux/sigpending.c
6968         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6969         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6970         * sysdeps/unix/sysv/linux/sigprocmask.c
6971         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6972         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6973         * sysdeps/unix/sysv/linux/sigsuspend.c
6974         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6975         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6976         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6977         (__libc_missing_rt_sigs): Remove.
6978         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6979         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6980         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6981         Remove conditional code.
6982         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6983         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6984         return 1.
6985         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6986         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6987         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6988         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6989
6990 2012-05-14  Andreas Jaeger  <aj@suse.de>
6991
6992         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6993         it's not used in glibc.
6994         (__coshm1): Likewise.
6995         (__acosh1p): Likewise.
6996         (__sgn): Likewise.
6997
6998         * manual/string.texi (Copying and Concatenation): Add missing
6999         variable in concat example.
7000         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7001
7002 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7003
7004         [BZ #14103]
7005         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7006         __builtin_clzl with __builtin_clzll.
7007
7008 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7009
7010         [BZ #14104]
7011         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7012         libc_freeres_ptr.
7013
7014 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7015
7016         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7017         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7018         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7019         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7020
7021 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7022
7023         * NEWS: Update ia64 info.
7024
7025 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7026
7027         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7028         used as bcopy.
7029
7030 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7031
7032         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7033         * sysdeps/unix/syscalls.list (dup3): Likewise.
7034         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7035         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7036
7037 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7038
7039         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7040         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7041
7042 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7043
7044         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7045         thread pointer.
7046         (TLS_IE): Use mov/add instead of movq/addq to load thread
7047         pointer.
7048         (TLS_GD_PREFIX): New.
7049         (TLS_GD): Use it.
7050
7051 2012-05-11  David S. Miller  <davem@davemloft.net>
7052
7053         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7054         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7055         (_FPU_SETCW): Likewise.
7056
7057 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7058
7059         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7060         is 32-byte aligned.
7061
7062 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7063
7064         [BZ #11837]
7065         * iconvdata/gb18030.c: Update tables.
7066         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7067         characters specially.
7068         (BODY for TO_LOOP): Add encoding of missing ranges.
7069
7070 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7071
7072         [BZ #13673]
7073         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7074         * sysdeps/mach/hurd/dup3.c: Likewise.
7075         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7076         * sysdeps/powerpc/memmove.c:: Likewise.
7077
7078 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7079
7080         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7081         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7082
7083 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7084
7085         * elf/elf.h (R_X86_64_RELATIVE64): New.
7086         (R_X86_64_NUM): Updated.
7087         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7088         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7089         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7090         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7091         tst-quad1pie tst-quad2pie
7092         (modules-names): Add tst-quadmod1 tst-quadmod2.
7093         ($(objpfx)tst-quad1): New dependency.
7094         ($(objpfx)tst-quad2): Likewise.
7095         ($(objpfx)tst-quad1pie): Likewise.
7096         ($(objpfx)tst-quad2pie): Likewise.
7097         * sysdeps/x86_64/tst-quad1.c: New file.
7098         * sysdeps/x86_64/tst-quad1pie.c: New file.
7099         * sysdeps/x86_64/tst-quad2.c: Likewise.
7100         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7101         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7102         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7103         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7104         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7105
7106 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7107
7108         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7109         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7110         * streams/stropts.h (t_scalar_t): Define type.
7111
7112         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7113         (_PATH_PRESERVE): Set to "/var/lib".
7114         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7115
7116         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7117         instead of int.
7118
7119         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7120         if __dir_mkfile succeeded.
7121
7122         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7123         checking for _hurd_dtablesize.  Unlock it right after having
7124         finished _hurd_dtable allocation.
7125
7126 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7127
7128         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7129         * sysdeps/mach/hurd/configure: Regenerated.
7130         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7131         special-casing to...
7132         * sysdeps/gnu/configure.in: ... this new file.
7133         * sysdeps/unix/sysv/linux/configure: Regenerated.
7134         * sysdeps/gnu/configure: New generated file.
7135
7136         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7137         for Linux: use nsec instead of usec, as well as:
7138         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7139         members of type struct timespec.
7140         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7141         New macros.
7142         (struct stat64): Likewise.
7143         (_STATBUF_ST_NSEC): New macro.
7144         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7145
7146         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7147         __strtoul_internal rather than strtoul.
7148
7149 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7150
7151         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7152         and reject them.
7153
7154 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7155
7156         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7157         which preserves existing values.
7158         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7159
7160 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7161
7162         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7163         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7164         greater than FD_SETSIZE.
7165
7166 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7167
7168         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7169         allocated, call __vm_protect to finish enabling the existing space, and
7170         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7171         allocate the remainder.
7172
7173 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7174
7175         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7176         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7177
7178 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7179
7180         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7181         sysdeps/mach/hurd/readlink.c.
7182
7183         * posix/tst-sysconf.c (posix_options): Only use
7184         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7185         _POSIX_SYNCHRONIZED_IO when they are defined
7186         * sysdeps/mach/hurd/bits/posix_opt.h:
7187         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7188         (_XOPEN_REALTIME): Undefine macro.
7189         (_XOPEN_REALTIME_THREADS): Undefine macro.
7190         (_XOPEN_SHM): Undefine macro.
7191         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7192         macro to -1.
7193         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7194         macro to -1.
7195         (_POSIX_ASYNC_IO): Undefine macro.
7196         (_POSIX_PRIORITIZED_IO): Undefine macro.
7197         (_POSIX_SPIN_LOCKS): Define macro to -1.
7198
7199         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7200         SA_NODEFER, SA_RESETHAND.
7201         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7202         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7203         F_DUPFD_CLOEXEC.
7204
7205 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7206
7207         * elf/Makefile (pldd-modules): Define unconditionally.
7208
7209 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7210
7211         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7212
7213 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7214
7215         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7216         Return ENOENT when name is empty.
7217         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7218
7219 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7220
7221         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7222
7223         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7224
7225 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7226
7227         Fix mlock in all cases except non-readable pages.
7228         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7229         instead of VM_PROT_ALL as parameter to __vm_wire function.
7230
7231         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7232         (__mkdir): When path is `/', just fail with EEXIST.
7233         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7234
7235 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7236
7237         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7238         <sys/uio.h> (for writev).
7239         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7240         and <sys/param.h> (for MIN).
7241
7242 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7243
7244         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7245         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7246         if interrupted.
7247
7248 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7249
7250         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7251         Depend on against $(link-rpcuserlibs).
7252
7253 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7254
7255         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7256         (__libc_stack_end): Do not use attribute_relro.
7257         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7258         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7259         to libthread-provided value.
7260         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7261         attribute_relro.
7262
7263 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7264
7265         [BZ #3748]
7266         * bits/libc-lock.h (__libc_once_get): New macro.
7267         * sysdeps/mach/bits/libc-lock.h: Likewise.
7268         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7269         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7270         instead of using implementation details.
7271
7272         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7273         * libio/freopen.c: Likewise.
7274         * libio/freopen64.c: Likewise.
7275         * misc/syslog.c: Likewise.
7276         * nscd/connections.c: Likewise.
7277         * nscd/netgroupcache.c: Likewise.
7278         * sysdeps/posix/getcwd.c: Likewise.
7279
7280 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7281
7282         * math/w_ilogbf.c: Add #include <limits.h>.
7283
7284 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7285
7286         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7287         path instead of returning without unlocking.
7288
7289         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7290         immediate-write ioctls.
7291         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7292
7293 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7294
7295         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7296         __builtin_frame_address instead of making assumptions about the
7297         location of the return address relative to DATA.  Force early load of
7298         the return address.
7299         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7300         __builtin_frame_address.
7301
7302         dup3 for GNU Hurd.
7303         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7304         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7305         implement dup3 and do some further code clean-ups.
7306         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7307         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7308
7309 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7310
7311         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7312
7313         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7314         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7315         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7316         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7317         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7318         d->port.lock.
7319
7320         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7321         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7322         when handler == SIG_ERR, not when handler != SIG_ERR.
7323
7324 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7325
7326         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7327         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7328         definitions.
7329
7330         accept4 for GNU Hurd.
7331         * include/sys/socket.h (__libc_accept4): New prototype.
7332         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7333         to implement __libc_accept4.
7334         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7335         __libc_accept4.
7336         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7337
7338         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7339         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7340         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7341         signal-defines.sym.
7342
7343 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7344
7345         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7346
7347 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7348
7349         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7350         assertion on O_CLOEXEC flag.
7351         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7352         * hurd/intern-fd.c: Likewise.
7353         * hurd/port2fd.c: Likewise.
7354
7355 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7356
7357         [BZ #3906]
7358         * bits/in.h (IPV6_PKTINFO): Define new macro.
7359         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7360
7361 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7362
7363         [BZ #13954]
7364         [BZ #13955]
7365         [BZ #13956]
7366         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7367         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7368         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7369         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7370         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7371         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7372         * math/libm-test.inc (logb_test) : Additional logb tests.
7373
7374 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7375             Andreas Jaeger  <aj@suse.de>
7376
7377         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7378         * configure: Regenerated.
7379         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7380         * config.make.in (link-obsolete-rpc): New substituted variable.
7381         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7382         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7383         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7384         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7385         so that libc.a contains the symbols.
7386         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7387         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7388         * sunrpc/auth_none.c: Likewise.
7389         * sunrpc/auth_unix.c: Likewise.
7390         * sunrpc/authdes_prot.c: Likewise.
7391         * sunrpc/authuxprot.c: Likewise.
7392         * sunrpc/clnt_gen.c: Likewise.
7393         * sunrpc/clnt_perr.c: Likewise.
7394         * sunrpc/clnt_raw.c: Likewise.
7395         * sunrpc/clnt_simp.c: Likewise.
7396         * sunrpc/clnt_tcp.c: Likewise.
7397         * sunrpc/clnt_udp.c: Likewise.
7398         * sunrpc/clnt_unix.c: Likewise.
7399         * sunrpc/des_crypt.c: Likewise.
7400         * sunrpc/des_soft.c: Likewise.
7401         * sunrpc/get_myaddr.c: Likewise.
7402         * sunrpc/key_call.c: Likewise.
7403         * sunrpc/key_prot.c: Likewise.
7404         * sunrpc/netname.c: Likewise.
7405         * sunrpc/pm_getmaps.c: Likewise.
7406         * sunrpc/pm_getport.c: Likewise.
7407         * sunrpc/pmap_clnt.c: Likewise.
7408         * sunrpc/pmap_prot.c: Likewise.
7409         * sunrpc/pmap_prot2.c: Likewise.
7410         * sunrpc/pmap_rmt.c: Likewise.
7411         * sunrpc/publickey.c: Likewise.
7412         * sunrpc/rpc_cmsg.c: Likewise.
7413         * sunrpc/rpc_common.c: Likewise.
7414         * sunrpc/rpc_dtable.c: Likewise.
7415         * sunrpc/rpc_prot.c: Likewise.
7416         * sunrpc/rpc_thread.c: Likewise.
7417         * sunrpc/rtime.c: Likewise.
7418         * sunrpc/svc.c: Likewise.
7419         * sunrpc/svc_auth.c: Likewise.
7420         * sunrpc/svc_raw.c: Likewise.
7421         * sunrpc/svc_run.c: Likewise.
7422         * sunrpc/svc_tcp.c: Likewise.
7423         * sunrpc/svc_udp.c: Likewise.
7424         * sunrpc/svc_unix.c: Likewise.
7425         * sunrpc/svcauth_des.c: Likewise.
7426         * sunrpc/xcrypt.c: Likewise.
7427         * sunrpc/xdr.c: Likewise.
7428         * sunrpc/xdr_array.c: Likewise.
7429         * sunrpc/xdr_float.c: Likewise.
7430         * sunrpc/xdr_intXX_t.c: Likewise.
7431         * sunrpc/xdr_mem.c: Likewise.
7432         * sunrpc/xdr_rec.c: Likewise.
7433         * sunrpc/xdr_ref.c: Likewise.
7434         * sunrpc/xdr_sizeof.c: Likewise.
7435         * sunrpc/xdr_stdio.c: Likewise.
7436
7437 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7438
7439         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7440         change.  Update copyright years.
7441
7442 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7443
7444         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7445
7446 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7447             Joseph Myers  <joseph@codesourcery.com>
7448             Paul Pluzhnikov  <ppluzhnikov@google.com>
7449
7450         [BZ #14012]
7451         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7452         requiring rpcgen.
7453         [cross-compiling] (extra-libs): Likewise.
7454         [cross-compiling] (extra-libs-others): Likewise.
7455         [cross-compiling] (librpcsvc-routines): Likewise.
7456         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7457         [cross-compiling] (omit-deps): Likewise.
7458         (sunrpc-CPPFLAGS): New variable.
7459         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7460         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7461         (cross-rpcgen-objs): New variable.
7462         (extra-objs): Append $(cross-rpcgen-objs).
7463         ($(cross-rpcgen-objs)): New rule.
7464         ($(objpfx)cross-rpcgen): Likewise.
7465         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7466         comment.
7467         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7468         ($(objpfx)x%.stmp): Likewise.
7469         * sunrpc/proto.h [IS_IN_build] (_): Define.
7470         [IS_IN_build] (_libc_intl_domainname): Likewise.
7471
7472 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7473
7474         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7475         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7476         and R_X86_64_TPOFF64.
7477
7478 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7479
7480         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7481         sysdeps/unix/sysv/syscalls.list.
7482         (stime): Likewise.
7483         (utime): Likewise.
7484         * sysdeps/unix/sysv/syscalls.list: Remove file.
7485
7486 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7487
7488         [BZ #3440]
7489         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7490         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7491         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7492         (__LC_IDENTIFICATION): Make these macros useful in #if
7493         expressions, as required by C99.
7494
7495 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7496
7497         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7498         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7499         after this.
7500
7501 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7502
7503         * stdlib/longlong.h: Updated from GCC.
7504
7505 2012-05-09  Andreas Jaeger  <aj@suse.de>
7506
7507         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7508         default is first entry.
7509         (run_mode): Set type.
7510         (main): Remove informal message about syslog.
7511         (options): Fix typo.
7512
7513         [BZ #14053]
7514         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7515         to asm.
7516         (lrint): Likewise.
7517         (llrintf): Likewise.
7518         (llrint): Likewise.
7519         (rint): Likewise.
7520         (rintf): Likewise.
7521         (nearbyint): Likewise.
7522         (nearbyintf): Likewise.
7523
7524 2012-05-09  Andreas Jaeger  <aj@suse.de>
7525             Pedro Alves  <palves@redhat.com>
7526
7527         * nscd/nscd.c (run_mode): Use enum.
7528         (main): Cleanup coding style issue.
7529
7530 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7531             Andreas Jaeger  <aj@suse.de>
7532
7533         * nscd/nscd.c (go_background): Replaced with...
7534         (run_mode): ... this.
7535         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7536         (options): Add -F --foreground.
7537         (main): Implement it.
7538         (parse_opt): Parse it.
7539
7540 2012-05-09  Andreas Jaeger  <aj@suse.de>
7541
7542         [BZ #14083]
7543         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7544         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7545         -Wconversion warning.
7546         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7547         Likewise.
7548
7549 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7550
7551         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7552         == 0.
7553         (LC_ALL): Use macro-int-constant.
7554         (LC_COLLATE): Likewise.
7555         (LC_CTYPE): Likewise.
7556         (LC_MESSAGES): Likewise.
7557         (LC_MONETARY): Likewise.
7558         (LC_NUMERIC): Likewise.
7559         (LC_TIME): Likewise.
7560         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7561         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7562         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7563         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7564         Specify type.
7565         [C99-based standards] (float_t): Expect type.
7566         [C99-based standards] (double_t): Expect type.
7567         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7568         type.
7569         [C99-based standards] (HUGE_VALL): Likewise.
7570         [C99-based standards] (INFINITY): Likewise.
7571         [C99-based standards] (NAN): Likewise.
7572         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7573         [C99-based standards] (FP_NAN): Likewise.
7574         [C99-based standards] (FP_NORMAL): Likewise.
7575         [C99-based standards] (FP_SUBNORMAL): Likewise.
7576         [C99-based standards] (FP_ZERO): Likewise.
7577         [C99-based standards] (FP_FAST_FMA): Use
7578         optional-macro-int-constant.  Specify type.  Require == 1.
7579         [C99-based standards] (FP_FAST_FMAF): Likewise.
7580         [C99-based standards] (FP_FAST_FMAL): Likewise.
7581         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7582         [C99-based standards] (FP_ILOGBNAN): Likewise.
7583         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7584         Specify type.
7585         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7586         [C99-based standards] (math_errhandling): Specify type.
7587         [ISO99 || ISO11] (signgam): Do not allow.
7588         [non-C99-based standards] (copysignf): Do not allow.
7589         [non-C99-based standards] (exp2f): Likewise.
7590         [non-C99-based standards] (log2f): Likewise.
7591         [non-C99-based standards] (modff): Allow.
7592         [non-C99-based standards] (erff): Do not allow.
7593         [non-C99-based standards] (erfcf): Likewise.
7594         [non-C99-based standards] (gammaf): Likewise.
7595         [non-C99-based standards] (hypotf): Likewise.
7596         [non-C99-based standards] (j0f): Likewise.
7597         [non-C99-based standards] (j1f): Likewise.
7598         [non-C99-based standards] (jnf): Likewise.
7599         [non-C99-based standards] (lgammaf): Likewise.
7600         [non-C99-based standards] (tgammaf): Likewise.
7601         [non-C99-based standards] (y0f): Likewise.
7602         [non-C99-based standards] (y1f): Likewise.
7603         [non-C99-based standards] (ynf): Likewise.
7604         [non-C99-based standards] (isnanf): Likewise.
7605         [non-C99-based standards] (acoshf): Likewise.
7606         [non-C99-based standards] (asinhf): Likewise.
7607         [non-C99-based standards] (atanhf): Likewise.
7608         [non-C99-based standards] (cbrtf): Likewise.
7609         [non-C99-based standards] (expm1f): Likewise.
7610         [non-C99-based standards] (ilogbf): Likewise.
7611         [non-C99-based standards] (log1pf): Likewise.
7612         [non-C99-based standards] (logbf): Likewise.
7613         [non-C99-based standards] (nextafterf): Likewise.
7614         [non-C99-based standards] (remainderf): Likewise.
7615         [non-C99-based standards] (rintf): Likewise.
7616         [non-C99-based standards] (scalbf): Likewise.
7617         [non-C99-based standards] (copysignl): Likewise.
7618         [non-C99-based standards] (exp2l): Likewise.
7619         [non-C99-based standards] (log2l): Likewise.
7620         [non-C99-based standards] (modfl): Allow.
7621         [non-C99-based standards] (erfl): Do not allow.
7622         [non-C99-based standards] (erfcl): Likewise.
7623         [non-C99-based standards] (gammal): Likewise.
7624         [non-C99-based standards] (hypotl): Likewise.
7625         [non-C99-based standards] (j0l): Likewise.
7626         [non-C99-based standards] (j1l): Likewise.
7627         [non-C99-based standards] (jnl): Likewise.
7628         [non-C99-based standards] (lgammal): Likewise.
7629         [non-C99-based standards] (tgammal): Likewise.
7630         [non-C99-based standards] (y0l): Likewise.
7631         [non-C99-based standards] (y1l): Likewise.
7632         [non-C99-based standards] (ynl): Likewise.
7633         [non-C99-based standards] (isnanl): Likewise.
7634         [non-C99-based standards] (acoshl): Likewise.
7635         [non-C99-based standards] (asinhl): Likewise.
7636         [non-C99-based standards] (atanhl): Likewise.
7637         [non-C99-based standards] (cbrtl): Likewise.
7638         [non-C99-based standards] (expm1l): Likewise.
7639         [non-C99-based standards] (ilogbl): Likewise.
7640         [non-C99-based standards] (log1pl): Likewise.
7641         [non-C99-based standards] (logbl): Likewise.
7642         [non-C99-based standards] (nextafterl): Likewise.
7643         [non-C99-based standards] (remainderl): Likewise.
7644         [non-C99-based standards] (rintl): Likewise.
7645         [non-C99-based standards] (scalbl): Likewise.
7646         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7647         [non-C99-based standards] (FP_*): Do not allow.
7648         [C99-based standards] (FP_*): Change to
7649         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7650         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7651         allow.
7652         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7653         (SIG_ERR): Likewise.
7654         [X/Open-based standards] (SIG_HOLD): Likewise.
7655         (SIG_IGN): Likewise.
7656         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7657         positive value.
7658         (SIGFPE): Likewise.
7659         (SIGILL): Likewise.
7660         (SIGINT): Likewise.
7661         (SIGSEGV): Likewise.
7662         (SIGTER): Likewise.
7663         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7664         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7665         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7666         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7667         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7668         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7669         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7670         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7671         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7672         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7673         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7674         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7675         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7676         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7677         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7678         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7679         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7680         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7681         [X/Open-based standards] (SIGTRAP): Likewise.
7682         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7683         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7684         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7685         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7686         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7687         allow.
7688
7689 2012-05-08  Ian Wienand  <ianw@vmware.com>
7690
7691         [BZ #14080]
7692         * time/tzset.c (__tzset_parse_tz): Update default rules for
7693         daylight time changes in the Energy Policy Act of 2005.
7694
7695 2012-05-09  Andreas Jaeger  <aj@suse.de>
7696
7697         [BZ #13983]
7698         * elf/ldconfig.c (parse_conf): Change string to make clear that
7699         ldconfig only issued a warning if ld.so.conf does not exist.
7700
7701 2012-05-08  David S. Miller  <davem@davemloft.net>
7702
7703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7704         movxtod instead of popping the value on the stack.
7705
7706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7707
7708 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7709
7710         * config.h.in: Add HAVE_ARM_PCS_VFP.
7711
7712 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7713
7714         [BZ #13979]
7715         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7716         checking but the checks are disabled for any reason.
7717
7718 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7719
7720         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7721         and ELF64_R_TYPE with ELFW(R_TYPE).
7722
7723 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7726         (ulimit): Likewise.
7727
7728         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7729         (settimeofday): Likewise.
7730
7731 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7732
7733         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7734         a struct th_u2 inside the union, and move tu_block/tu_code into
7735         a new th_u3 union of tu_block/tu_code inside of that.  Move
7736         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7737         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7738         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7739         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7740         (th_stuff): Change to th_u1.tu_stuff.
7741         (th_data): Define.
7742         (th_msg): Change to th_u1.th_u2.tu_data.
7743
7744 2012-05-07  David S. Miller  <davem@davemloft.net>
7745
7746         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7747
7748         [BZ #14074]
7749         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7750         (SETUP_PIC_REG): Use it.
7751         (SETUP_PIC_REG_LEAF): Use it.
7752
7753 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7754
7755         [BZ #13885]
7756         [BZ #13923]
7757         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7758         USE_AS_EXPM1L.
7759         (EXPL_FINITE): Likewise.
7760         (FLDLOG): Likewise.
7761         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7762         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7763         e_expl.S.
7764         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7765         USE_AS_EXPM1L.
7766         (EXPL_FINITE): Likewise.
7767         (FLDLOG): Likewise.
7768         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7769         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7770         e_expl.S.
7771         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7772         test of -max_value argument for long double.
7773         * sysdeps/i386/fpu/libm-test-ulps: Update.
7774         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7775
7776 2012-05-06  David S. Miller  <davem@davemloft.net>
7777
7778         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7779         quad soft-float symbols whose references which are compiler
7780         generated.
7781         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7782
7783 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7784
7785         [BZ #13884]
7786         [BZ #13914]
7787         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7788         USE_AS_EXP10L.
7789         (EXPL_FINITE): Likewise.
7790         (FLDLOG): Likewise.
7791         (c0): Likewise.
7792         (c1): Likewise.
7793         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7794         Adjust comments for base varying.
7795         (__expl_finite): Change alias to EXPL_FINITE.
7796         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7797         e_expl.S.
7798         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7799         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7800         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7801         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7802         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7803         USE_AS_EXP10L.
7804         (EXPL_FINITE): Likewise.
7805         (FLDLOG): Likewise.
7806         (c0): Likewise.
7807         (c1): Likewise.
7808         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7809         Adjust comments for base varying.
7810         (__expl_finite): Change alias to EXPL_FINITE.
7811         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7812         tests for bugs.
7813         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7814
7815         [BZ #14064]
7816         * math/libm-test.inc (check_float_internal): Correct ulp
7817         calculation for subnormal expected results.
7818
7819 2012-05-06  Andreas Jaeger  <aj@suse.de>
7820
7821         * Makeconfig (+math-flags): New, set to -frounding-math.
7822         (+cflags): Add +math-flags so that all of glibc gets compiled with
7823         it.
7824
7825         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7826
7827 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7828
7829         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7830         Disable one test.
7831
7832         [BZ #13787]
7833         [BZ #13922]
7834         [BZ #14036]
7835         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7836         (__ieee754_expl): Allow for and saturate large arguments.
7837         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7838         (u_threshold): Likewise.
7839         (__exp): Call __ieee754_exp before checking for overflow and
7840         underflow.
7841         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7842         (u_threshold): Likewise.
7843         (__expf): Call __ieee754_expf before checking for overflow and
7844         underflow.
7845         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7846         (u_threshold): Likewise.
7847         (__expl): Call __ieee754_expl before checking for overflow and
7848         underflow.
7849         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7850         (__ieee754_expl): Allow for and saturate large arguments.
7851         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7852         missing overflow exception on overflow.
7853         (expm1_test): Do not allow missing overflow exception on overflow.
7854
7855         * sysdeps/i386/fpu/e_expl.c: Move to ...
7856         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7857         rather than using inline asm.
7858         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7859         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7860         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7861
7862         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7863         (nice): Likewise.
7864         (poll): Likewise.
7865         (signal): Likewise.
7866         (time): Likewise.
7867         (times): Likewise.
7868
7869 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7870
7871         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7872         sysdeps/unix/common/syscalls.list.
7873         (fchmod): Likewise.
7874         (fchown): Likewise.
7875         (ftruncate): Likewise.
7876         (getrusage): Likewise.
7877         (gettimeofday): Likewise.
7878         (setpgid): Likewise.
7879         (setregid): Likewise.
7880         (setreuid): Likewise.
7881         (sigaction): Likewise.
7882         (truncate): Likewise.
7883         (vhangup): Likewise.
7884         * sysdeps/unix/common/syscalls.list: Remove file.
7885         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7886         * sysdeps/unix/sysv/linux/Implies: Likewise.
7887
7888 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7889
7890         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7891         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7892         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7893         Moved to ...
7894         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7895         Here.
7896         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7897         to ...
7898         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7899         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7900         to ...
7901         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7902         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7903         to ...
7904         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7905         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7906         to ...
7907         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7908         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7909         to ...
7910         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7911         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7912         to ...
7913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7914         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7915         to ...
7916         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7917         Here.
7918         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7919         to ...
7920         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7921         Here.
7922         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7923         to ...
7924         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7925         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7926         Moved to ...
7927         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7928         Here.
7929         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7930         to ...
7931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7932
7933 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7934
7935         * sysdeps/unix/common/bits/dirent.h: Remove file.
7936         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7937
7938         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7939         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7940         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7941         * sysdeps/unix/bsd/isatty.c: Likewise.
7942         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7943         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7944         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7945
7946 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7947
7948         [BZ #13563]
7949         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7950         long double comparison inaccuracies.
7951         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7952         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7953
7954 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7955
7956         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7957         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7958
7959 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7960
7961         [BZ #14049]
7962         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7963         nonzero digits before rounding a hex value.
7964         * stdlib/tst-strtod.c (tests): Add another test.
7965
7966 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7967
7968         * sysdeps/s390/fpu/libm-test-ulps: Update.
7969
7970 2012-05-03  Andreas Jaeger  <aj@suse.de>
7971
7972         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7973         does not get optimized out.
7974         (malloc_opt_barrier): New.
7975
7976 2012-05-03  Andreas Jaeger  <aj@suse.de>
7977             Roland McGrath  <roland@hack.frob.com>
7978
7979         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7980         intermediate file deletion.
7981         (generated): Add .symlist files.
7982
7983 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7984
7985         [BZ #13775]
7986         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7987         Redirect under this condition.
7988         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7989         [__USE_GNU] (__dprintf_chk): Not under this condition.
7990         [__USE_GNU] (__vdprintf_chk): Likewise.
7991         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7992         under this condition.
7993         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7994         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7995         [__USE_XOPEN2K8] (vdprintf): Likewise.
7996         [__USE_GNU] (__dprintf_chk): Not under this condition.
7997         [__USE_GNU] (__vdprintf_chk): Likewise.
7998         [__USE_GNU] (dprintf): Likewise.
7999         [__USE_GNU] (vdprintf): Likewise.
8000
8001 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8002
8003         * elf/Makefile (common-generated): Set this instead of generated for
8004         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8005         $(all-built-dso)-derived lists.
8006
8007 2012-05-03  Andreas Jaeger  <aj@suse.de>
8008
8009         * sysdeps/i386/fpu/libm-test-ulps: Update.
8010
8011         * FAQ: Removed.
8012         * FAQ.in: Likewise.
8013         * scripts/gen-FAQ.pl: Likewise.
8014         * manual/install.texi (Installation): Point to online location of
8015         FAQ.
8016         * Makefile (files-for-dist): Remove FAQ.
8017         (FAQ): Remove.
8018
8019 2012-05-02  Allan McRae  <allan@archlinux.org>
8020
8021         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8022         (LDFLAGS-reldepmod5.so): Likewise.
8023         (LDFLAGS-reldep6mod1.so): Likewise.
8024         (LDFLAGS-reldep6mod4.so): Likewise.
8025         (LDFLAGS-reldep8mod3.so): Likewise.
8026         (LDFLAGS-unload4mod1.so): Likewise.
8027         (LDFLAGS-unload4mod2.so): Likewise.
8028         (LDFLAGS-tst-initorder): Likewise.
8029         (LDFLAGS-tst-initordera2.so): Likewise.
8030         (LDFLAGS-tst-initordera3.so): Likewise.
8031         (LDFLAGS-tst-initordera4.so): Likewise.
8032         (LDFLAGS-tst-initorderb2.so): Likewise.
8033         (LDFLAGS-noload): Likewise.
8034         (LDFLAGS-next): Likewise.
8035         (LDFLAGS-order2mod1.so): Likewise.
8036         (LDFLAGS-order2mod2.so): Likewise.
8037         (LDFLAGS-tst-initorder2): Likewise.
8038         (LDFLAGS-tst-initorder2a.so): Likewise.
8039         (LDFLAGS-tst-initorder2b.so): Likewise.
8040         (LDFLAGS-tst-initorder2c.so): Likewise.
8041         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8042
8043 2012-05-02  David S. Miller  <davem@davemloft.net>
8044
8045         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8046
8047 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8048
8049         [BZ #14055]
8050         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8051
8052 2012-05-02  Andreas Jaeger  <aj@suse.de>
8053
8054         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8055         since we manipulate rounding mode.
8056         (CPPFLAGS-test-idouble.c): Likewise.
8057         (CPPFLAGS-test-ifloat.c): Likewise.
8058         (CFLAGS-test-ldouble.c): Likewise.
8059         (CFLAGS-test-double.c): Likewise.
8060         (CFLAGS-test-float.c): Likewise.
8061         (CFLAGS-test-misc.c): Likewise.
8062         (CFLAGS-test-test-fenv.c): Likewise.
8063
8064 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8065
8066         [BZ #2550]
8067         [BZ #2570]
8068         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8069         comparisons to determine direction to adjust input.
8070
8071 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8072
8073         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8074         output to the target.
8075
8076         * scripts/localplt.awk: New file.
8077         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8078         (check-localplt-CFLAGS): Variable removed.
8079         ($(all-built-dso:=.jmprel)): New static pattern rule.
8080         (generated): Add those targets.
8081         (localplt-built-dso): New variable.
8082         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8083
8084         * elf/check-localplt.c: File removed.
8085
8086         * scripts/check-execstack.awk: New file.
8087         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8088         (check-execstack-CFLAGS): Variable removed.
8089         ($(objpfx)check-execstack.h): Target removed.
8090         ($(objpfx)execstack-default): New target.
8091         (generated): Add that instead of check-execstack.h.
8092         ($(all-built-dso:=.phdr)): New static pattern rule.
8093         (generated): Add those targets.
8094         * elf/check-execstack.c: File removed.
8095
8096         * scripts/check-textrel.awk: New file.
8097         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8098         (check-textrel-CFLAGS): Variable removed.
8099         (all-built-dso): Use := to define.o
8100         ($(all-built-dso:=.dyn)): New static pattern rule.
8101         (generated): Add those targets.
8102         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8103         * config.make.in (READELF): New substituted variable.
8104         * elf/check-textrel.c: File removed.
8105
8106 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8107
8108         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8109         allow.
8110         * conform/data/ctype.h-data [C99-based standards] (isblank):
8111         Expect function.
8112         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8113         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8114         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8115         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8116         Specify type.  Require positive value.
8117         (EILSEQ): Likewise.
8118         (ERANGE): Likewise.
8119         [ISO || POSIX] (EILSEQ): Do not expect.
8120         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8121         Specify type.  Require positive value.
8122         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8123         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8124         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8125         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8126         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8127         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8128         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8129         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8130         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8131         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8132         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8133         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8134         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8135         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8136         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8137         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8138         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8139         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8140         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8141         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8142         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8143         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8144         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8145         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8146         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8147         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8148         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8149         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8150         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8151         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8152         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8153         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8154         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8155         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8156         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8157         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8158         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8159         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8160         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8161         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8162         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8175         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8176         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8177         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8178         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8179         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8180         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8181         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8182         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8183         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8184         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8196         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8197         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8198         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8199         Require >= 2.
8200         (FLT_ROUNDS): Expect as macro, not constant.
8201         (FLT_MANT_DIG): Use macro-int-constant.
8202         (DBL_MANT_DIG): Likewise.
8203         (LDBL_MANT_DIG): Likewise.
8204         (FLT_DIG): Likewise.
8205         (DBL_DIG): Likewise.
8206         (LDBL_DIG): Likewise.
8207         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8208         (DBL_MIN_EXP): Likewise.
8209         (LDBL_MIN_EXP): Likewise.
8210         (FLT_MAX_EXP): Use macro-int-constant.
8211         (DBL_MAX_EXP): Likewise.
8212         (LDBL_MAX_EXP): Likewise.
8213         (FLT_MAX_10_EXP): Likewise.
8214         (DBL_MAX_10_EXP): Likewise.
8215         (LDBL_MAX_10_EXP): Likewise.
8216         (FLT_MAX): Use macro-constant.
8217         (DBL_MAX): Likewise.
8218         (LDBL_MAX): Likewise.
8219         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8220         (DBL_EPSILON): Likewise.
8221         (LDBL_EPSILON): Likewise.
8222         (FLT_MIN): Likewise.
8223         (DBL_MIN): Likewise.
8224         (LDBL_MIN): Likewise.
8225         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8226         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8227         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8228         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8229         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8230         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8231         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8232         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8233         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8234         [ISO11] (FLT_TRUE_MIN): Likewise.
8235         [ISO11] (LDBL_TRUE_MIN): Likewise.
8236         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8237         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8238         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8239         (SCHAR_MAX): Likewise.
8240         (UCHAR_MAX): Likewise.
8241         (CHAR_MIN): Likewise.
8242         (CHAR_MAX): Likewise.
8243         (MB_LEN_MAX): Use macro-int-constant.
8244         (SHRT_MIN): Use macro-int-constant.  Specify type.
8245         (SHRT_MAX): Likewise.
8246         (USHRT_MAX): Likewise.
8247         (INT_MAX): Likewise.
8248         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8249         bound negative.
8250         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8251         bound with "U".
8252         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8253         bound with "L".
8254         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8255         bound negative.  Suffix upper bound with "L".
8256         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8257         bound with "UL".
8258         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8259         Specify type.
8260         [C99-based standards] (LLONG_MAX): Likewise.
8261         [C99-based standards] (ULLONG_MAX): Likewise.
8262         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8263         == 0.
8264         [ISO11] (max_align_t): Require type.
8265         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8266
8267         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8268         from $CFLAGS, without defining away __attribute__ calls.
8269         (checknamespace): Use $CFLAGS_namespace.
8270
8271         * conform/conformtest.pl (@keywords): Only include C99 keywords
8272         for standards based on C99 or C11.
8273
8274         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8275         Disable tests.
8276         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8277         UNIX98]: Likewise.
8278
8279         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8280         usability of symbols in #if.
8281
8282         * conform/conformtest.pl: If macro or constant types start
8283         "promoted:", expect the symbol to be of the following type
8284         promoted by the integer promotions.
8285
8286         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8287         in one place.  Also handle "macro-constant".
8288
8289         * conform/conformtest.pl: Only accept expected macro values with
8290         "==".  Parse all "macro" lines in one place.
8291         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8292
8293         * conform/conformtest.pl: Handle braced types on "constant" lines
8294         instead of handling "typed-constant".
8295         * conform/data/signal.h-data: Use "constant" instead of
8296         "typed-constant".
8297
8298         * conform/conformtest.pl: Handle "optional-" at start of lines in
8299         one place rather than duplicating several cases.  Handle each
8300         format of "macro" line with initial "optional-".
8301
8302         * conform/conformtest.pl: Only accept expected constant or
8303         optional-constant values with "==".  Parse all "constant" lines in
8304         one place.  Parse all "optional-constant" lines in one place.
8305         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8306         * conform/data/fmtmsg.h-data: Likewise.
8307         * conform/data/netinet/in.h-data: Likewise.
8308         * conform/data/tar.h-data: Likewise.
8309         * conform/data/limits.h-data: Use "==" form on "constant" and
8310         "optional-constant" lines.
8311
8312         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8313         Use -std=c99 for XOPEN2K.
8314         (@knownproblems): Remove.
8315         (newtoken): Don't check %isknown.
8316
8317         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8318         Do not expect macro.
8319         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8320         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8321         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8322         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8323         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8324         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8325         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8326         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8327         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8328         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8329         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8330         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8331         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8332         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8333         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8334         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8335         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8336         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8337         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8338         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8339         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8340         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8341         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8342         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8343         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8344         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8345         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8346         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8348         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8349         [XPG3] (acosh): Likewise.
8350         [XPG3] (asinh): Likewise.
8351         [XPG3] (atanh): Likewise.
8352         [XPG3] (cbrt): Likewise.
8353         [XPG3] (expm1): Likewise.
8354         [XPG3] (ilogb): Likewise.
8355         [XPG3] (log1p): Likewise.
8356         [XPG3] (logb): Likewise.
8357         [XPG3] (nextafter): Likewise.
8358         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8359         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8360         [XPG3] (remainder): Likewise.
8361         [XPG3] (rint): Likewise.
8362         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8363         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8364         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8365         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8366         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8367         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8368         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8369         [UNIX98 || XOPEN2K] (scalb): Expect.
8370         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8371         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8372         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8373         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8374         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8375         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8376         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8377         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8378         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8379         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8380         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8381         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8382         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8383         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8384         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8507
8508         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8509         _XOPEN_SOURCE_EXTENDED for XPG4.
8510
8511         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8512
8513         * Makeconfig (localtime): Remove variable.
8514         (inst_localtime-file): Likewise.
8515
8516 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8517
8518         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8519         Update.
8520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8521         Update.
8522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8523         Update.
8524         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8525         Update.
8526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8527         Update.
8528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8529         Update.
8530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8531         Update.
8532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8533         Update.
8534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8535         Update.
8536
8537 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8538
8539         [BZ #2550]
8540         [BZ #2570]
8541         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8542         comparisons to determine direction to adjust input.
8543         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8544         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8545         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8546         Likewise.
8547         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8548         Likewise.
8549         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8550         Likewise.
8551         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8552         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8553         Likewise.
8554         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8555         Likewise.
8556         * math/libm-test.inc (nexttoward_test): Add more tests.
8557
8558 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8559
8560         [BZ #14040]
8561         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8562         in version GLIBC_2.1, not GLIBC_2.0.
8563         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8564         Likewise.
8565
8566 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8567
8568         [BZ #13942]
8569         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8570         (1 - x) * (1 + x).
8571         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8572         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8573         * math/libm-test.inc (acos_test): Add more tests.
8574         (asin_test): Likewise.
8575         * sysdeps/i386/fpu/libm-test-ulps: Update.
8576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8577
8578         [BZ #14034]
8579         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8580         of square root.
8581         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8582         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8583         * math/libm-test.inc (acos_test_tonearest): New function.
8584         (acos_test_towardzero): Likewise.
8585         (acos_test_downward): Likewise.
8586         (acos_test_upward): Likewise.
8587         (asin_test_tonearest): Likewise.
8588         (asin_test_towardzero): Likewise.
8589         (asin_test_downward): Likewise.
8590         (asin_test_upward): Likewise.
8591         (main): Call the new functions.
8592         * sysdeps/i386/fpu/libm-test-ulps: Update.
8593         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8594
8595         [BZ #13884]
8596         [BZ #13924]
8597         * math/e_exp10.c: Include <float.h>.
8598         (__ieee754_exp10): Handle underflow here rather than multiplying
8599         large negative argument by M_LN10.
8600         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8601         of __ieee754_expf.
8602         * math/e_exp10l.c: Include <float.h>.
8603         (__ieee754_exp10l): Handle underflow here rather than multiplying
8604         large negative argument by M_LN10l.
8605         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8606         spurious overflow exception on underflow.
8607
8608 2012-04-29  Marek Polacek  <polacek@redhat.com>
8609
8610         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8611         (__fortify_function): New macro.
8612         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8613         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8614         __extern_always_inline.
8615         * libio/bits/stdio2.h: Likewise.
8616         * libio/bits/stdio.h: Likewise.
8617         * string/string.h: Likewise.
8618         * string/bits/string3.h: Likewise.
8619         * include/stdio.h: Likewise.
8620         * stdlib/bits/stdlib.h: Likewise.
8621         * stdlib/stdlib.h: Likewise.
8622         * rt/bits/mqueue2.h: Likewise.
8623         * rt/mqueue.h: Likewise.
8624         * posix/bits/unistd.h: Likewise.
8625         * posix/unistd.h: Likewise.
8626         * io/bits/poll2.h: Likewise.
8627         * io/bits/fcntl2.h: Likewise.
8628         * io/fcntl.h: Likewise.
8629         * io/sys/poll.h: Likewise.
8630         * misc/bits/syslog.h: Likewise.
8631         * misc/bits/syslog-ldbl.h: Likewise.
8632         * misc/sys/syslog.h: Likewise.
8633         * socket/bits/socket2.h: Likewise.
8634         * socket/sys/socket.h: Likewise.
8635         * debug/tst-chk1.c: Likewise.
8636         * wcsmbs/bits/wchar2.h: Likewise.
8637         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8638         * wcsmbs/wchar.h: Likewise.
8639
8640 2012-04-29  Andreas Jaeger  <aj@suse.de>
8641
8642         * Makerules (tests): Remove enable-check-abi protection.
8643         (check-abi-warn): Remove.
8644         (check-abi-%): Remove check-abi-warn usage.
8645
8646         * configure.in: Remove check-abi configure option.
8647         * configure: Regenerated.
8648         * config.make.in (enable-check-abi): Remove.
8649
8650 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8651
8652         [BZ #14033]
8653         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8654         double functions to double *_finite functions.
8655
8656         [BZ #13941]
8657         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8658         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8659         LDBL_MIN_EXP.
8660         * stdio-common/Makefile (tests): Add tst-sprintf3.
8661         * stdio-common/tst-sprintf3.c: New file.
8662
8663         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8664         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8665
8666 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8667
8668         * conform/conformtest.pl: Remove duplicate typed-constant
8669         handling.
8670
8671 2012-04-28  David S. Miller  <davem@davemloft.net>
8672
8673         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8674         (check-abi-%): Remove AWK script prerequisite and explicit
8675         abilist directory.
8676         (check-abi): Rewrite to just diff the symlist with the abilist.
8677         (config-tls, config-abi-config): Delete, no longer used.
8678         (update-abi-%): Remove AWK script and explicit abilist directory.
8679         (update-abi): Rewrite to simply compare and conditionally copy the
8680         symlist and the sysdep abilist file.  Remove update-abi-config
8681         checks.
8682         * abilist/ld.abilist: Remove.
8683         * abilist/libBrokenLocale.abilist: Remove.
8684         * abilist/libanl.abilist: Remove.
8685         * abilist/libcrypt.abilist: Remove.
8686         * abilist/libdl.abilist: Remove.
8687         * abilist/librt.abilist: Remove.
8688         * abilist/libthread_db.abilist: Remove.
8689         * abilist/libutil.abilist: Remove.
8690         * scripts/extract-abilist.awk: Remove.
8691         * scripts/merge-abilist.awk: Remove.
8692         * sysdeps/generic/libcidn.abilist: New file.
8693         * sysdeps/generic/libnss_compat.abilist: New file.
8694         * sysdeps/generic/libnss_db.abilist: New file.
8695         * sysdeps/generic/libnss_dns.abilist: New file.
8696         * sysdeps/generic/libnss_files.abilist: New file.
8697         * sysdeps/generic/libnss_hesiod.abilist: New file.
8698         * sysdeps/generic/libnss_nis.abilist: New file.
8699         * sysdeps/generic/libnss_nisplus.abilist: New file.
8700         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8701         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8702         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8703         file.
8704         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8705         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8706         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8707         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8708         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8709         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8710         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8711         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8712         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8713         file.
8714         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8715         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8716         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8717         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8718         file.
8719         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8720         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8721         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8722         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8723         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8724         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8725         file.
8726         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8727         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8728         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8729         file.
8730         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8731         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8732         New file.
8733         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8734         New file.
8735         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8736         New file.
8737         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8738         New file.
8739         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8740         New file.
8741         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8742         New file.
8743         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8744         New file.
8745         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8746         New file.
8747         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8748         New file.
8749         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8750         New file.
8751         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8752         New file.
8753         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8754         New file.
8755         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8756         New file.
8757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8758         file.
8759         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8760         New file.
8761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8762         New file.
8763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8764         file.
8765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8766         New file.
8767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8768         New file.
8769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8770         file.
8771         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8772         New file.
8773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8774         New file.
8775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8776         New file.
8777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8778         New file.
8779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8780         New file.
8781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8782         New file.
8783         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8784         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8785         file.
8786         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8787         New file.
8788         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8789         file.
8790         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8791         file.
8792         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8793         file.
8794         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8795         file.
8796         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8797         file.
8798         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8799         New file.
8800         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8801         file.
8802         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8803         file.
8804         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8805         New file.
8806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8807         file.
8808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8810         file.
8811         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8812         New file.
8813         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8814         file.
8815         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8816         file.
8817         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8818         file.
8819         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8820         file.
8821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8822         file.
8823         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8824         New file.
8825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8826         file.
8827         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8828         file.
8829         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8830         New file.
8831         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8832         file.
8833         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8834         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8835         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8836         file.
8837         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8838         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8839         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8840         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8841         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8842         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8843         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8844         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8845         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8846         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8847         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8848         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8849         file.
8850         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8851         New file.
8852         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8853         file.
8854         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8855         file.
8856         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8857         file.
8858         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8859         file.
8860         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8861         file.
8862         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8863         New file.
8864         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8865         New file.
8866         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8867         file.
8868         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8869         New file.
8870         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8871         file.
8872         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8873         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8874         file.
8875         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8876         New file.
8877         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8878         file.
8879         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8880         file.
8881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8882         file.
8883         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8884         file.
8885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8886         file.
8887         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8888         New file.
8889         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8890         New file.
8891         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8892         file.
8893         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8894         New file.
8895         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8896         file.
8897
8898 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8899
8900         * conform/conformtest.pl: Fix typo in handling typed-constant from
8901         allow-header.
8902
8903 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8904
8905         * README: Cut down references to pre-2.6 Linux kernels and
8906         Linuxthreads.  Update lists of configurations in libc and ports
8907         and sort alphabetically.  Say "or newer" with Linux kernel version
8908         requirements.
8909
8910         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8911
8912 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8913
8914         [BZ #887]
8915         * math/libm-test.inc (logb_test_downward): New test to expose
8916         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8917         rounding mode.
8918
8919 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8920
8921         [BZ #14027]
8922         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8923         to be done.
8924         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8925         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8926
8927 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8928
8929         * sysdeps/unix/i386/brk.S: Remove file.
8930         * sysdeps/unix/i386/dl-brk.S: Likewise.
8931         * sysdeps/unix/i386/pipe.S: Likewise.
8932         * sysdeps/unix/i386/sigreturn.S: Likewise.
8933         * sysdeps/unix/i386/syscall.S: Likewise.
8934         * sysdeps/unix/i386/vfork.S: Likewise.
8935         * sysdeps/unix/i386/wait.S: Likewise.
8936
8937         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8938         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8939
8940         * configure.in (arm*-none*): Do not allow without
8941         --enable-hacker-mode.
8942         (netbsd*): Remove case setting base_os.
8943         (386bsd*): Likewise.
8944         (freebsd*): Likewise.
8945         (bsdi*): Likewise.
8946         (osf*): Likewise.
8947         (sunos*): Likewise.
8948         (ultrix*): Likewise.
8949         (newsos*): Likewise.
8950         (dynix*): Likewise.
8951         (*bsd*): Likewise.
8952         (sysv*): Likewise.
8953         (isc*): Likewise.
8954         (esix*): Likewise.
8955         (sco*): Likewise.
8956         (minix*): Likewise.
8957         (irix4*): Likewise.
8958         (irix6*): Likewise.
8959         (solaris[2-9]*): Likewise.
8960         (none): Likewise.
8961         * configure: Regenerated.
8962
8963 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8964
8965         [BZ #11521]
8966         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8967         overflow or cancellation in calculating denominator.
8968         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8969         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8970         down expression to avoid unexpected rounding in newer GCCs.
8971         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8972
8973 2012-04-26  David S. Miller  <davem@davemloft.net>
8974
8975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8976         long-double compat symbols.
8977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8990
8991 2012-04-25  David S. Miller  <davem@davemloft.net>
8992
8993         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8994         HWCAP_* values only after the memory barriers have been defined.
8995         (atomic_full_barrier): Define.
8996         (atomic_read_barrier): Define.
8997         (atomic_write_barrier): Define.
8998
8999 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9000
9001         * shlib-versions: Add libgcc_s version information.
9002         * sysdeps/generic/libgcc_s.h: Remove.
9003         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9004         libgcc_s.h.
9005         * sysdeps/gnu/unwind-resume.c: Likewise.
9006         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9007
9008 2012-04-25  David S. Miller  <davem@davemloft.net>
9009
9010         * sysdeps/unix/sparc/brk.S: Delete.
9011         * sysdeps/unix/sparc/dl-brk.S: Delete.
9012         * sysdeps/unix/sparc/pipe.S: Delete.
9013         * sysdeps/unix/sparc/sysdep.S: Delete.
9014         * sysdeps/unix/sparc/sysdep.h: Delete.
9015         * sysdeps/unix/sparc/vfork.S: Delete.
9016         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9017         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9018         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9019         ret_ERRVAL, r0, r1, MOVE): Define.
9020         (JUMPTARGET): Remove.
9021         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9022         sysdeps/unix/sparc/sysdep.h
9023         (ENTRY, END): Remove.
9024         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9025
9026 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9027
9028         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9029         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9030         -DIS_IN_build.
9031
9032         * timezone/README: Update upstream location and email address for
9033         tzcode and tzdata.
9034         * timezone/zdump.c: Update from tzcode 2012b.
9035         * timezone/zic.c: Likewise.
9036
9037         * configure.in (libc_cv_as_needed): Remove test.
9038         * configure: Regenerated.
9039         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9040         conditional definition.
9041         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9042         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9043         * config.make.in (have-as-needed): Remove variable.
9044
9045 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9046             Paul Pluzhnikov  <ppluzhnikov@google.com>
9047
9048         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9049         strings correctly.
9050
9051 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9052
9053         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9054         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9055         * sysdeps/sh/strlen.S: Likewise.
9056
9057 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9058
9059         * sysdeps/unix/fork.S: Remove file.
9060         * sysdeps/unix/i386/fork.S: Likewise.
9061         * sysdeps/unix/sparc/fork.S: Likewise.
9062
9063         * sysdeps/unix/system.c: Remove file.
9064         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9065
9066         * sysdeps/unix/getegid.S: Remove file.
9067         * sysdeps/unix/geteuid.S: Likewise.
9068
9069 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9070
9071         * scripts/check-localplt.awk: New file.
9072         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9073         of diff.
9074         * scripts/data/localplt-generic.data: Add a comment.
9075
9076         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9077         NODE when __dir_mkfile failed.
9078         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9079         Reported by Ludovic Courtès <ludo@gnu.org>.
9080
9081 2012-04-24  Andreas Jaeger  <aj@suse.de>
9082
9083         * Makerules (common-clean): Also remove gen-as-const-headers
9084         files.
9085
9086 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9087
9088         * Makerules (native-compile): Do not change working directory for
9089         build.  Use $(OUTPUT_OPTION) in command.
9090         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9091
9092 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9093
9094         [BZ #13886]
9095         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9096         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9097         * math/libm-test.inc (floor_test): Add more tests.
9098         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9099
9100 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9101
9102         * sysdeps/unix/getdents.c: Remove file.
9103         * sysdeps/unix/sysv/getdents.c: Likewise.
9104         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9105
9106         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9107         sysdeps/unix/mman/syscalls.list.
9108         (mmap): Likewise.
9109         (mprotect): Likewise.
9110         (msync): Likewise.
9111         (munmap): Likewise.
9112         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9113         * sysdeps/unix/mman/syscalls.list: Remove.
9114         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9115
9116         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9117         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9118         * configure: Regenerated.
9119         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9120         $(libgcc_s_suffix).
9121         * config.make.in (libgcc_s_suffix): Remove variable.
9122
9123 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9124
9125         * sysdeps/unix/sysv/gethostname.c: Move to ...
9126         * sysdeps/posix/gethostname.c: ... here.
9127
9128         * sysdeps/unix/execve.S: Remove file.
9129
9130         * sysdeps/unix/_exit.S: Remove file.
9131
9132 2012-04-23  Andreas Jaeger  <aj@suse.de>
9133
9134         [BZ #13739]
9135         * manual/Makefile: Remove make dist support, there's no
9136         need for a stand-alone documentation tar ball.
9137         (TEXI2DVI): Define always, it's not in Makeconfig.
9138         (dist): Removed.
9139         (tar-it): Removed.
9140         (edition): Removed.
9141         (glibc-doc-$(edition).tar): Removed
9142         (%.Z): Removed.
9143         (%.gz): Removed.
9144         (%.uu): Removed.
9145         (ETAGS): Remove, it's in Makeconfig.
9146         (move-if-change): Remove, it's in Makeconfig.
9147
9148 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9149
9150         [BZ #13970]
9151         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9152         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9153         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9154         (strtod_l, strtof_l, strtold_l): Remove __wur.
9155         It is not necessarily an error to ignore strtol's return value.
9156         One can reliably look at the stored endptr to decide whether
9157         the number had valid syntax.
9158
9159 2012-04-21  Andreas Jaeger  <aj@suse.de>
9160
9161         [BZ #13739]
9162         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9163
9164 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9165
9166         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9167         * sysdeps/unix/sysv/Versions: Remove file.
9168
9169 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9170
9171         [BZ #13927]
9172         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9173
9174 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9175
9176         [BZ #7064]
9177         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9178         version from __vm86.
9179
9180 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9181
9182         * sysdeps/unix/common/lxstat.c: Remove file.
9183         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9184
9185         * sysdeps/unix/sysv/Makefile: Remove file.
9186
9187         * sysdeps/unix/sysv/direct.h: Remove file.
9188
9189         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9190         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9191         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9192         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9193         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9194         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9195         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9196
9197         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9198
9199         * sysdeps/unix/xmknod.c: Remove file.
9200         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9201
9202         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9203
9204         * sysdeps/unix/sysv/i386/time.S: Remove file.
9205
9206         * sysdeps/unix/fxstat.c: Remove file.
9207         * sysdeps/unix/xstat.c: Likewise.
9208         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9209
9210         * sysdeps/unix/sysv/sigaction.c: Remove file.
9211
9212         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9213         (sysdep_headers): Remove variable.
9214         [termio.h not in sysdep_headers] (generated): Likewise.
9215         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9216         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9217         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9218         * sysdeps/unix/sysv/tcflow.c: Likewise.
9219         * sysdeps/unix/sysv/tcflush.c: Likewise.
9220         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9221         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9222         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9223         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9224         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9225
9226         * sysdeps/unix/siglist.c: Remove file.
9227
9228         * sysdeps/unix/getppid.S: Remove file.
9229
9230         * sysdeps/unix/mkdir.c: Remove file.
9231         * sysdeps/unix/rmdir.c: Likewise.
9232
9233 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9234
9235         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9236         ERR_MAX value.
9237         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9238         errlist-compat value.
9239
9240 2012-04-18  David S. Miller  <davem@davemloft.net>
9241
9242         * sysdeps/generic/memcopy.h (reg_char): Delete.
9243         * debug/strcat_chk.c: Use char, not reg_char.
9244         * debug/strcpy_chk.c: Likewise.
9245         * debug/strncat_chk.c: Likewise.
9246         * debug/strncpy_chk.c: Likewise.
9247         * string/memchr.c: Likewise.
9248         * string/memrchr.c: Likewise.
9249         * string/rawmemchr.c: Likewise.
9250         * string/strcat.c: Likewise.
9251         * string/strchr.c: Likewise.
9252         * string/strchrnul.c: Likewise.
9253         * string/strcmp.c: Likewise.
9254         * string/strcpy.c: Likewise.
9255         * string/strncat.c: Likewise.
9256         * string/strncmp.c: Likewise.
9257         * string/strncpy.c: Likewise.
9258
9259 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9260
9261         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9262         __builtin_memcopy is called when src and dest ranges are known to not
9263         overlap.
9264
9265 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9266
9267         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9268         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9269         fwd_align_merge macro call.
9270         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9271         bwd_align_merge macro call.
9272         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9273
9274 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9275
9276         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9277         bwd_align_merge macros.
9278         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9279         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9280         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9281
9282 2012-04-18  David S. Miller  <davem@davemloft.net>
9283
9284         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9285
9286 2012-04-18  Andreas Jaeger  <aj@suse.de>
9287
9288         [BZ# 6794]
9289         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9290         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9291         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9292
9293         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9294         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9295         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9296
9297         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9298         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9299         Adjust for changed ldbl-128 files.
9300
9301         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9302         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9303         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9304
9305 2012-04-17  David S. Miller  <davem@davemloft.net>
9306
9307         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9308
9309 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9310
9311         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9312         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9313         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9314         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9315         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9316         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9317
9318 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9319
9320         [BZ #6794]
9321         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9322         * math/libm-test.inc: Add ilogb errno and exception tests.
9323         * math/w_ilogb.c: New file: ilogb wrapper.
9324         * math/w_ilogbf.c: New file: ilogbf wrapper.
9325         * math/w_ilogbl.c: New file: ilogbl wrapper.
9326         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9327         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9328         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9329         exception being thrown with 0.0 as argument.
9330         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9331         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9332         exception being thrown with 0.0 as argument.
9333         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9334         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9335         exception being thrown with 0.0 as argument.
9336         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9337         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9338         exception being thrown with 0.0 as argument.
9339         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9340         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9341         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9342         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9343         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9344         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9345         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9346         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9347         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9348
9349 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9350
9351         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9352         with altivec.
9353
9354 2012-04-16  Marek Polacek  <polacek@redhat.com>
9355
9356         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9357
9358 2012-04-16  Marek Polacek  <polacek@redhat.com>
9359
9360         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9361         operands of fdivp instruction.
9362
9363 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9364
9365         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9366         * elf/tst-auditmod3b.c: Likewise.
9367         * elf/tst-auditmod4b.c: Likewise.
9368         * elf/tst-auditmod5b.c: Likewise.
9369         * elf/tst-auditmod6b.c: Likewise.
9370         * elf/tst-auditmod6c.c: Likewise.
9371         * elf/tst-auditmod7b.c: Likewise.
9372         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9373         * sysdeps/x86_64/preconfigure.in: Likewise.
9374         * sysdeps/x86_64/preconfigure: Regenerated.
9375
9376 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9377
9378         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9379         __ILP32__.
9380
9381 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9382
9383         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9384         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9385
9386 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9387
9388         [BZ #13973]
9389         * locale/iso-639.def: Fix gl language name. Spotted by
9390         Yaron Shahrabani.
9391
9392 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9393
9394         [BZ #2074]
9395         * libio/libio.h (__io_write_fn): Update comment.
9396
9397 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9398
9399         [BZ #2074]
9400         * stdio.texi (Hook Functions): The user provided writer function
9401         is not allowed to return -1.
9402
9403 2012-04-11  David S. Miller  <davem@davemloft.net>
9404
9405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9406
9407 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9408
9409         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9410         Add a leading slash to rtkaio.
9411
9412 2012-04-11  Jim Meyering  <meyering@redhat.com>
9413
9414         [BZ #11959]
9415         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9416         It is not necessarily an error to ignore fwrite's return
9417         value.  One can reliably use ferror to test for errors after
9418         the fact.
9419
9420 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9421
9422         * bits/types.h (__snseconds_t): New type.
9423         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9424
9425         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9426         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9427         (__SNSECONDS_T_TYPE): Likewise.
9428         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9429         (__SNSECONDS_T_TYPE): Likewise.
9430         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9431         (__SNSECONDS_T_TYPE): Likewise.
9432
9433 2012-04-10  Andreas Jaeger  <aj@suse.de>
9434
9435         [BZ #2636]
9436         * manual/time.texi (Processor Time): Return type of times is
9437         elapsed real time since an arbitrary point in the past.
9438         (CPU Time): Move CLK_TCK from here...
9439         (Processor Time): ...to here.  Correct description.
9440         * manual/conf.texi (Constants for Sysconf): Correct description of
9441         _SC_CLK_TCK.
9442
9443 2012-04-10  David S. Miller  <davem@davemloft.net>
9444
9445         [BZ #13967]
9446         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9447         where the is a gap between DT_REL(A) and DT_JMPREL.
9448
9449 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9450
9451         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9452         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9453         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9454
9455 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9456
9457         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9458         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9459         (dl_main): Handle --inhibit-cache.
9460         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9461         _dl_inhibit_cache.
9462         * elf/dl-load.c (_dl_map_object): Use it.
9463         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9464
9465 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9466
9467         [BZ #13872]
9468         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9469         (__ieee754_powl): Saturate large exponents rather than testing for
9470         overflow of y*log2(x).
9471         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9472         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9473         exceptions.
9474
9475         [BZ #11521]
9476         * math/s_ctan.c: Include <float.h>.
9477         (__ctan): Avoid internal overflow or cancellation in calculating
9478         denominator.
9479         * math/s_ctanf.c: Likewise.
9480         * math/s_ctanl.c: Likewise.
9481         * math/s_ctanh.c: Likewise.
9482         * math/s_ctanhf.c: Likewise.
9483         * math/s_ctanhl.c: Likewise.
9484         * math/libm-test.inc (ctan_test): Add more tests.
9485         (ctanh_test): Likewise.
9486         * sysdeps/i386/fpu/libm-test-ulps: Update.
9487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9488
9489 2012-04-09  Andreas Jaeger  <aj@suse.de>
9490
9491         [BZ #6894]
9492         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9493         is an optional BSD extension.
9494
9495         [BZ #10254]
9496         * manual/stdio.texi (Opening Streams): Document additional fopen
9497         parameters.
9498
9499 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9500
9501         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9502         %eax without telling the compiler.
9503
9504 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9505
9506         [BZ # 13963]
9507         * manual/install.texi: Use sourceware.org.
9508
9509 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9510
9511         [BZ #13873]
9512         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9513         (__ieee754_pow): Generate overflow and underflow using huge*huge
9514         and tiny*tiny rather than just returning constant infinity or zero
9515         for large exponents.
9516         * math/libm-test.inc (pow_test): Require overflow exceptions for
9517         applicable cases of large exponents.
9518
9519         [BZ #706]
9520         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9521         (__ieee754_pow): Use iterative multiplication algorithm only for
9522         integer exponents with absolute value below 1024.  Check for odd
9523         integer exponents when using algorithm for real exponents.
9524         * math/libm-test.inc (pow_test): Add more tests.
9525         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9526
9527 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9528
9529         [BZ #13705]
9530         * math/libm-test.inc (exp_test): Do not allow overflow exception
9531         on underflow test.
9532
9533 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9534
9535         [BZ #13705]
9536         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9537         instead of __kernel_standard_f.
9538
9539 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9540
9541         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9542         * sysdeps/x86_64/memset_chk.S: Likewise.
9543
9544 2012-04-08  Andreas Jaeger  <aj@suse.de>
9545
9546         [BZ #10153]
9547         * manual/startup.texi (Environment Access): Describe return value
9548         for putenv and setenv.
9549
9550         [BZ #6895]
9551         * manual/filesys.texi (Directory Entries): Add description for
9552         DT_LNK.
9553
9554         [BZ #6890]
9555         * manual/filesys.texi (Directory Entries): Clarify that it's file
9556         system not operating system in the description of DT_UNKNOWN.
9557
9558         [BZ #6578]
9559         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9560
9561 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9562
9563         [BZ #6649]
9564         * manual/llio.texi (Opening and Closing Files): Add cross
9565         reference to explain mode argument.
9566
9567 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9568
9569         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9570         * sysdeps/x86_64/memset_chk.S: Likewise.
9571
9572 2012-04-07  David S. Miller  <davem@davemloft.net>
9573
9574         * elf/elf.h (R_SPARC_WDISP10): Define.
9575         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9576         R_SPARC_SIZE32.
9577         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9578         R_SPARC_SIZE64 and R_SPARC_H34.
9579
9580 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9581
9582         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9583         conditions and remove no longer applicable assertion.
9584
9585 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9586
9587         * bits/byteswap.h: Include <features.h>.
9588         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9589         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9590
9591 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9592
9593         * bits/byteswap.h (__bswap_16): Removed.
9594         Include <bits/byteswap-16.h> to get __bswap_16.
9595         * sysdeps/i386/bits/byteswap.h: Likewise.
9596         * sysdeps/s390/bits/byteswap.h: Likewise.
9597         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9598         * bits/byteswap-16.h: New file.
9599         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9600         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9601         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9602         * string/Makefile (headers): Add bits/byteswap-16.h.
9603
9604 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9605
9606         [BZ #13895]
9607         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9608         extra indirection.
9609         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9610         * nss/tst-nss-static.c: New.
9611
9612 2012-04-06  Robert Millan  <rmh@gnu.org>
9613
9614         [BZ #6486]
9615         * manual/llio.texi (File Position Primitive): lseek
9616         refers to WHENCE when it really means OFFSET.
9617
9618 2012-04-06  Andreas Jaeger  <aj@suse.de>
9619
9620         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9621         strncmp declarations.
9622
9623         * abilist/libc.abilist: Add __poll and __ppoll.
9624
9625 2012-04-05  David S. Miller  <davem@davemloft.net>
9626
9627         * scripts/check-local-headers.sh: Accept a host triplet in the
9628         path matched by the exclude regexp.
9629
9630         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9631         definition.
9632         * sysdeps/powerpc/powerpc32/dl-machine.h
9633         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9634         * sysdeps/s390/s390-32/dl-machine.h
9635         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9636         * sysdeps/sparc/sparc32/dl-machine.h
9637         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9638         * sysdeps/sparc/sparc64/dl-machine.h
9639         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9640
9641         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9642         lazy binding.
9643         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9644         undefined symbol errors.
9645
9646         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9647         DT_NEEDED entries.
9648
9649 2012-04-05  Michael Matz  <matz@suse.de>
9650
9651         [BZ #13592]
9652         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9653
9654 2012-04-05  Andreas Jaeger  <aj@suse.de>
9655
9656         [BZ #13908]
9657         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9658         comment.
9659
9660 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9661
9662         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9663         which ROUND is no valid rounding mode.
9664
9665 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9666
9667         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9668         read again.
9669         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9670
9671 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9672
9673         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9674         an exception using FPU order intentionally.
9675
9676 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9677
9678         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9679         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9680         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9681         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9682
9683 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9684
9685         [BZ #12340]
9686         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9687         EINVAL when BUFLEN is too smal.
9688
9689 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9690
9691         [BZ #13553]
9692         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9693         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9694
9695 2012-04-03  Andreas Jaeger  <aj@suse.de>
9696
9697         [BZ #13938]
9698         * manual/setjmp.texi (System V contexts): Fix sentence.
9699
9700         [BZ #13926]
9701         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9702         New macro for this case.
9703         [!__GNUC__] (__bswap_64): New inline function for this case.
9704         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9705         * bits/byteswap.h: Likewise.
9706         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9707         ull, guard with __GLIBC_HAVE_LONG_LONG.
9708
9709         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9710         __GLIBC_HAVE_LONG_LONG.
9711
9712         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9713         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9714
9715 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9716
9717         [BZ #13691]
9718         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9719         inptr and inend, rather than using last_ch.
9720
9721 2012-04-02  David S. Miller  <davem@davemloft.net>
9722
9723         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9724         * stdio-common/printf-parse.h (read_int): Change return type to
9725         'int', return -1 on INT_MAX overflow.
9726         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9727         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9728         overflows INT_MAX.  Check for overflow of in-format-string precision
9729         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9730         SIZE_MAX not INT_MAX for integer overflow test.
9731         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9732         skip the construct in the format string but do not record anything.
9733         * stdio-common/bug22.c: Adjust to test both width/prevision
9734         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9735         explicitly for proper errno values.
9736
9737 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9738
9739         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9740         CHAR_MAX.
9741         * string/test-strcmp.c [! WIDE]: Likewise.
9742         * time/tst-mktime2.c: Likewise for INT_MAX.
9743         * string/test-string.h: #include <sys/param.h> for MIN.
9744
9745         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9746         * sysdeps/i386/init-first.c (init): Likewise.
9747         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9748         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9749         * sysdeps/sh/init-first.c (init): Likewise.
9750
9751 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9752
9753         * po/ru.po: Update from translation team.
9754         * po/vi.po: Likewise.
9755
9756 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9757
9758         * resolv/nss_dns/dns-host.c: Merge copyright years.
9759
9760 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9761
9762         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9763         Optimize memcpy with prefetch if
9764         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9765         src, dst pointers have unequal 16 byte alignments.
9766
9767 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9768
9769         [BZ #13928]
9770         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9771         from a CNAME entry and return the minimum ttl for the query.
9772         (gaih_getanswer_slice): Likewise.
9773
9774 2012-03-30  Jeff Law  <law@redhat.com>
9775
9776         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9777         due to long keys.
9778         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9779         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9780
9781         * resolv/nss_dns/dns-host.c: Update copyright year.
9782
9783 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9784
9785         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9786         requests to save a system call.  Fix check that all bytes are sent.
9787
9788         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9789         comments for sendmmsg.
9790
9791 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9792
9793         [BZ #13691]
9794         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9795         with only 1 character between 0x0041 and 0x01b0.
9796         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9797         * wcsmbs/tst-mbsnrtowcs.c: New file.
9798
9799 2012-03-29  David S. Miller  <davem@davemloft.net>
9800
9801         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9802         small copies by hand.
9803
9804 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9805
9806         [BZ #13761]
9807         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9808         _nss_compat_initgroups_dyn): Fall back to malloc/free
9809         for large group memberships.
9810
9811 2012-03-28  David S. Miller  <davem@davemloft.net>
9812
9813         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9814         that branches into memcpy.
9815         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9816         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9817         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9818         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9819         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9820         bits.
9821         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9822         implementation too.
9823         * sysdeps/sparc/mempcpy.S: New file.
9824
9825         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9826         the IFUNC routine in the libc case.
9827         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9828
9829         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9830         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9831         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9832         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9833         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9834         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9835         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9836         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9837
9838         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9839         loop to 256 bytes instead of 64 bytes and fix test signedness.
9840
9841         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9842         * sysdeps/sparc/sparc32/Makefile: rather than here...
9843         * sysdeps/sparc/sparc64/Makefile: and here.
9844
9845 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9846
9847         * malloc/mallocbug.c: Avoid warnings about unused variables.
9848
9849 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9850
9851         [BZ #13760]
9852         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9853         in the right place. Discard and retry query if response is
9854         larger than input buffer size.
9855
9856 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9857
9858         [BZ #369]
9859         [BZ #2678]
9860         [BZ #3866]
9861         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9862         x for large integer exponent.
9863         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9864         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9865         sign of result as needed afterwards.
9866         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9867         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9868         result for underflowing pow the same as for overflow.
9869         (__kernel_standard_l): Handle powl overflow and underflow here
9870         rather than calling __kernel_standard.
9871         * math/libm-test.inc (pow_test): Add more tests.
9872
9873         [BZ #3868]
9874         [BZ #13879]
9875         [BZ #13910]
9876         [BZ #13911]
9877         [BZ #13912]
9878         [BZ #13913]
9879         [BZ #13915]
9880         [BZ #13916]
9881         [BZ #13917]
9882         [BZ #13918]
9883         [BZ #13919]
9884         [BZ #13920]
9885         [BZ #13921]
9886         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9887         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9888         (__kernel_standard_l): New function.
9889         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9890         __kernel_standard.
9891         * math/w_acosl.c (__acosl): Likewise.
9892         * math/w_asinl.c (__asinl): Likewise.
9893         * math/w_atan2l.c (__atan2l): Likewise.
9894         * math/w_atanhl.c (__atanhl): Likewise.
9895         * math/w_coshl.c (__coshl): Likewise.
9896         * math/w_exp10l.c (__exp10l): Likewise.
9897         * math/w_exp2l.c (__exp2l): Likewise.
9898         * math/w_fmodl.c (__fmodl): Likewise.
9899         * math/w_hypotl.c (__hypotl): Likewise.
9900         * math/w_j0l.c (__j0l, __y0l): Likewise.
9901         * math/w_j1l.c (__j1l, __y1l): Likewise.
9902         * math/w_jnl.c (__jnl, __ynl): Likewise.
9903         * math/w_lgammal.c (__lgammal): Likewise.
9904         * math/w_log10l.c (__log10l): Likewise.
9905         * math/w_log2l.c (__log2l): Likewise.
9906         * math/w_logl.c (__logl): Likewise.
9907         * math/w_powl.c (__powl): Likewise.
9908         * math/w_remainderl.c (__remainderl): Likewise.
9909         * math/w_scalbl.c (sysv_scalbl): Likewise.
9910         * math/w_sinhl.c (__sinhl): Likewise.
9911         * math/w_sqrtl.c (__sqrtl): Likewise.
9912         * math/w_tgammal.c (__tgammal): Likewise.
9913         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9914         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9915         * math/libm-test.inc (acos_test): Add more tests.
9916         (acosh_test): Likewise.
9917         (asin_test): Likewise.
9918         (atanh_test): Likewise.
9919         (exp_test): Likewise.
9920         (exp10_test): Likewise.
9921         (exp2_test): Likewise.
9922         (expm1_test): Likewise.
9923         (lgamma_test): Likewise.
9924         (log_test): Likewise.
9925         (log10_test): Likewise.
9926         (log1p_test): Likewise.
9927         (log2_test): Likewise.
9928         (pow_test): Do not allow some spurious overflow exceptions.
9929         (sqrt_test): Add more tests.
9930         (tgamma_test): Likewise.
9931         (y0_test): Likewise.
9932         (y1_test): Likewise.
9933         (yn_test): Likewise.
9934
9935 2012-03-27  Anton Blanchard  <anton@samba.org>
9936
9937         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9938         MAP_HUGETLB.
9939         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9940         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9941         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9942
9943 2012-03-27  David S. Miller  <davem@davemloft.net>
9944
9945         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9946
9947         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9948         have-as-vis3 check.
9949
9950 2012-03-27  Andreas Jaeger  <aj@suse.de>
9951
9952         * sysdeps/x86_64/elf/configure.in: Moved to ...
9953         * sysdeps/x86_64/configure.in: ... here.
9954         * sysdeps/x86_64/elf/start.S: Moved to ...
9955         * sysdeps/x86_64/start.S: ... here.
9956         * sysdeps/x86_64/elf/configure: Delete.
9957
9958         * sysdeps/x86_64/configure.in: Merge contents from
9959         sysdeps/i386/configure.in (without i686 check).
9960
9961         * sysdeps/i386/elf/Versions: Merge into ...
9962         * sysdeps/i386/Versions: ... this.
9963         * sysdeps/i386/elf/Versions: Delete file.
9964         * sysdeps/i386/elf/start.S: Moved to ...
9965         * sysdeps/i386/start.S: ...here.
9966         * sysdeps/i386/elf/configure.in: Merge into...
9967         * sysdeps/i386/configure.in: ...here.
9968         * sysdeps/i386/elf/configure.in: Delete file.
9969         * sysdeps/i386/elf/configure: Delete file.
9970
9971         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9972         * debug/backtracesyms.c: ... here.
9973         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9974         * debug/backtracesymsfd.c: ... here.
9975         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9976         * sysdeps/generic/ifunc-sel.h: ... here.
9977
9978         * sysdeps/unix/i386/start.c: Delete file.
9979         * sysdeps/unix/sparc/start.c: Delete file.
9980         * sysdeps/unix/start.c: Delete file.
9981
9982         * sysdeps/sh/elf/configure.in: Moved to ...
9983         * sysdeps/sh/configure.in: ... here.
9984         * sysdeps/sh/elf/start.S: Moved to ...
9985         * sysdeps/sh/start.S: ... here.
9986         * sysdeps/sh/elf/configure: Delete file.
9987
9988         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9989         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9990         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9991         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9992         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9993         * sysdeps/powerpc/powerpc64/start.S: here.
9994         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9995         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9996         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9997         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9998         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9999
10000         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10001         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10002         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10003         * sysdeps/powerpc/powerpc32/start.S: ... here.
10004         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10005         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10006         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10007
10008         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10009         * sysdeps/powerpc/ifunc-sel.h: ... here.
10010         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10011         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10012
10013         * sysdeps/sparc/elf/configure.in: Moved to ...
10014         * sysdeps/sparc/configure.in: ... here.
10015         * sysdeps/sparc/elf/configure: Delete file.
10016         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10017         * sysdeps/sparc/sparc32/start.S: ... here.
10018         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10019         * sysdeps/sparc/sparc64/start.S: ... here.
10020         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10021         * sysdeps/sparc/sparc32/Makefile: ... this.
10022         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10023         * sysdeps/sparc/sparc64/Makefile: ... this.
10024
10025         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10026         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10027         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10028         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10029         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10030         * sysdeps/s390/s390-32/setjmp.S: ... here.
10031         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10032         * sysdeps/s390/s390-32/configure.in: ... here.
10033         * sysdeps/s390/s390-32/elf/configure: Delete file.
10034         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10035         * sysdeps/s390/s390-32/start.S: ... here.
10036
10037         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10038         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10039         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10040         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10041         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10042         * sysdeps/s390/s390-64/setjmp.S: ... here.
10043         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10044         * sysdeps/s390/s390-64/configure.in: ... here
10045         * sysdeps/s390/s390-64/elf/configure: Delete file.
10046         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10047         * sysdeps/s390/s390-64/start.S: ... here.
10048         * sysdeps/s390/s390-64/elf/configure: Delete.
10049
10050         * configure.in: Remove support for elf directories in sysdeps.
10051
10052         * configure: Regenerated.
10053         * sysdeps/i386/configure: Regenerated.
10054         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10055         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10056         * sysdeps/s390/s390-32/configure: Regenerated.
10057         * sysdeps/s390/s390-64/configure: Regenerated.
10058         * sysdeps/sh/configure: Regenerated.
10059         * sysdeps/sparc/configure: Regenerated.
10060         * sysdeps/x86_64/configure: Regenerated.
10061
10062 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10063
10064         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10065
10066         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10067         denormal result into account.
10068
10069 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10070
10071         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10072         Reported by Allan McRae <allan@archlinux.org>.
10073
10074 2012-03-23  Jeff Law  <law@redhat.com>
10075
10076         * nss/getnssent.c (__nss_getent): Fix typo.
10077
10078 2012-03-23  David S. Miller  <davem@davemloft.net>
10079
10080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10081
10082 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10083
10084         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10085         to pad to uint64_t for each field.
10086         (dl_tls_index): Replace unsigned long with uint64_t.
10087
10088 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10089         Paul Pluzhnikov  <ppluzhnikov@google.com>
10090
10091         [BZ #6528]
10092         * grp/Makefile (otherlibs): Don't set it.
10093         * inet/Makefile (otherlibs): Likewise.
10094         * login/Makefile (otherlibs): Likewise.
10095         * nscd/Makefile (otherlibs): Likewise.
10096         * posix/Makefile (otherlibs): Likewise.
10097         * pwd/Makefile (otherlibs): Likewise.
10098         * rt/Makefile (otherlibs): Likewise.
10099         * sunrpc/Makefile (otherlibs): Likewise.
10100         * nss/Makefile (otherlibs): Likewise.
10101         Add libnss_files to routines and static-only-routines.
10102         ($(objpfx)getent): Remove rule.
10103         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10104         static-only-routines.
10105
10106 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10107
10108         [BZ #13892]
10109         * math/s_cexp.c: Include <float.h>.
10110         (__cexp): Handle exp result overflowing not necessarily
10111         overflowing both real and imaginary parts of result.
10112         * math/s_cexpf.c: Likewise.
10113         * math/s_cexpl.c: Likewise.
10114         * math/libm-test.inc (cexp_test): Add more tests.
10115         * sysdeps/i386/fpu/libm-test-ulps: Update.
10116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10117
10118 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10119
10120         * include/link.h (ELFW): New macro.
10121         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10122         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10123
10124 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10125
10126         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10127         with uint64_t.
10128
10129 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10130
10131         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10132         declaration.
10133         (struct La_x32_retval): Likewise.
10134
10135 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10136
10137         * sysdeps/x86_64/preconfigure.in: New file.
10138         * sysdeps/x86_64/preconfigure: New generated file.
10139
10140 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10141
10142         [BZ #13824]
10143         * math/e_exp2l.c: Include <float.h>.
10144         (__ieee754_exp2l): Handle overflow and underflow cases
10145         separately.  Only pass fractional part of argument to
10146         __ieee754_expl.
10147         * math/libm-test.inc (exp2_test): Add more tests.
10148
10149         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10150         negating x to take absolute value.
10151         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10152         Likewise.
10153         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10154         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10155         Likewise.
10156         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10157         computing low part if x was negated.
10158         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10159
10160 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10161
10162         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10163         la_x32_gnu_pltexit.
10164         (pltexit): Cast int_retval to ptrdiff_t.
10165         * elf/tst-auditmod3b.c: Likewise.
10166         * elf/tst-auditmod4b.c: Likewise.
10167         * elf/tst-auditmod5b.c: Likewise.
10168         * elf/tst-auditmod6b.c: Likewise.
10169         * elf/tst-auditmod6c.c: Likewise.
10170         * elf/tst-auditmod7b.c: Likewise.
10171
10172         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10173         and x32_gnu_pltexit.
10174
10175         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10176         __ELF_NATIVE_CLASS.
10177         (La_x32_regs): New macro.
10178         (La_x32_retval): Likewise.
10179         (la_x32_gnu_pltenter): New function prototype.
10180         (la_x32_gnu_pltexit): Likewise.
10181
10182 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10183
10184         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10185         exponent.
10186
10187         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10188
10189         * configure.in (libc_cv_cc_nofma): Check for option to disable
10190         generation of FMA instructions.
10191         * configure: Regenerate.
10192         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10193         * sysdeps/ieee754/dbl-64/Makefile: New file.
10194         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10195         Remove brandred-fma4.
10196         (CFLAGS-brandred-fma4.c): Remove.
10197         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10198         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10199         define.
10200         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10201         define.
10202
10203 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10204
10205         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10206         LLONG_MAX != LONG_MAX.
10207         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10208         (_fitoa_word): Likewise.
10209         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10210         LLONG_MAX != LONG_MAX.
10211         * stdio-common/_itowa.h: Include <_itoa.h>.
10212         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10213         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10214         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10215         only if not defined.
10216         (_ITOA_WORD_TYPE): Likewise.
10217         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10218         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10219
10220 2012-03-21  David S. Miller  <davem@davemloft.net>
10221
10222         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10223
10224 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10225
10226         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10227         of x86_64 when setting libc_cv_slibdir, libdir and
10228         libc_cv_localedir.
10229         * sysdeps/unix/sysv/linux/configure: Regenerated.
10230
10231 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10232
10233         * manual/lang.texi (Old Varargs): Remove section.
10234         (How Variadic): Update menu.
10235         (va_start): Do not mention varargs.h.
10236
10237 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10238             Joseph Myers  <joseph@codesourcery.com>
10239
10240         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10241         link test.
10242         * configure: Regenerated.
10243
10244 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10245
10246         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10247         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10248         conformtest.pl
10249
10250 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10251
10252         * NOTES: Remove.
10253         * Makefile (files-for-dist): Remove NOTES.
10254         (NOTES): Remove rule.
10255         * README: Don't refer to NOTES.
10256         * manual/creature.texi: Don't include macros.texi.
10257         * manual/intro.texi (creature.texi): Remove comment referring to
10258         NOTES.
10259
10260         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10261         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10262         * configure: Regenerated.
10263         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10264         LIBC_TRY_CC_OPTION.
10265         (libc_cv_as_i686): Likewise.
10266         (libc_cv_cc_avx): Likewise.
10267         (libc_cv_cc_sse2avx): Likewise.
10268         (libc_cv_cc_fma4): Likewise.
10269         (libc_cv_cc_novzeroupper): Likewise.
10270         * sysdeps/i386/configure: Regenerated.
10271
10272         [BZ #13883]
10273         * sysdeps/i386/fpu/s_cexp.S: Remove.
10274         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10275         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10276         * math/libm-test.inc (cexp_test): Add more tests.
10277         * sysdeps/i386/fpu/libm-test-ulps: Update.
10278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10279
10280 2012-03-21  Allan McRae  <allan@archlinux.org>
10281
10282         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10283
10284 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10285
10286         [BZ #13871]
10287         * math/w_exp2.c: Do not include <float.h>.
10288         (o_threshold, u_threshold): Remove.
10289         (__exp2): Calculate result before checking finiteness and calling
10290         __kernel_standard.
10291         * math/w_exp2f.c: Likewise.
10292         * math/w_exp2l.c: Likewise.
10293         * math/libm-test.inc (exp2_test): Require overflow exception for
10294         1e6 input.
10295
10296         [BZ #3866]
10297         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10298         range of signed 64-bit integers before using fistpll.  Remove
10299         checks for whether integers fit in mantissa bits.
10300         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10301         the range of signed 32-bit integers before using fistpl.  Remove
10302         checks for whether integers fit in mantissa bits.
10303         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10304         (__ieee754_powl): Test for y outside the range of signed 64-bit
10305         integers before using fistpll.  Reduce 64-bit values to 63-bit
10306         ones as needed.
10307         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10308         divide-by-zero is raised for zero to large negative powers.
10309         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10310         (__ieee754_powl): Test for y outside the range of signed 64-bit
10311         integers before using fistpll.  Reduce 64-bit values to 63-bit
10312         ones as needed.
10313         * math/libm-test.inc (pow_test): Add more tests.
10314
10315 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10316
10317         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10318         <stdio-common/_itoa.h>.
10319         * debug/segfault.c: Likewise.
10320         * elf/dl-cache.c: Likewise.
10321         * elf/dl-minimal.c: Likewise.
10322         * elf/dl-misc.c: Likewise.
10323         * elf/dl-sysdep.c: Likewise.
10324         * elf/dl-version.c: Likewise.
10325         * elf/rtld.c: Likewise.
10326         * hurd/hurdsock.c: Likewise.
10327         * hurd/lookup-retry.c: Likewise.
10328         * malloc/malloc.c: Likewise.
10329         * malloc/mtrace.c: Likewise.
10330         * nscd/nscd_getgr_r.c: Likewise.
10331         * nscd/nscd_getpw_r.c: Likewise.
10332         * nscd/nscd_getserv_r.c: Likewise.
10333         * posix/getopt_init.c: Likewise.
10334         * posix/wordexp.c: Likewise.
10335         * stdio-common/_itoa.c: Likewise.
10336         * stdio-common/printf_fphex.c: Likewise.
10337         * stdio-common/vfprintf.c: Likewise.
10338         * string/_strerror.c: Likewise.
10339         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10340         * sysdeps/i386/i686/hp-timing.h: Likewise.
10341         * sysdeps/mach/_strerror.c: Likewise.
10342         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10343         * sysdeps/mach/hurd/sethostid.c: Likewise.
10344         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10345         * sysdeps/mach/xpg-strerror.c: Likewise.
10346         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10347         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10348         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10349         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10350         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10351         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10352         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10353         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10354         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10355         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10356         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10357         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10358         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10359         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10360         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10361         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10362         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10363         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10364         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10365         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10366         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10367
10368         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10369
10370         * stdio-common/_itoa.h: Moved to ...
10371         * sysdeps/generic/_itoa.h: Here.
10372
10373         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10374
10375         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10376         instead of "_itoa.h" and "_itowa.h".
10377         * stdio-common/vfprintf.: Likewise.
10378
10379 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10380
10381         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10382         <bits/wordsize.h>.
10383         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10384         (__signbit): Likwise.
10385         (llrintf): Likwise.
10386         (llrint): Likwise.
10387
10388 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10389
10390         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10391         __WORDSIZE != 64.
10392
10393 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10394
10395         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10396         OVERFLOW_EXCEPTION_OK.
10397         * math/libm-test.inc ("Philosophy"): Update comment about
10398         exception testing.
10399         (OVERFLOW_EXCEPTION): Define.
10400         (OVERFLOW_EXCEPTION_OK): Likewise.
10401         (INVALID_EXCEPTION_OK): Renumber.
10402         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10403         (IGNORE_ZERO_INF_SIGN): Likewise.
10404         (test_exceptions): Handle FE_OVERFLOW.
10405         (exp10_test): Expect overflow exceptions.
10406         (exp2_test): Likewise.
10407         (expm1_test): Likewise.
10408         (nextafter_test): Likewise.
10409         (pow_test): Likewise.
10410         (scalbn_test): Likewise.
10411         (scalbln_test): Likewise.
10412
10413 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10414
10415         * sysdeps/x86_64/bits/atomic.h
10416         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10417         64bit integer.
10418         (atomic_exchange_acq): Likewise.
10419         (__arch_exchange_and_add_body): Likewise.
10420         (__arch_add_body): Likewise.
10421         (atomic_add_negative): Likewise.
10422         (atomic_add_zero): Likewise.
10423
10424 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10425
10426         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10427         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10428
10429 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10430
10431         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10432         Check __x86_64__ instead of __WORDSIZE.
10433
10434 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10435
10436         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10437
10438 2012-03-19  David S. Miller  <davem@davemloft.net>
10439
10440         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10441
10442         * sysdeps/sparc/fpu/fenv_private.h: New file.
10443         * sysdeps/sparc/fpu/math_private.h: Use it.
10444         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10445         Remove.
10446         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10447         (libc_feholdexcept_setroundl): Remove.
10448         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10449         Remove.
10450         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10451         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10452
10453 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10454
10455         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10456         int64_t instead of long int.
10457         (INSERT_WORDS64): Likwise.
10458
10459 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10460
10461         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10462         _Unwind_GetCFA return to _Unwind_Ptr first.
10463
10464 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10465
10466         [BZ #13629]
10467         * math/s_clog.c: Include <float.h>.
10468         (__clog): Scale large or subnormal inputs.
10469         * math/s_clogf.c: Likewise.
10470         * math/s_clogl.c: Likewise.
10471         * math/s_clog10.c: Include <float.h>.
10472         (M_LOG10_2): Define.
10473         (__clog10): Scale large or subnormal inputs.
10474         * math/s_clog10f.c: Likewise.
10475         * math/s_clog10l.c: Likewise.
10476         * math/libm-test.inc (clog_test): Add more tests.
10477         (clog10_test): Likewise.
10478         * sysdeps/i386/fpu/libm-test-ulps: Update.
10479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10480
10481         [BZ #11451]
10482         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10483         x and y.
10484         * math/libm-test.inc (atan2_test): Add another test.
10485
10486         * Makerules (common-objdir-compile): Remove.
10487         * sysdeps/unix/Makefile (config-generated): Do not add
10488         $(unix-generated) to variable.
10489         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10490         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10491         Remove rule.
10492         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10493         Likewise.
10494         [generic bits/local_lim.h] (before-compile): Do not append to
10495         variable.
10496         [generic bits/local_lim.h] (common-generated): Likewise.
10497         [generic sys/param.h] (before-compile): Do not append to variable.
10498         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10499         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10500         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10501         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10502         include.
10503         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10504         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10505         [generic sys/param.h] ($(addprefix
10506         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10507         [generic sys/param.h] (common-generated): Do not append to
10508         variable.
10509         [generic sys/param.h] (sysdep_headers): Likewise.
10510         [generic bits/errno.h] (before-compile): Do not append to
10511         variable.
10512         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10513         rule.
10514         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10515         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10516         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10517         [generic bits/errno.h] (common-generated): Do not append to
10518         variable.
10519         [generic bits/ioctls.h] (before-compile): Do not append to
10520         variable.
10521         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10522         rule.
10523         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10524         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10525         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10526         rule.
10527         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10528         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10529         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10530         [generic bits/ioctls.h] (common-generated): Do not append to
10531         variable.
10532         [generic sys/syscall.h] (syscall.h): Remove variable.
10533         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10534         rule.
10535         [generic sys/syscall.h] (before-compile): Do not append to
10536         variable.
10537         [generic sys/syscall.h] (common-generated): Likewise.
10538         * sysdeps/unix/errnos-tmpl.c: Remove file.
10539         * sysdeps/unix/errnos.awk: Likewise.
10540         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10541         * sysdeps/unix/ioctls.awk: Likewise.
10542         * sysdeps/unix/mk-local_lim.c: Likewise.
10543         * sysdeps/unix/snarf-ioctls: Likewise.
10544
10545 2012-03-19  Richard Henderson  <rth@twiddle.net>
10546
10547         * sysdeps/i386/fpu/fenv_private.h: New file.
10548         * sysdeps/i386/fpu/math_private.h: Use it.
10549         (math_opt_barrier, math_force_eval): Remove.
10550         (libc_feholdexcept_setround_53bit): Remove.
10551         (libc_feupdateenv_53bit): Remove.
10552         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10553         (math_opt_barrier, math_force_eval): Remove.
10554         (libc_feholdexcept): Remove.
10555         (libc_feholdexcept_setround): Remove.
10556         (libc_fetestexcept, libc_fesetenv): Remove.
10557         (libc_feupdateenv_test): Remove.
10558         (libc_feupdateenv, libc_feholdsetround): Remove.
10559         (libc_feresetround): Remove.
10560
10561         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10562         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10563
10564         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10565         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10566         (libc_feupdateenv_testl): New.
10567         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10568         (libc_feupdateenv_testf): New.
10569         (libc_feupdateenv): Use libc_feupdateenv_test.
10570         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10571         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10572
10573         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10574         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10575         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10576         (libc_feresetround_noex): New.
10577         (libc_feresetround_noexf): New.
10578         (libc_feresetround_noexl): New.
10579         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10580         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10581         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10582         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10583         SET_RESTORE_ROUND.
10584         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10585         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10586         (__cos): Likewise.
10587         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10588         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10589         SET_RESTORE_ROUND_NOEX.
10590         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10591         SET_RESTORE_ROUND_NOEXF.
10592         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10593         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10594         (libc_feholdsetroundf): New.
10595         (libc_feresetround, libc_feresetroundf): New.
10596
10597         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10598         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10599         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10600
10601         * sysdeps/generic/math_private.h: Include <fenv.h>.
10602         (default_libc_feholdexcept): New.
10603         (default_libc_feholdexcept_setround): New.
10604         (default_libc_fesetenv, default_libc_feupdateenv): New.
10605         (libc_feholdexcept): Only define if undefined.
10606         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10607         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10608         (libc_feholdexcept_setroundl): Likewise.
10609         (libc_feholdexcept_setround_53bit): Likewise.
10610         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10611         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10612         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10613         (libc_feupdateenv_53bit): Likewise.
10614         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10615         (libc_feholdexcept): Convert from macro to inline function.
10616         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10617         (libc_fesetenv, libc_feupdateenv): Likewise.
10618
10619         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10620         not previously defined.
10621         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10622         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10623         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10624         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10625         * sysdeps/ieee754/flt-32/math_private.h: New file.
10626         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10627         math_private.h below SET_FLOAT_WORD.
10628         (__isnan, __isinf_ns, __finite): Remove.
10629         (__isnanf, __isinf_nsf, __finitef): Remove.
10630
10631 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10632
10633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10634
10635 2012-03-17  David S. Miller  <davem@davemloft.net>
10636
10637         [BZ #6471]
10638         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10639         for 2.16.
10640
10641 2012-03-16  David S. Miller  <davem@davemloft.net>
10642
10643         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10644         warnings.
10645
10646         [BZ #6471]
10647         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10648         properly.
10649         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10650         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10651         sysdep_routines when subdir is sysvipc.
10652         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10653         __getshmlba helper.
10654
10655         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10656
10657 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10658
10659         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10660         [__LP64__].
10661
10662 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10663
10664         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10665         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10666         (__lround): Renamed to ...
10667         (__llround): This.  Replace long int with long long int.
10668         Define lround functions as aliases of llround functions.
10669         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10670
10671 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10672
10673         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10674         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10675         adresses to uintptr_t.  Replace "long int" and "unsigned long
10676         int" with "greg_t" on va_arg.
10677
10678 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10679
10680         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10681         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10682
10683         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10684         Move e_machine check before EI_CLASS check.  Handle x32
10685         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10686         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10687         SKIP_EM_IA_64 and include
10688         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10689
10690         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10691         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10692         (add_system_dir): New macro.
10693
10694         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10695         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10696
10697 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10698
10699         [BZ #2551]
10700         [BZ #2552]
10701         [BZ #2553]
10702         [BZ #2554]
10703         [BZ #2562]
10704         [BZ #2563]
10705         [BZ #2565]
10706         [BZ #2566]
10707         [BZ #2576]
10708         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10709         (y0): Likewise.
10710         * math/w_j0f.c (j0f): Likewise.
10711         (y0f): Likewise.
10712         * math/w_j0l.c (__j0l): Likewise.
10713         (__y0l): Likewise.
10714         * math/w_j1.c (j1): Likewise.
10715         (y1): Likewise.
10716         * math/w_j1f.c (j1f): Likewise.
10717         (y1f): Likewise.
10718         * math/w_j1l.c (__j1l): Likewise.
10719         (__y1l): Likewise.
10720         * math/w_jn.c (jn): Likewise.
10721         (yn): Likewise.
10722         * math/w_jnf.c (jnf): Likewise.
10723         (ynf): Likewise.
10724         * math/w_jnl.c (__jnl): Likewise.
10725         (__ynl): Likewise.
10726         * math/libm-test.inc (j0_test): Add more tests.
10727         (j1_test): Likewise.
10728         (jn_test): Likewise.  Add trailing semicolon to existing test.
10729         (y0_test): Likewise.
10730         (y1_test): Likewise.
10731         * sysdeps/i386/fpu/libm-test-ulps: Update.
10732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10733
10734         [BZ #13851]
10735         [BZ #13854]
10736         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10737         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10738         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10739         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10740         (__tanl): Set errno for infinite argument.
10741         * sysdeps/i386/fpu/mptan.c: Remove.
10742         * sysdeps/i386/fpu/s_tan.S: Likewise.
10743         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10744         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10745         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10746         * math/libm-test.inc (tan_test): Add more tests and enable more
10747         tests for double and long double.
10748         * sysdeps/i386/fpu/libm-test-ulps: Update.
10749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10750
10751 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10752
10753         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10754         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10755
10756 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10757
10758         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10759         * configure.in: Use it for both main tree and add-ons.
10760         * configure: Regenerated.
10761
10762 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10763
10764         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10765
10766 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10767
10768         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10769         in comment.
10770
10771         [BZ #13851]
10772         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10773         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10774         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10775         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10776         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10777         infinite argument.
10778         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10779         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10780         != 0 for prec == 2.
10781         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10782         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10783         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10784         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10785         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10786         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10787         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10788         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10789         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10790         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10791         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10792         * math/libm-test.inc (cos_test): Add more tests and enable more
10793         tests for long double.
10794         (sin_test): Likewise.
10795         (sincos_test): Likewise.
10796         * sysdeps/i386/fpu/libm-test-ulps: Update.
10797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10798
10799 2012-03-16  David S. Miller  <davem@davemloft.net>
10800
10801         * sysdeps/sparc/fpu/math_private.h: New file.
10802
10803 2012-03-15  David S. Miller  <davem@davemloft.net>
10804
10805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10806         file.
10807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10809         file.
10810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10811         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10812         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10813         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10814         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10815         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10816         sysdep routines.
10817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10818
10819         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10820         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10821
10822         * sysdeps/sparc/sparc-ifunc.h: New file.
10823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10824         sparc-ifunc.h
10825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10827         Likewise.
10828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10829         Likewise.
10830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10834         Likewise.
10835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10840         Likewise.
10841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10842         Likewise.
10843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10847         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10848         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10849         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10850         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10851         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10852         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10855         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10856         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10857         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10858         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10859         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10860         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10861         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10862         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10863         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10864         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10865         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10866         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10867
10868 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10869
10870         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10871         scaling.
10872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10873
10874 2012-03-15  Andreas Jaeger  <aj@suse.de>
10875
10876         [BZ #13852]
10877         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10878         ieee754/flt-32 implementation for sin, cos and sincos.
10879         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10880         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10881         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10882         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10883         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10884         ieee754/flt-32 implementation for tan.
10885
10886         * math/libm-test.inc (cos_test): Enable some large input tests for
10887         float as well
10888         (sin_test): Likewise.
10889         (sincos_test): Likewise.
10890         (tan_test): Add tests for large input.
10891
10892         * sysdeps/i386/fpu/libm-test-ulps: Update.
10893
10894 2012-03-15  Andreas Jaeger  <aj@suse.de>
10895
10896         [BZ #13658]
10897         * math/libm-test.inc (cos_test): Add more test cases.
10898         (sin_test): Likewise.
10899         (sincos_test): Likewise.
10900
10901 2012-03-15  Andreas Jaeger  <aj@suse.de>
10902
10903         [BZ #13837]
10904         * math/libm-test.inc (cos_test): Add a test case for large input
10905         value.
10906         (sin_test): Likewise.
10907         (sincos_test): Likewise.
10908
10909 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10910         Joseph Myers  <joseph@codesourcery.com>
10911
10912         [BZ #13658]
10913         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10914         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10915         * sysdeps/i386/fpu/branred.c: Likewise.
10916         * sysdeps/i386/fpu/dosincos.c: Likewise.
10917         * sysdeps/i386/fpu/mpa.c: Likewise.
10918         * sysdeps/i386/fpu/s_cos.S: Likewise.
10919         * sysdeps/i386/fpu/s_sin.S: Likewise.
10920         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10921         * sysdeps/i386/fpu/sincos32.c: Likewise.
10922
10923         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10924         Define.
10925         (libc_feupdateenv_53bit): Define.
10926         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10927         Define.
10928         (libc_feupdateenv_53bit): Define.
10929
10930         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10931         53 bit (without extend i386 double precision).
10932
10933         * math/libm-test.inc (sincos_test): Add tests for large input.
10934         (sin): Likewise.
10935         (cos): Likewise.
10936
10937         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10938
10939 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10940
10941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10942
10943 2012-03-15  David S. Miller  <davem@davemloft.net>
10944
10945         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10946         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10947         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10948         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10951         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10953         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10954         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10955         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10956         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10957         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10958         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10959         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10961         file.
10962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10964         file.
10965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10967         file.
10968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10970         file.
10971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10972         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10973         fmin/fmax sysdep routines.
10974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10975
10976 2012-03-14  David S. Miller  <davem@davemloft.net>
10977
10978         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10979         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10980         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10981         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10982         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10983         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10984         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10986         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10988         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10989         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10990         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10991         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10992         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10998         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11000         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11001         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11002         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11003         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11004         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11005         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11006         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11007         routines.
11008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11009         file.
11010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11012         file.
11013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11015         file.
11016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11018         file.
11019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11021         file.
11022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11024         file.
11025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11026         file.
11027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11028         file.
11029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11030         file.
11031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11032         New file.
11033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11034         file.
11035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11036         file.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11039         file.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11042         file.
11043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11045         file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11048         VIS3 routines.
11049
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11051         New file.
11052
11053         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11054
11055         * sysdeps/sparc/configure.in: New file.
11056         * sysdeps/sparc/configure: Generate.
11057         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11058         * configure: Regenerate.
11059         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11060         * config.make.in (have-as-vis3): New.
11061         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11062         available use -Av9d instead of -Av9a.
11063         * sysdeps/sparc/sparc64/Makefile: Likewise.
11064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11066         New file.
11067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11068         file.
11069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11070         New file.
11071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11072         file.
11073         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11074         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11075         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11076         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11077         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11078
11079         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11080         fzeros/fnegs to load 0x80000000 into a float register instead of
11081         using the stack.
11082         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11083
11084 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11085
11086         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11087         bits/syscall.h.
11088         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11089         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11090         ($(inst_includedir)/bits/syscall.h): Remove rule.
11091         ($(objpfx)bits/syscall.d): Include instead of
11092         $(objpfx)syscall-list.d.
11093         (generated): Change syscall-list.h and syscall-list.d to
11094         bits/syscall.h and bits/syscall.d.
11095
11096 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11097
11098         [BZ #13846]
11099         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11100
11101 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11102
11103         [BZ #13841]
11104         * math/s_csqrt.c: Include <float.h>.
11105         (__csqrt): Scale large or subnormal inputs.
11106         * math/s_csqrtf.c: Likewise.
11107         * math/s_csqrtl.c: Likewise.
11108         * math/libm-test.inc (csqrt_test): Add more tests.
11109         * sysdeps/i386/fpu/libm-test-ulps: Update.
11110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11111
11112         [BZ #13840]
11113         * math/libm-test.inc (hypot_test): Add more tests.
11114
11115 2012-03-13  David S. Miller  <davem@davemloft.net>
11116
11117         [BZ #13840]
11118         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11119         double-precision for the calculation instead of scaling.
11120
11121 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11122
11123         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11124         manipulate bits before adding and subtracting TWO52[sx].
11125         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11126         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11127         Likewise.
11128         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11129
11130 2012-03-13  David S. Miller  <davem@davemloft.net>
11131
11132         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11133         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11134         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11135         rtld-global-offsets.h
11136         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11137
11138         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11139         large parameters.
11140
11141         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11142
11143         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11144         'err' in the ifdef scope in which it is actually used.
11145
11146         * nss/nss_db/db-init.c: Include string.h
11147
11148 2012-03-12  David S. Miller  <davem@davemloft.net>
11149
11150         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11151         masking out of the most significant byte of random value used.
11152         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11153         Fix coding style in previous change.
11154
11155         * sysdeps/unix/sysv/linux/kernel-features.h
11156         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11157         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11158         expression.
11159         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11160         later.
11161
11162 2012-03-11  David S. Miller  <davem@davemloft.net>
11163
11164         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11165         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11166         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11167         for 'resultvar' otherwise things get truncated on 64-bit.
11168
11169         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11170         Fix masking out of the most significant byte of random value used.
11171
11172         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11173
11174 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11175
11176         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11177
11178 2012-03-09  David S. Miller  <davem@davemloft.net>
11179
11180         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11181         variables with appropriate CPP guards.
11182         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11183         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11184         on resulting framesize and the management of the outregs buffer for pltexit.
11185         Preserve floating point return values across _dl_call_pltexit call.
11186         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11187         framesize and the management of the outregs buffer for pltexit.
11188         Preserve floating point return values across _dl_call_pltexit
11189         call.
11190         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11191         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11192         (print_exit): Fix format string for return register value.
11193
11194 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11195
11196         * sunrpc/Makefile (others): Add rpcgen.
11197         ($(objpfx)rpcgen): Remove special build rule and dependency on
11198         libc.
11199         * sunrpc/rpcgen.c: New file.
11200
11201 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11202
11203         [BZ #13673]
11204         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11205         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11206         * sysdeps/i386/crti.S: Likewise.
11207         * sysdeps/i386/crtn.S: Likewise.
11208         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11209         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11210         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11211         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11212         * sysdeps/sh/crti.S: Likewise.
11213         * sysdeps/sh/crtn.S: Likewise.
11214         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11215
11216         [BZ #13673]
11217         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11218         with URL.
11219         * locale/programs/locfile-kw.gperf: Likewise.
11220         * locale/programs/charmap-kw.h: Regenerated.
11221         * locale/programs/locfile-kw.h: Likewise.
11222
11223         [BZ #13673]
11224         * intl/plural.y: Replace FSF snail mail address with URL.
11225         * intl/plural.c: Regenerated.
11226
11227 2012-03-09  Richard Henderson  <rth@twiddle.net>
11228
11229         * include/math_private.h: Remove file.
11230         * math/math_private.h: Move file ...
11231         * sysdeps/generic/math_private.h: ... here.
11232
11233         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11234         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11235         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11236
11237         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11238         and <math_private.h>.
11239         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11240         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11241         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11242         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11243         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11244         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11245         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11246         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11247         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11248         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11249         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11250         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11251         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11252         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11253         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11254         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11255         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11256         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11257         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11258         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11259         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11260         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11261         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11262         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11267         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11268         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11269         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11270         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11327         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11328         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11329         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11330         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11331         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11332         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11333         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11334         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11335         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11336         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11337         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11338         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11339         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11340         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11341         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11342         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11343         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11344         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11345         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11346         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11347         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11348         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11349         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11350         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11351         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11352         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11353         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11354         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11357         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11358         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11359         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11361         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11362         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11363         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11365         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11366         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11367         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11368         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11370         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11371         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11372         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11375         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11376         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11377         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11378         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11379         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11380         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11381         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11382         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11383         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11384         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11385         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11386         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11387         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11388         * sysdeps/ieee754/k_standard.c: Likewise.
11389         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11390         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11391         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11392         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11393         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11394         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11395         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11396         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11397         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11504         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11508         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11509         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11511         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11516         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11521         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11537         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11538         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11539         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11549         * sysdeps/ieee754/s_lib_version.c: Likewise.
11550         * sysdeps/ieee754/s_matherr.c: Likewise.
11551         * sysdeps/ieee754/s_signgam.c: Likewise.
11552         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11553         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11554         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11555         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11556         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11557         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11558         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11559         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11560         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11561         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11562         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11563         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11564         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11565         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11566         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11567         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11568         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11569         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11570         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11571         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11572         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11573
11574 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11575
11576         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11577         * sunrpc/rpc_main.c: Likewise.
11578         * sunrpc/rpc_svcout.c: Likewise.
11579
11580 2012-03-09  David S. Miller  <davem@davemloft.net>
11581
11582         * include/math_private.h: New file.
11583
11584 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11585
11586         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11587         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11588         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11589         from <bits/socket_type.h>.
11590         (enum __socket_type): Don't define here.
11591         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11592         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11593         bits/socket_type.h.
11594
11595         [BZ #13566]
11596         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11597         checking __USE_GNU.
11598
11599         * Makerules ($(inst_includedir)/%.h): New rule.
11600         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11601         (install-others): Remove variable setting.
11602         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11603
11604 2012-03-08  Richard Henderson  <rth@twiddle.net>
11605
11606         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11607         from macro to inline function; merge with the
11608         !__LIBC_INTERNAL_MATH_INLINES version.
11609         (__ieee754_sqrtf): Likewise.
11610
11611         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11612         to inline function.
11613         (__rintf, __floor, __floorf): Likewise.
11614
11615         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11616         macro to inline function.
11617         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11618
11619         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11620         not <math/math_private.h>.
11621
11622 2012-03-08  David S. Miller  <davem@davemloft.net>
11623
11624         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11625         copyright year.
11626         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11627
11628 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11629
11630         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11631         normalization.
11632         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11633         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11634
11635 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11636
11637         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11638         be defined individually, they must be defined as a block.  Define
11639         S for printing a string instead of hidint the different by using a
11640         macro for adding the 'l'.
11641         * stdio-common/tst-fphex-wide.c: Adjust.
11642
11643 2012-03-07  Marek Polacek  <polacek@redhat.com>
11644
11645         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11646
11647 2012-03-08  Marek Polacek  <polacek@redhat.com>
11648
11649         [BZ #13806]
11650         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11651         * stdio-common/tst-fphex.c: Define a few macros to make the
11652         test reusable.  Use them.
11653         * stdio-common/tst-fphex-wide.c: New file.
11654
11655 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11656
11657         [BZ #6911]
11658         * manual/macros.texi (gnusystems): New macro.
11659         (nongnusystems): Likewise.
11660         (gnulinuxhurdsystems): Likewise.
11661         (gnuhurdsystems): Likewise..
11662         (gnulinuxsystems): Likewise.
11663         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11664         variants of the GNU system, not "GNU system".
11665         * manual/conf.texi: Likewise.
11666         * manual/errno.texi: Likewise.  Update example of errno macro
11667         expansion.
11668         * manual/filesys.texi: Likewise.
11669         (getumask): Document as specific to GNU/Hurd.
11670         * manual/install.texi: Likewise.  Reword some references to
11671         GNU/Linux.
11672         * manual/intro.texi: Likewise.
11673         * manual/io.texi: Likewise.
11674         (File Name Portability): Detail which constraints are inapplicable
11675         to all GNU systems and which are only inapplicable to GNU/Hurd.
11676         * manual/job.texi: Likewise.
11677         * manual/llio.texi: Likewise.
11678         (O_NOCTTY): Document as present on GNU/Linux.
11679         * manual/maint.texi: Likewise.
11680         * manual/memory.texi: Likewise.
11681         * manual/pattern.texi: Likewise.
11682         * manual/pipe.texi: Likewise.
11683         * manual/process.texi: Likewise.
11684         * manual/resource.texi: Likewise.
11685         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11686         child on GNU/Hurd.
11687         * manual/setjmp.texi: Likewise.
11688         * manual/signal.texi: Likewise.
11689         * manual/startup.texi: Likewise.
11690         * manual/stdio.texi: Likewise.
11691         * manual/terminal.texi: Likewise.
11692         (ONLCR): Document as POSIX.
11693         (OXTABS): Document availability on GNU/Linux as XTABS.
11694         (ONOEOT): Document availability separately from other bits.
11695         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11696         * manual/time.texi: Likewise.
11697         * manual/users.texi: Likewise.
11698         * INSTALL: Regenerated.
11699         * sysdeps/gnu/errlist.c: Regenerated.
11700
11701         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11702         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11703         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11704         puts.
11705         * configure: Regenerated.
11706
11707 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11708
11709         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11710         default includes instead of AC_HEADER_CHECK.
11711         * sysdeps/i386/configure: Regenerated.
11712
11713         [BZ #10716]
11714         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11715         * math/s_cacoshf.c (__cacoshf): Likewise.
11716         * math/s_cacoshl.c (__cacoshl): Likewise.
11717         * math/s_casinh.c (__casinh): Set signs of result from argument.
11718         * math/s_casinhf.c (__casinhf): Likewise.
11719         * math/s_casinhl.c (__casinhl): Likewise.
11720         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11721         (casinh_test): Add more tests.
11722         * sysdeps/i386/fpu/libm-test-ulps: Update.
11723         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11724
11725 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11726
11727         * po/zh_TW.po: Update from translation team.
11728
11729         * login/Makefile (distribute): Remove variable.
11730         * catgets/Makefile: Likewise.
11731         * mach/Makefile: Likewise.
11732         * malloc/Makefile: Likewise.
11733         * misc/Makefile: Likewise.
11734         * iconv/Makefile: Likewise.
11735         * nscd/Makefile: Likewise.
11736         * hurd/Makefile: Likewise.
11737         * manual/Makefile: Likewise.
11738         * locale/Makefile: Likewise.
11739         * intl/Makefile: Likewise.
11740         * conform/Makefile: Likewise.
11741         * nss/Makefile: Likewise.
11742         * time/Makefile: Likewise.
11743         * soft-fp/Makefile: Likewise.
11744         * dirent/Makefile: Likewise.
11745         * gmon/Makefile: Likewise.
11746         * po/Makefile: Likewise.
11747         * rt/Makefile: Likewise.
11748         * socket/Makefile: Likewise.
11749         * math/Makefile: Likewise.
11750         * signal/Makefile: Likewise.
11751         * debug/Makefile: Likewise.
11752         * elf/Makefile: Likewise.
11753         * timezone/Makefile: Likewise.
11754         * stdlib/Makefile: Likewise.
11755         * iconvdata/Makefile: Likewise.
11756         * sunrpc/Makefile: Likewise.
11757         * io/Makefile: Likewise.
11758         * argp/Makefile: Likewise.
11759         * inet/Makefile: Likewise.
11760         * hesiod/Makefile: Likewise.
11761         * grp/Makefile: Likewise.
11762         * csu/Makefile: Likewise.
11763         * wctype/Makefile: Likewise.
11764         * crypt/Makefile: Likewise.
11765         * libio/Makefile: Likewise.
11766         * string/Makefile: Likewise.
11767         * nis/Makefile: Likewise.
11768         * resolv/Makefile: Likewise.
11769         * stdio-common/Makefile: Likewise.
11770         * wcsmbs/Makefile: Likewise.
11771         * dlfcn/Makefile: Likewise.
11772         * posix/Makefile: Likewise.
11773
11774         [BZ #6959]
11775         * timezone/Makefile: Don't install timezone files, just the programs
11776         and scripts.
11777
11778 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11779
11780         * nss/databases.def: Add missing gshadow entry.
11781
11782         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11783
11784 2012-03-06  Marek Polacek  <polacek@redhat.com>
11785
11786         [BZ #13726]
11787         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11788         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11789         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11790         * stdio-common/tst-long-dbl-fphex.c: New file.
11791
11792 2012-03-06  David S. Miller  <davem@davemloft.net>
11793
11794         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11795         (set_obp_int): New function.
11796         (get_obp_int): New function.
11797         (__get_clockfreq_via_dev_openprom): Likewise.
11798         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11799         Avoid unused variable warnings on 'val' and use builtin_expect.
11800         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11801         __builtin_expect.
11802         (INLINE_CLONE_SYSCALL): Likewise.
11803
11804 2012-03-05  David S. Miller  <davem@davemloft.net>
11805
11806         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11807
11808 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11809
11810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11811
11812         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11813         only for |x| >= 40.
11814         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11815
11816 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11817
11818         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11819         Replace gettimeofday with __vdso_gettimeofday.
11820
11821         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11822         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11823         __vdso_clock_gettime and __vdso_getcpu.
11824
11825         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11826         time with __vdso_time.
11827
11828 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11829
11830         * manual/lang.texi (size_t): Note types to which size_t may be
11831         equivalent with the GNU C Library, but do not describe when
11832         differences between them are significant.
11833
11834 2012-03-05  Andreas Jaeger  <aj@suse.de>
11835
11836         * sysdeps/i386/fpu/libm-test-ulps: Update.
11837
11838 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11839
11840         [BZ #3976]
11841         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11842         (__ieee754_pow): Save and restore rounding mode and use
11843         round-to-nearest for main computations.
11844         * math/libm-test.inc (pow_test_tonearest): New function.
11845         (pow_test_towardzero): Likewise.
11846         (pow_test_downward): Likewise.
11847         (pow_test_upward): Likewise.
11848         (main): Call the new functions.
11849         * sysdeps/i386/fpu/libm-test-ulps: Update.
11850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11851
11852         [BZ #3976]
11853         * math/libm-test.inc (cosh_test_tonearest): New function.
11854         (cosh_test_towardzero): Likewise.
11855         (cosh_test_downward): Likewise.
11856         (cosh_test_upward): Likewise.
11857         (sinh_test_tonearest): Likewise.
11858         (sinh_test_towardzero): Likewise.
11859         (sinh_test_downward): Likewise.
11860         (sinh_test_upward): Likewise.
11861         (main): Call the new functions.
11862         * sysdeps/i386/fpu/libm-test-ulps: Update.
11863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11864
11865 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11866
11867         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11868         default stack guard is set in last bytes.
11869         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11870
11871 2012-03-05  Kees Cook  <keescook@chromium.org>
11872
11873         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11874
11875         [BZ #13656]
11876         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11877         possibly allocate from heap instead of stack.
11878         * stdio-common/bug-vfprintf-nargs.c: New file.
11879         * stdio-common/Makefile (tests): Add nargs overflow test.
11880
11881 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11882
11883         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11884
11885 2012-03-03  Marek Polacek  <polacek@redhat.com>
11886
11887         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11888         * math/math_private.h: Likewise.
11889         * stdlib/tst-strtod.c: Likewise.
11890         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11891         * sysdeps/x86_64/bits/atomic.h: Likewise.
11892
11893 2012-03-02  David S. Miller  <davem@davemloft.net>
11894
11895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11899         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11900         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11901         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11902         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11903
11904 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11905
11906         [BZ #13792]
11907         * manual/examples/README: New file, says the example source files
11908         can be used under GPL>=2.
11909         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11910         line containing just "*/".
11911         * manual/examples/add.c: Add copyright header (GPL>=2).
11912         * manual/examples/argp-ex1.c: Likewise.
11913         * manual/examples/argp-ex2.c: Likewise.
11914         * manual/examples/argp-ex3.c: Likewise.
11915         * manual/examples/argp-ex4.c: Likewise.
11916         * manual/examples/atexit.c: Likewise.
11917         * manual/examples/db.c: Likewise.
11918         * manual/examples/dir.c: Likewise.
11919         * manual/examples/dir2.c: Likewise.
11920         * manual/examples/execinfo.c: Likewise.
11921         * manual/examples/filecli.c: Likewise.
11922         * manual/examples/filesrv.c: Likewise.
11923         * manual/examples/fmtmsgexpl.c: Likewise.
11924         * manual/examples/genpass.c: Likewise.
11925         * manual/examples/inetcli.c: Likewise.
11926         * manual/examples/inetsrv.c: Likewise.
11927         * manual/examples/isockad.c: Likewise.
11928         * manual/examples/longopt.c: Likewise.
11929         * manual/examples/memopen.c: Likewise.
11930         * manual/examples/memstrm.c: Likewise.
11931         * manual/examples/mkfsock.c: Likewise.
11932         * manual/examples/mkisock.c: Likewise.
11933         * manual/examples/mygetpass.c: Likewise.
11934         * manual/examples/pipe.c: Likewise.
11935         * manual/examples/popen.c: Likewise.
11936         * manual/examples/rprintf.c: Likewise.
11937         * manual/examples/search.c: Likewise.
11938         * manual/examples/select.c: Likewise.
11939         * manual/examples/setjmp.c: Likewise.
11940         * manual/examples/sigh1.c: Likewise.
11941         * manual/examples/sigusr.c: Likewise.
11942         * manual/examples/stpcpy.c: Likewise.
11943         * manual/examples/strdupa.c: Likewise.
11944         * manual/examples/strftim.c: Likewise.
11945         * manual/examples/strncat.c: Likewise.
11946         * manual/examples/subopt.c: Likewise.
11947         * manual/examples/swapcontext.c: Likewise.
11948         * manual/examples/termios.c: Likewise.
11949         * manual/examples/testopt.c: Likewise.
11950         * manual/examples/testpass.c: Likewise.
11951         * manual/examples/timeval_subtract.c: Likewise.
11952
11953         [BZ #13792]
11954         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11955         function to ...
11956         * manual/timeval_subtract.c.texi: ... here, new file.
11957
11958 2012-03-02  David S. Miller  <davem@davemloft.net>
11959
11960         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11961
11962 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11963
11964         [BZ #3976]
11965         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11966         (__sin): Save and restore rounding mode and use round-to-nearest
11967         for all computations.
11968         (__cos): Save and restore rounding mode and use round-to-nearest
11969         for all computations.
11970         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11971         <fenv.h>.
11972         (tan): Save and restore rounding mode and use round-to-nearest for
11973         all computations.
11974         * math/libm-test.inc (cos_test_tonearest): New function.
11975         (cos_test_towardzero): Likewise.
11976         (cos_test_downward): Likewise.
11977         (cos_test_upward): Likewise.
11978         (sin_test_tonearest): Likewise.
11979         (sin_test_towardzero): Likewise.
11980         (sin_test_downward): Likewise.
11981         (sin_test_upward): Likewise.
11982         (tan_test_tonearest): Likewise.
11983         (tan_test_towardzero): Likewise.
11984         (tan_test_downward): Likewise.
11985         (tan_test_upward): Likewise.
11986         (main): Call the new functions.
11987         * sysdeps/i386/fpu/libm-test-ulps: Update.
11988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11989
11990         [BZ #10135]
11991         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11992         small n, then large n, before computing and testing k+n.
11993         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11994         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11995         Likewise.
11996         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11997         Likewise.
11998         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11999         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12000         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12001         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12002         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12003         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12004         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12005         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12006         * math/libm-test.inc (scalbn_test): Add more tests.
12007         (scalbln_test): Likewise.
12008
12009         * manual/filesys.texi (mode_t): Describe constraints on size and
12010         signedness, not exact equivalence to a particular type.
12011         (ino_t): Likewise.
12012         (ino64_t): Likewise.
12013         (dev_t): Likewise.
12014         (nlink_t): Likewise.
12015         (blkcnt_t): Likewise.
12016         (blkcnt64_t): Likewise.
12017         * manual/llio.texi (off_t): Likewise.
12018
12019         [BZ #3976]
12020         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12021         (__ieee754_exp): Save and restore rounding mode and use
12022         round-to-nearest for all computations.
12023         * math/libm-test.inc (exp_test_tonearest): New function.
12024         (exp_test_towardzero): Likewise.
12025         (exp_test_downward): Likewise.
12026         (exp_test_upward): Likewise.
12027         (main): Call the new functions.
12028         * sysdeps/i386/fpu/libm-test-ulps: Update.
12029         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12030
12031 2012-03-01  Chris Demetriou  <cgd@google.com>
12032
12033         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12034         have predictable order.
12035
12036 2012-03-01  David S. Miller  <davem@davemloft.net>
12037
12038         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12039
12040         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12041         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12042         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12043         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12044
12045         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12046         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12047         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12048         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12049         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12050         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12051         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12052         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12053         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12054
12055         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12056
12057         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12058         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12059         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12060
12061         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12062         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12063         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12064         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12065         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12066         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12067         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12068         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12069         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12070         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12071         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12072         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12073         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12074         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12075         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12076         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12077         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12078         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12079         * sysdeps/sparc/elf/configure: Regenerated.
12080
12081 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12082
12083         * configure.in (AS, LD): Require binutils 2.20 or later.
12084         * configure: Regenerated.
12085         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12086         as required minimum version.
12087         * INSTALL: Regenerated.
12088
12089         [BZ #2541]
12090         [BZ #4108]
12091         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12092         before squaring exponent.
12093         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12094         bottom long double and 27 bits of top long double before squaring
12095         exponent.
12096         * math/libm-test.inc (erfc_test): Add more tests.
12097         * sysdeps/i386/fpu/libm-test-ulps: Update.
12098         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12099         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12100
12101 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12102
12103         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12104         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12105         containing bit-fields.
12106         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12107         * soft-fp/single.h (_FP_UNION_S): Likewise.
12108         * soft-fp/double.h (_FP_UNION_D): Likewise.
12109
12110 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12111
12112         [BZ #13786]
12113         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12114         not include ../strcmp.S.
12115         [USE_AS_STRNCASECMP_L]: Likewise.
12116         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12117         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12118         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12119         (__strncasecmp_l_ia32): Define as alias to
12120         __strncasecmp_l_nonascii.
12121
12122         [BZ #5794]
12123         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12124         * sysdeps/i386/fpu/libm-test-ulps: Update.
12125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12126
12127         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12129
12130 2012-02-29  Jeff Law  <law@redhat.com>
12131
12132         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12133         out of bounds read.
12134
12135 2012-02-29  Marek Polacek  <polacek@redhat.com>
12136
12137         [BZ #13706]
12138         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12139         * elf/Makefile: Add rules to run tst-unused-dep.out.
12140
12141 2012-02-28  David S. Miller  <davem@davemloft.net>
12142
12143         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12144         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12145         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12146         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12147         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12148         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12149
12150 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12151
12152         * math/libm-test.inc (llround_test): Move one test from
12153         lround_test.  Use TEST_f_L in moved test.
12154         (lround_test): Move misplaced test to llround_test.  Add testcase
12155         from bug 2561.
12156
12157 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12158
12159         * sysdeps/x86_64/fpu/e_expf.S: New file.
12160         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12161
12162 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12163
12164         [BZ #13637]
12165         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12166         of remain_len that may cause incomplete multi-byte character and
12167         false match.
12168         * posix/bug-regex33.c: New file.
12169         * posix/Makefile (tests): Add bug-regex33.
12170
12171 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12172
12173         * manual/macros.texi: New file.
12174         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12175         * manual/libc.texinfo: Include macros.texi.
12176         * manual/creatute.texi: Likewise.
12177         * manual/install.texi: Likewise.
12178         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12179         @glibcadj{} in references to the GNU C Library.
12180         * manual/charset.texi: Likewise.
12181         * manual/conf.texi: Likewise.
12182         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12183         when not using those macros.
12184         * manual/creature.texi: Likewise.
12185         * manual/crypt.texi: Likewise.
12186         * manual/errno.texi: Likewise.
12187         * manual/filesys.texi: Likewise.
12188         * manual/header.texi: Likewise.
12189         * manual/install.texi: Likewise.
12190         * manual/intro.texi: Likewise.
12191         * manual/io.texi: Likewise.
12192         * manual/job.texi: Likewise.
12193         * manual/lang.texi: Likewise.
12194         * manual/libc.texiinfo: Likewise.
12195         * manual/llio.texi: Likewise.
12196         * manual/locale.texi: Likewise.
12197         * manual/maint.texi: Likewise.
12198         * manual/math.texi: Likewise.
12199         * manual/memory.texi: Likewise.
12200         * manual/message.texi: Likewise.
12201         * manual/nss.texi: Likewise.
12202         * manual/pattern.texi: Likewise.
12203         * manual/process.texi: Likewise.
12204         * manual/resource.texi: Likewise.
12205         * manual/search.texi: Likewise.
12206         * manual/setjmp.texi: Likewise.
12207         * manual/signal.texi: Likewise.
12208         * manual/socket.texi: Likewise.
12209         * manual/startup.texi: Likewise.
12210         * manual/stdio.texi: Likewise.
12211         * manual/string.texi: Likewise.
12212         * manual/sysinfo.texi: Likewise.
12213         * manual/syslog.texi: Likewise.
12214         * manual/terminal.texi: Likewise.
12215         * manual/time.texi: Likewise.
12216         * manual/users.texi: Likewise.
12217         * INSTALL: Regenerated.
12218         * NOTES: Regenerated.
12219         * sysdeps/gnu/errlist.c: Regenerated.
12220
12221 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12222
12223         * include/dirent.h: Include <dirstream.h> before
12224         <dirent/dirent.h>.
12225
12226 2012-02-28  David S. Miller  <davem@davemloft.net>
12227
12228         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12229         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12230         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12231         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12232
12233 2012-02-27  David S. Miller  <davem@davemloft.net>
12234
12235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12237         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12238         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12239
12240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12241         frame pointer instead of stack pointer relative arg slot.
12242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12243         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12244         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12245
12246 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12247
12248         [BZ #3992]
12249         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12250
12251 2012-02-27  David S. Miller  <davem@davemloft.net>
12252
12253         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12257         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12258         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12259         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12260         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12261
12262 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12263
12264         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12265         later.  Allow versions 5-9.
12266         * configure: Regenerated.
12267         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12268         required minimum version and 4.6 as recommended version.  Do not
12269         mention bugs in GCC 2.7 and 2.8.
12270         * INSTALL: Regenerated.
12271
12272 2012-02-27  David S. Miller  <davem@davemloft.net>
12273
12274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12278         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12279         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12280         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12281         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12282
12283         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12284         manipulate bits before adding and subtracting TWO112[sx].
12285         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12286
12287 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12288
12289         [BZ #13775]
12290         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12291         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12292         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12293         being in POSIX, because they are in 1003.1-2008.
12294
12295         * rt/tst-aio.c: Include <fcntl.h>.
12296         * rt/tst-aio7.c: Likewise.
12297         * rt/tst-aio64.c: Likewise.
12298
12299         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12300
12301 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12302
12303         * manual/install.texi (--with-headers): Describe headers as
12304         interface headers, not private headers.
12305         (Specific advice for GNU/Linux systems): Describe use of headers
12306         from "make headers_install", not private headers from older
12307         kernels.
12308         * INSTALL: Regenerated.
12309         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12310         Change to 2.6.19.
12311         * sysdeps/unix/sysv/linux/configure: Regenerated.
12312
12313         * manual/llio.texi (fclean): Remove documentation.
12314
12315         * manual/Makefile (libc-texi-generated): New variable.  Include
12316         version.texi.
12317         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12318         $(libc-texi-generated), not duplicated list of files.
12319         (version.texi, stamp-version): New rules.
12320         (realclean): Remove $(libc-texi-generated), not individual files
12321         from that list.  Do not remove dir-add.texinfo.
12322         * manual/libc.texinfo: Comment out uses of edition numbers and
12323         references to printed manual.  Remove last-updated dates.
12324         (EDITION): Comment out.
12325         (ISBN): Likewise.
12326         (VERSION, UPDATED): Remove.
12327         (version.texi): Include.
12328
12329 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12330
12331         * sysdeps/posix/spawni.c: Include <signal.h>.
12332         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12333         * sysdeps/pthread/aio_fsync.c: Likewise.
12334
12335 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12336
12337         * conform/Makefile (tests): Run only when not cross-compiling and
12338         when fast-check is not defined.
12339
12340         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12341         * conform/data/limits.h-data: Fixes for POSIX2008.
12342         * conform/run-conformtest.sh: Run all tests.
12343         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12344         headers.
12345         * include/bits/dlfcn.h: Likewise.
12346         * include/langinfo.h: Likewise.
12347         * include/monetary.h: Likewise.
12348         * include/sys/poll.h: Likewise.
12349
12350         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12351         for __USE_GNU.
12352         * posix/spawn.h: Define __need_sigset_t.
12353         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12354         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12355         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12356         to get sigevent_t only.
12357         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12358         only for __USE_GNU.
12359         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12360         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12361         process_vm_writev only for __USE_GNU.
12362         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12363
12364         * conform/Makefile: For now ignore errors from run-conformtest.
12365         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12366         POSIX to avoid namespace pollution.  Don't prepend headers.
12367         * conform/data/aio.h-data: Fixes for POSIX testing.
12368         * conform/data/fcntl.h-data: Likewise.
12369         * conform/data/glob.h-data: Likewise.
12370         * conform/data/grp.h-data: Likewise.
12371         * conform/data/pthread.h-data: Likewise.
12372         * conform/data/pwd.h-data: Likewise.
12373         * conform/data/signal.h-data: Likewise.
12374         * conform/data/spawn.h-data: Likewise.
12375         * conform/data/stdio.h-data: Likewise.
12376         * conform/data/stdlib.h-data: Likewise.
12377         * conform/data/stropts.h-data: Likewise.
12378         * conform/data/sys/mman.h-data: Likewise.
12379         * conform/data/sys/stat.h-data: Likewise.
12380         * conform/data/sys/types.h-data: Likewise.
12381         * conform/data/sys/wait.h-data: Likewise.
12382         * conform/data/time.h-data: Likewise.
12383         * conform/data/unistd.h-data: Likewise.
12384         * conform/data/utime.h-data: Likewise.
12385
12386         * io/sys/stat.h: fchmod was always in POSIX.
12387         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12388         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12389         * rt/aio.h: Define __need_timespec before including <time.h>.
12390         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12391         struct.  Add forward declaration of pthread_attr_t and use it in
12392         sigevent.
12393         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12394         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12395         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12396         always remove CLK_TCK definition.
12397
12398 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12399
12400         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12401
12402 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12403
12404         * conform/run-conformtest.sh: New file.
12405         * conform/Makefile: Run run-conformtest for tests.
12406         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12407         support.
12408
12409         * conform/data/uchar.h-data: New file.
12410         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12411         * conform/data/arpa/inet.h-data: Likewise.
12412         * conform/data/assert.h-data: Likewise.
12413         * conform/data/complex.h-data: Likewise.
12414         * conform/data/cpio.h-data: Likewise.
12415         * conform/data/ctype.h-data: Likewise.
12416         * conform/data/dirent.h-data: Likewise.
12417         * conform/data/dlfcn.h-data: Likewise.
12418         * conform/data/errno.h-data: Likewise.
12419         * conform/data/fcntl.h-data: Likewise.
12420         * conform/data/float.h-data: Likewise.
12421         * conform/data/fmtmsg.h-data: Likewise.
12422         * conform/data/fnmatch.h-data: Likewise.
12423         * conform/data/ftw.h-data: Likewise.
12424         * conform/data/glob.h-data: Likewise.
12425         * conform/data/grp.h-data: Likewise.
12426         * conform/data/iconv.h-data: Likewise.
12427         * conform/data/inttypes.h-data: Likewise.
12428         * conform/data/langinfo.h-data: Likewise.
12429         * conform/data/libgen.h-data: Likewise.
12430         * conform/data/limits.h-data: Likewise.
12431         * conform/data/locale.h-data: Likewise.
12432         * conform/data/math.h-data: Likewise.
12433         * conform/data/monetary.h-data: Likewise.
12434         * conform/data/mqueue.h-data: Likewise.
12435         * conform/data/ndbm.h-data: Likewise.
12436         * conform/data/net/if.h-data: Likewise.
12437         * conform/data/netdb.h-data: Likewise.
12438         * conform/data/netinet/in.h-data: Likewise.
12439         * conform/data/nl_types.h-data: Likewise.
12440         * conform/data/poll.h-data: Likewise.
12441         * conform/data/pthread.h-data: Likewise.
12442         * conform/data/pwd.h-data: Likewise.
12443         * conform/data/regex.h-data: Likewise.
12444         * conform/data/sched.h-data: Likewise.
12445         * conform/data/search.h-data: Likewise.
12446         * conform/data/semaphore.h-data: Likewise.
12447         * conform/data/setjmp.h-data: Likewise.
12448         * conform/data/signal.h-data: Likewise.
12449         * conform/data/spawn.h-data: Likewise.
12450         * conform/data/stdarg.h-data: Likewise.
12451         * conform/data/stdio.h-data: Likewise.
12452         * conform/data/stdlib.h-data: Likewise.
12453         * conform/data/string.h-data: Likewise.
12454         * conform/data/strings.h-data: Likewise.
12455         * conform/data/stropts.h-data: Likewise.
12456         * conform/data/sys/ipc.h-data: Likewise.
12457         * conform/data/sys/mman.h-data: Likewise.
12458         * conform/data/sys/msg.h-data: Likewise.
12459         * conform/data/sys/resource.h-data: Likewise.
12460         * conform/data/sys/select.h-data: Likewise.
12461         * conform/data/sys/sem.h-data: Likewise.
12462         * conform/data/sys/shm.h-data: Likewise.
12463         * conform/data/sys/socket.h-data: Likewise.
12464         * conform/data/sys/stat.h-data: Likewise.
12465         * conform/data/sys/statvfs.h-data: Likewise.
12466         * conform/data/sys/time.h-data: Likewise.
12467         * conform/data/sys/timeb.h-data: Likewise.
12468         * conform/data/sys/times.h-data: Likewise.
12469         * conform/data/sys/types.h-data: Likewise.
12470         * conform/data/sys/uio.h-data: Likewise.
12471         * conform/data/sys/un.h-data: Likewise.
12472         * conform/data/sys/utsname.h-data: Likewise.
12473         * conform/data/sys/wait.h-data: Likewise.
12474         * conform/data/syslog.h-data: Likewise.
12475         * conform/data/tar.h-data: Likewise.
12476         * conform/data/termios.h-data: Likewise.
12477         * conform/data/utime.h-data: Likewise.
12478         * conform/data/utmpx.h-data: Likewise.
12479         * conform/data/varargs.h-data: Likewise.
12480         * conform/data/wchar.h-data: Likewise.
12481         * conform/data/wctype.h-data: Likewise.
12482         * conform/data/wordexp.h-data: Likewise.
12483
12484         * include/stropts.h: New file.
12485         * include/uchar.h: New file.
12486         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12487         * include/assert.h: Likewise.
12488         * include/ctype.h: Likewise.
12489         * include/dirent.h: Likewise.
12490         * include/dlfcn.h: Likewise.
12491         * include/fcntl.h: Likewise.
12492         * include/fnmatch.h: Likewise.
12493         * include/glob.h: Likewise.
12494         * include/grp.h: Likewise.
12495         * include/libio.h: Likewise.
12496         * include/locale.h: Likewise.
12497         * include/math.h: Likewise.
12498         * include/net/if.h: Likewise.
12499         * include/netdb.h: Likewise.
12500         * include/netinet/in.h: Likewise.
12501         * include/pthread.h: Likewise.
12502         * include/pwd.h: Likewise.
12503         * include/regex.h: Likewise.
12504         * include/sched.h: Likewise.
12505         * include/search.h: Likewise.
12506         * include/setjmp.h: Likewise.
12507         * include/signal.h: Likewise.
12508         * include/stdio.h: Likewise.
12509         * include/stdlib.h: Likewise.
12510         * include/string.h: Likewise.
12511         * include/sys/cdefs.h: Likewise.
12512         * include/sys/mman.h: Likewise.
12513         * include/sys/msg.h: Likewise.
12514         * include/sys/resource.h: Likewise.
12515         * include/sys/select.h: Likewise.
12516         * include/sys/socket.h: Likewise.
12517         * include/sys/stat.h: Likewise.
12518         * include/sys/statvfs.h: Likewise.
12519         * include/sys/time.h: Likewise.
12520         * include/sys/times.h: Likewise.
12521         * include/sys/uio.h: Likewise.
12522         * include/sys/utsname.h: Likewise.
12523         * include/sys/wait.h: Likewise.
12524         * include/termios.h: Likewise.
12525         * include/time.h: Likewise.
12526         * include/ulimit.h: Likewise.
12527         * include/unistd.h: Likewise.
12528         * include/utime.h: Likewise.
12529         * include/wchar.h: Likewise.
12530         * include/wctype.h: Likewise.
12531         * include/wordexp.h: Likewise.
12532
12533         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12534
12535         * time/time.h: TIME_UTC must be a macro.
12536         Make timespec_get available for ISO C11 only as well.
12537
12538 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12539
12540         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12541         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12542
12543 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12544
12545         * configure.in: Use -o not -a in test for unsupported multi-arch.
12546
12547 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12548
12549         * manual/texinfo.tex: Update to version 2012-01-19.16.
12550
12551 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12552
12553         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12554
12555 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12556
12557         [BZ #13738]
12558         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12559         * manual/fdl-1.3.texi: New file.
12560         * manual/fdl-1.1.texi: File removed.
12561
12562         [BZ #13738]
12563         * manual/libc.texinfo (FDL_VERSION): New @set.
12564         Use it for mention of FDL in cover text.
12565         (Documentation License): Use it in @include file name.
12566
12567 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12568             Roland McGrath  <roland@hack.frob.com>
12569
12570         [BZ #5461]
12571         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12572         not LONG_LONG_MAX and LONG_LONG_MIN.
12573         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12574         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12575         name.
12576         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12577
12578 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12579
12580         [BZ #2547]
12581         [BZ #11365]
12582         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12583         manipulate bits before adding and subtracting TWO23[sx].
12584         * math/libm-test.inc (nearbyint_test): Add more tests.
12585
12586 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12587
12588         [BZ #2548]
12589         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12590         bits before adding and subtracting TWO23[sx].
12591         * math/libm-test.inc (rint_test): Add more tests.
12592         (rint_test_tonearest): Likewise.
12593         (rint_test_towardzero): Likewise.
12594         (rint_test_downward): Likewise.
12595         (rint_test_upward: Likewise.
12596
12597 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12598
12599         [BZ #10110]
12600         * include/stdc-predef.h: New file.  Extracted from features.h.
12601         * include/features.h: Include stdc-predef.h.
12602         * Makefile (headers): Add stdc-predef.h.
12603         * CONFORMANCE (Compiler limitations): Update.
12604
12605 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12608
12609 2012-02-21  David S. Miller  <davem@davemloft.net>
12610
12611         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12612         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12613
12614 2012-02-20  David S. Miller  <davem@davemloft.net>
12615
12616         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12617         using a normal save/restore sequence, rather than allocating a
12618         dummy stack frame just to store a frame pointer and restore.
12619         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12620
12621 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12622
12623         * manual/install.texi: Fix stray word in line-wrapped comment.
12624
12625 2012-02-20  David S. Miller  <davem@davemloft.net>
12626
12627         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12628         both binutils and gcc support GOTDATA.
12629
12630         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12631         "rd %pc" in the PIC register setup sequences.
12632
12633         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12634         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12635         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12636         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12637         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12638         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12639         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12640         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12641         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12642         (SYSCALL_ERROR_HANDLER): Likewise.
12643         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12644         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12645         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12646         (SYSCALL_ERROR_HANDLER): Likewise.
12647
12648         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12649         (HAVE_GCC_GOTDATA): New.
12650         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12651         relocation support in both binutils and gcc.
12652         * sysdeps/sparc/elf/configure: Regenerate.
12653
12654         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12655         * sysdeps/sparc/sparc32/elf/configure: Delete.
12656         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12657         * sysdeps/sparc/sparc64/elf/configure: Delete.
12658         * sysdeps/sparc/elf/configure.in: New file.
12659         * sysdeps/sparc/elf/configure: Generate.
12660
12661         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12662         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12663         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12664         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12665         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12666
12667 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12668
12669         * manual/install.texi: Do not mention specific glibc version
12670         numbers.
12671         * manual/libc.texinfo (VERSION, UPDATED): Update.
12672         (@copying): Use @copyright{} and range of years.
12673
12674 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12675
12676         [BZ #13695]
12677         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12678         [crti.S not in sysdirs] (generated): Do not append.
12679         [crti.S not in sysdirs] (omit-deps): Likewise.
12680         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12681         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12682         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12683         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12684         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12685         Likewise.
12686         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12687         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12688         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12689         * csu/defs.awk: Remove file.
12690         * sysdeps/generic/initfini.c: Likewise.
12691         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12692         variable.
12693         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12694         Likewise.
12695
12696 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12697
12698         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12699         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12700         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12701         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12702         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12703         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12704         <bits/epoll.h>.
12705         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12706         (__EPOLL_PACKED): Define to empty if not defined by
12707         <bits/epoll.h>.
12708         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12709         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12710         bits/epoll.h.
12711
12712 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12713
12714         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12715         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12716         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12717         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12718         <bits/timerfd.h>.
12719         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12720         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12721         bits/timerfd.h.
12722
12723 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12724
12725         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12726         in C locale.
12727         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12728         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12729         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12731
12732 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12733
12734         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12735         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12736
12737 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12738
12739         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12740         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12741         defined.
12742         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12743         Likewise.
12744         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12745         entry for 2.16.
12746
12747 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12748
12749         * math/w_acos.c: Use non-signaling floating-point comparisons.
12750         * math/w_acosf.c: Likewise.
12751         * math/w_acosh.c: Likewise.
12752         * math/w_acoshf.c: Likewise.
12753         * math/w_acoshl.c: Likewise.
12754         * math/w_acosl.c: Likewise.
12755         * math/w_asin.c: Likewise.
12756         * math/w_asinf.c: Likewise.
12757         * math/w_asinl.c: Likewise.
12758         * math/w_atanh.c: Likewise.
12759         * math/w_atanhf.c: Likewise.
12760         * math/w_atanhl.c: Likewise.
12761         * math/w_exp2.c: Likewise.
12762         * math/w_exp2f.c: Likewise.
12763         * math/w_exp2l.c: Likewise.
12764         * math/w_j0.c: Likewise.
12765         * math/w_j0f.c: Likewise.
12766         * math/w_j0l.c: Likewise.
12767         * math/w_j1.c: Likewise.
12768         * math/w_j1f.c: Likewise.
12769         * math/w_j1l.c: Likewise.
12770         * math/w_jn.c: Likewise.
12771         * math/w_jnf.c: Likewise.
12772         * math/w_log.c: Likewise.
12773         * math/w_log10.c: Likewise.
12774         * math/w_log10f.c: Likewise.
12775         * math/w_log10l.c: Likewise.
12776         * math/w_log2.c: Likewise.
12777         * math/w_log2f.c: Likewise.
12778         * math/w_log2l.c: Likewise.
12779         * math/w_logf.c: Likewise.
12780         * math/w_logl.c: Likewise.
12781         * math/w_sqrt.c: Likewise.
12782         * math/w_sqrtf.c: Likewise.
12783         * math/w_sqrtl.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12786         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12787         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12788         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12789
12790 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12791
12792         [BZ #9739]
12793         * manual/string.texi (strnlen): Use correct parameter name in
12794         equivalent expression.
12795
12796 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12797
12798         [BZ #11174]
12799         * manual/users.texi (seteuid): Consistently use neweuid for
12800         argument name.
12801
12802 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12803
12804         [BZ #13704]
12805         * manual/nss.texi (Services in the NSS configuration): Correct
12806         list of services in example configuration file.
12807
12808 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12809
12810         [BZ #11322]
12811         * manual/arith.texi: Remove statements about negative zero
12812         behaving identically to zero.
12813
12814 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12815
12816         [BZ #5993]
12817         * manual/install.texi: Do not document upgrading from libc5.
12818
12819 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12820
12821         [BZ #4596]
12822         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12823
12824 2012-02-18  David S. Miller  <davem@davemloft.net>
12825
12826         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12827         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12828         %o7 across the call.
12829         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12830         instead.
12831         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12832         SETUP_PIC_REG_LEAF.
12833         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12834         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12835         * sysdeps/sparc/crtn.S: Likewise.
12836
12837 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12838
12839         * aout/Makefile: Remove.
12840
12841 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12842
12843         [BZ #13058]
12844         * manual/examples/argp-ex1.c (main): Format definition in GNU
12845         style.
12846         * manual/examples/argp-ex2.c (main): Likewise.
12847         * manual/examples/argp-ex3.c (main): Likewise.
12848         * manual/examples/argp-ex4.c (main): Likewise.
12849         * manual/examples/longopt.c (main): Use new-style prototype
12850         definition.
12851         * manual/examples/strncat.c (main): Specify return type and use
12852         (void) for arguments.
12853         * manual/examples/subopt.c (main): Use char **argv argument.
12854
12855 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12856
12857         [BZ #5077]
12858         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12859         rounding modes.
12860
12861 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12862
12863         [BZ #6907]
12864         * manual/string.texi (strchr): Change when strchrnul is
12865         recommended.
12866
12867 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12868
12869         [BZ #174]
12870         * manual/locale.texi (setlocale): Document LOCPATH.
12871
12872 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12873
12874         [BZ #10210]
12875         * manual/process.texi (execle): Move @dots{} before last argument.
12876
12877 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12878
12879         [BZ #12047]
12880         * manual/charset.texi (Generic Charset Conversion): Fix typo
12881         (LC_TYPE -> LC_CTYPE).
12882
12883 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12884
12885         [BZ #5805]
12886         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12887         (scalbnf): Likewise.
12888         (scalbnl): Likewise.
12889         (scalbln): Likewise.
12890         (scalblnf): Likewise.
12891         (scalblnl): Likewise.
12892         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12893         (vwarnx): Likewise.
12894         (verr): Likewise.
12895         (verrx): Likewise.
12896         * manual/filesys.texi (telldir): Use braces around return type.
12897         * manual/llio.texi (mmap): Add space after comma.
12898         (mmap64): Likewise.
12899         * manual/math.texi (jn): Use @var{} on parameter names.
12900         (jnf): Likewise.
12901         (jnl): Likewise.
12902         (yn): Likewise.
12903         (ynf): Likewise.
12904         (ynl): Likewise.
12905         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12906         line.
12907         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12908         "...".
12909         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12910         (sched_get_priority_max): Likewise.
12911         * manual/signal.texi (sigvec): Add space after comma.
12912         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12913         names.
12914         (if_indextoname): Likewise.
12915         (if_freenameindex): Likewise.
12916         (sendto): Use ',' instead of '.' in prototype.
12917         * manual/startup.texi (syscall): Use @dots{} instead of literal
12918         "...".
12919         * manual/stdio.texi (__fpending): Separate initial words of
12920         paragraph from @deftypefun line.
12921         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12922         "...".
12923         (vsyslog): Use @var{} on parameter names.
12924         * manual/terminal.texi (stty): Use @var{} on parameter names.
12925         * manual/users.texi (getutmp): Use @var{} on parameter names.
12926         (getutmpx): Likewise.
12927
12928 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12929
12930         [BZ #6884]
12931         * manual/stdio.texi (fopen): Fix typos in description of
12932         ",ccs=STRING".
12933
12934 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12935
12936         [BZ #4026]
12937         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12938         get clock_id definition.
12939
12940 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12941
12942         [BZ #4822]
12943         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12944         (madvise): Cast every argument to void on its own.
12945
12946 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12947
12948         [BZ #9902]
12949         * manual/startup.texi (Exit Status): Fix typo.
12950
12951 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12952
12953         [BZ #10140]
12954         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12955         * manual/examples/argp-ex2.c: Likewise.
12956         * manual/examples/argp-ex3.c: Likewise.
12957
12958 2012-02-16  Richard Henderson  <rth@redhat.com>
12959
12960         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12961         * sysdeps/s390/s390-32/initfini.c: Remove.
12962         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12963         * sysdeps/s390/s390-64/initfini.c: Remove.
12964
12965 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12966
12967         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12968         compiler output for sysdeps/generic/initfini.c.
12969         * sysdeps/sh/elf/initfini.c: Remove file.
12970
12971 2012-02-16  David S. Miller  <davem@davemloft.net>
12972
12973         [BZ #11494]
12974         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12975
12976         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12977         * sysdeps/sparc/crti.S: New file.
12978         * sysdeps/sparc/crtn.S: New file.
12979         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12980         * sysdeps/sparc/sparc64/Makefile: Likewise.
12981
12982 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12983
12984         [BZ #3335]
12985         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12986
12987 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12988
12989         [BZ #4822]
12990         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12991
12992         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12993         (write, read, close): Likewise.
12994         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12995
12996 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12997
12998         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12999         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13000         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13001         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13002         <bits/signalfd.h>.
13003         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13004         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13005         bits/signalfd.h.
13006
13007 2012-02-14  Marek Polacek  <polacek@redhat.com>
13008
13009         * sysdeps/x86_64/crti.S: New file.
13010         * sysdeps/x86_64/crtn.S: New file.
13011         * sysdeps/x86_64/elf/initfini.c: Remove file.
13012
13013 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13014
13015         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13016         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13017         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13018         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13019         <bits/inotify.h>.
13020         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13021         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13022         bits/inotify.h.
13023
13024 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13025
13026         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13027         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13028         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13029         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13030         <bits/eventfd.h>.
13031         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13032         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13033         bits/eventfd.h.
13034
13035 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13036
13037         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13038         __feraiseexcept instead of feraiseexcept.
13039
13040         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13041         nanosleep invocations.
13042         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13043         strings, and add error checking for a nanosleep invocations.
13044
13045 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13046
13047         Replace FSF snail mail address with URLs, as per GNU coding standards.
13048         Most of the snail mail addresses were wrong anyway, and omitting
13049         them makes the source code easier to maintain.  Almost all of the
13050         changes are to license notices and to locale LC_IDENTIFICATION
13051         addresses, except for this one:
13052         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13053         not its snail mail address.
13054
13055 2012-02-09  Richard Henderson  <rth@twiddle.net>
13056
13057         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13058         of kernel-features.h.
13059
13060         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13061
13062 2012-02-08  Marek Polacek  <polacek@redhat.com>
13063
13064         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13065         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13066         * sysdeps/gnu/_G_config.h: Likewise.
13067         * sysdeps/generic/_G_config.h: Likewise.
13068
13069 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13070
13071         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13072         tests.
13073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13074
13075         * sysdeps/powerpc/powerpc32/crti.S: New file.
13076         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13077         * sysdeps/powerpc/powerpc64/crti.S: New file.
13078         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13079
13080         * Makeconfig (have-initfini): Don't set.
13081         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13082         * configure.in (nopic_initfini): Don't substitute.
13083         * config.h.in (HAVE_INITFINI): Don't #undef.
13084         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13085         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13086
13087 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13088
13089         Support crti.S and crtn.S provided directly by architectures.
13090         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13091         [crti.S in sysdirs] (omit-deps): Likewise.
13092         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13093         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13094         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13095         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13096         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13097         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13098         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13099         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13100         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13101         compiler output for sysdeps/generic/initfini.c.
13102         * sysdeps/i386/elf/Makefile: Remove file.
13103         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13104
13105 2012-02-07  Marek Polacek  <polacek@redhat.com>
13106
13107         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13108         * sysdeps/gnu/_G_config.h: Likewise.
13109         * sysdeps/mach/hurd/_G_config.h: Likewise.
13110
13111 2012-02-07  Marek Polacek  <polacek@redhat.com>
13112
13113         * math/Makefile (tests): Add tst-CMPLX2.
13114         * math/tst-CMPLX2.c: New file.
13115
13116 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13117
13118         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13119
13120         * math/libm-test.inc (jn_test): Add missing L suffix.
13121
13122 2012-02-06  Marek Polacek  <polacek@redhat.com>
13123
13124         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13125         * sysdeps/i386/fpu/e_powf.S: Likewise.
13126         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13127         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13128         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13129         * sysdeps/i386/fpu/e_pow.S: Likewise.
13130         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13131         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13132         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13133         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13134         * sysdeps/i386/fpu/e_log2.S: Likewise.
13135         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13136         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13137         * sysdeps/i386/fpu/e_powl.S: Likewise.
13138         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13139         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13140         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13141         * sysdeps/i386/fpu/e_logl.S: Likewise.
13142         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13143         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13144         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13145         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13146         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13147         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13148         * sysdeps/i386/fpu/e_log.S: Likewise.
13149         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13150         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13151         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13152         * sysdeps/i386/fpu/e_logf.S: Likewise.
13153         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13154         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13155         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13156         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13157         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13158         * sysdeps/i386/fpu/e_log10.S: Likewise.
13159         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13160         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13161         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13162         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13163         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13164         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13165         * sysdeps/i386/asm-syntax.h: Likewise.
13166         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13167         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13168         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13169         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13170         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13171         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13172         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13173         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13174         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13175         * sysdeps/powerpc/sysdep.h: Likewise.
13176         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13177         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13178
13179 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13180
13181         [BZ #411]
13182         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13183
13184 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13185
13186         * sysdeps/i386/sysdep.h: Include <features.h>.
13187         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13188         version.
13189
13190 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13191
13192         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13193         Define.
13194         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13195         LOAD_PIC_REG_STR.
13196
13197 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13198
13199         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13200         (SETUP_PIC_REG): Use GET_PC_THUNK.
13201         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13202         macro.
13203
13204 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13205
13206         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13207         for non-PIC compilation.
13208         (SETUP_PIC_REG): Add .p2align directive.
13209         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13210         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13211         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13212         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13213         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13214         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13215         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13216         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13217         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13218         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13219         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13220         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13221         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13222         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13223         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13229         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13230         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13231         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13232         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13233         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13234         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13235         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13236         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13237         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13241         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13242         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13243         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13244         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13245         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13246         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13247         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13248         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13249         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13250
13251 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13252
13253         * math/tst-CMPLX.c: Include <stdio.h>.
13254
13255 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13256
13257         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13258         float.
13259         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13260         * sysdeps/sparc/bits/mathdef.h: Likewise.
13261
13262 2012-01-31  Marek Polacek  <polacek@redhat.com>
13263
13264         * libio/libio.h: Don't define _PARAMS.
13265         * locale/programs/config.h: Don't define PARAMS.
13266         * stdlib/strtol_l.c: Likewise.
13267         (__strtol_l): Remove PARAMS from the prototype.
13268
13269 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13270
13271         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13272         names.  Just use the correct names.  Remove unnecessary wrapper
13273         functions.
13274         * malloc/arena.c: Likewise.
13275         * malloc/hooks.c: Likewise.
13276
13277         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13278         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13279         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13280
13281 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13282
13283         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13284         into tail calls.
13285         (update_get_addr): New function.
13286         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13287         GET_ADDR_MODULE parameter.
13288
13289 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13290
13291         * crypt/cert.c: Remove __STDC__ conditionals.
13292         * crypt/crypt-entry.c: Likewise.
13293         * crypt/crypt_util.c: Likewise.
13294         * libio/filedoalloc.c: Likewise.
13295         * libio/fileops.c: Likewise.
13296         * libio/genops.c: Likewise.
13297         * libio/iofclose.c: Likewise.
13298         * libio/iofdopen.c: Likewise.
13299         * libio/iofopen.c: Likewise.
13300         * libio/iofopen64.c: Likewise.
13301         * libio/iogetdelim.c: Likewise.
13302         * libio/iopopen.c: Likewise.
13303         * libio/obprintf.c: Likewise.
13304         * libio/oldfileops.c: Likewise.
13305         * libio/oldiofclose.c: Likewise.
13306         * libio/oldiofdopen.c: Likewise.
13307         * libio/oldiofopen.c: Likewise.
13308         * libio/oldiopopen.c: Likewise.
13309         * libio/wfiledoalloc.c: Likewise.
13310         * libio/wgenops.c: Likewise.
13311         * locale/programs/xmalloc.c: Likewise.
13312         * misc/syslog.c: Likewise.
13313         * stdio-common/xbug.c: Likewise.
13314         * string/memchr.c: Likewise.
13315         * string/memcmp.c: Likewise.
13316         * string/memrchr.c: Likewise.
13317         * string/rawmemchr.c: Likewise.
13318         * sysdeps/posix/getcwd.c: Likewise.
13319         * time/strftime_l.c: Likewise.
13320
13321 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13322
13323         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13324         * config.make.in (config-cflags-sse2avx): Define.
13325         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13326         Fix typo.
13327
13328 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13329
13330         * scripts/config.guess: Update from upstream config git repository.
13331         * scripts/config.sub: Likewise.
13332
13333 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13334
13335         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13336         (EM_NUM): Update.
13337         (R_TILEPRO_*, R_TILEGX_*): New macros.
13338
13339         * scripts/firstversions.awk: Fix bug in version range handling.
13340
13341         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13342
13343         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13344
13345         * include/sys/epoll.h: New file.
13346         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13347         libc_hidden_def.
13348
13349 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13350
13351         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13352         Avoid unnecessary __WORDSIZE == 64 test.
13353         (fmaxf): Use VEX format if possible.
13354         (fmax): Likewise.
13355         (fminf): Likewise.
13356         (fmin): Likewise.
13357
13358         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13359         * math/math_private.h: Remove libc_fegetround* and
13360         libc_fesetround*.
13361         * sysdeps/i386/configure.in: Check for -msse2avx.
13362         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13363         also if SSE2AVX is defined.
13364         Remove libc_fegetround* and libc_fesetround*.
13365         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13366         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13367         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13368         of HAS_YMM_USABLE.
13369         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13370         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13371         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13372         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13373         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13374
13375         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13376
13377 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13378
13379         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13380         size is not set.
13381         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13382
13383 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13384
13385         [BZ #13618]
13386         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13387         relocation.
13388         * Makeconfig (libm): Define.
13389         * elf/Makefile: Add rules to build and run tst-relsort1.
13390         * elf/tst-relsort1.c: New file.
13391         * elf/tst-relsort1mod1.c: New file.
13392         * elf/tst-relsort1mod2.c: New file.
13393
13394 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13395
13396         * math/s_ldexp.c: Remove __STDC__ conditionals.
13397         * math/s_ldexpf.c: Likewise.
13398         * math/s_ldexpl.c: Likewise.
13399         * math/s_nextafter.c: Likewise.
13400         * math/s_nexttowardf.c: Likewise.
13401         * math/s_significand.c: Likewise.
13402         * math/s_significandf.c: Likewise.
13403         * math/s_significandl.c: Likewise.
13404         * math/w_jnl.c: Likewise.
13405         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13406         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13407         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13408         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13409         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13410         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13411         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13412         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13413         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13414         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13415         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13416         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13417         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13418         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13419         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13420         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13421         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13422         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13423         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13424         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13425         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13426         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13427         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13428         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13429         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13430         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13431         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13432         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13433         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13434         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13435         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13436         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13437         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13438         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13439         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13440         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13441         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13442         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13443         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13444         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13445         * sysdeps/ieee754/k_standard.c: Likewise.
13446         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13447         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13448         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13449         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13450         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13451         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13452         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13453         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13454         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13455         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13456         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13457         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13458         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13459         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13460         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13461         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13462         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13463         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13464         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13465         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13466         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13467         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13468         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13469         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13470         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13471         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13472         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13473         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13474         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13477         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13478         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13479         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13480         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13481         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13482         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13483         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13484         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13485         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13486         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13490         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13491         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13492         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13494         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13495         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13498         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13499         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13500         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13504         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13505         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13506         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13507         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13508         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13511         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13512         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13516         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13517         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13520         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13521         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13522         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13525         * sysdeps/ieee754/s_matherr.c: Likewise.
13526         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13527         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13528         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13529         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13530
13531 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13532
13533         * crypt/md5.h: Remove __STDC__ conditionals.
13534         * libio/libioP.h: Likewise.
13535         * locale/programs/config.h: Likewise.
13536         * sysdeps/generic/sysdep.h: Likewise.
13537         * sysdeps/i386/asm-syntax.h: Likewise.
13538         * sysdeps/s390/asm-syntax.h: Likewise.
13539         * sysdeps/unix/sysdep.h: Likewise.
13540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13542
13543 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13544
13545         * libio/libio.h: Remove __STDC__ conditionals.
13546         * malloc/obstack.h: Likewise.
13547         * math/complex.h: Likewise.
13548         * math/math.h: Likewise.
13549         * sysdeps/generic/_G_config.h: Likewise.
13550         * sysdeps/gnu/_G_config.h: Likewise.
13551         * sysdeps/mach/hurd/_G_config.h: Likewise.
13552         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13553         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13554         * sysdeps/sparc/bits/mathdef.h: Likewise.
13555
13556 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13557
13558         [BZ #13583]
13559         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13560         Clean up HAS_* macros.
13561         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13562         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13563         possible.
13564         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13565         HAS_AVX.
13566         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13567         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13568         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13569         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13570         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13571
13572 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13573
13574         * elf/tst-unique3.cc (gets): Remove declaration.
13575         * elf/tst-unique3lib.cc (gets): Likewise.
13576         * elf/tst-unique3lib2.cc (gets): Likewise.
13577         * elf/tst-unique4.cc (gets): Likewise.
13578
13579 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13580
13581         * include/stdio.h: Add C++ protection.  Add gets declarations and
13582         definitions.
13583         * debug/tst-chk1.c: Don't declare gets here.
13584         * stdio-common/tst-gets.c: Likewise.
13585
13586 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13587
13588         * posix/glob: Remove directory.
13589
13590 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13591
13592         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13593
13594 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13595
13596         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13597         of the non-standard EPFNOSUPPORT.
13598
13599 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13600
13601         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13602         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13603         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13604
13605 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13606
13607         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13608
13609 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13610
13611         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13612         transient errors.
13613         * nscd/grpcache.c (cache_addgr): Likewise.
13614         * nscd/hstcache.c (cache_addhst): Likewise.
13615         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13616         * nscd/pwdcache.c (cache_addpw): Likewise.
13617         * nscd/servicescache.c (cache_addserv): Likewise.
13618
13619 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13620
13621         * malloc/malloc.c: Various cleanups.
13622         * malloc/hooks.c: Likewise.
13623
13624         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13625         * stdlib/bug-fmtmsg1.c: New file.
13626
13627         * stdlib/fmtmsg.c (init): Add missing unlock.
13628         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13629
13630 2012-01-12  Marek Polacek  <polacek@redhat.com>
13631
13632         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13633         and _GNU_SOURCE.
13634
13635 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13636
13637         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13638         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13639         macro to ensure uniqueness of label name.
13640         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13641         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13642
13643 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13644
13645         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13646
13647         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13648         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13649         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13650         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13651
13652 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13653
13654         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13655
13656         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13657         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13658         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13659
13660         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13661
13662         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13663         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13664         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13665         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13666
13667         * math/bits/math-finite.h: Add ldexp support.
13668
13669 2012-01-10  Marek Polacek  <polacek@redhat.com>
13670
13671         * locale/programs/localedef.h (show_archive_content): Add noreturn
13672         attribute.
13673
13674 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13675
13676         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13677
13678 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13679
13680         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13681
13682         * io/Makefile (headers): Add bits/poll2.h.
13683
13684 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13685
13686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13687         typo #include statement.
13688
13689 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13690
13691         * include/sys/cdefs.h: Define __attribute_alloc_size.
13692         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13693         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13694         * elf/pldd.c: Likewise.
13695         * iconv/iconv_charmap.c: Likewise.
13696         * iconv/iconvconfig.c: Likewise.
13697         * iconv/strtab.c: Likewise.
13698         * locale/programs/locale.c: Likewise.
13699         * locale/programs/localedef.h: Likewise.
13700         * locale/programs/simple-hash.c: Likewise.
13701         * nscd/nscd.h: Likewise.
13702         * nss/makedb.c: Likewise.
13703         * sysdeps/generic/ldconfig.h: Likewise.
13704         * locale/programs/localedef.c: Remove xmalloc prototype.
13705         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13706
13707 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13708
13709         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13710         appropriate.
13711
13712 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13713
13714         * math/Makefile (tests): Add tst-CMPLX.
13715         * math/tst-CMPLX.c: New file.
13716
13717         * math/complex.h (CMPLXL): Fix typo.
13718
13719         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13720         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13721         GLIBC_2.16.
13722         * debug/tst-chk1.c: Add poll and ppoll tests.
13723         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13724         * include/sys/poll.h: Add hidden proto for ppoll.
13725         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13726         * sysdeps/mach/hurd/ppoll.c: Likewise.
13727         * io/ppoll.c: Likewise.
13728         * debug/poll_chk.c: New file.
13729         * debug/ppoll_chk.c: New file.
13730         * include/bits/poll2.h: New file.
13731         * io/bits/poll2.h: New file.
13732
13733         [BZ #1350]
13734         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13735
13736         * configure.in: static is always set to yes.  Remove.
13737         * config.make.in: Don't set build-static.
13738         * Makeconfig: Remove use of build-static.
13739         * dlfcn/Makefile: Likewise.
13740         * elf/Makefile: Likewise.
13741         * math/Makefile: Likewise.
13742         * misc/Makefile: Likewise.
13743         * nptl/Makefile: Likewise.
13744         * sysdeps/mach/hurd/Makefile: Likewise.
13745
13746         * configure.in: PWD_P is not used anymore.
13747         * config.make.in: Remove PWD_P entry.
13748
13749         * configure.in: Remove last remnants of RANLIB.
13750         No need to check for signed size_t anymore.
13751         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13752         and IA-64.
13753         Remove __builtin_expect test because we require at least gcc 3.4.
13754         * aclocal.m4: Likewise.
13755
13756         * wcsmbs/mbrtoc16.c: Implement using towc function.
13757         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13758         * wcsmbs/wcsmbsload.c: Likewise.
13759         * iconv/gconv_simple.c: Likewise.
13760         * iconv/gconv_int.h: Likewise.
13761         * iconv/gconv_builtin.h: Likewise.
13762         * iconv/iconv_prog.c: Remove CHAR16 handling.
13763
13764         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13765
13766         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13767
13768         * configure.in: Remove --with-elf and --enable-bounded options.
13769         Dont set base_machine for ia64.  More non-ELF conditions removed.
13770         Remove testing and setting of leading underscore information.
13771         * config.make.in (build-bounded): Set to no.
13772         * config.h.in: Remove NO_UNDERSCORES entry.
13773         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13774         them.
13775         * csu/start.c: Remove !NO_UNDERSCORE code.
13776         * locale/localeinfo.h: Likewise.
13777         * sysdeps/generic/machine-gmon.h: Likewise.
13778         * sysdeps/generic/sysdep.h: Likewise.
13779         * sysdeps/i386/sysdep.h: Likewise.
13780         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13781         * sysdeps/mach/sysdep.h: Likewise.
13782         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13783         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13784         * sysdeps/sh/sysdep.h: Likewise.
13785         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13786         * sysdeps/unix/i386/sysdep.S: Likewise.
13787         * sysdeps/unix/sparc/start.c: Likewise.
13788         * sysdeps/unix/sparc/sysdep.S: Likewise.
13789         * sysdeps/unix/sparc/sysdep.h: Likewise.
13790         * sysdeps/unix/start.c: Likewise.
13791         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13792         * sysdeps/x86_64/sysdep.h: Likewise.
13793
13794 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13795
13796         [BZ #13553]
13797         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13798         for non-gcc.
13799         * argp/argp-fmtstream.h: Use const instead __const.
13800         * argp/argp.h: Likewise.
13801         * assert/assert.h: Likewise.
13802         * bits/fenv.h: Likewise.
13803         * bits/sched.h: Likewise.
13804         * bits/sigset.h: Likewise.
13805         * bits/sigthread.h: Likewise.
13806         * catgets/nl_types.h: Likewise.
13807         * conform/data/pthread.h-data: Likewise.
13808         * crypt/crypt-private.h: Likewise.
13809         * crypt/crypt.h: Likewise.
13810         * crypt/crypt_util.c: Likewise.
13811         * ctype/ctype.h: Likewise.
13812         * debug/execinfo.h: Likewise.
13813         * debug/mbsnrtowcs_chk.c: Likewise.
13814         * debug/mbsrtowcs_chk.c: Likewise.
13815         * debug/wcsnrtombs_chk.c: Likewise.
13816         * debug/wcsrtombs_chk.c: Likewise.
13817         * debug/wcstombs_chk.c: Likewise.
13818         * dirent/dirent.h: Likewise.
13819         * dlfcn/dlfcn.h: Likewise.
13820         * elf/neededtest4.c: Likewise.
13821         * grp/grp.h: Likewise.
13822         * gshadow/gshadow.h: Likewise.
13823         * iconv/gconv.h: Likewise.
13824         * iconv/gconv_int.h: Likewise.
13825         * iconv/gconv_simple.c: Likewise.
13826         * iconv/iconv.h: Likewise.
13827         * iconv/loop.c: Likewise.
13828         * iconv/skeleton.c: Likewise.
13829         * include/aio.h: Likewise.
13830         * include/aliases.h: Likewise.
13831         * include/argz.h: Likewise.
13832         * include/arpa/inet.h: Likewise.
13833         * include/assert.h: Likewise.
13834         * include/dirent.h: Likewise.
13835         * include/dlfcn.h: Likewise.
13836         * include/execinfo.h: Likewise.
13837         * include/fcntl.h: Likewise.
13838         * include/fenv.h: Likewise.
13839         * include/glob.h: Likewise.
13840         * include/grp.h: Likewise.
13841         * include/libintl.h: Likewise.
13842         * include/mntent.h: Likewise.
13843         * include/netdb.h: Likewise.
13844         * include/pwd.h: Likewise.
13845         * include/rpc/netdb.h: Likewise.
13846         * include/sched.h: Likewise.
13847         * include/search.h: Likewise.
13848         * include/shadow.h: Likewise.
13849         * include/signal.h: Likewise.
13850         * include/stdio.h: Likewise.
13851         * include/stdlib.h: Likewise.
13852         * include/string.h: Likewise.
13853         * include/sys/socket.h: Likewise.
13854         * include/sys/stat.h: Likewise.
13855         * include/sys/statfs.h: Likewise.
13856         * include/sys/statvfs.h: Likewise.
13857         * include/sys/syslog.h: Likewise.
13858         * include/sys/time.h: Likewise.
13859         * include/sys/uio.h: Likewise.
13860         * include/time.h: Likewise.
13861         * include/unistd.h: Likewise.
13862         * include/utmp.h: Likewise.
13863         * include/wchar.h: Likewise.
13864         * include/wctype.h: Likewise.
13865         * inet/aliases.h: Likewise.
13866         * inet/arpa/inet.h: Likewise.
13867         * inet/netinet/ether.h: Likewise.
13868         * inet/netinet/in.h: Likewise.
13869         * intl/libintl.h: Likewise.
13870         * io/bits/fcntl2.h: Likewise.
13871         * io/fcntl.h: Likewise.
13872         * io/ftw.h: Likewise.
13873         * io/sys/poll.h: Likewise.
13874         * io/sys/stat.h: Likewise.
13875         * io/sys/statfs.h: Likewise.
13876         * io/sys/statvfs.h: Likewise.
13877         * io/utime.h: Likewise.
13878         * libio/bits/stdio.h: Likewise.
13879         * libio/bits/stdio2.h: Likewise.
13880         * libio/libio.h: Likewise.
13881         * libio/libioP.h: Likewise.
13882         * libio/stdio.h: Likewise.
13883         * locale/lc-ctype.c: Likewise.
13884         * locale/locale.h: Likewise.
13885         * login/utmp.h: Likewise.
13886         * malloc/arena.c: Likewise.
13887         * malloc/malloc.c: Likewise.
13888         * malloc/malloc.h: Likewise.
13889         * malloc/mcheck.c: Likewise.
13890         * malloc/mtrace.c: Likewise.
13891         * math/bits/mathcalls.h: Likewise.
13892         * math/fenv.h: Likewise.
13893         * math/math_private.h: Likewise.
13894         * misc/bits/error.h: Likewise.
13895         * misc/bits/syslog.h: Likewise.
13896         * misc/err.h: Likewise.
13897         * misc/error.h: Likewise.
13898         * misc/fstab.h: Likewise.
13899         * misc/mntent.h: Likewise.
13900         * misc/regexp.h: Likewise.
13901         * misc/search.h: Likewise.
13902         * misc/sgtty.h: Likewise.
13903         * misc/sys/mman.h: Likewise.
13904         * misc/sys/syslog.h: Likewise.
13905         * misc/sys/uio.h: Likewise.
13906         * misc/sys/xattr.h: Likewise.
13907         * misc/ttyent.h: Likewise.
13908         * nis/rpcsvc/ypclnt.h: Likewise.
13909         * nss/nss.h: Likewise.
13910         * posix/bits/unistd.h: Likewise.
13911         * posix/fnmatch.h: Likewise.
13912         * posix/glob.h: Likewise.
13913         * posix/sched.h: Likewise.
13914         * posix/spawn.h: Likewise.
13915         * posix/sys/wait.h: Likewise.
13916         * posix/unistd.h: Likewise.
13917         * posix/wordexp.h: Likewise.
13918         * pwd/pwd.h: Likewise.
13919         * resolv/netdb.h: Likewise.
13920         * resource/sys/resource.h: Likewise.
13921         * rt/aio.h: Likewise.
13922         * rt/bits/mqueue2.h: Likewise.
13923         * rt/mqueue.h: Likewise.
13924         * shadow/shadow.h: Likewise.
13925         * signal/signal.h: Likewise.
13926         * socket/send.c: Likewise.
13927         * socket/sendto.c: Likewise.
13928         * socket/sys/socket.h: Likewise.
13929         * stdio-common/printf.h: Likewise.
13930         * stdlib/bits/stdlib.h: Likewise.
13931         * stdlib/fmtmsg.h: Likewise.
13932         * stdlib/monetary.h: Likewise.
13933         * stdlib/stdlib.h: Likewise.
13934         * stdlib/ucontext.h: Likewise.
13935         * streams/stropts.h: Likewise.
13936         * string/argz.h: Likewise.
13937         * string/bits/string2.h: Likewise.
13938         * string/string.h: Likewise.
13939         * string/strings.h: Likewise.
13940         * sunrpc/rpc/auth.h: Likewise.
13941         * sunrpc/rpc/auth_des.h: Likewise.
13942         * sunrpc/rpc/clnt.h: Likewise.
13943         * sunrpc/rpc/netdb.h: Likewise.
13944         * sunrpc/rpc/pmap_clnt.h: Likewise.
13945         * sunrpc/rpc/xdr.h: Likewise.
13946         * sysdeps/generic/inttypes.h: Likewise.
13947         * sysdeps/generic/net/if.h: Likewise.
13948         * sysdeps/generic/sys/swap.h: Likewise.
13949         * sysdeps/gnu/net/if.h: Likewise.
13950         * sysdeps/gnu/utmpx.h: Likewise.
13951         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13952         * sysdeps/i386/i486/bits/string.h: Likewise.
13953         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13954         * sysdeps/s390/bits/string.h: Likewise.
13955         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13956         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13957         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13958         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13959         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13960         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13961         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13962         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13963         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13964         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13965         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13966         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13967         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13968         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13969         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13970         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13971         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13972         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13973         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13974         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13975         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13976         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13977         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13978         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13979         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13980         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13981         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13982         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13983         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13984         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13985         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13986         * sysvipc/sys/ipc.h: Likewise.
13987         * sysvipc/sys/msg.h: Likewise.
13988         * sysvipc/sys/sem.h: Likewise.
13989         * sysvipc/sys/shm.h: Likewise.
13990         * termios/termios.h: Likewise.
13991         * time/sys/time.h: Likewise.
13992         * time/time.h: Likewise.
13993         * wcsmbs/bits/wchar2.h: Likewise.
13994         * wcsmbs/uchar.h: Likewise.
13995         * wcsmbs/wchar.h: Likewise.
13996         * wctype/wctype.h: Likewise.
13997
13998         [BZ #13551]
13999         * Makeconfig: Remove all but ELF support including AIX support.
14000         * Makerules: Likewise.
14001         * config.h.in: Likewise.
14002         * config.make.in: Likewise.
14003         * configure: Likewise.
14004         * configure.in: Likewise.
14005         * csu/Makefile: Likewise.
14006         * csu/version.c: Likewise.
14007         * debug/Makefile: Likewise.
14008         * dlfcn/Makefile: Likewise.
14009         * elf/Makefile: Likewise.
14010         * extra-lib.mk: Likewise.
14011         * iconv/Makefile: Likewise.
14012         * include/libc-symbols.h: Likewise.
14013         * include/shlib-compat.h: Likewise.
14014         * resolv/Makefile: Likewise.
14015         * resolv/res_libc.c: Likewise.
14016         * rt/Makefile: Likewise.
14017         * sysdeps/i386/asm-syntax.h: Likewise.
14018         * sysdeps/i386/sysdep.h: Likewise.
14019         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14020         * sysdeps/mach/sysdep.h: Likewise.
14021         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14022         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14023         * sysdeps/s390/asm-syntax.h: Likewise.
14024         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14025         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14026         * sysdeps/sh/sysdep.h: Likewise.
14027         * sysdeps/unix/sparc/sysdep.h: Likewise.
14028         * sysdeps/wordsize-32/divdi3.c: Likewise.
14029         * sysdeps/x86_64/sysdep.h: Likewise.
14030
14031         * argp/Versions: Remove _argp_unlock_xxx.
14032
14033         [BZ #13559]
14034         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14035         * abilist/libBrokenLocale.abilist: Likewise.
14036         * abilist/libanl.abilist: Likewise.
14037         * abilist/libc.abilist: Likewise.
14038         * abilist/libcrypt.abilist: Likewise.
14039         * abilist/libdl.abilist: Likewise.
14040         * abilist/libm.abilist: Likewise.
14041         * abilist/libnsl.abilist: Likewise.
14042         * abilist/libpthread.abilist: Likewise.
14043         * abilist/libresolv.abilist: Likewise.
14044         * abilist/librt.abilist: Likewise.
14045         * abilist/libthread_db.abilist: Likewise.
14046         * abilist/libutil.abilist: Likewise.
14047         * abilist/libnss_db.abilist: New file.
14048
14049         * scripts/abilist.awk: Add support for indirect functions.
14050
14051         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14052
14053         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14054
14055         * shlib-versions: Remove entries for ports architectures.
14056
14057         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14058         files in ports.
14059         * elf/stackguard-macros.h: Remove support for IA-64.
14060         * elf/tst-auditmod1.c: Likewise.
14061         * sysdeps/generic/ldsodefs.h: Likewise.
14062
14063         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14064         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14065         configure files.
14066
14067         [BZ #13552]
14068         * configure.in: Remove --enable-omitfp support.
14069         * FAQ.in: Adjust.
14070         * config.make.in: Likewise.
14071         * Makeconfig: Likewise.
14072         * manual/install.texi: Likewise.
14073
14074         In case anyone cares, the IA-64 architecture could move to ports.
14075         * sysdeps/ia64/*: Removed.
14076         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14077         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14078
14079         [BZ #13555]
14080         * configure.in: Remove entries for unsupported architectures.
14081
14082         [BZ #13533]
14083         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14084         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14085         routines.
14086         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14087         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14088         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14089         fall back to using wcrtomb.
14090         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14091         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14092         renaming.
14093         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14094         * wcsmbs/tst-c16c32-1.c: New file.
14095
14096         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14097         local variable.
14098
14099         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14100
14101         * elf/tst-unique3.cc: Add explicit declaration of gets.
14102         * elf/tst-unique3lib.cc: Likewise.
14103         * elf/tst-unique3lib2.cc: Likewise.
14104         * elf/tst-unique4.cc: Likewise.
14105
14106         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14107
14108 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14109
14110         [BZ #13566]
14111         * assert/assert.h (static_assert): Don't define for C++.
14112         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14113         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14114
14115 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14116
14117         * iconv/loop.c (single loop): Fix assertion in storing of
14118         remaining bytes.
14119
14120         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14121
14122 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14123
14124         * posix/getconf.c: Update copyright year.
14125         * nss/getent.c: Likewise.
14126         * nss/makedb.c: Likewise.
14127         * iconv/iconvconfig.c: Likewise.
14128         * iconv/iconv_prog.c: Likewise.
14129         * elf/ldconfig.c: Likewise.
14130         * elf/pldd.c: Likewise.
14131         * elf/sotruss.ksh: Likewise.
14132         * catgets/gencat.c: Likewise.
14133         * csu/version.c: Likewise.
14134         * elf/ldd.bash.in: Likewise.
14135         * elf/sprof.c (print_version): Likewise.
14136         * locale/programs/locale.c: Likewise.
14137         * locale/programs/localedef.c: Likewise.
14138         * login/programs/pt_chown.c: Likewise.
14139         * nscd/nscd.c (print_version): Likewise.
14140         * debug/xtrace.sh: Likewise.
14141         * malloc/memusage.sh: Likewise.
14142         * malloc/mtrace.pl: Likewise.
14143         * debug/catchsegv.sh: Likewise.
14144
14145 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14146
14147         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14148         pure attribute.
14149
14150 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14151
14152         [BZ #13533]
14153         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14154         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14155         transformations.
14156         * iconv/gconv_int.h: Likewise.
14157         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14158         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14159         from libc for GLIBC_2.16.
14160         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14161         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14162         * wcsmbs/uchar.h: Really define mbstate_t.
14163         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14164         * wcsmbs/c16rtomb.c: New file.
14165         * wcsmbs/mbrtoc16.c: New file.
14166         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14167         for C/POSIX locale.
14168         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14169         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14170
14171         * wcsmbs/wchar.h: Add missing __restrict.
14172
14173 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14174
14175         [BZ #13532]
14176         * time/Makefile (routines): Add timespec_get.
14177         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14178         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14179         timespec for ISO C11.
14180         * time/timespec_get.c: New file.
14181         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14182         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14183
14184         [BZ #13531]
14185         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14186         * stdlib/stdlib.h: Declare aligned_alloc.
14187         * Versions.def: Add GLIBC_2.16 for libc.
14188         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14189
14190         [BZ 13527]
14191         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14192         ISO C11.
14193
14194         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14195         code.
14196
14197         [BZ #13528]
14198         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14199
14200         [BZ #13529]
14201         * assert/assert.h (static_assert): Define.
14202
14203         * version.h: Update for 2.16 development version.
14204
14205         [BZ #13526]
14206         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14207         _ISOC11_SOURCE.
14208
14209         * version.h (RELEASE): Bump for 2.15 release.
14210         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14211
14212         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14213         Patch by Marek Polacek <mpolacek@redhat.com>.
14214
14215         * bits/byteswap.h: Protect long long constants with __extension__.
14216         * sysdeps/i386/bits/byteswap.h: Likewise.
14217         * sysdeps/ia64/bits/byteswap.h: Likewise.
14218         * sysdeps/s390/bits/byteswap.h: Likewise.
14219         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14220
14221 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14222
14223         [BZ #13540]
14224         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14225         destination buffer.
14226         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14227
14228 2011-12-23  Marek Polacek  <polacek@redhat.com>
14229
14230         * elf/dl-addr.c (determine_info): Add inline keyword.
14231         * elf/tst-auditmod4b.c (check_avx): Likewise.
14232         * elf/tst-auditmod6b.c (check_avx): Likewise.
14233         * elf/tst-auditmod6c.c (check_avx): Likewise.
14234         * elf/tst-auditmod7b.c (check_avx): Likewise.
14235
14236 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14237
14238         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14239         !__SSE_MATH__.
14240
14241 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14242
14243         [BZ #13540]
14244         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14245         processing for last bytes.
14246
14247 2011-08-06  Bruno Haible  <bruno@clisp.org>
14248
14249         [BZ #13061]
14250         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14251         U+0385, not to U+1FEE.
14252
14253         [BZ #13062]
14254         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14255         entry for U+00A5 U+0301.
14256
14257 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14258
14259         [BZ #13166]
14260         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14261         buffer for the output is too small.
14262
14263         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14264         optimization.
14265
14266         [BZ #13185]
14267         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14268         SSE flags if possible.
14269
14270 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14271
14272         [BZ #13540]
14273         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14274         processing for last bytes.
14275
14276 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14277
14278         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14279         (syscall-list-default-options, syscall-list-default-condition)
14280         (syscall-list-includes): Define.
14281         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14282         list of ABIs and options and #if conditions for each ABI.  Do not
14283         handle common syscalls between ABIs specially.
14284         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14285         Remove.
14286         (syscall-list-variants, syscall-list-32bit-options)
14287         (syscall-list-32bit-condition, syscall-list-64bit-options)
14288         (syscall-list-64bit-condition): Define.
14289         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14290         (syscall-list-variants, syscall-list-32bit-options)
14291         (syscall-list-32bit-condition, syscall-list-64bit-options)
14292         (syscall-list-64bit-condition): Define.
14293         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14294         Remove.
14295         (syscall-list-variants, syscall-list-32bit-options)
14296         (syscall-list-32bit-condition, syscall-list-64bit-options)
14297         (syscall-list-64bit-condition): Define.
14298         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14299         Remove.
14300         (syscall-list-variants, syscall-list-32bit-options)
14301         (syscall-list-32bit-condition, syscall-list-64bit-options)
14302         (syscall-list-64bit-condition): Define.
14303
14304 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14305
14306         * locale/iso-639.def: Add brx entry.
14307
14308         [BZ #13328]
14309         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14310         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14311
14312         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14313         __feraiseexcept_renamed.
14314
14315 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14316
14317         [BZ #13538]
14318         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14319         EPOLLET with unsigned values.
14320         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14321         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14322
14323         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14324         to large cancellation.
14325         * math/s_cacoshf.c: Likewise.
14326         * math/s_cacoshl.c: Likewise.
14327
14328 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14329
14330         [BZ #13305]
14331         [BZ #12786]
14332         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14333         * math/s_cacoshf.c: Likewise.
14334         * math/s_cacoshl.c: Likewise.
14335
14336 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14337
14338         [BZ #13439]
14339         * iconv/gconv.h: Define __GCONV_SWAP.
14340         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14341         * iconvdata/utf-16.c: Likewise.
14342         * iconvdata/utf-32.c: Likewise.
14343
14344 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14345
14346         [BZ #13524]
14347         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14348         numerator after shifting it by one limb.
14349
14350 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14351
14352         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14353         under [__USE_EXTERN_INLINES].
14354
14355 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14356
14357         [BZ #13446]
14358         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14359
14360 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14361
14362         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14363         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14364         optimized code.
14365         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14366         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14367         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14368         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14369         for strncasecmp/strncasecmp_l compilation.
14370         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14371         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14372
14373 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14374
14375         [BZ #13484]
14376         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14377         of __asm__.
14378
14379 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14380
14381         [BZ #13506]
14382         * time/tzfile.c (__tzfile_read): Check values from file header.
14383
14384 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14385
14386         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14387         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14388         * powerpc/powerpc32/dl-start.S: Likewise.
14389         * powerpc/powerpc32/elf/start.S: Likewise.
14390         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14391         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14392         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14393         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14394         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14395         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14396         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14397         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14398         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14399         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14400         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14401         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14402         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14403         * powerpc/powerpc32/memset.S: Likewise.
14404         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14405         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14406         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14407         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14408         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14409         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14410         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14411         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14412         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14413         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14414         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14415         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14416         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14417
14418 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14419
14420         * math/libm-test.inc: Added more nearbyint tests.
14421         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14422         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14423         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14424         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14425
14426 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14427
14428         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14429         FD_CLOEXEC.
14430
14431 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14432
14433         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14434         Add wcscpy-ssse3 wcscpy-c.
14435         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14436         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14437         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14438         * sysdeps/x86_64/wcschr.S: New file.
14439         * sysdeps/x86_64/wcsrchr.S: New file.
14440         * string/test-strcmp.c: Remove checking of wcscmp function for
14441         wrong alignments.
14442         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14443         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14444         wcsrchr-sse2 wcsrchr-c.
14445         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14446         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14447         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14448         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14449         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14450         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14451         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14452         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14453         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14454         * wcsmbc/wcschr.c (WCSCHR): New macro.
14455
14456 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14457
14458         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14459         * wcsmbs/test-wcsrchr.c: New file.
14460         * string/test-strrchr.c: Add wcsrchr support.
14461         (WIDE): New macro.
14462         * wcsmbs/test-wcscpy.c: New file.
14463         * string/test-strcpy.c: Add wcscpy support.
14464         (WIDE): New macro.
14465
14466 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14467
14468         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14469         the inner loop.
14470
14471 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14472
14473         [BZ #13472]
14474         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14475
14476 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14477
14478         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14479         Minor optimizations.
14480
14481         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14482         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14483         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14484
14485 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14486
14487         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14488         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14489         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14490         for gcc to avoid warnings.
14491         * inet/Makefile (tests): Add tst-checks.
14492         * inet/tst-checks.c: New file.
14493
14494         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14495         warning.
14496
14497         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14498         __wmemcmp_sse2.
14499
14500         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14501         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14502
14503         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14504
14505 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14506
14507         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14508         problem.
14509
14510         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14511
14512 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14513
14514         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14515         conditional on GCC version.
14516         (__arch_compare_and_exchange_val_8_acq)
14517         (__arch_compare_and_exchange_val_16_acq)
14518         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14519         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14520         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14521
14522 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14523
14524         * sysdeps/sh/backtrace.c: New file.
14525
14526 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14527
14528         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14529         parenthesis.
14530
14531 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14532
14533         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14534         falling back to utime.
14535
14536 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14537
14538         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14539         expectations for float.
14540
14541 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14542
14543         * locale/weight.h (findidx): Add parameter len.
14544         * locale/weightwc.h (findidx): Likewise.
14545         * posix/fnmatch_loop.c (FCT): Adjust caller.
14546         * posix/regcomp.c (build_equiv_class): Likewise.
14547         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14548         * posix/regexec.c (check_node_accept_bytes): Likewise.
14549         * string/strcoll_l.c (STRCOLL): Likewise.
14550         * string/strxfrm_l.c (STRXFRM): Likewise.
14551
14552 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14553
14554         * Makefile.in: Remove CVSOPT handling.
14555         * configure.in: Remove use of AC_REVISION.
14556         * iconvdata/Makefile (distribute): No need to filter out CVS.
14557         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14558         handling.
14559
14560 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14561
14562         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14563         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14564         [USE_AS_STRNCASECMP_L]: Likewise.
14565         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14566         NO_TLS_DIRECT_SEG_REFS.
14567         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14568         Fix argument offsets for non-PIC.
14569         [USE_AS_STRNCASECMP_L]: Likewise.
14570         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14571         NO_TLS_DIRECT_SEG_REFS.
14572
14573 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14574
14575         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14576         O_CLOEXEC.
14577         * locale/loadlocale.c (_nl_load_locale): Likewise.
14578
14579 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14580
14581         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14582         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14583         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14584         (SYSCALL_GETTIME): Set errno on error.
14585
14586         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14587         count references to noai6ai_cached.
14588
14589 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14590
14591         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14592
14593         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14594         FD_CLOEXEC for /proc/self/maps.
14595
14596         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14597         FD_CLOEXEC for /proc/meminfo.
14598
14599         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14600         gai.conf.
14601
14602         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14603         FD_CLOEXEC for given file.
14604
14605         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14606
14607         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14608         FD_CLOEXEC for /etc/hosts.
14609         (_gethtent): Likewise.
14610
14611         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14612
14613         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14614         cancellation and set FD_CLOEXEC for /etc/netgroup.
14615
14616         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14617         reading /etc/publickey.
14618
14619         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14620         allow cancellation when reading /etc/group.
14621
14622         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14623         cancellation.
14624         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14625
14626         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14627         when using data file.
14628
14629         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14630
14631         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14632         (write_nis_obj): Use "c" and "e" in fopen.
14633
14634         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14635
14636         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14637
14638         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14639
14640         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14641
14642         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14643         locale.alias.
14644
14645         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14646
14647         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14648
14649         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14650
14651         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14652         file parsing and set FD_CLOEXEC.
14653
14654 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14655
14656         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14657
14658 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14659
14660         * malloc/arena.c (arena_get2): Don't call reused_arena when
14661         _int_new_arena failed.
14662
14663 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14664
14665         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14666         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14667         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14668         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14669         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14670         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14671         to compile strcasecmp and strncasecmp.
14672         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14673         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14674
14675         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14676
14677 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14678
14679         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14680         locale-defines.sym to gen-as-const-headers.
14681         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14682         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14683         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14684         to compile strcasecmp and strncasecmp.
14685         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14686         strcasecmp_l and strncasecmp_l.
14687         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14688         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14689         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14690         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14691         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14692         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14693         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14694         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14695         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14696         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14697         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14698
14699 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14700
14701         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14702         result of SYSDEP_GETTIME_CPU to retval.
14703         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14704         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14705
14706         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14707         variable.
14708
14709         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14710         mantissa words.
14711         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14712
14713         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14714         from unused variable.
14715
14716         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14717         DWARF definitions.
14718         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14719         for assembling.
14720
14721         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14722         over namespaces.
14723
14724         * sunrpc/rpc_prot.c (rejected): Fix case value.
14725
14726         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14727         unsigned long long int to avoid warnings in shift.
14728
14729         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14730         of use of trans.
14731         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14732         variable tmp.
14733
14734         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14735         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14736         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14737
14738         * nis/nis_table.c (nis_list): Use variable of correct type for
14739         result of __follow_path call.
14740
14741 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14742
14743         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14744         of math functions ceil, trunc, floor, round, and sqrt, when
14745         avaliable on the platform.
14746         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14747         name clash.
14748         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14749         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14750         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14751
14752 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14753
14754         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14755         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14756
14757 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14758
14759         * include/unistd.h: Fix __readlink return type.
14760         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14761
14762 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14763
14764         * stdlib/ucontext.h: Undo last change for makecontext.
14765
14766 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14767
14768         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14769
14770         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14771         * setjmp/setjmp.h: Mark functions as non-leaf.
14772         * setjmp/bits/setjmp2.h: Likewise.
14773         * stdlib/ucontext.h: Likewise.
14774
14775 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14776
14777         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14778         (reused_arena): Don't check arena limit.
14779         (arena_get2): Atomically check arena limit.
14780
14781 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14782
14783         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14784         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14785
14786         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14787         instructions.
14788
14789 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14790
14791         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14792         handler when locking.
14793
14794         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14795         Fix size of allocated buffer.
14796
14797 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14798
14799         [BZ #10103]
14800         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14801         declarations for long double functions.
14802         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14803
14804         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14805
14806 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14807
14808         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14809         installed.
14810
14811         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14812         is disabled.
14813
14814 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14815
14816         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14817
14818 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14819
14820         * include/alloca.h (stackinfo_alloca_round): Define.
14821         (extend_alloca): Use it.
14822         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14823         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14824         here.
14825
14826         * scripts/check-local-headers.sh: Ignore libaudit.h.
14827
14828         * nscd/Makefile (extra-objs): Make recursively expanded.
14829
14830 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14831
14832         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14833         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14834
14835         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14836         * posix/tst-rfc3484-2.c: Likewise.
14837         * posix/tst-rfc3484-3.c: Likewise.
14838
14839         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14840         process_vm_writev.
14841         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14842         process_vm_writev.
14843         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14844         process_vm_writev from libc using GLIBC_2.15 version.
14845
14846         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14847
14848 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14849
14850         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14851         stack usage.
14852
14853 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14854
14855         [BZ #13367]
14856         * nss/getent.c (initgroups_keys): Show error message in case no group
14857         names are given.
14858
14859         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14860         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14861         __bump_nl_timestamp.
14862         * nscd/connections (nscd_init): When host database is served open
14863         netlink socket and request notification about configuration changes.
14864         (main_loop_poll): Track netlink file descriptor and bump timestamp
14865         in case data becomes available.
14866         (main_loop_epoll): Likewise.
14867         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14868         (database_pers_head): Add extra_data fileds.
14869         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14870         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14871         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14872         Adjust caller.
14873         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14874         in6ai data, call __free_in6ai.
14875         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14876         Add -DHAVE_NETLINK.
14877         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14878         interface information.  Reuse previous data if netlink timestamp
14879         is not changed.
14880         (__bump_nl_timestamp): New function.
14881         (__free_in6ai): New function.
14882
14883 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14884
14885         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14886         close_not_cancel_no_status here.
14887         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14888
14889 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14890
14891         [BZ #13276]
14892         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14893         return value.
14894
14895         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14896         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14897         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14898
14899 2011-07-03  Andreas Jaeger  <aj@suse.de>
14900
14901         [BZ #10709]
14902         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14903         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14904         * math/libm-test.inc (sin_test): Add test case.
14905
14906 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14907
14908         [BZ #13337]
14909         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14910         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14911
14912         * elf/chroot_canon.c (chroot_canon): Cleanups.
14913
14914         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14915
14916         [BZ #13335]
14917         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14918         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14919
14920         * string/test-strchr.c: Make usable for strchrnul testing.
14921         * string/test-strchrnul.c: New file.
14922         * string/Makefile (strop-tests): Add strchrnul.
14923
14924         * po/it.po: Update from translation team.
14925         * po/es.po: Likewise.
14926
14927 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14928
14929         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14930         the three constants needed as parameters.  Drop the others.
14931         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14932         __m128i_strloadu_tolower.
14933         Create and initialize variable zero and use it in all the places
14934         where _mm_setzero_si128 was used.
14935
14936         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14937         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14938         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14939         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14940         anymore.
14941         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14942         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14943         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14944         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14945         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14946         __mpranred, __mptan.
14947         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14948         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14949         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14950         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14951         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14952         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14953         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14954         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14955         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14956
14957 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14958
14959         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14960         redefine if SHARED.
14961         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14962
14963         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14964         wide char related routines to wcsmbs subdir.
14965
14966 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14967
14968         [BZ #13344]
14969         * misc/sys/cdefs.h (__THROWNL): Define.
14970         * posix/unistd.h: Use __THREADNL instead of __THREAD
14971         for memory synchronization functions.
14972
14973 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14974
14975         [BZ #13349]
14976         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14977         doesn't exist.
14978         * manual/stdio.texi (Obstack Streams): Node removed.
14979
14980 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14981
14982         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14983         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14984         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14985
14986         * math/math_private.h (math_force_eval): Allow non-addressable
14987         arguments.
14988         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14989
14990 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14991
14992         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14993         file is not needed.
14994
14995         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14996         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14997         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14998         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14999         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15000         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15001         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15002         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15003         Add AVX variants.
15004         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15005         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15006         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15007         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15008         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15009         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15010         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15011         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15012         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15013         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15014         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15015         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15016         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15017         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15018         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15019         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15020         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15021         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15022         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15023
15024         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15025         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15026
15027         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15028         place.  Use VEX encoding when compiling for AVX.
15029
15030 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15031
15032         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15033         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15034
15035         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15036
15037 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15038
15039         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15040         useless if() expression.
15041         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15042         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15043         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15044         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15045         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15046         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15047         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15048         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15049         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15050         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15051         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15052         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15053         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15054         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15055         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15056         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15057         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15058         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15059         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15060
15061         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15062
15063 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15064
15065         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15066         condition.
15067         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15068
15069 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15070
15071         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15072         .text section.  Avoid duplicate constants.
15073         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15074         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15075         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15076         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15077         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15078         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15079         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15080         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15081         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15082         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15083         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15084         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15085         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15086         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15087         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15088         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15089         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15090         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15091         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15092         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15093         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15094         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15095         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15096         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15097         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15098         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15099         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15100         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15101         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15102         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15103         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15104         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15105         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15106         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15107         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15108         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15109         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15110         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15111         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15112         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15113         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15114         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15115         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15116         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15117         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15118
15119 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15120
15121         * sysdeps/x86_64/dla.h: Move to ...
15122         * sysdeps/x86_64/fpu/dla.h: ...here.
15123         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15124         situations.  Use __builtin_fma only for gcc 4.6 and up.
15125
15126         * config.make.in: Add have-mfma4 entry.
15127         * configure.in: Substitute libc_cv_cc_fma4.
15128         * math/Makefile (dbl-only-routines): Add sincostab.
15129         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15130         Use __sincostab not sincos.
15131         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15132         name is a macro.
15133         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15134         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15135         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15136         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15137         using __copysign.
15138         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15139         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15140         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15141         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15142         and __inv.
15143         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15144         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15145         __copysign.
15146         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15147         define aliases when function name is a macro.
15148         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15149         sysdeps/ieee754/dbl-64/sincos.tbl.
15150         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15151         fma4-enabled routines.
15152         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15153         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15154         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15155         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15156         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15157         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15158         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15159         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15160         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15161         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15162         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15163         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15164         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15165         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15166         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15167         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15168         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15169         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15170         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15171         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15172         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15173         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15174         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15175         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15176         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15177         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15178         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15179         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15180         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15181         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15182
15183         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15184         rename.
15185         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15186         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15187         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15188         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15189         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15190         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15191         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15192         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15193
15194 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15195
15196         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15197
15198 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15199
15200         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15201
15202         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15203         prediction.
15204         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15205
15206         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15207         Remove unused variable magic_bits.
15208         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15209
15210         * string/strnlen.c: Define and use STRNLEN macro.
15211         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15212         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15213         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15214         * wcsmbs/wcslen.c: Define and use WCSLEN.
15215         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15216         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15217         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15218         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15219         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15220         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15221         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15222
15223 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15224
15225         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15226         strnlen-sse2-no-bsf.
15227         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15228         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15229         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15230         Add strnlen support.
15231         (USE_AS_STRNLEN): New macro.
15232         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15233         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15234         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15235         * sysdeps/x86_64/wcslen.S: New file.
15236
15237 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15238
15239         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15240         XMM-moves are used for copying on small sizes.
15241
15242 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15243
15244         * wcsmbs/Makefile (strop-tests): Add wcschr.
15245         * wcsmbs/test-wcschr.c: New file.
15246         * string/test-strchr.c: Update.
15247         Add wcschr support.
15248         (WIDE): New macro.
15249
15250 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15251
15252         * wcsmbs/Makefile (strop-tests): Add wcslen.
15253         * wcsmbs/test-wcslen.c: New file.
15254         * string/test-strlen.c: Update.
15255         Add wcslen support.
15256         (WIDE): New macro.
15257
15258 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15259
15260         * po/it.po: Update from translation team.
15261
15262 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15263
15264         * sysdeps/x86_64/wcscmp.S: Update.
15265         Fix wrong comparison semantics.
15266         wcscmp shall use signed comparison not unsigned.
15267         Don't use substraction to avoid overflow bug.
15268         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15269         * wcsmbc/wcscmp.c: Likewise.
15270         * string/test-strcmp.c: Likewise.
15271         Add new tests to check cases with negative values.
15272
15273 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15274
15275         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15276         * sysdeps/x86_64/dla.h: ...here.  New file.
15277         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15278         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15279         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15280         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15281         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15282         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15283         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15284         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15285         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15286
15287 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15288
15289         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15290         __ynl_finite aliases.
15291
15292 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15293
15294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15295
15296         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15297         define DLA_FMA.
15298         [DLA_FMA] (EMULV): Use DLA_FMA.
15299         [DLA_FMA] (MUL12): Use EMULV.
15300         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15301         that are not needed.
15302         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15303         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15304         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15305         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15306         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15307         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15308         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15309
15310 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15311
15312         * math/s_nan.c: Undef __nan.
15313         * math/s_nanf.c: Undef __nanf.
15314         * math/s_nanl.c: Undef __nanl.
15315         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15316         "math_private.h".
15317
15318 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15319
15320         * math/s_catan.c: Add branch predictions.
15321         * math/s_catanf.c: Likewise.
15322         * math/s_catanh.c: Likewise.
15323         * math/s_catanhf.c: Likewise.
15324         * math/s_catanhl.c: Likewise.
15325         * math/s_catanl.c: Likewise.
15326         * math/s_cexp.c: Likewise.
15327         * math/s_cexpf.c: Likewise.
15328         * math/s_cexpl.c: Likewise.
15329         * math/s_clog.c: Likewise.
15330         * math/s_clog10.c: Likewise.
15331         * math/s_clog10f.c: Likewise.
15332         * math/s_clog10l.c: Likewise.
15333         * math/s_clogf.c: Likewise.
15334         * math/s_clogl.c: Likewise.
15335         * math/s_csqrt.c: Likewise.
15336         * math/s_csqrtf.c: Likewise.
15337         * math/s_csqrtl.c: Likewise.
15338         * math/s_ctanf.c: Likewise.
15339         * math/s_ctanh.c: Likewise.
15340         * math/s_ctanhf.c: Likewise.
15341         * math/s_ctanhl.c: Likewise.
15342         * math/s_ctanl.c: Likewise.
15343
15344         * math/math_private.h: Define __nan, __nanf, __nanl.
15345         * math/s_cacosh.c: Include <math_private.h>.
15346         * math/s_cacoshl.c: Likewise.
15347         * math/s_casinh.c: Likewise.
15348         * math/s_casinhf.c: Likewise.
15349         * math/s_casinhl.c: Likewise.
15350         * math/s_ccos.c: Rely entire on ccosh.
15351         * math/s_ccosf.c: Rely entire on ccoshf.
15352         * math/s_ccosl.c: Rely entirely on ccoshl.
15353         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15354         Remove tests for FE_INVALID.
15355         * math/s_ccoshf.c: Likewise.
15356         * math/s_ccoshl.c: Likewise.
15357         * math/s_csin.c: Likewise.
15358         * math/s_csinf.c: Likewise.
15359         * math/s_csinh.c Likewise.
15360         * math/s_csinhf.c: Likewise.
15361         * math/s_csinhl.c: Likewise.
15362         * math/s_csinl.c: Likewise.
15363         * math/s_ctan.c: Likewise.
15364         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15365         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15366         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15367
15368 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15369
15370         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15371         compilation problems.
15372
15373         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15374         __builtin_expect.
15375
15376 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15377
15378         * sysdeps/i386/configure.in: Test for -mfma4 option.
15379         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15380         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15381         COMMON_CPUID_INDEX_80000001.
15382         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15383         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15384         use it if FMA3 is not supported.
15385         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15386
15387         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15388         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15389
15390 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15391
15392         [BZ #12892]
15393         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15394         it would create a cycle with a link time dependency.
15395
15396 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15397
15398         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15399         instruction.
15400         * string/Makefile (strop-tests): Add rawmemchr.
15401         * string/test-rawmemchr.c: New file.
15402
15403         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15404         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15405         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15406         when compiling str{,n}casecmp and when AVX is available.  Hook up
15407         new optimized code in initializers.
15408
15409 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15410
15411         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15412         __feraiseexcept instead of feraiseexcept.
15413
15414 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15415
15416         * math/math_private.h: Define defaults for libc_fetestexcept and
15417         libc_feupdateenv.
15418         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15419         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15420         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15421         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15422         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15423         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15424         libc_fetestexcept and libc_feupdateenv.
15425
15426         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15427         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15428         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15429         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15430         libc_feholdexcept_setround.
15431
15432         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15433         Add s_nearbyint-c and s_nearbyintf-c.
15434         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15435         nearbyintf inlines.
15436         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15437         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15438         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15439         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15440
15441         * math/math_private.h: Define defaults for libc_fegetround,
15442         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15443         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15444         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15445         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15446         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15447         standard functions.
15448         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15449         Remove comments and hacks for old compiler versions.
15450         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15451         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15452         libc_feholdexceptl.
15453
15454 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15455
15456         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15457         (__feraiseexcept_renamed): Add __NTH.
15458         (feraiseexcept): Add __NTH.  Rename local variables to fix
15459         namespace violations.
15460
15461 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15462
15463         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15464
15465         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15466
15467         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15468         recently added interfaces.
15469         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15470
15471         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15472         about macro parameter expansion.
15473
15474         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15475         __NO_MATH_INLINES is defined.  Cleanups.
15476
15477         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15478         and __floorf is target has SSE4.1.
15479         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15480         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15481         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15482         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15483
15484         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15485         name.
15486         (floorf): Likewise.
15487
15488         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15489
15490 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15491
15492         * misc/sys/cdefs.h: Fix last change.
15493
15494         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15495         database lookup.
15496
15497 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15498
15499         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15500
15501         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15502         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15503         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15504         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15505         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15506         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15507         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15508         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15509         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15510         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15511         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15512         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15513         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15514         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15515         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15516         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15517         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15518         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15519         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15520         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15521         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15522         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15523
15524         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15525         ceil, ceilf, floor, floorf.
15526
15527         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15528         Perform IRELATIVE relocations last.
15529
15530         * elf/do-rel.h: Add another parameter nrelative, replacing the
15531         local variable with the same name.  Change name of the function
15532         to end in Rel or Rela (uppercase).
15533         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15534         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15535         elf_dynamic_do_##reloc function.
15536
15537 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15538
15539         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15540         is sufficient, at least on modern CPUs.
15541
15542         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15543
15544         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15545         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15546
15547         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15548         __expl_finite.
15549         * math/bits/math-finite.h: Add entries for exp.
15550         * math/e_expl.c: Add __*_finite alias.
15551         * sysdeps/i386/fpu/e_exp.S: Likewise.
15552         * sysdeps/i386/fpu/e_expf.S: Likewise.
15553         * sysdeps/i386/fpu/e_expl.c: Likewise.
15554         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15555         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15556         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15557         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15558         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15559         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15560         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15561
15562         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15563         is sufficient, at least on modern CPUs.
15564
15565         * ctype/ctype-info.c (__ctype_init): Define.
15566         * include/ctype.h (__ctype_init): Declare.
15567         (__ctype_b_loc): The variable is always initialized.
15568         (__ctype_toupper_loc): Likewise.
15569         (__ctype_tolower_loc): Likewise.
15570         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15571         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15572
15573 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15574
15575         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15576
15577         * configure.in: Also look in $cxxmachine/include for C++ system
15578         headers.
15579
15580 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15581
15582         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15583         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15584         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15585         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15586         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15587         (USE_AS_WMEMCMP): New macro.
15588         Fixing indents.
15589         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15590         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15591         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15592         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15593         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15594         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15595         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15596         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15597         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15598         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15599         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15600         (USE_AS_WMEMCMP): New macro.
15601         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15602         * sysdeps/string/test-memcmp.c: Update.
15603         Fix simple_wmemcmp.
15604         Add new tests.
15605         * wcsmbs/wmemcmp.c: Update.
15606         (WMEMCMP): New macro.
15607         Fix overflow bug.
15608
15609 2011-10-12  Andreas Jaeger  <aj@suse.de>
15610
15611         [BZ #13268]
15612         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15613
15614 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15615
15616         * libio/iofwide.c (do_length): Avoid warning.
15617
15618         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15619
15620 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15621
15622         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15623
15624         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15625         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15626         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15627         * sysdeps/i386/i686/fpu/e_log.S: New file.
15628         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15629         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15630
15631         * ctype/ctype.h: Add support for inlined isXXX functions when
15632         compiling C++ code.
15633
15634 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15635
15636         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15637
15638         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15639
15640 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15641
15642         [BZ #13291]
15643         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15644
15645 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15646
15647         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15648         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15649         feraiseexcept.
15650
15651         * sysdeps/x86_64/memrchr.S: Check for zero size.
15652
15653         * string/stratcliff.c: Add memrchr tests.
15654
15655 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15656
15657         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15658         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15659         rawmemchr-sse2 rawmemchr-sse2-bsf.
15660         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15661         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15662         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15663         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15664         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15665         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15666         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15667         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15668         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15669         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15670         * string/memrchr.c (MEMRCHR): New macro.
15671
15672 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15673
15674         Add integration with gcc's -ffinite-math-only and optimize wrapper
15675         functions in libm.
15676         * Versions.def: Define GLIBC_2.15 version for libm.
15677         * math/Makefile (headers): Add bits/math-finite.h.
15678         * math/bits/math-finite.h: New file.
15679         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15680         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15681         * math/e_acoshl.c: Add __*_finite alias.
15682         * math/e_acosl.c: Likewise.
15683         * math/e_asinl.c: Likewise.
15684         * math/e_atan2l.c: Likewise.
15685         * math/e_atanhl.c: Likewise.
15686         * math/e_coshl.c: Likewise.
15687         * math/e_exp10.c: Likewise.
15688         * math/e_exp10f.c: Likewise.
15689         * math/e_exp10l.c: Likewise.
15690         * math/e_exp2l.c: Likewise.
15691         * math/e_fmodl.c: Likewise.
15692         * math/e_gammal_r.c: Likewise.
15693         * math/e_hypotl.c: Likewise.
15694         * math/e_j0l.c: Likewise.
15695         * math/e_j1l.c: Likewise.
15696         * math/e_jnl.c: Likewise.
15697         * math/e_lgammal_r.c: Likewise.
15698         * math/e_log10l.c: Likewise.
15699         * math/e_log2l.c: Likewise.
15700         * math/e_logl.c: Likewise.
15701         * math/e_powl.c: Likewise.
15702         * math/e_sinhl.c: Likewise.
15703         * math/e_sqrtl.c: Likewise.
15704         * math/e_scalb.c: Completely rewritten and optimized.
15705         * math/e_scalbf.c: Likewise.
15706         * math/e_scalbl.c: Likewise.
15707         * math/w_acos.c: Likewise.
15708         * math/w_acosf.c: Likewise.
15709         * math/w_acosl.c: Likewise.
15710         * math/w_acosh.c: Likewise.
15711         * math/w_acoshf.c: Likewise.
15712         * math/w_acoshl.c: Likewise.
15713         * math/w_asin.c: Likewise.
15714         * math/w_asinf.c: Likewise.
15715         * math/w_asinl.c: Likewise.
15716         * math/w_atan2.c: Likewise.
15717         * math/w_atan2f.c: Likewise.
15718         * math/w_atan2l.c: Likewise.
15719         * math/w_atanh.c: Likewise.
15720         * math/w_atanhf.c: Likewise.
15721         * math/w_atanhl.c: Likewise.
15722         * math/w_exp10.c: Likewise.
15723         * math/w_exp10f.c: Likewise.
15724         * math/w_exp10l.c: Likewise.
15725         * math/w_fmod.c: Likewise.
15726         * math/w_fmodf.c: Likewise.
15727         * math/w_fmodl.c: Likewise.
15728         * math/w_j0.c: Likewise.
15729         * math/w_j0f.c: Likewise.
15730         * math/w_j0l.c: Likewise.
15731         * math/w_j1.c: Likewise.
15732         * math/w_j1f.c: Likewise.
15733         * math/w_j1l.c: Likewise.
15734         * math/w_jn.c: Likewise.
15735         * math/w_jnf.c: Likewise.
15736         * math/w_log.c: Likewise.
15737         * math/w_logf.c: Likewise.
15738         * math/w_logl.c: Likewise.
15739         * math/w_log10.c: Likewise.
15740         * math/w_log10f.c: Likewise.
15741         * math/w_log10l.c: Likewise.
15742         * math/w_log2.c: Likewise.
15743         * math/w_log2f.c: Likewise.
15744         * math/w_log2l.c: Likewise.
15745         * math/w_pow.c: Likewise.
15746         * math/w_powf.c: Likewise.
15747         * math/w_powl.c: Likewise.
15748         * math/w_remainder.c: Likewise.
15749         * math/w_remainderf.c: Likewise.
15750         * math/w_remainderl.c: Likewise.
15751         * math/w_scalb.c: Likewise.
15752         * math/w_scalbf.c: Likewise.
15753         * math/w_scalbl.c: Likewise.
15754         * math/w_sqrt.c: Likewise.
15755         * math/w_sqrtf.c: Likewise.
15756         * math/w_sqrtl.c: Likewise.
15757         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15758         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15759         used.
15760         * math/math_private.h: Declare __kernel_standard_f.
15761         * math/w_cosh.c: Remove cruft and optimize a bit.
15762         * math/w_coshf.c: Likewise.
15763         * math/w_coshl.c: Likewise.
15764         * math/w_exp2.c: Likewise.
15765         * math/w_exp2f.c: Likewise.
15766         * math/w_exp2l.c: Likewise.
15767         * math/w_hypot.c: Likewise.
15768         * math/w_hypotf.c: Likewise.
15769         * math/w_hypotl.c: Likewise.
15770         * math/w_lgamma.c: Likewise.
15771         * math/w_lgamma_r.c: Likewise.
15772         * math/w_lgammaf.c: Likewise.
15773         * math/w_lgammaf_r.c: Likewise.
15774         * math/w_lgammal.c: Likewise.
15775         * math/w_lgammal_r.c: Likewise.
15776         * math/w_sinh.c: Likewise.
15777         * math/w_sinhf.c: Likewise.
15778         * math/w_sinhl.c: Likewise.
15779         * math/w_tgamma.c: Likewise.
15780         * math/w_tgammaf.c: Likewise.
15781         * math/w_tgammal.c: Likewise.
15782         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15783         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15784         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15785         Minor optimizations.  Pretty printing.  Remove cruft.
15786         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15787         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15788         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15789         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15790         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15791         * sysdeps/i386/fpu/e_asin.S: Likewise.
15792         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15793         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15794         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15795         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15796         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15797         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15798         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15799         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15800         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15801         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15802         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15803         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15804         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15805         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15806         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15807         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15808         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15809         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15810         * sysdeps/i386/fpu/e_log.S: Likewise.
15811         * sysdeps/i386/fpu/e_log10.S: Likewise.
15812         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15813         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15814         * sysdeps/i386/fpu/e_log2.S: Likewise.
15815         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15816         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15817         * sysdeps/i386/fpu/e_logf.S: Likewise.
15818         * sysdeps/i386/fpu/e_logl.S: Likewise.
15819         * sysdeps/i386/fpu/e_pow.S: Likewise.
15820         * sysdeps/i386/fpu/e_powf.S: Likewise.
15821         * sysdeps/i386/fpu/e_powl.S: Likewise.
15822         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15823         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15824         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15825         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15826         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15827         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15828         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15829         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15830         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15831         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15832         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15833         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15834         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15835         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15836         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15837         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15838         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15839         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15840         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15841         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15842         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15843         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15844         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15845         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15846         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15847         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15848         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15849         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15850         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15851         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15852         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15853         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15854         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15855         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15856         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15857         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15858         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15859         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15860         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15861         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15862         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15863         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15864         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15865         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15866         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15867         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15868         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15869         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15870         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15871         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15872         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15873         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15874         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15875         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15876         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15877         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15878         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15879         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15880         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15881         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15882         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15883         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15884         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15885         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15886         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15887         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15888         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15889         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15890         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15891         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15892         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15893         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15894         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15895         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15896         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15897         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15898         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15899         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15900         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15901         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15904         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15905         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15906         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15907         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15908         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15909         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15910         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15911         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15912         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15913         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15914         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15915         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15916         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15917         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15919         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15920         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15921         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15922         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15923         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15924         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15925         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15926         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15927         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15928         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15929         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15930         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15931         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15932         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15933         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15934         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15935         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15936         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15937         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15938         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15939         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15940         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15941         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15942         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15943         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15944         (__isnanf): Likewise.
15945         (__isinf_ns): Likewise.
15946         (__isinf_nsf): Likewise.
15947         (__finite): Likewise.
15948         (__finitef): Likewise.
15949         (__ieee754_sqrt): Define as macro.
15950         (__ieee754_sqrtf): Define as macro.
15951         (__ieee754_sqrtl): Define as macro.
15952         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15953         inlined copy.
15954         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15955         __FINITE_MATH_ONLY__ consistent.
15956         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15957
15958 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15959
15960         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15961         of rawmemchr.
15962
15963         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15964
15965 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15966
15967         * po/ja.po: Update from translation team.
15968
15969 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15970
15971         * locale/programs/locarchive.c (prepare_address_space): New function.
15972         (create_archive, enlarge_archive, open_archive): Use it.
15973
15974         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15975         inside [SHARED], where it is used.
15976
15977         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15978
15979         * nss/getent.c (netgroup_keys): Remove unused variable.
15980         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15981
15982 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15983
15984         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15985         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15986         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15987         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15988         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15989         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15990         * math/Makefile (libm-calls): Add s_isinf_ns.
15991         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15992         * math/multc3.c: Likewise.
15993         * math/s_casin.c: Likewise.
15994         * math/s_casinf.c: Likewise.
15995         * math/s_casinl.c: Likewise.
15996         * math/s_ccos.c: Likewise.
15997         * math/s_ccosf.c: Likewise.
15998         * math/s_ccosl.c: Likewise.
15999         * math/s_ctan.c: Likewise.
16000         * math/s_ctanf.c: Likewise.
16001         * math/s_ctanh.c: Likewise.
16002         * math/s_ctanhf.c: Likewise.
16003         * math/s_ctanhl.c: Likewise.
16004         * math/s_ctanl.c: Likewise.
16005         * math/w_fmod.c: Likewise.
16006         * math/w_fmodf.c: Likewise.
16007         * math/w_fmodl.c: Likewise.
16008         * math/w_remainder.c: Likewise.
16009         * math/w_remainderf.c: Likewise.
16010         * math/w_remainderl.c: Likewise.
16011         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16012         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16013         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16014         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16015         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16016         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16017         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16018         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16019
16020         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16021         of the number.
16022         * stdio-common/printf_fphex.c: Likewise.
16023         * stdio-common/printf_size.c: Likewise.
16024
16025         * math/e_exp10.c: Include math_private.h using <...> not "...".
16026         * math/e_exp10f.c: Likewise.
16027         * math/e_exp10l.c: Likewise.
16028         * math/e_exp2l.c: Likewise.
16029         * math/e_j0l.c: Likewise.
16030         * math/e_j1l.c: Likewise.
16031         * math/e_jnl.c: Likewise.
16032         * math/e_lgammal_r.c: Likewise.
16033         * math/e_rem_pio2l.c: Likewise.
16034         * math/e_scalb.c: Likewise.
16035         * math/e_scalbf.c: Likewise.
16036         * math/e_scalbl.c: Likewise.
16037         * math/k_cosl.c: Likewise.
16038         * math/k_sinl.c: Likewise.
16039         * math/k_tanl.c: Likewise.
16040         * math/s_cacoshf.c: Likewise.
16041         * math/s_catan.c: Likewise.
16042         * math/s_catanf.c: Likewise.
16043         * math/s_catanh.c: Likewise.
16044         * math/s_catanhf.c: Likewise.
16045         * math/s_catanhl.c: Likewise.
16046         * math/s_catanl.c: Likewise.
16047         * math/s_ccosh.c: Likewise.
16048         * math/s_ccoshf.c: Likewise.
16049         * math/s_ccoshl.c: Likewise.
16050         * math/s_cexp.c: Likewise.
16051         * math/s_cexpf.c: Likewise.
16052         * math/s_cexpl.c: Likewise.
16053         * math/s_clog.c: Likewise.
16054         * math/s_clog10.c: Likewise.
16055         * math/s_clog10f.c: Likewise.
16056         * math/s_clog10l.c: Likewise.
16057         * math/s_clogf.c: Likewise.
16058         * math/s_clogl.c: Likewise.
16059         * math/s_csin.c: Likewise.
16060         * math/s_csinf.c: Likewise.
16061         * math/s_csinh.c: Likewise.
16062         * math/s_csinhf.c: Likewise.
16063         * math/s_csinhl.c: Likewise.
16064         * math/s_csinl.c: Likewise.
16065         * math/s_csqrt.c: Likewise.
16066         * math/s_csqrtf.c: Likewise.
16067         * math/s_csqrtl.c: Likewise.
16068         * math/s_ctan.c: Likewise.
16069         * math/s_ctanf.c: Likewise.
16070         * math/s_ctanh.c: Likewise.
16071         * math/s_ctanhf.c: Likewise.
16072         * math/s_ctanhl.c: Likewise.
16073         * math/s_ctanl.c: Likewise.
16074         * math/s_ldexp.c: Likewise.
16075         * math/s_ldexpf.c: Likewise.
16076         * math/s_ldexpl.c: Likewise.
16077         * math/s_significand.c: Likewise.
16078         * math/s_significandf.c: Likewise.
16079         * math/s_significandl.c: Likewise.
16080         * math/w_acos.c: Likewise.
16081         * math/w_acosf.c: Likewise.
16082         * math/w_acosh.c: Likewise.
16083         * math/w_acoshf.c: Likewise.
16084         * math/w_acoshl.c: Likewise.
16085         * math/w_acosl.c: Likewise.
16086         * math/w_asin.c: Likewise.
16087         * math/w_asinf.c: Likewise.
16088         * math/w_asinl.c: Likewise.
16089         * math/w_atan2.c: Likewise.
16090         * math/w_atan2f.c: Likewise.
16091         * math/w_atan2l.c: Likewise.
16092         * math/w_atanh.c: Likewise.
16093         * math/w_atanhf.c: Likewise.
16094         * math/w_atanhl.c: Likewise.
16095         * math/w_cosh.c: Likewise.
16096         * math/w_coshf.c: Likewise.
16097         * math/w_coshl.c: Likewise.
16098         * math/w_dremf.c: Likewise.
16099         * math/w_exp10.c: Likewise.
16100         * math/w_exp10f.c: Likewise.
16101         * math/w_exp10l.c: Likewise.
16102         * math/w_exp2.c: Likewise.
16103         * math/w_exp2f.c: Likewise.
16104         * math/w_fmod.c: Likewise.
16105         * math/w_fmodf.c: Likewise.
16106         * math/w_fmodl.c: Likewise.
16107         * math/w_hypot.c: Likewise.
16108         * math/w_hypotf.c: Likewise.
16109         * math/w_hypotl.c: Likewise.
16110         * math/w_j0.c: Likewise.
16111         * math/w_j0f.c: Likewise.
16112         * math/w_j0l.c: Likewise.
16113         * math/w_j1.c: Likewise.
16114         * math/w_j1f.c: Likewise.
16115         * math/w_j1l.c: Likewise.
16116         * math/w_jn.c: Likewise.
16117         * math/w_jnf.c: Likewise.
16118         * math/w_jnl.c: Likewise.
16119         * math/w_lgamma.c: Likewise.
16120         * math/w_lgamma_r.c: Likewise.
16121         * math/w_lgammaf.c: Likewise.
16122         * math/w_lgammaf_r.c: Likewise.
16123         * math/w_lgammal.c: Likewise.
16124         * math/w_lgammal_r.c: Likewise.
16125         * math/w_log.c: Likewise.
16126         * math/w_log10.c: Likewise.
16127         * math/w_log10f.c: Likewise.
16128         * math/w_log10l.c: Likewise.
16129         * math/w_log2.c: Likewise.
16130         * math/w_log2f.c: Likewise.
16131         * math/w_log2l.c: Likewise.
16132         * math/w_logf.c: Likewise.
16133         * math/w_logl.c: Likewise.
16134         * math/w_pow.c: Likewise.
16135         * math/w_powf.c: Likewise.
16136         * math/w_powl.c: Likewise.
16137         * math/w_remainder.c: Likewise.
16138         * math/w_remainderf.c: Likewise.
16139         * math/w_remainderl.c: Likewise.
16140         * math/w_scalb.c: Likewise.
16141         * math/w_scalbf.c: Likewise.
16142         * math/w_scalbl.c: Likewise.
16143         * math/w_sinh.c: Likewise.
16144         * math/w_sinhf.c: Likewise.
16145         * math/w_sinhl.c: Likewise.
16146         * math/w_sqrt.c: Likewise.
16147         * math/w_sqrtf.c: Likewise.
16148         * math/w_sqrtl.c: Likewise.
16149         * math/w_tgamma.c: Likewise.
16150         * math/w_tgammaf.c: Likewise.
16151         * math/w_tgammal.c: Likewise.
16152
16153         * po/ja.po: Update from translation team.
16154
16155 2011-09-29  Andreas Jaeger  <aj@suse.de>
16156
16157         [BZ #13179]
16158         * sunrpc/netname.c (netname2host): Fix logic.
16159
16160         [BZ #6779]
16161         [BZ #6783]
16162         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16163         correctly.
16164         * math/w_remainder.c (__remainder): Likewise.
16165         * math/w_remainderf.c (__remainderf): Likewise.
16166         * math/libm-test.inc (remainder_test): Add test cases.
16167
16168 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16169
16170         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16171         sdiv_qrnnd.
16172
16173 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16174
16175         * string/test-memcmp.c: Avoid unncessary #defines.
16176         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16177
16178 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16179
16180         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16181         Use new sse2 version for core i3 - i7 as it's faster
16182         than sse42 version.
16183         (bit_Prefer_PMINUB_for_stringop): New.
16184         * sysdeps/x86_64/rawmemchr.S: Update.
16185         Replace with faster SSE2 version.
16186         * sysdeps/x86_64/memrchr.S: New file.
16187         * sysdeps/x86_64/memchr.S: Update.
16188         Replace with faster SSE2 version.
16189
16190 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16191
16192         * elf/dl-load.c (lose): Add cast to avoid warning.
16193
16194 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16195
16196         * po/ca.po: Update from translation team.
16197
16198         * inet/getnetgrent_r.c: Hook up nscd.
16199         * nscd/Makefile (routines): Add nscd_netgroup.
16200         (nscd-modules): Add netgroupcache.
16201         (CFLAGS-netgroupcache.c): Define.
16202         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16203         (cache_search): Add const to second parameter.
16204         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16205         INNETGR.
16206         (dbs): Add netgrdb entry.
16207         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16208         (verify_persistent_db): Handle netgrdb.
16209         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16210         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16211         GETFDNETGR.
16212         (netgroup_response_header): Define.
16213         (innetgroup_response_header): Define.
16214         (datahead): Add netgroup_response_header and innetgroup_response_header
16215         elements.
16216         * nscd/nscd.conf: Add entries for netgroup cache.
16217         * nscd/nscd.h (dbtype): Add netgrdb.
16218         (_PATH_NSCD_NETGROUP_DB): Define.
16219         (netgroup_iov_disabled): Declare.
16220         (xmalloc, xcalloc, xrealloc): Move declarations here.
16221         (cache_search): Adjust prototype.
16222         Add netgroup-related prototypes.
16223         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16224         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16225         (__nscd_innetgr): Declare.
16226         * nscd/selinux.c (perms): Use access_vector_t as element type and
16227         add netgroup-related initializers.
16228         * nscd/netgroupcache.c: New file.
16229         * nscd/nscd_netgroup.c: New file.
16230         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16231         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16232         For four parameters use innetgr.
16233         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16234         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16235         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16236         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16237
16238         * nscd/connections.c (register_traced_file): Don't register file
16239         for disabled databases.
16240
16241 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16242
16243         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16244
16245         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16246         from tree and freeing node.
16247
16248 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16249
16250         * nss/nsswitch.c (__nss_database_lookup): Handle
16251         nss_parse_service_list out of memory case.
16252
16253 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16254
16255         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16256         out of memory case.
16257
16258 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16259
16260         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16261         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16262         pass it down.
16263         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16264         elf_machine_rela, elf_machine_lazy_rel.
16265         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16266         (ELF_DYNAMIC_DO_REL): Likewise.
16267         (ELF_DYNAMIC_DO_RELA): Likewise.
16268         (ELF_DYNAMIC_RELOCATE): Likewise.
16269         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16270         to ELF_DYNAMIC_DO_REL.
16271         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16272         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16273         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16274         elf_machine_rela.
16275         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16276         skip_ifunc, don't call ifunc function if non-zero.
16277         (elf_machine_rela): Likewise.
16278         (elf_machine_lazy_rel): Likewise.
16279         (elf_machine_lazy_rela): Likewise.
16280         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16281         (elf_machine_lazy_rel): Likewise.
16282         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16283         Likewise.
16284         (elf_machine_lazy_rel): Likewise.
16285         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16286         Likewise.
16287         (elf_machine_lazy_rel): Likewise.
16288         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16289         (elf_machine_lazy_rel): Likewise.
16290         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16291         (elf_machine_lazy_rel): Likewise.
16292         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16293         (elf_machine_lazy_rel): Likewise.
16294         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16295         (elf_machine_lazy_rel): Likewise.
16296         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16297         (elf_machine_lazy_rel): Likewise.
16298         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16299         (elf_machine_lazy_rel): Likewise.
16300
16301 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16302
16303         * nss/nss_files/files-init.c (_nss_files_init): Use static
16304         initialization for all the *_traced_file variables.
16305
16306 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16307
16308         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16309
16310 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16311
16312         [BZ #13226]
16313         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16314
16315 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16316
16317         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16318         Reread the line before reparsing it.
16319
16320 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16321
16322         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16323
16324 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16325             Maxim Kuvyrkov  <maxim@codesourcery.com>
16326             Joseph Myers  <joseph@codesourcery.com>
16327
16328         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16329         if needed for __stack_chk_guard.
16330
16331 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16332
16333         * sysdeps/posix/spawni.c (script_execute): Always define it.
16334         It will be optimized away if unused.
16335         (maybe_script_execute): New function.
16336         (__spawni): Call it.
16337
16338         * Makerules: Don't include tls.make.
16339         (config-tls): Always set to thread.
16340         * tls.make.c: File removed.
16341
16342 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16343
16344         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16345         * config.make.in (CPPFLAGS-config): New substituted variable.
16346
16347 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16348
16349         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16350
16351         [BZ #13192]
16352         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16353         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16354
16355 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16356
16357         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16358         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16359         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16360         (CALL_FAIL): Likewise.
16361         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16362         (CALL_FAIL): Macro removed.
16363         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16364
16365 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16366
16367         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16368         for __FINITE_MATH_ONLY__ == 1.
16369
16370 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16371
16372         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16373         __ieee754_sqrt instead of sqrt.
16374         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16375         __ieee754_sqrtf instead of sqrtf.
16376         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16377         __floorf instead of floorf.
16378         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16379         __floorf, __truncf instead of floorf, truncf.
16380
16381 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16382
16383         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16384
16385         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16386         __extern_always_inline.
16387         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16388         32-bit.
16389
16390 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16391
16392         * elf/rtld.c (dl_main): Also relocate in dependency order when
16393         doing symbol dependency testing.
16394
16395 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16396
16397         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16398         Always define `refsym'.
16399
16400 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16401
16402         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16403         (__FD_ELT): Renamed from __FDELT.
16404         * misc/bits/select2.h (__FD_ELT): Likewise.
16405         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16406         __FD_MASK instead of __FDELT, __FDMASK.
16407         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16408         Likewise.
16409         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16410         Likewise.
16411
16412         * elf/Makefile (gen-ldd): Fix pattern.
16413
16414         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16415         (init_tls): Likewise.
16416
16417 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16418
16419         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16420
16421 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16422
16423         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16424         `struct cmsghdr *' instead of `void *'.
16425         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16426         Likewise.
16427
16428 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16429
16430         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16431         if non-absolute.
16432         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16433         ldd_rewrite_script.
16434
16435 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16436
16437         * configure.in: Remove --with-tls option.
16438         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16439         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16440         out in case it is missing.
16441         * sysdeps/ia64/elf/configure.in: Likewise.
16442         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16443         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16444         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16445         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16446         * sysdeps/sh/elf/configure.in: Likewise.
16447         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16448         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16449         * sysdeps/x86_64/elf/configure.in: Likewise.
16450         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16451         * sysdeps/mach/hurd/tls.h: Likewise.
16452
16453         [BZ #13067]
16454         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16455
16456         [BZ #13090]
16457         * configure.in: Fix use of AC_INIT.
16458
16459         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16460
16461 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16462
16463         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16464         __set_errno.
16465         * malloc/hooks.c: Likewise.
16466
16467         [BZ #11929]
16468         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16469         variables statically.
16470         (narenas): Initialize.
16471         (list_lock): Initialize.
16472         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16473         initializtion of main_arena and list_lock.  Small cleanups.
16474         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16475         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16476         Add initializers to main_arena and mp_.
16477         (malloc_state): Remove pagesize member.  Change all users to use
16478         GLRO(dl_pagesize).
16479
16480         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16481         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16482         is always initialized.
16483
16484         * malloc/malloc.c: Removed unused configurations and dead code.
16485         * malloc/arena.c: Likewise.
16486         * malloc/hooks.c: Likewise.
16487         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16488
16489         * include/tls.h: Removed.  USE___THREAD must always be defined.
16490         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16491         * elf/dl-libc.c: Likewise.
16492         * elf/dl-tsd.c: Likewise.
16493         * include/errno.h: Likewise.
16494         * include/netdb.h: Likewise.
16495         * include/resolv.h: Likewise.
16496         * inet/herrno-loc.c: Likewise.
16497         * inet/herrno.c: Likewise.
16498         * malloc/arena.c: Likewise.
16499         * malloc/hooks.c: Likewise.
16500         * malloc/malloc.c: Likewise.
16501         * resolv/res-state.c: Likewise.
16502         * resolv/res_libc.c: Likewise.
16503         * sysdeps/i386/dl-machine.h: Likewise.
16504         * sysdeps/ia64/dl-machine.h: Likewise.
16505         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16506         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16507         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16508         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16509         * sysdeps/sh/dl-machine.h: Likewise.
16510         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16511         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16512         * sysdeps/unix/i386/sysdep.S: Likewise.
16513         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16514         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16515         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16516         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16517         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16518         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16519         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16520         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16521         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16522         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16523         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16524         * sysdeps/x86_64/dl-machine.h: Likewise.
16525         * tls.make.c: Likewise.
16526
16527         * configure.in: Remove --with-__thread option.  Make tests for
16528         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16529         tls_model attribute fail if no support is available.  Remove
16530         USE_IN_LIBIO.
16531         * Makeconfig: Adjust for dropped configure option.  All features are
16532         now mandatory.
16533         * Makerules: Likewise.
16534         * Versions.def: Likewise.
16535         * argp/argp-fmtstream.c: Likewise.
16536         * argp/argp-fmtstream.h: Likewise.
16537         * argp/argp-help.c: Likewise.
16538         * assert/assert.c: Likewise.
16539         * config.h.in: Likewise.
16540         * config.make.in: Likewise.
16541         * configure: Likewise.
16542         * configure.in: Likewise.
16543         * csu/Versions: Likewise.
16544         * csu/init.c: Likewise.
16545         * elf/tst-audit2.c: Likewise.
16546         * elf/tst-tls10.c: Likewise.
16547         * elf/tst-tls10.h: Likewise.
16548         * elf/tst-tls11.c: Likewise.
16549         * elf/tst-tls12.c: Likewise.
16550         * elf/tst-tls14.c: Likewise.
16551         * elf/tst-tlsmod11.c: Likewise.
16552         * elf/tst-tlsmod12.c: Likewise.
16553         * elf/tst-tlsmod13.c: Likewise.
16554         * elf/tst-tlsmod13a.c: Likewise.
16555         * elf/tst-tlsmod14a.c: Likewise.
16556         * elf/tst-tlsmod15b.c: Likewise.
16557         * elf/tst-tlsmod16a.c: Likewise.
16558         * elf/tst-tlsmod16b.c: Likewise.
16559         * elf/tst-tlsmod7.c: Likewise.
16560         * elf/tst-tlsmod8.c: Likewise.
16561         * elf/tst-tlsmod9.c: Likewise.
16562         * gmon/gmon.c: Likewise.
16563         * grp/fgetgrent_r.c: Likewise.
16564         * grp/putgrent.c: Likewise.
16565         * hurd/fopenport.c: Likewise.
16566         * include/libc-symbols.h: Likewise.
16567         * include/tls.h: Likewise.
16568         * intl/gettextP.h: Likewise.
16569         * intl/loadinfo.h: Likewise.
16570         * locale/global-locale.c: Likewise.
16571         * locale/localeinfo.h: Likewise.
16572         * mach/devstream.c: Likewise.
16573         * malloc/arena.c: Likewise.
16574         * malloc/set-freeres.c: Likewise.
16575         * misc/err.c: Likewise.
16576         * misc/getttyent.c: Likewise.
16577         * misc/mntent_r.c: Likewise.
16578         * posix/getopt.c: Likewise.
16579         * posix/wordexp.c: Likewise.
16580         * pwd/fgetpwent_r.c: Likewise.
16581         * resolv/Versions: Likewise.
16582         * resolv/res_hconf.c: Likewise.
16583         * shadow/fgetspent_r.c: Likewise.
16584         * shadow/putspent.c: Likewise.
16585         * stdio-common/printf_fphex.c: Likewise.
16586         * stdio-common/tmpfile.c: Likewise.
16587         * stdlib/abort.c: Likewise.
16588         * stdlib/fmtmsg.c: Likewise.
16589         * sunrpc/auth_unix.c: Likewise.
16590         * sunrpc/clnt_perr.c: Likewise.
16591         * sunrpc/clnt_tcp.c: Likewise.
16592         * sunrpc/clnt_udp.c: Likewise.
16593         * sunrpc/clnt_unix.c: Likewise.
16594         * sunrpc/openchild.c: Likewise.
16595         * sunrpc/svc_simple.c: Likewise.
16596         * sunrpc/svc_tcp.c: Likewise.
16597         * sunrpc/svc_udp.c: Likewise.
16598         * sunrpc/svc_unix.c: Likewise.
16599         * sunrpc/xdr.c: Likewise.
16600         * sunrpc/xdr_array.c: Likewise.
16601         * sunrpc/xdr_rec.c: Likewise.
16602         * sunrpc/xdr_ref.c: Likewise.
16603         * sunrpc/xdr_stdio.c: Likewise.
16604
16605 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16606
16607         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16608
16609 2011-07-03  Andreas Jaeger  <aj@suse.de>
16610
16611         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16612         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16613         regenerate with gen-libm-tests.pl.
16614
16615 2010-05-12  Petr Baudis  <pasky@suse.cz>
16616
16617         [BZ #11589]
16618         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16619         around j0() zero points by switching to j1().
16620         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16621         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16622         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16623         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16624
16625 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16626
16627         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16628         instead of 0.
16629         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16630         instead of 0.                              .
16631         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16632         Patch in part by Pavel Roskin <proski@gnu.org>.
16633
16634         [BZ #13138]
16635         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16636         realloc.
16637         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16638         Free memory block if necessary.
16639
16640         [BZ #12847]
16641         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16642         be NULL.  Don't lock in this case.
16643
16644 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16645
16646         * elf/elf.h (ELFOSABI_GNU): New macro.
16647         (ELFOSABI_LINUX): Define to that.
16648
16649 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16650
16651         * string/strncat.c (strncat): Undef the symbol in case it has been
16652         defined in bits/string.h.
16653
16654 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16655
16656         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16657
16658         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16659         link map.
16660
16661 2011-08-17  Andreas Jaeger  <aj@suse.de>
16662
16663         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16664
16665 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16666             Ian Lance Taylor  <iant@google.com>
16667
16668         * math/libm-test.inc (lround_test): New testcase.
16669         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16670
16671 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16672
16673         * Makefile: Remove support for automatic cvs check-ins.
16674         * Makerules: Likewise.
16675         * config.make.in: Likewise.
16676         * configure.in: Likewise.
16677         * intl/Makefile: Likewise.
16678         * locale/Makefile: Likewise.
16679         * po/Makefile: Likewise.
16680         * posix/Makefile: Likewise.
16681         * sysdeps/gnu/Makefile: Likewise.
16682         * sysdeps/mach/hurd/Makefile: Likewise.
16683         * sysdeps/sparc/sparc32/Makefile: Likewise.
16684
16685         [BZ #13118]
16686         * posix/Makefile (bug-regex32-ENV): Define.
16687         Patch by John Stanley <jpsinthemix@verizon.net>.
16688
16689         * misc/Makefile (headers): Add bits/select2.h.
16690         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16691         * misc/bits/select2.h: New file.
16692         * include/bits/select2.h: New file.
16693         * debug/Makefile (routines): Add fdelt_chk.
16694         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16695         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16696         FD_ISSET.
16697         * debug/fdelt_chk.c: New file.
16698
16699         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16700         * wcsmbs/test-wmemcmp.c: Likewise.
16701         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16702         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16703
16704 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16705
16706         * string/Makefile (strop-tests): Add memcmp.
16707         * string/test-wmemcmp.c: New file.
16708         * string/test-memcmp.c: Add wmemcmp support.
16709
16710 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16711
16712         [BZ #13153]
16713         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16714         2011-07-19 change.
16715
16716         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16717         garbage value in a __mach_port_mod_refs call in the cases of the
16718         task-self and thread-self ports.
16719
16720 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16721
16722         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16723
16724 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16725
16726         * elf/dl-load.c (lose): Check for non-null L.
16727
16728 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16729
16730         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16731
16732         * elf/dl-libc.c (dlerror_run): Pass back error code from
16733         dl_catch_error.
16734
16735         [BZ #13123]
16736         * elf/dl-load.c (lose): Free l_origin if it is valid.
16737
16738         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16739         names.
16740         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16741         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16742         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16743         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16744         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16745         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16746
16747 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16748
16749         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16750         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16751         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16752         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16753         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16754         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16755         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16756         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16757         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16758         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16759
16760 2011-08-15  Alan Modra  <amodra@gmail.com>
16761
16762         [BZ #13092]
16763         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16764         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16765         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16766         ppc_mcount to static-only-routines.
16767         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16768         __mcount_internal.
16769         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16770         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16771
16772 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16773
16774         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16775         for finite and infinity parameters.
16776
16777 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16778
16779         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16780         and add nop instructions for throughput optimization.
16781         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16782
16783 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16784
16785         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16786         aligned copy for power7 with vector-scalar instructions.
16787         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16788
16789 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16790
16791         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16792         AVX check.
16793
16794 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16795
16796         [BZ #13144]
16797         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16798         last change.
16799
16800 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16801
16802         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16803         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16804         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16805         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16806         clock_gettime.
16807
16808 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16809
16810         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16811         Forgot to demangle the pointer.
16812
16813         * sysdeps/i386/sysdep.h: Define atom_text_section.
16814         * sysdeps/x86_64/sysdep.h: Likewise.
16815         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16816         section with atom_text_section.
16817         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16818         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16819         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16820         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16821         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16822
16823         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16824         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16825         already be defined.  Change to take two parameters and don't assign
16826         result to variable.  Adjust all users.
16827         Define INTERNAL_GETTIME if not already defined.
16828         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16829         call.
16830         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16831         HAVE_CLOCK_GETTIME_VSYSCALL.
16832         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16833
16834         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16835         gettimeofday vsyscall, just use time.
16836
16837 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16838
16839         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16840         <errno.h>.
16841
16842 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16843
16844         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16845         syscall on x86-64.
16846         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16847         syscall.
16848         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16849         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16850         syscall if possible.
16851
16852 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16853
16854         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16855         e_ident.  Don't pass to find_mapsXX.
16856         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16857
16858 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16859
16860         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16861         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16862         * sysdeps/x86_64/multiarch/strchr.S: Update.
16863         Check bit_slow_BSF bit.
16864         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16865         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16866         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16867
16868 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16869
16870         [BZ #13134]
16871         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16872         before glibc 2.15.
16873         (tryshell): Define.
16874         (__spawni): Change last parameter to be flag.  Test
16875         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16876         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16877         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16878         * posix/spawni.c: Likewise.
16879         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16880         * posix/spawnp.c: Likewise.  Change normal version to use
16881         SPAWN_XFLAGS_USE_PATH.
16882         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16883         SPAWN_XFLAGS_TRY_SHELL.
16884
16885         [BZ #13150]
16886         * posix/glob.h: Remove gcc 1.x support.
16887
16888         [BZ #13068]
16889         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16890
16891 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16892
16893         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16894         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16895         strrchr-sse2-bsf
16896         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16897         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16898         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16899         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16900         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16901         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16902
16903 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16904
16905         * sysdeps/x86_64/wcscmp.S: New file.
16906
16907         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16908         wcscmp-c wcscmp-sse2
16909         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16910         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16911         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16912         * wcsmbs/wcscmp.c: Allow renaming.
16913
16914 2011-09-05  David S. Miller  <davem@davemloft.net>
16915
16916         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16917         stack slot, rather than the struct return pointer slot.
16918         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16919         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16920         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16921         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16922
16923 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16924
16925         * po/ja.po: Update from translation team.
16926
16927         [BZ #13144]
16928         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16929         kernel in 64-bit binaries.
16930
16931 2011-09-01  David S. Miller  <davem@davemloft.net>
16932
16933         * elf/elf.h (HWCAP_SPARC_*): Move to..
16934         * sysdeps/sparc/sysdep.h: this new file and add new values.
16935         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16936         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16937         _DL_HWCAP_COUNT to 24.
16938         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16939         entries.
16940         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16941         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16942         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16943         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16944         instead of magic constants.
16945         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16946
16947 2011-08-31  David S. Miller  <davem@davemloft.net>
16948
16949         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16950         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16951         Reimplement to do errno handling inline.
16952         (SYSCALL_ERROR_HANDLER): New macro.
16953         (__SYSCALL_STRING): Do not do errno handling in asm.
16954         (__CLONE_SYSCALL_STRING): Delete.
16955         (__INTERNAL_SYSCALL_STRING): Delete.
16956         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16957         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16958         (PSEUDO): Reimplement to do errno handling inline.
16959         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16960         (SYSCALL_ERROR_HANDLER): New macro.
16961         (__SYSCALL_STRING): Do not do errno handling in asm.
16962         (__CLONE_SYSCALL_STRING): Delete.
16963         (__INTERNAL_SYSCALL_STRING): Delete.
16964         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16965         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16966         i386.
16967         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16968         (inline_syscall*): Add 'err' argument.
16969         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16970         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16971         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16972         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16973
16974         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16975         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16976
16977 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16978
16979         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16980
16981 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16982
16983         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16984         directive.
16985
16986 2011-08-24  David S. Miller  <davem@davemloft.net>
16987
16988         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16989
16990 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16991
16992         * elf/Makefile: Add rules to build and run unload8 test.
16993         * elf/unload8.c: New file.
16994         * elf/unload8mod1.c: New file.
16995         * elf/unload8mod1x.c: New file.
16996         * elf/unload8mod2.c: New file.
16997         * elf/unload8mod3.c: New file.
16998
16999         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17000         it wasn't used.
17001
17002 2011-08-23  David S. Miller  <davem@davemloft.net>
17003
17004         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17005         subtract stack bias.
17006         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17007         %sp not %fp in calculations.
17008         (_JMPBUF_UNWINDS_ADJ): Likewise.
17009
17010         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17011         (aio_suspend): Call it to force an exception region around the
17012         AIO_MISC_WAIT() invocation.
17013
17014 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17015
17016         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17017         backslash.
17018
17019 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17020
17021         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17022         protection macro.
17023         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17024         and <dl-machine.h>.
17025         (Elf64_FuncDesc): Remove.
17026
17027 2011-08-22  David S. Miller  <davem@davemloft.net>
17028
17029         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17030         sigaltstack check, add missing cfi directives.
17031         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17032         missing cfi directives, and sigaltstack handling.
17033
17034 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17035
17036         [BZ #11724]
17037         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17038         object is seen twice.
17039         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17040
17041         * elf/Makefile (distribute): Add tst-initorder2.c.
17042         (tests): Add tst-initorder2.
17043         (modules-names): Add tst-initorder2a tst-initorder2b
17044         tst-initorder2c tst-initorder2d.  Add rules to build them.
17045         ($(objpfx)tst-initorder2.out): New rule.
17046         * elf/tst-initorder2.c: New file.
17047         * elf/tst-initorder2.exp: New file.
17048
17049 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17050
17051         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17052
17053         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17054         dependencies back to end of function.
17055
17056         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17057         $(elfobjdir)/ld.so.
17058
17059 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17060
17061         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17062         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17063         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17064         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17065         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17066         of __vdso_gettimeofday.
17067         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17068         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17069         attribute_hidden.
17070         (_libc_vdso_platform_setup): Remove initialization of
17071         __vdso_gettimeofday and __vdso_time.
17072
17073 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17074
17075         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17076         and fgetc_unlocked.
17077         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17078         getc_unlocked.
17079
17080         * elf/dl-open.c (add_to_global): Report additions to the global scope
17081         for LD_DEBUG=scopes.
17082         (dl_open_worker): Also print scope of newly loaded dependencies.
17083         (_dl_show_scope): Indicate if there is no scope.
17084
17085         [BZ #13114]
17086         * stdio-common/Makefile (tests): Add bug24.
17087         * stdio-common/bug24.c: New file.
17088
17089 2011-08-19  Andreas Jaeger  <aj@suse.de>
17090
17091         [BZ #13114]
17092         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17093         non-existant file when using close-on-exec mode.
17094
17095 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17096
17097         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17098         the very first instruction.
17099
17100         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17101         the CFI state in the end.
17102         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17103         inclusion of dl-trampoline.h.
17104         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17105
17106 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17107
17108         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17109         expectations for long double.
17110
17111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17112         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17113
17114 2011-08-14  David S. Miller  <davem@davemloft.net>
17115
17116         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17117         artificual limit depends upon the system page size.
17118
17119 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17120
17121         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17122         * resolv/Makefile: Define CFLAGS-libresolv.
17123
17124 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17125
17126         * nss/makedb.c (compute_tables): Make variables used in nested
17127         function static.
17128
17129 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17130
17131         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17132         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17133         if buffer was too small.
17134
17135         * elf/pldd.c (main): Attach to all threads in the process.
17136         Rewrite /proc handling to use *at functions.
17137
17138 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17139
17140         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17141         specifies first scope to show.
17142         (dl_open_worker): Update callers.  Move printing scope of new
17143         object to before the relocation.
17144         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17145         * sysdeps/generic/ldsodefs.h: Update declaration.
17146
17147         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17148         string for the scope number.
17149
17150 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17151
17152         * nscd/servicescache.c (cache_addserv): Make sure written is always
17153         initialized.
17154
17155 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17156
17157         * sysdeps/i386/i486/bits/atomic.h
17158         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17159         statement expression, so as to suppress "set but not used" warning.
17160         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17161
17162         * string/strncat.c (STRNCAT): Use prototype definition.
17163
17164         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17165         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17166         -Iprograms here.
17167         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17168         (localedef-modules): Add localedef.
17169         (locale-modules): Add locale.
17170
17171         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17172         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17173         to avoid a warning.
17174
17175 2011-08-14  David S. Miller  <davem@davemloft.net>
17176
17177         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17178         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17179
17180 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17181
17182         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17183         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17184         * elf/rtld.c (dl_main): Set l_name of vDSO.
17185         Call _dl_show_scope when DL_DEBUG_SCOPES.
17186         (process_dl_debug): Recognize scopes flag and also set it for all.
17187         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17188         Declare _dl_show_scope.
17189
17190         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17191         (do_dlopen): Pass caller_dlopen to dl_open.
17192         (__libc_dlopen_mode): Initialize caller_dlopen.
17193
17194         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17195         of libc.  Make tolower call locale-independent.  Optimize a bit by
17196         using isdigit instead of isalnum.
17197         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17198
17199 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17200
17201         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17202         was a dependency or dynamically loaded.
17203
17204 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17205
17206         * intl/l10nflist.c: Allow architecture-specific pop function.
17207         * sysdeps/x86_64/l10nflist.c: New file.
17208
17209         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17210         classification.
17211
17212 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17213
17214         * include/dirent.h: Add libc_hidden_proto for scandirat and
17215         scandirat64.  Don't declare __scandirat64.
17216         * dirent/scandirat.c: Add libc_hidden_def.
17217         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17218         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17219
17220 2011-08-10  David S. Miller  <davem@davemloft.net>
17221
17222         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17223         enum.
17224         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17225         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17226         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17227
17228 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17229
17230         * Versions.def [libc]: Add GLIBC_2.15.
17231         * dirent/Makefile (routines): Add scandirat and scandirat64.
17232         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17233         GLIBC_2.15.
17234         * dirent/dirent.h: Declare scandirat and scandirat64.
17235         * dirent/scandirat.c: New file.
17236         * dirent/scandirat64.c: New file.
17237         * sysdeps/wordsize-64/scandirat.c: New file.
17238         * sysdeps/wordsize-64/scandirat64.c: New file.
17239         * dirent/opendir.c: Define opendirat.
17240         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17241         using scandirat.
17242         * dirent/scandir64.c: Adjust for scandir.c change.
17243         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17244         __scandirat64, and __scandir_cancel_handler.
17245         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17246         additional parameter and use openat instead of open (outside of ld.so).
17247         Add new __opendir as wrapper around __opendirat.
17248         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17249         here without requiring old scandirat implementation.
17250
17251 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17252
17253         * dirent/scandir.c (cancel_handler): Renamed to
17254         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17255         defined.  Adjust users.
17256         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17257         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17258
17259 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17260
17261         * string/test-string.h (IMPL): Use __STRING to expand name and then
17262         stringify it.
17263
17264         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17265         of cleanups.
17266
17267 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17268
17269         * string/Makefile: Update.
17270         (strop-tests): Append strncat.
17271         * string/test-wcscmp.c: New file.
17272         New comprehensive test for wcscmp.
17273         * string/test-strcmp.c: Update.
17274         (WIDE): New define.
17275
17276 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17277
17278         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17279         line.
17280
17281 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17282
17283         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17284         encoding to ACE if AI_IDN.
17285
17286 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17287
17288         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17289         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17290
17291 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17292
17293         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17294         Fix overflow bug in strncat.
17295         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17296
17297         * string/test-strncat.c: Update.
17298         Add new tests for checking overflow bugs.
17299
17300 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17301
17302         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17303         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17304         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17305         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17306         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17307         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17308         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17309         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17310         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17311
17312         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17313         (USE_AS_STRCAT): Define.
17314         Add strcat and strncat support.
17315         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17316
17317 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17318
17319         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17320         __n bigger than INT_MAX+1.
17321         (__strncmp_g): Likewise.
17322
17323 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17324
17325         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17326         * libio/stido.h: Likewise.
17327
17328         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17329         (AF_NFC): Define.
17330         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17331         (AF_NFC): Define.
17332
17333         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17334         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17335         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17336         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17337         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17338
17339         [BZ #13021]
17340         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17341         installed.
17342
17343         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17344         typo.
17345         (_dl_x86_64_save_sse): Likewise.
17346
17347 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17348
17349         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17350         OSXSAVE.
17351         (_dl_x86_64_save_sse): Likewise.
17352
17353         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17354
17355         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17356
17357 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17358
17359         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17360         change.
17361         (_dl_x86_64_save_sse): Use correct AVX check.
17362
17363 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17364
17365         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17366         bug in strncpy/strncat.
17367         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17368
17369 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17370
17371         * string/tester.c (test_strcat): Add tests for different alignments
17372         of source and destination.
17373         (test_strncat): Likewise.
17374
17375 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17376
17377         [BZ #12852]
17378         * posix/glob.c (glob): Check passed in values before using them in
17379         expressions to avoid some overflows.
17380         (glob_in_dir): Likewise.
17381
17382         [BZ #13007]
17383         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17384         check for AVX enablement so that we don't crash with old kernels and
17385         new hardware.
17386         * elf/tst-audit4.c: Add same checks here.
17387         * elf/tst-audit6.c: Likewise.
17388
17389         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17390
17391 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17392
17393         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17394
17395 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17396
17397         * po/cs.po: Update from translation team.
17398         * po/bg.po: Likewise.
17399
17400 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17401
17402         * misc/sys/cdefs.h: Add support for const attribute.
17403         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17404         to gnu_dev_{major,minor,makedev} functions.
17405
17406 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17407
17408         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17409
17410 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17411
17412         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17413         strlen results.
17414
17415 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17416
17417         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17418         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17419         register in order to avoid conflicts with the soft frame pointer
17420         being held in r11 when necessary.
17421         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17422         (INTERNAL_VSYSCALL_NCS): Likewise.
17423
17424 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17425
17426         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17427         * elf/dl-fini.c (_dl_fini): Adjust caller.
17428         * elf/dl-close.c (_dl_close_worker): Likewise.
17429         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17430
17431 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17432
17433         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17434         "aux_cache->nlibs < 0".
17435
17436         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17437         in the reload-count case.
17438
17439 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17440
17441         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17442         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17443         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17444         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17445         * sysdeps/x86_64/multiarch/strcat.S: New file.
17446         * sysdeps/x86_64/multiarch/strncat.S: New file.
17447         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17448         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17449         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17450         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17451         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17452         (USE_AS_STRCAT): Define.
17453         Add strcat and strncat support.
17454         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17455         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17456         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17457         * string/strncat.c: Update.
17458         (USE_AS_STRNCAT): Define.
17459         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17460         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17461         and i7.
17462         * sysdeps/x86_64/multiarch/init-arch.h
17463         (bit_Prefer_PMINUB_for_stringop): New.
17464         (index_Prefer_PMINUB_for_stringop): Likewise.
17465         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17466         bit_Prefer_PMINUB_for_stringop.
17467
17468 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17469
17470         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17471         buffer64.
17472         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17473         of casting of buffer.
17474         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17475         buffer32 and buffer64.
17476         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17477         writes instead of casting of buffer.
17478         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17479         buffer32.
17480         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17481         casting of buffer.
17482
17483 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17484
17485         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17486
17487 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17488
17489         * nscd/nscd.c (termination_handler): Don't do anything for a database
17490         if it has not yet been initialized.
17491
17492 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17493
17494         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17495
17496 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17497
17498         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17499
17500 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17501
17502         * po/nl.po: Update from translation team.
17503         * po/sv.po: Likewise.
17504
17505 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17506
17507         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17508         now disallowed by GCC.
17509
17510         * configure.in (use-default-link): Default to yes if a test -shared
17511         link meets our qualifications.
17512         * configure: Regenerated.
17513
17514         * config.make.in (output-format): New variable.
17515         * configure.in: Check for ld --print-output-format support.
17516         * configure: Regenerated.
17517         * Makerules ($(common-objpfx)format.lds)
17518         [$(output-format) != unknown]: Just use $(output-format),
17519         instead of the linker-script munging.
17520
17521 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17522
17523         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17524         of $(common-objpfx)shlib.lds.
17525         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17526
17527         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17528         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17529
17530         * configure.in (-z relro check): Adjust test code to add a large
17531         writable data section after it.
17532         * configure: Regenerated.
17533
17534 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17535
17536         * configure.in (-z relro check): Fix test code to make the variable
17537         truly const.
17538         * configure: Regenerated.
17539
17540 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17541
17542         * nscd/nscd.h (struct traced_file): Define.
17543         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17544         elements.  Add traced_files.
17545         (inotify_fd): Declare.
17546         (register_traced_file): Declare.
17547         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17548         (inotify_fd): Export.
17549         (resolv_conf_descr): Remove.
17550         (nscd_init): Move inotify descriptor creation to main.
17551         Don't register files for notification here.
17552         (register_traced_file): New function.
17553         (invalidate_cache): Don't use reset_res to determine whether to call
17554         res_init, go through the list of registered files.
17555         (main_loop_poll): The inotify descriptors are now stored in the
17556         structures for the traced files.
17557         (main_loop_epoll): Likewise
17558         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17559         to __nss_disable_nscd.
17560         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17561         for a database anymore.  Check the records for all the registered
17562         files instead.
17563         * nss/Makefile (libnss_files-routines): Add files-init.
17564         (libnss_db-routines): Add db-init.
17565         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17566         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17567         * nss/nss_db/db-init.c: New file.
17568         * nss/nss_files/files-init.c: New file.
17569         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17570         __nss_lookup_function.
17571         (__nss_lookup_function): Call nss_load_library.
17572         (nss_load_all_libraries): New function.
17573         (__nss_disable_nscd): Take parameter with callback function for files
17574         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17575         used for the cached services.
17576         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17577         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17578         options for features to all the files in nscd.
17579
17580         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17581
17582 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17583
17584         * csu/elf-init.c (__libc_csu_init): Comment typo.
17585
17586 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17587
17588         * po/pl.po: Update from translation team.
17589         * po/ja.po: Likewise.
17590         * po/ru.po: Likewise.
17591         * po/ko.po: Likewise.
17592         * po/fr.po: Likewise.
17593
17594 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17595
17596         * configure.in (.ctors/.dtors header and trailer check):
17597         Use an empirical test on a built program.
17598         * configure: Regenerated.
17599
17600         * configure.in (-z relro check): Use an empirical test on a built DSO.
17601         Detect, but do not require, on ia64.
17602         * configure: Regenerated.
17603
17604         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17605         Update tests that use readelf to use $READELF instead.
17606         * configure: Regenerated.
17607
17608 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17609
17610         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17611         if the result is not used.
17612
17613 2011-07-05  Andreas Jaeger  <aj@suse.de>
17614
17615         [BZ#9696]
17616         * stdlib/tst-strtod.c: Add testcase.
17617
17618 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17619
17620         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17621         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17622         The latter has a higher limit.  Take additional parameter to pass to
17623         the new function.
17624         (__pathconf): Pass file to __statfs_link_max.
17625         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17626         __statfs_link_max.
17627         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17628         __statfs_link_max.
17629
17630         [BZ #12868]
17631         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17632         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17633         Handle Lustre.
17634         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17635         (__statfs_filesize_max): Likewise.
17636         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17637
17638 2011-07-05  Andreas Jaeger  <aj@suse.de>
17639
17640         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17641
17642 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17643
17644         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17645         `status' variable.
17646         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17647         Likewise.
17648
17649 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17650
17651         * Makefile (strop-tests): Add strncat.
17652         * string/test-strncat.c: New file.
17653
17654 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17655
17656         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17657
17658 2011-06-21  Andreas Jaeger  <aj@suse.de>
17659
17660         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17661         Copy rule from iconvdata/Makefile.
17662
17663 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17664
17665         [BZ #12922]
17666         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17667         but no long options are defined, just return 'W'.
17668
17669 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17670
17671         [BZ #9696]
17672         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17673
17674 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17675
17676         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17677         netgroups to read.
17678         (innetgr): Likewise.
17679
17680 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17681
17682         * config.make.in (install_root): Default to $(DESTDIR).
17683
17684 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17685
17686         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17687
17688 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17689
17690         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17691
17692         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17693         containing directory rather than embedding absolute directory names.
17694
17695         * scripts/check-local-headers.sh: Rewritten using awk.
17696         Match by word, not by line.  Print error messages for matches.
17697         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17698
17699         * Makerules [shlib-lds-flags empty]:
17700         ($(common-objpfx)libc_pic.opts): New target.
17701         ($(common-objpfx)libc_pic.os.clean): New target.
17702         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17703
17704         * config.make.in (OBJCOPY): New variable.
17705         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17706         * configure: Regenerated.
17707
17708         * config.make.in (use-default-link): New variable.
17709         * configure.in (use_default_link): Grok --with-default-link to set it.
17710         * configure: Regenerated.
17711         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17712         (shlib-lds, shlib-lds-flags): Define to empty.
17713
17714         * Makerules (shlib-lds): New variable.
17715         (shlib-lds-flags): New variable.
17716         (build-shlib, build-moduile, build-module-asneeded): Use it.
17717         ($(common-objpfx)libc.so): Use $(shlib-lds).
17718         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17719         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17720
17721         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17722         DT_FLAGS/DT_FLAGS_1 with zero flags.
17723
17724         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17725         linker script munging.
17726
17727 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17728
17729         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17730         as 128-bit value.
17731         * crypt/sha512.c (sha512_process_block): Perform total addition using
17732         128-bit if possible.
17733         (__sha512_finish_ctx): Likewise.
17734         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17735         as 64-bit value.
17736         * crypt/sha256.c (SWAP64): Define.
17737         (sha256_process_block): Perform total addition using 64-bit if
17738         possible.
17739         (__sha256_finish_ctx): Likewise.
17740
17741 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17742
17743         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17744         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17745         * nscd/hstcache.c (cache_addhst): Likewise.
17746         * nscd/grpcache.c (cache_addgr): Likewise.
17747         * nscd/aicache.c (addhstaiX): Likewise
17748         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17749
17750 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17751
17752         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17753         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17754         * nscd/hstcache.c (cache_addhst): Likewise.
17755         * nscd/grpcache.c (cache_addgr): Likewise.
17756         * nscd/aicache.c (addhstaiX): Likewise
17757
17758 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17759
17760         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17761         domain only when needed.
17762
17763 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17764
17765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17766         is always restored.
17767
17768 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17769
17770         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17771         are re-adding the entry.
17772         * nscd/servicescache.c (cache_addserv): Likewise.
17773
17774 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17775
17776         * sysdeps/generic/dl-irel.h: fix protection against multiple
17777         inclusions.
17778         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17779
17780 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17781
17782         [BZ #12935]
17783         * malloc/memusage.sh: Fix quoting in message.
17784         * debug/xtrace.sh: Likewise.
17785
17786         * configure.in: Remove support for --experimental-malloc option, make
17787         it the default.
17788         * config.make.in: Likewise.
17789         * malloc/Makefile: Likewise.
17790
17791 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17792
17793         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17794         two-byte characters.
17795
17796 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17797
17798         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17799         AC_CACHE_CHECK invocation.
17800         * configure: Regenerated.
17801
17802         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17803
17804 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17805
17806         [BZ #12350]
17807         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17808         bit from old_res_options.
17809
17810         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17811
17812         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17813         value type for setfct.
17814
17815 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17816
17817         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17818         __gettimeofday instead of gettimeofday.
17819
17820 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17821
17822         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17823
17824 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17825
17826         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17827
17828         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17829         info.
17830
17831 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17832
17833         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17834         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17835         strcpy-sse2-unaligned strncpy-sse2-unaligned
17836         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17837         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17838         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17839         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17840         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17841         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17842         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17843         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17844         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17845         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17846         (STRCPY): Support SSE2 and SSSE3 versions.
17847
17848 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17849
17850         [BZ #12874]
17851         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17852         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17853         kernels which artificially limit size of requests.
17854
17855 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17856
17857         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17858         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17859         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17860         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17861         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17862         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17863         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17864         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17865         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17866         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17867         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17868         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17869         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17870         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17871         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17872         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17873         Enable unaligned load optimization for Intel Core i3, i5 and i7
17874         processors.
17875         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17876         Define.
17877         (index_Fast_Unaligned_Load): Define.
17878         (HAS_FAST_UNALIGNED_LOAD): Define.
17879
17880 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17881
17882         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17883
17884 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17885
17886         [BZ #12907]
17887         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17888         until it is clear that the information is realy needed.
17889         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17890
17891 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17892
17893         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17894
17895 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17896
17897         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17898         /sys/devices/system/cpu/online if it is usable.
17899
17900         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17901         reading the information from the /proc filesystem to once a second.
17902
17903 2011-06-21  Andreas Jaeger  <aj@suse.de>
17904
17905         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17906         NULL after inclusion of kernel headers.
17907
17908 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17909
17910         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17911         calls to internal_setent.
17912
17913         [BZ #12885]
17914         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17915         addresses using gethostbyname4_r ignore IPv4 addresses.
17916
17917         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17918         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17919
17920         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17921
17922 2011-06-20  David S. Miller  <davem@davemloft.net>
17923
17924         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17925         inclusions.
17926         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17927
17928         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17929         (elf_irel): Use it.
17930         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17931         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17932         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17933         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17934         * sysdeps/x86_64/dl-irel.h: Likewise.
17935
17936         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17937         * elf/dl-sym.c: Likewise.
17938
17939 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17940
17941         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17942         need to dereference resplen2.
17943
17944 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17945
17946         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17947
17948 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17949
17950         * Makeconfig: Define vardbdir and inst_vardbdir.
17951         * nss/Makefile: Add rules to install db-Makefile.
17952
17953         * nss/nss_db/db-XXX.c: Cleanup.
17954
17955         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17956         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17957         GLIBC_PRIVATE.
17958         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17959         * nss/makedb.c: Implement -g option to specify that value strings
17960         are generated and should not be added to table iterated over for
17961         get*ent calls.
17962         * nss/nss_db/db-initgroups.c: New file.
17963
17964         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17965         interface.
17966
17967         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17968         (internal_getgrouplist): Adjust to name change.
17969         Update use_initgroups_entry if this is not the first call.
17970         * nss/databases.def: Add initgroups entry.
17971
17972         * nss/makedb.c (compute_tables): Check result of multiple hash table
17973         sizes to minimize maximum chain length.
17974
17975 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17976
17977         * Versions.def: Add entry for libnss_db.
17978         * shlib-versions: Likewise.
17979         * nss/Makefile: Add rules to build libnss_db.
17980         * nss/Versions: Add libnss_db information.  Organize libnss_files
17981         entries better.
17982         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17983         makedb progra.  Some minor improvements to generate smaller files.
17984         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17985         here from...
17986         * nss/makedb.c: ...here.
17987         Improve database format to be smaller and require less memory at
17988         runtime.
17989         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17990         db anymore.
17991         * nss/nss_db/db-netgrp.c: Likewise.
17992         * nss/nss_db/db-open.c: Likewise.
17993         * nss/nss_files/flies-XXX.x: Adjust comments.
17994         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17995         * nss/nss_files/files-grp.c: Likewise.
17996         * nss/nss_files/files-hosts.c: Likewise.
17997         * nss/nss_files/files-network.c: Likewise.
17998         * nss/nss_files/files-proto.c: Likewise.
17999         * nss/nss_files/files-pwd.c: Likewise.
18000         * nss/nss_files/files-rpc.c: Likewise.
18001         * nss/nss_files/files-service.c: Likewise.
18002         * nss/nss_files/files-sgrp.c: Likewise.
18003         * nss/nss_files/files-spwd.c: Likewise.
18004         * nss/nss_db/db-alias.c: Removed.
18005         * nss/nss_db/dummy-db.h: Removed.
18006
18007 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18008
18009         * nss/makedb.c: Rewritten to not use database library.
18010         * nss/Makefile: Update to build new makedb program.
18011
18012 2011-06-14  Andreas Jaeger  <aj@suse.de>
18013
18014         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18015         memset declaration.
18016
18017 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18018
18019         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18020         tmpbuf.
18021
18022 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18023
18024         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18025         * elf/Makefile ($(objpfx)ld.so): Likewise.
18026
18027         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18028         Don't list ld.so twice in dependencies.
18029
18030         * posix/bug-regex31.c: Include <stdlib.h>.
18031
18032         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18033
18034         * nis/nss_compat/compat-spwd.c
18035         (getspent_next_nss_netgr): Remove unused variable.
18036         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18037
18038         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18039         nonmembers" output to use the right array.
18040
18041         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18042
18043         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18044
18045         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18046         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18047         * catgets/gencat.c (read_input_file): Likewise.
18048         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18049
18050         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18051         variable definition inside #if's controlling its use.
18052
18053         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18054
18055         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18056
18057         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18058
18059         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18060         unreachable code.
18061
18062         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18063
18064         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18065         * configure: Regenerated.
18066
18067         * Makerules: Revert last change.
18068         * elf/Makefile: Likewise.
18069
18070 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18071
18072         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18073         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18074         (reloc-link): Likewise.
18075
18076 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18077
18078         * elf/Makefile: Add rules to build pldd.
18079         * elf/pldd.c: New file.
18080         * elf/pldd-xx.c: New file.
18081
18082 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18083
18084         * version.h: Update for 2.15 development version.
18085
18086 2011-06-07  David S. Miller  <davem@davemloft.net>
18087
18088         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18089         ifuncs.
18090         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18091         elf_machine_lazy_rel): Likewise.
18092         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18093         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18094         elf_machine_lazy_rel): Likewise.
18095         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18096         dl_hwcap via passed in argument.
18097         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18098         Likewise.
18099
18100 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18101
18102         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18103
18104 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18105
18106         [BZ #12849]
18107         * manual/fdl-1.1.texi: New file, verbatim from:
18108         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18109         * manual/lgpl-2.1.texi: New file, verbatim from:
18110         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18111         * manual/Makefile (licenses): New variable, list those new file names.
18112         (texis): Use it.
18113         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18114
18115         * manual/fdl.texi: File removed.
18116         * manual/lesser.texi: File removed.
18117         * manual/libc.texinfo (Copying, Documentation License):
18118         Use new @include file names, put @appendix directive before @include.
18119
18120 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18121
18122         [BZ #12841]
18123         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18124         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18125         (mq_open): Add __NTH.
18126
18127 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18128
18129         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18130         Assume Intel Core i3/i5/i7 processor if AVX is available.
18131
18132 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18133
18134         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18135         typo.
18136
18137 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18138
18139         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18140         memory.  Use alloca_account.  Fix memory leak when retrying.
18141
18142 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18143
18144         * version.h (RELEASE): Bump for 2.14 release.
18145         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18146
18147         * config.make.in (RANLIB): Remove entry.
18148
18149 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18150
18151         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18152         (libc.pot): Work around missing support for .ksh extension in xgettext.
18153
18154         [BZ #12684]
18155         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18156         if both request failed.
18157         (send_dg): In case of server errors clear resplen or *resplen2.
18158
18159         [BZ #12454]
18160         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18161         when there are multiple maps.
18162         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18163         (_dl_fini): Remove test here.
18164
18165         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18166
18167 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18168
18169         [BZ #12350]
18170         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18171         bit from old_res_options.
18172         (gaih_inet): Likewise.
18173
18174         [BZ #11099]
18175         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18176         as signed.
18177
18178         * resolv/res_init.c (res_setoptions): Make the code more compact.
18179
18180         [BZ #11558]
18181         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18182         set RES_USEVC.
18183
18184         [BZ #11634]
18185         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18186
18187         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18188
18189         [BZ #11781]
18190         * malloc/malloc.h: Declare malloc hook variables as volatile.
18191
18192         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18193         in last patch.
18194
18195         [BZ #11799]
18196         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18197         raise in the comment.
18198         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18199         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18200         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18201
18202 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18203
18204         [BZ #12811]
18205         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18206         grow the buffers more if it already has to be sufficient.
18207         (build_wcs_upper_buffer): Likewise.
18208         * posix/regexec.c (check_matching): Likewise.
18209         (clean_state_log_if_needed): Likewise.
18210         (extend_buffers): Don't enlarge buffers beyond size of the input
18211         buffer.
18212         Patches mostly by Emil Wojak <emil@wojak.eu>.
18213         * posix/bug-regex32.c: New file.
18214         * posix/Makefile (tests): Add bug-regex32.
18215
18216         * locale/findlocale.c (_nl_find_locale): Return right away if
18217         _nl_explode_name failed.
18218         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18219
18220         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18221
18222         * debug/xtrace.sh: Unify messages.
18223         * malloc/memusage.sh: Likewise.
18224
18225         [BZ #12813]
18226         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18227         time symbol from vDSO.  Substitute with vsyscall if not available.
18228         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18229         __vdso_time.
18230
18231         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18232         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18233         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18234         Add sendmmsg and internal_sendmmsg.
18235         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18236         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18237         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18238
18239         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18240         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18241         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18242
18243 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18244
18245         [BZ #12813]
18246         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18247         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18248         available.
18249         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18250         __vdso_getcpu.
18251
18252         [BZ #12814]
18253         * iconvdata/Makefile (tests): Add bug-iconv9.
18254         * iconvdata/bug-iconv9.c: New file.
18255
18256 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18257
18258         [BZ #12814]
18259         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18260
18261 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18262
18263         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18264         (struct user_regs_struct): Change intcs field back to cs.
18265
18266 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18267
18268         * po/ja.po: Update from translation team.
18269
18270 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18271
18272         [BZ #12795]
18273         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18274         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18275
18276 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18277
18278         * stdlib/longlong.h: Update from GCC.
18279
18280 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18281
18282         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18283         parameter name.
18284         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18285         Add parameter name.
18286         (__sysconf): Pass it down.
18287
18288 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18289
18290         [BZ #12671]
18291         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18292         some situations.
18293         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18294         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18295         add in in __libc_use_alloca calls.  Adjust callers.
18296         (glob): Use malloc in some situations.
18297
18298         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18299         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18300         pltexit.
18301
18302 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18303
18304         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18305         and CLOCK_BOOTTIME_ALARM.
18306
18307         [BZ #12782]
18308         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18309         is returned.
18310
18311         * string/_strerror.c (__strerror_r): Print negative errors as signed
18312         numbers.
18313
18314         [BZ #12777]
18315         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18316         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18317         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18318
18319         * configure.in: Fix typo in redirection and correct removal of test
18320         files in two cases.
18321
18322         [BZ #12788]
18323         * locale/setlocale.c (new_composite_name): Fix test to check for
18324         identical name of all categories.
18325
18326         [BZ #12792]
18327         * libio/filedoalloc.c (local_isatty): New function.
18328         (_IO_file_doallocate): Use local_isatty.
18329         * stdio-common/perror.c (perror): In case a new stream is used
18330         forward the stream error.
18331         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18332         error flag.
18333
18334 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18335
18336         [BZ #11869]
18337         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18338         alloca.
18339         * include/alloca.h (extend_alloca_account): Define.
18340
18341         [BZ #11857]
18342         * posix/regex.h: Fix comments with documentation of user-accessible
18343         fields after compilation and describe correct free'ing of pattern
18344         after re_compile_pattern.
18345         Patch by Reuben Thomas <rrt@sc3d.org>.
18346
18347 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18348
18349         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18350         and -mno-altivec to prevent the compiler from using Altivec and/or
18351         VSX instructions when the corresponding registers are not available.
18352
18353 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18354
18355         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18356
18357 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18358
18359         * libio/freopen.c (freopen): Use __dup2, not dup2.
18360         * libio/freopen64.c (freopen64): Likewise.
18361
18362 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18363
18364         [BZ #12775]
18365         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18366         * math/Makefile (tests): Add test-powl.
18367         (CFLAGS-test-powl.c): Define.
18368         * math/test-powl.c: New file.
18369
18370 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18371
18372         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18373
18374 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18375
18376         [BZ #11837]
18377         * iconvdata/gb18030.c: Update to GB18020-2005.
18378
18379 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18380
18381         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18382         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18383         Patch by Aharon Robbins <arnold@skeeve.com>.
18384
18385         [BZ #11892]
18386         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18387         on the stack.
18388
18389         [BZ #11895]
18390         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18391         through underflows.
18392
18393         [BZ #12766]
18394         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18395         point to strings before performing equality test for error_one_per_line
18396         mode.
18397
18398         [BZ #11697]
18399         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18400
18401         [BZ #11820]
18402         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18403         (struct user_fpregs_struct): Avoid __uint*_t types.
18404
18405         [BZ #6420]
18406         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18407         symbol info.  Use it instead of calling _dl_addr locally.
18408         (lock_and_info): New function.
18409         (tr_freehook): Call lock_and_info and pass symbol info as additional
18410         parameter to tr_where.
18411         (tr_mallochook): Likewise.
18412         (tr_reallochook): Likewise.
18413         (tr_memalignhook): Likewise.
18414
18415         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18416         used and couldn't be at all thread-safe.
18417
18418 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18419
18420         * libio/freopen.c (freopen): Don't close old file descriptor
18421         before the new one is opened.  Instead dup the new file descriptor
18422         to the old one after the new stream is created.
18423         * libio/freopen64.c (freopen64): Likewise.
18424         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18425         * libio/fileops.c (_IO_new_file_close_it): Handle new
18426         _IO_FLAGS2_NOCLOSE flag.
18427         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18428         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18429         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18430         _IO_FLAGS2_NOCLOSE flag.
18431         * include/unistd.h: Add hidden_proto for dup3.
18432         Define __have_dup3.
18433         * io/dup3.c: Define hidden symbol.
18434         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18435
18436         [BZ #7101]
18437         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18438         when an incomplete long option is used.
18439         * posix/tst-getopt_long1.c: New file.
18440         * posix/Makefile (tests): Add tst-getopt_long1.
18441
18442         [BZ #10138]
18443         * scripts/config.guess: Update from autoconf-2.68.
18444         * scripts/config.sub: Likewise.
18445
18446         [BZ #10157]
18447         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18448         tests into ...
18449         (has_cpuclock): ...this.  New function.
18450         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18451         macro here based on has_cpuclock code.
18452
18453         [BZ #10149]
18454         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18455         First byte (not low byte) is now always NUL.
18456         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18457
18458         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18459         Use non-cancelable interfaces.
18460
18461         [BZ #9809]
18462         * locale/iso-639.def: Add entry for Sorani.
18463
18464         [BZ #11901]
18465         * include/stdlib.h: Move include protection to the right place.
18466         Define abort_msg_s.  Declare __abort_msg with it.
18467         * stdlib/abort.c (__abort_msg): Adjust type.
18468         * assert/assert.c (__assert_fail_base): New function.  Majority
18469         of code from __assert_fail.  Allocate memory for __abort_msg with
18470         mmap.
18471         (__assert_fail): Now call __assert_fail_base.
18472         * assert/assert-perr.c: Remove bulk of implementation.  Use
18473         __assert_fail_base.
18474         * include/assert.hL Declare __assert_fail_base.
18475         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18476         mmap.
18477         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18478
18479 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18480
18481         [BZ #11952]
18482         [BZ #12453]
18483         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18484         until all modules are registered in the DTV.
18485         * elf/Makefile: Add rules to build and run tst-tls19.
18486         * elf/tst-tls19.c: New file.
18487         * elf/tst-tls19mod1.c: New file.
18488         * elf/tst-tls19mod2.c: New file.
18489         * elf/tst-tls19mod3.c: New file.
18490         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18491
18492         [BZ #12083]
18493         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18494         correctly.
18495
18496         [BZ #12601]
18497         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18498         two-byte sequence errors.
18499         * iconvdata/Makefile (tests): Add bug-iconv8.
18500         * iconvdata/bug-iconv8.c: New file.
18501
18502         [BZ #12626]
18503         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18504         buf2 definition.
18505
18506         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18507
18508         [BZ #12432]
18509         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18510         (dummy_getcfa): New function.
18511         (init): Get _Unwind_GetCFA address, use dummy if not found.
18512         (backtrace_helper): In recursion check, also check whether CFA changes.
18513         (__backtrace): Completely initialize arg.
18514
18515         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18516         storing incomplete byte sequence in state object.  Avoid testing for
18517         guaranteed too small input if we know there is enough data available.
18518
18519 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18520
18521         * Makeconfig (+link-pie): Indent.
18522         * Rules (binaries-pie): Define if $(have-fpie) and
18523         $(build-shared).
18524         (binaries-shared): Also filter out $(binaries-pie).
18525         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18526         * nscd/Makefile (others-pie): Add nscd.
18527         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18528         ($(objpfx)nscd): Remove command override.
18529         * login/Makefile (others-pie): Add pt_chown.
18530         ($(objpfx)pt_chown): Remove command override.
18531         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18532         remove command overrides.
18533
18534 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18535
18536         * libio/tst_putwc.c: Fix error messages.
18537
18538         [BZ #12724]
18539         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18540         currently writing and seek to current position when not.
18541         * libio/Makefile (tests): Add bug-fclose1.
18542         * libio/bug-fclose1.c: New file.
18543
18544 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18545
18546         [BZ #12511]
18547         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18548         don't set DF_1_NODELETE here.
18549         (do_lookup_x): When entering new entry test for copy relocation
18550         and if necessary set DF_1_NODELETE flag.
18551         * elf/tst-unique4.cc: New file.
18552         * elf/tst-unique4.h: New file.
18553         * elf/tst-unique4lib.cc: New file.
18554         * elf/Makefile: Add rules to build and run tst-unique4.
18555         Patch by Piotr Bury <pbury@goahead.com>.
18556
18557 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18558
18559         [BZ #12052]
18560         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18561
18562         [BZ #12625]
18563         * misc/mntent_r.c (addmntent): Flush the stream after the output
18564
18565         [BZ #12393]
18566         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18567         (is_trusted_path_normalize): Skip initial colon.  Append slash
18568         to empty buffer.  Duplicate is_trusted_path code but allow
18569         constructed patch to be prefix.
18570         (is_dst): Allow $ORIGIN followed by /.
18571         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18572         Correct testing of result of is_trusted_path_normalize
18573         (decompose_rpath): Fix warning.
18574
18575 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18576
18577         [BZ #11257]
18578         * grp/initgroups.c (internal_getgrouplist): When we found the service
18579         list through the initgroups entry in nsswitch.conf do not always
18580         continue on a successful lookup.  Don't always use the
18581         __nss_group_database value if it is set.
18582         * nss/nsswitch.conf (initgroups): Change action for successful db
18583         lookup to continue for compatibility.
18584
18585 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18586
18587         [BZ #11532]
18588         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18589         and CP774 modules.
18590         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18591         and CP774 modules.
18592         * iconvdata/tst-tables.sh: Likewise.
18593         * iconvdata/cp770.c: New file.
18594         * iconvdata/cp771.c: New file.
18595         * iconvdata/cp772.c: New file.
18596         * iconvdata/cp773.c: New file.
18597         * iconvdata/cp774.c: New file.
18598         * iconvdata/testdata/CP770: New file.
18599         * iconvdata/testdata/CP770..UTF8: New file.
18600         * iconvdata/testdata/CP771: New file.
18601         * iconvdata/testdata/CP771..UTF8: New file.
18602         * iconvdata/testdata/CP772: New file.
18603         * iconvdata/testdata/CP772..UTF8: New file.
18604         * iconvdata/testdata/CP773: New file.
18605         * iconvdata/testdata/CP773..UTF8: New file.
18606         * iconvdata/testdata/CP774: New file.
18607         * iconvdata/testdata/CP774..UTF8: New file.
18608
18609         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18610         END CHARMAP line.
18611         * iconvdata/gen-8bit-gap.sh: Likewise.
18612         * iconvdata/gen-8bit.sh: Likewise.
18613
18614         * locale/iso-639.def: Add ary entry.
18615
18616         [BZ #11258]
18617         * locale/C-translit.h.in: Add U20A1 transliteration.
18618
18619         [BZ #12178]
18620         * locale/iso-639.def: Add wae entry.
18621         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18622
18623         [BZ #12545]
18624         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18625         for n.
18626
18627         [BZ #12711]
18628         * locale/C-translit.h.in: Add entry for U20B9.
18629         Patch by pravin.d.s@gmail.com.
18630
18631 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18632
18633         [BZ #12713]
18634         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18635         ENAMETOOLONG use generic getcwd.
18636         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18637         in rtld.  Use *stat64.
18638         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18639         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18640         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18641         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18642         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18643         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18644         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18645         __fstatat64 macros.
18646         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18647         * dirent/rewinddir.c: Add libc_hidden_def.
18648         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18649         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18650
18651         * include/dirent.h (__alloc_dir): Add flags parameter.
18652         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18653         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18654         __alloc_dir.
18655         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18656         from fdopendir if O_CLOEXEC is already set.
18657
18658 2011-03-15  Alan Modra  <amodra@gmail.com>
18659
18660         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18661         l_tls_firstbyte_offset non-zero.  Save padding offset in
18662         l_tls_firstbyte_offset for later use.
18663         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18664         freeing static tls block.
18665
18666 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18667
18668         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18669         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18670         being defined by the kernel headers.
18671
18672 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18673
18674         [BZ #12734]
18675         * resolv/resolv.h: Define RES_NOTLDQUERY.
18676         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18677         no-tld-query and set RES_NOTLDQUERY.
18678         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18679         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18680         modern BIND to search name as TLD unless forbidden.
18681
18682 2011-05-07  Petr Baudis  <pasky@suse.cz>
18683             Ulrich Drepper  <drepper@gmail.com>
18684
18685         [BZ #12393]
18686         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18687         (is_trusted_path): ...to here.
18688         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18689         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18690         using is_trusted_path_normalize() in setuid scripts.
18691
18692 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18693
18694         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18695         __BEGIN/__END_DECLS.
18696
18697 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18698
18699         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18700         NSS_STATUS_NOTFOUND if no record was found.
18701
18702 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18703
18704         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18705         (headers-not-in-tirpc): Remove rpc/netdb.h
18706         * resolv/netdb.h: Revert last change.
18707
18708 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18709
18710         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18711         circular dependency between libgcc.a and libc.a.
18712
18713 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18714
18715         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18716         * nis/Makefile: Don't install rpcsvc/*.
18717         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18718         instead of <rpc/types.h>.
18719         (MAXHOSTNAMELEN): Define.
18720
18721 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18722
18723         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18724
18725 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18726
18727         [BZ #12714]
18728         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18729         gethostbyname4_r when IPv6 results are possible.
18730
18731 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18732
18733         [BZ #12723]
18734         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18735         _PC_PIPE_BUF handling.
18736
18737 2011-04-30  Bruno Haible  <bruno@clisp.org>
18738
18739         [BZ #12717]
18740         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18741         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18742         to 'int'.
18743         * inet/getnameinfo.c (getnameinfo): Likewise.
18744
18745 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18746
18747         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18748         to groups setting in database lookup.
18749         * nss/nsswitch.conf: Add initgroups entry.
18750
18751 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18752
18753         [BZ #12685]
18754         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18755         mode string.
18756         Patch by Eric Blake <eblake@redhat.com>.
18757
18758 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18759
18760         * sunrpc/Makefile (need-export-routines): Add svc_run.
18761         (routines): Remove svc_run.
18762         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18763         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18764         * sunrpc/svc_run.c (svc_run): Likewise.
18765         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18766
18767 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18768
18769         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18770         problem in reallocation in last patch.
18771
18772 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18773
18774         * sunrpc/Makefile: Move inclusion of Rules.
18775
18776 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18777
18778         * nss/nss_files/files-initgroups.c: New file.
18779         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18780         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18781         _nss_files_initgroups_dyn.
18782
18783 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18784
18785         * elf/elf.h (R_ARM_IRELATIVE): Define.
18786
18787 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18788
18789         * po/ru.po: Update from translation team.
18790
18791 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18792
18793         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18794         dependencies.
18795
18796 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18797
18798         [BZ #12653]
18799         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18800         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18801         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18802         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18803         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18804
18805 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18806
18807         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18808         differing bytes.
18809         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18810         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18811         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18812
18813 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18814
18815         [BZ #12420]
18816         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18817         storing it.
18818         * stdlib/bug-getcontext.c: New file.
18819         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18820
18821 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18822
18823         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18824         instructions into .machine "z9-109".
18825         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18826         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18827
18828 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18829
18830         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18831         between environment variables and auxiliary vector.
18832
18833 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18834
18835         * Makefile: Add rules to build linkobj/libc.so.
18836         * include/libc-symbols.h: Define libc_hidden_nolink.
18837         * include/rpc/auth.h: Mark functions which are to be hidden.
18838         * include/rpc/auth_des.h: Likewise.
18839         * include/rpc/auth_unix.h: Likewise.
18840         * include/rpc/clnt.h: Likewise.
18841         * include/rpc/des_crypt.h: Likewise.
18842         * include/rpc/key_prot.h: Likewise.
18843         * include/rpc/pmap_clnt.h: Likewise.
18844         * include/rpc/pmap_prot.h: Likewise.
18845         * include/rpc/pmap_rmt.h: Likewise.
18846         * include/rpc/rpc_msg.h: Likewise.
18847         * include/rpc/svc.h: Likewise.
18848         * include/rpc/svc_auth.h: Likewise.
18849         * include/rpc/xdr.h: Likewise.
18850         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18851         * nss/Makefile: Likewise.
18852         * sunrpc/Makefile: Don't install headers.  Build library with normal
18853         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18854         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18855         for the compat linking library.  Remove use of INTDEF/INTUSE.
18856         * sunrpc/auth_none.c: Likewise.
18857         * sunrpc/auth_unix.c: Likewise.
18858         * sunrpc/authdes_prot.c: Likewise.
18859         * sunrpc/authuxprot.c: Likewise.
18860         * sunrpc/clnt_gen.c: Likewise.
18861         * sunrpc/clnt_perr.c: Likewise.
18862         * sunrpc/clnt_raw.c: Likewise.
18863         * sunrpc/clnt_simp.c: Likewise.
18864         * sunrpc/clnt_tcp.c: Likewise.
18865         * sunrpc/clnt_udp.c: Likewise.
18866         * sunrpc/clnt_unix.c: Likewise.
18867         * sunrpc/des_crypt.c: Likewise.
18868         * sunrpc/des_soft.c: Likewise.
18869         * sunrpc/get_myaddr.c: Likewise.
18870         * sunrpc/key_call.c: Likewise.
18871         * sunrpc/key_prot.c: Likewise.
18872         * sunrpc/netname.c: Likewise.
18873         * sunrpc/pm_getmaps.c: Likewise.
18874         * sunrpc/pm_getport.c: Likewise.
18875         * sunrpc/pmap_clnt.c: Likewise.
18876         * sunrpc/pmap_prot.c: Likewise.
18877         * sunrpc/pmap_prot2.c: Likewise.
18878         * sunrpc/pmap_rmt.c: Likewise.
18879         * sunrpc/publickey.c: Likewise.
18880         * sunrpc/rpc_cmsg.c: Likewise.
18881         * sunrpc/rpc_common.c: Likewise.
18882         * sunrpc/rpc_dtable.c: Likewise.
18883         * sunrpc/rpc_prot.c: Likewise.
18884         * sunrpc/rpc_thread.c: Likewise.
18885         * sunrpc/rtime.c: Likewise.
18886         * sunrpc/svc.c: Likewise.
18887         * sunrpc/svc_auth.c: Likewise.
18888         * sunrpc/svc_authux.c: Likewise.
18889         * sunrpc/svc_raw.c: Likewise.
18890         * sunrpc/svc_run.c: Likewise.
18891         * sunrpc/svc_simple.c: Likewise.
18892         * sunrpc/svc_tcp.c: Likewise.
18893         * sunrpc/svc_udp.c: Likewise.
18894         * sunrpc/svc_unix.c: Likewise.
18895         * sunrpc/svcauth_des.c: Likewise.
18896         * sunrpc/xcrypt.c: Likewise.
18897         * sunrpc/xdr.c: Likewise.
18898         * sunrpc/xdr_array.c: Likewise.
18899         * sunrpc/xdr_float.c: Likewise.
18900         * sunrpc/xdr_intXX_t.c: Likewise.
18901         * sunrpc/xdr_mem.c: Likewise.
18902         * sunrpc/xdr_rec.c: Likewise.
18903         * sunrpc/xdr_ref.c: Likewise.
18904         * sunrpc/xdr_sizeof.c: Likewise.
18905         * sunrpc/xdr_stdio.c: Likewise.
18906
18907 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18908
18909         [BZ #12650]
18910         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18911         * sysdeps/ia64/dl-tls.h: Likewise.
18912         * sysdeps/powerpc/dl-tls.h: Likewise.
18913         * sysdeps/s390/dl-tls.h: Likewise.
18914         * sysdeps/sh/dl-tls.h: Likewise.
18915         * sysdeps/sparc/dl-tls.h: Likewise.
18916         * sysdeps/x86_64/dl-tls.h: Likewise.
18917         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18918
18919 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18920
18921         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18922         rpath element also skip the following colon.
18923         (expand_dynamic_string_token): Add is_path parameter and pass
18924         down to DL_DST_REQUIRED and _dl_dst_substitute.
18925         (decompose_rpath): Call expand_dynamic_string_token with
18926         non-zero is_path.  Ignore empty rpaths.
18927         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18928         with zero is_path.
18929
18930 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18931
18932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18933         Make cancelable.
18934
18935 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18936
18937         [BZ #12655]
18938         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18939         Patch by Filipe David Manana <fdmanana@apache.org>.
18940
18941 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18942
18943         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18944         Maintain aligned stack.
18945         (CHECK_RSP): Remove unused macro.
18946
18947 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18948
18949         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18950         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18951
18952 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18953
18954         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18955
18956         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18957
18958 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18959
18960         [BZ #12518]
18961         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18962         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18963         * sysdeps/x86_64/memmove.c: New file.
18964         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18965         (memcpy): Renamed to ...
18966         (__new_memcpy): This.
18967         (memcpy): Provide GLIBC_2_14 memcpy.
18968         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18969         (memcpy): Provide GLIBC_2_2_5 memcpy.
18970
18971 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18972
18973         [BZ #12631]
18974         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18975
18976 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18977
18978         * misc/syncfs.c: New file.
18979         * misc/Makefile (routines): Add syncfs.
18980         * posix/unistd.h: Declare syncfs.
18981         * sysdeps/unix/syscalls.list: Add syncfs.
18982
18983 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18984
18985         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18986         open_by_handle_at.
18987         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18988         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18989         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18990         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18991         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18992         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18993         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18994
18995 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18996
18997         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18998         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18999         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19000         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19001         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19002         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19003         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19004
19005         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19006         sync_file_range.c with -fexceptions.
19007         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19008         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19009         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19010         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19011         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19012         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19013         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19014         sync_file_range as cancellation point
19015         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19016         now a wrapper around __call_sync_file_range with cancellation handling.
19017         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19018         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19019         function name to __call_sync_file_range.
19020         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19021         Add call_sync_file_range.
19022
19023 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19024
19025         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19026         bits/timex.h.
19027
19028 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19029
19030         * iconv/iconv.h: Fix typo in comment.
19031         * io/fcntl.h: Likewise.
19032         * libio/stdio.h: Likewise.
19033         * posix/spawn.h: Likewise.
19034         * posix/unistd.h: Likewise.
19035         * stdlib/stdlib.h: Likewise.
19036         * time/time.h: Likewise.
19037         * wcsmbs/wchar.h: Likewise.
19038
19039         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19040         open_by_handle): Add.
19041         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19042         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19043         Augment a few comments.
19044         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19045         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19046         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19047         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19048         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19049         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19050         open_by_handle.
19051
19052         * io/fcntl.h (AT_EMPTY_PATH): Define.
19053
19054 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19055
19056         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19057         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19058         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19059         to...
19060         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19061         * Versions.def: Add GLIBC_2.14.
19062         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19063         Export.
19064
19065 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19066
19067         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19068         round counter.
19069         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19070
19071 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19072
19073         [BZ #12597]
19074         * string/test-strncmp.c (do_page_test): New function.
19075         (check2): Likewise.
19076         (test_main): Call check2.
19077         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19078
19079 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19080
19081         [BZ #12587]
19082         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19083         Handle cache information in CPU leaf 4.
19084         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19085
19086 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19087
19088         [BZ #12583]
19089         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19090         character representation.
19091         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19092
19093 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19094
19095         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19096         END(__isnan) to END(__isnanf) to match function entry point/label
19097         EALIGN(__isnanf,...).
19098
19099 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19100
19101         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19102
19103 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19104
19105         [BZ #12510]
19106         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19107         copy from the symbol referenced in the relocation to initialize the
19108         used variable.
19109         Patch by Piotr Bury <pbury@goahead.com>.
19110         * elf/Makefile: Add rules to build and tst-unique3.
19111         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19112         * elf/tst-unique3.cc: New file.
19113         * elf/tst-unique3.h: New file.
19114         * elf/tst-unique3lib.cc: New file.
19115         * elf/tst-unique3lib2.cc: New file.
19116
19117         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19118
19119 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19120
19121         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19122         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19123         to _start.
19124
19125 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19126
19127         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19128         to-be-loaded object along a path to loader is ld.so.
19129
19130 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19131             Ulrich Drepper  <drepper@gmail.com>
19132
19133         * sysdeps/x86_64/memset.S: After aligning destination, code
19134         branches to different locations depending on the value of
19135         misalignment, when multiarch is enabled. Fix this.
19136
19137 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19138
19139         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19140         Set _x86_64_preferred_memory_instruction for AMD processsors.
19141         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19142         Set bit_Prefer_SSE_for_memop for AMD processors.
19143
19144 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19145
19146         * libio/fmemopen.c (fmemopen): Optimize a bit.
19147
19148 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19149
19150         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19151
19152 2011-03-03  Roland McGrath  <roland@redhat.com>
19153
19154         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19155
19156 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19157
19158         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19159         __bzero_ultra1 instead of __memset_ultra1.
19160
19161 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19162             Ulrich Drepper  <drepper@gmail.com>
19163
19164         [BZ #12509]
19165         * include/link.h (struct link_map): Add l_orig_initfini.
19166         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19167         returning unsuccessfully.
19168         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19169         close of a file loaded at startup, restore the original l_initfini
19170         list.
19171         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19172         list, store the pointer.
19173         * elf/Makefile ($(objpfx)noload-mem): New rule.
19174         (noload-ENV): Define.
19175         (tests): Add $(objpfx)noload-mem.
19176         * elf/noload.c: Include <memcheck.h>.
19177         (main): Call mtrace.  Close all opened handles.
19178
19179 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19180
19181         [BZ #12454]
19182         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19183         dependencies are missing.
19184
19185 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19186
19187         Fix __if_freereq crash: Unlike the generic version which uses free,
19188         Hurd needs munmap.
19189         * sysdeps/mach/hurd/ifreq.h: New file.
19190
19191 2011-01-27  Petr Baudis  <pasky@suse.cz>
19192             Ulrich Drepper  <drepper@gmail.com>
19193
19194         [BZ 12445]#
19195         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19196         to extend_alloca().
19197         * stdio-common/bug23.c: New file.
19198         * stdio-common/Makefile (tests): Add bug23.
19199
19200 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19201             Ulrich Drepper  <drepper@gmail.com>
19202
19203         [BZ #12489]
19204         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19205         before performing relro protection.  At old place add assertion
19206         to make sure nothing changed.
19207
19208 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19209             Glauber de Oliveira Costa  <glommer@gmail.com>
19210
19211         * elf/elf.h: Add new ARM TLS relocs.
19212
19213 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19214
19215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19216         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19217         cast from r3.
19218         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19219         'tests' variable.
19220         * sysdeps/wordsize-64/tst-writev.c: New file.
19221
19222 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19223
19224         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19225         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19226         insns in _dl_start to prevent a TOC reference before relocs are
19227         resolved.
19228
19229 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19230
19231         [BZ #12469]
19232         * Makeconfig: Remove RANLIB definition.
19233         * Makerules: Don't use RANLIB.
19234         * aclocal.m4: Remove ranlib test.
19235         * configure.in: No need to check for ranlib.
19236         * elf/rtld-Rules: Don't use RANLIB.
19237
19238 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19239
19240         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19241         protection macro.
19242         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19243         inclusion protection macro.
19244
19245         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19246         SIGRTMIN and SIGRTMAX and print information in that case only when
19247         SIGRTMIN is defined.
19248
19249 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19250
19251         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19252         arginfo fn returning -1.
19253
19254         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19255         and thousands string is zero terminated.
19256
19257 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19258
19259         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19260         sysdeps/unix/sysv/linux/bits/socket.h.
19261
19262 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19263
19264         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19265         (__CPU_COUNT): Remove old macros.
19266         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19267         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19268         (__CPU_ALLOC, __CPU_FREE): Add macros.
19269         (__sched_cpualloc, __sched_cpufree): Add declarations.
19270
19271 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19272
19273         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19274         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19275         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19276         (readdhstai): Return value of addhstaiX call.
19277         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19278         (addgrbyX): Return value returned by cache_addgr.
19279         (readdgrbyname): Return value returned by addgrbyX.
19280         (readdgrbygid): Likewise.
19281         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19282         (addpwbyX): Return value returned by cache_addpw.
19283         (readdpwbyname): Return value returned by addhstbyX.
19284         (readdpwbyuid): Likewise.
19285         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19286         (addservbyX): Return value returned by cache_addserv.
19287         (readdservbyname): Return value returned by addservbyX:
19288         (readdservbyport): Likewise.
19289         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19290         (addhstbyX): Return value returned by cache_addhst.
19291         (readdhstbyname): Return value returned by addhstbyX.
19292         (readdhstbyaddr): Likewise.
19293         (readdhstbynamev6): Likewise.
19294         (readdhstbyaddrv6): Likewise.
19295         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19296         (readdinitgroups): Return value returned by addinitgroupsX.
19297         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19298         (prune_cache): Keep track of timeout value of re-added entries.
19299         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19300         * nscd/nscd.h: Adjust prototypes of readd* functions.
19301
19302 2011-02-04  Roland McGrath  <roland@redhat.com>
19303
19304         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19305         (nis_stats): Likewise.
19306         * nis/nis_modify.c (nis_modify): Likewise.
19307         * nis/nis_remove.c (nis_remove): Likewise.
19308         * nis/nis_add.c (nis_add): Likewise.
19309
19310         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19311
19312         * posix/fnmatch_loop.c: Add some consts.
19313
19314         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19315
19316 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19317
19318         [BZ #12460]
19319         * config.make.in (config-cflags-novzeroupper): Define.
19320         * configure.in: Substitute libc_cv_cc_novzeroupper.
19321         * elf/Makefile (AVX-CFLAGS): Define.
19322         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19323         (CFLAGS-tst-auditmod4a.c): Likewise.
19324         (CFLAGS-tst-auditmod4b.c): Likewise.
19325         (CFLAGS-tst-auditmod6b.c): Likewise.
19326         (CFLAGS-tst-auditmod6c.c): Likewise.
19327         (CFLAGS-tst-auditmod7b.c): Likewise.
19328         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19329
19330 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19331
19332         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19333         function to the callback.
19334         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19335
19336 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19337
19338         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19339         of errno.
19340
19341 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19342
19343         [BZ #11724]
19344         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19345         of constructors.
19346         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19347         of destructors.
19348         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19349
19350         [BZ #11724]
19351         * elf/Makefile: Add rules to build and run new test.
19352         * elf/tst-initorder.c: New file.
19353         * elf/tst-initorder.exp: New file.
19354         * elf/tst-initordera1.c: New file.
19355         * elf/tst-initordera2.c: New file.
19356         * elf/tst-initordera3.c: New file.
19357         * elf/tst-initordera4.c: New file.
19358         * elf/tst-initorderb1.c: New file.
19359         * elf/tst-initorderb2.c: New file.
19360         * elf/tst-order-a1.c: New file.
19361         * elf/tst-order-a2.c: New file.
19362         * elf/tst-order-a3.c: New file.
19363         * elf/tst-order-a4.c: New file.
19364         * elf/tst-order-b1.c: New file.
19365         * elf/tst-order-b2.c: New file.
19366         * elf/tst-order-main.c: New file.
19367         New test case by George Gensure <werkt0@gmail.com>.
19368
19369 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19370
19371         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19372         decoding ACE if AI_CANONIDN.
19373
19374 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19375
19376         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19377
19378 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19379
19380         * version.h (RELEASE): Bump for 2.13 release.
19381         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19382
19383         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19384
19385         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19386         MADV_NOHUGEPAGE.
19387         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19388         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19389         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19390         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19391         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19392         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19393
19394         * posix/getconf.c: Update copyright year.
19395         * catgets/gencat.c: Likewise.
19396         * csu/version.c: Likewise.
19397         * debug/catchsegv.sh: Likewise.
19398         * debug/xtrace.sh: Likewise.
19399         * elf/ldconfig.c: Likewise.
19400         * elf/ldd.bash.in: Likewise.
19401         * elf/sprof.c (print_version): Likewise.
19402         * iconv/iconv_prog.c: Likewise.
19403         * iconv/iconvconfig.c: Likewise.
19404         * locale/programs/locale.c: Likewise.
19405         * locale/programs/localedef.c: Likewise.
19406         * malloc/memusage.sh: Likewise.
19407         * malloc/mtrace.pl: Likewise.
19408         * nscd/nscd.c (print_version): Likewise.
19409         * nss/getent.c: Likewise.
19410
19411         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19412         PF_CAIF, and PF_ALG.
19413         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19414
19415 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19416
19417         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19418         (modules-names): Use them.
19419         (ifunc-test-modules, ifunc-pie-tests): Define.
19420         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19421         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19422         (test-extras): Likewise.
19423         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19424         $(compile-command.c).
19425         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19426         (all-built-dso): Define.
19427         (check-textrel.out, check-execstack.out): Depend on it.
19428
19429         * configure.in: Don't override --enable-multi-arch.
19430
19431 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19432
19433         [BZ #6812]
19434         * nscd/hstcache.c (tryagain): Define.
19435         (cache_addhst): Return tryagain not notfound for temporary errors.
19436         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19437         failed.
19438
19439 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19440
19441         [BZ #10563]
19442         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19443         to make the syscall.
19444         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19445
19446         [BZ #12378]
19447         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19448         and fall back to matching as normal character if the string ends before
19449         the matching ']' is found.  This is what POSIX requires.
19450         * posix/testfnm.c: Adjust test result.
19451         * posix/globtest.sh: Adjust test result.  Add new test.
19452         * posix/tst-fnmatch.input: Likewise.
19453         * posix/tst-fnmatch2.c: Add new test.
19454
19455 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19456
19457         * elf/Makefile (check-execstack): Revert last change.  Depend on
19458         check-execstack.h.
19459         (check-execstack.h): New target.
19460         (generated): Add check-execstack.h.
19461         * elf/check-execstack.c: Include "check-execstack.h".
19462         (main): Revert last change.
19463         (handle_file): Return zero if GNU_STACK is absent and
19464         DEFAULT_STACK_PERMS doesn't include PF_X.
19465
19466 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19467
19468         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19469         in child fails because the descriptor is already closed.
19470         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19471         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19472         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19473
19474         [BZ #12397]
19475         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19476         syscall.
19477
19478         [BZ #10484]
19479         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19480         temporary buffer used to handle multi lookups locally.
19481         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19482
19483 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19484
19485         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19486         loader is ld.so.
19487
19488 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19489
19490         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19491         alignment for SSE2.
19492
19493 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19494
19495         [BZ #12394]
19496         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19497         characters.  When rounding increased number of integer digits recompute
19498         number of groups.
19499         * stdio-common/tst-grouping.c: New file.
19500         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19501
19502 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19503
19504         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19505         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19506
19507         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19508         void.
19509         * bits/select.h: Likewise.
19510
19511 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19512
19513         * po/ja.po: Update from translation team.
19514
19515 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19516
19517         [BZ #11155]
19518         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19519         implementation just like for lxstat, fxstatat, et al.
19520
19521 2010-12-27  Jim Meyering  <meyering@redhat.com>
19522
19523         [BZ #12348]
19524         * posix/regexec.c (build_trtable): Return failure indication upon
19525         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19526
19527 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19528
19529         [BZ #12201]
19530         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19531         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19532         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19533         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19534
19535         [BZ #12207]
19536         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19537
19538         [BZ #12204]
19539         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19540         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19541
19542 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19543
19544         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19545         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19546         script has SORT_BY_INIT_PRIORITY.
19547         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19548         NO_CTORS_DTORS_SECTIONS is defined.
19549         * elf/soinit.c: Likewise.
19550         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19551         NO_CTORS_DTORS_SECTIONS is defined.
19552         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19553         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19554         * sysdeps/sh/init-first.c: Likewise.
19555         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19556
19557 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19558
19559         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19560         always use the slow path.
19561
19562 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19563
19564         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19565         similar rule which adds the sysdep directories to the header search in
19566         order to pick up the correct platform stackinfo.h.
19567         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19568         perform test if it is, otherwise return successfully without testing.
19569         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19570         DEFAULT_STACK_PERMS define in stackinfo.h.
19571         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19572         defined in stackinfo.h.
19573         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19574         DEFAULT_STACK_PERMS defined in stackinfo.h.
19575         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19576         * sysdeps/ia64/stackinfo.h: Likewise.
19577         * sysdeps/s390/stackinfo.h: Likewise.
19578         * sysdeps/sh/stackinfo.h: Likewise.
19579         * sysdeps/sparc/stackinfo.h: Likewise.
19580         * sysdeps/x86_64/stackinfo.h: Likewise.
19581         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19582         PF_X for powerpc64.  Retain PF_X for powerpc32.
19583
19584 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19585
19586         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19587         accurately.
19588         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19589         GETDENTS_64BIT_ALIGNED.
19590
19591 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19592
19593         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19594
19595 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19596
19597         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19598         _GNU_SOURCE.
19599
19600         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19601         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19602         Remove __restrict.
19603         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19604         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19605
19606 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19607
19608         [BZ #11655]
19609         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19610         are initialized.
19611
19612 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19613
19614         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19615
19616 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19617
19618         * po/it.po: Update from translation team.
19619
19620 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19621
19622         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19623         unused codes.
19624
19625 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19626
19627         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19628
19629 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19630
19631         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19632         specially.
19633         (gaih_getanswer_slice): Likewise.
19634
19635 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19636
19637         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19638
19639 2010-05-31  Petr Baudis  <pasky@suse.cz>
19640
19641         [BZ #11149]
19642         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19643         silently even in the chroot mode.
19644
19645 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19646
19647         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19648         last patch a bit.  Pretty printing
19649
19650 2010-05-31  Petr Baudis <pasky@suse.cz>
19651
19652         [BZ #10085]
19653         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19654         initialization of skip_initgroups_dyn.
19655
19656 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19657
19658         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19659         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19660
19661 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19662
19663         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19664
19665 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19666
19667         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19668         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19669         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19670         ($(objpfx)tst-fnmatch-mem): New rule.
19671         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19672         * posix/tst-fnmatch.c (main): Call mtrace.
19673
19674 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19675
19676         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19677         Support Intel processor model 6 and model 0x2c.
19678
19679 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19680
19681         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19682           signed comparison.
19683
19684 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19685
19686         [BZ #12205]
19687         * string/test-strncasecmp.c (check_result): New function.
19688         (do_one_test): Use it.
19689         (check1): New function.
19690         (test_main): Use it.
19691         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19692         Support strcasecmp and strncasecmp.
19693
19694 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19695
19696         [BZ #12194]
19697         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19698         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19699
19700 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19701
19702         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19703         IFUNC support.
19704         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19705         memset-x86-64.
19706         * sysdeps/x86_64/multiarch/bzero.S: New file.
19707         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19708         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19709         * sysdeps/x86_64/multiarch/memset.S: New file.
19710         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19711         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19712         Set bit_Prefer_SSE_for_memop for Intel processors.
19713         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19714         Define.
19715         (index_Prefer_SSE_for_memop): Define.
19716         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19717
19718 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19719
19720         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19721         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19722
19723 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19724
19725         [BZ #12191]
19726         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19727         (__x86_64_raw_data_cache_size_half): Likewise.
19728         (__x86_64_raw_shared_cache_size): Likewise.
19729         (__x86_64_raw_shared_cache_size_half): Likewise.
19730
19731         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19732         (__x86_64_raw_data_cache_size_half): Likewise.
19733         (__x86_64_raw_shared_cache_size): Likewise.
19734         (__x86_64_raw_shared_cache_size_half): Likewise.
19735         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19736         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19737         and __x86_64_raw_shared_cache_size_half.  Round
19738         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19739         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19740         to multiple of 256 bytes.
19741
19742 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19743
19744         [BZ #12167]
19745         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19746         of inacessible symlinks.  Verify result of symlink before returning it.
19747         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19748         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19749
19750 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19751
19752         * math/math.h (isinf): Fix typo in comment.
19753
19754 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19755
19756         * po/da.po: Update from translation team.
19757
19758 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19759
19760         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19761         is added to the list.
19762
19763 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19764             Ulrich Drepper  <drepper@gmail.com>
19765
19766         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19767         the global list here.  Move code to...
19768         (_dl_add_to_namespace_list): ...here.  New function.
19769         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19770         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19771         * elf/dl-load.c (lose): Don't remove the element from the list.
19772         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19773         (_dl_map_object): Likewise.
19774
19775 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19776
19777         [BZ #12159]
19778         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19779         into all bytes of SSE register.
19780         Patch by Richard Li <richardpku@gmail.com>.
19781
19782 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19783
19784         [BZ #12140]
19785         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19786         perturbing.
19787
19788 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19789
19790         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19791         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19792         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19793         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19795         submachine.
19796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19797
19798 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19799
19800         * include/dlfcn.h (__RTLD_SECURE): Define.
19801         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19802         mode & __RTLD_SECURE instead.
19803         (open_path): Rename preloaded parameter to secure.
19804         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19805         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19806         * elf/dl-deps.c (openaux): Likewise.
19807         * elf/rtld.c (struct map_args): Remove is_preloaded.
19808         (map_doit): Don't use it.
19809         (dl_main): Likewise.
19810         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19811         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19812
19813 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19814
19815         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19816         (sysd-rules-targets): Remove duplicates.
19817         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19818         rtld-%.$o dependency.
19819
19820 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19821
19822         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19823         _dl_map_object do it.
19824
19825 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19826
19827         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19828         fast fma builtins, define the macros in the C99 standard.
19829         (FP_FAST_FMAF): Likewise.
19830         (FP_FAST_FMAL): Likewise.
19831         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19832
19833         * bits/mathdef.h: Update copyright year.
19834         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19835
19836 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19837
19838         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19839         builtins, define the macros in the C99 standard.
19840         (FP_FAST_FMAF): Likewise.
19841         (FP_FAST_FMAL): Likewise.
19842         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19843         multiply/add.
19844         (FP_FAST_FMAF): Likewise.
19845
19846 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19847
19848         [BZ #3268]
19849         * math/libm-test.inc (fma_test): Some new testcases.
19850         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19851         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19852         y and infinite z.  Do multiplication by C already in long double.
19853         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19854         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19855         y and infinite z.  Do bitwise or of inexact bit into u.d.
19856         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19857         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19858         * sysdeps/i386/fpu/s_fma.S: Removed.
19859         * sysdeps/i386/fpu/s_fmal.S: Removed.
19860
19861 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19862
19863         [BZ #3268]
19864         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19865         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19866         computation is not scheduled after fetestexcept.  Fix value
19867         of minimum denormal long double.
19868
19869 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19870
19871         [BZ #3268]
19872         * math/libm-test.inc (fma_test): Add some more tests.
19873         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19874         correctly.
19875
19876 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19877
19878         * scripts/data/localplt-s390-linux-gnu.data: New file.
19879         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19880
19881 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19882
19883         [BZ #3268]
19884         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19885         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19886         instead of dbl-64.
19887         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19888         inlines.
19889         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19890         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19891         if one of x and y is very large and the other is subnormal.
19892         * sysdeps/s390/fpu/s_fmaf.c: New file.
19893         * sysdeps/s390/fpu/s_fma.c: New file.
19894         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19895         * sysdeps/powerpc/fpu/s_fma.S: New file.
19896         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19897         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19898         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19899
19900 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19901
19902         [BZ #3268]
19903         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19904         fma tests.
19905         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19906         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19907         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19908         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19909         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19910         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19911         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19912
19913 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19914
19915         [BZ #12078]
19916         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19917         * posix/bug-regex31.input: Add test case.
19918
19919 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19920
19921         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19922         * posix/bug-regex31.input: New file.
19923
19924         [BZ #12078]
19925         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19926         (parse_sub_exp): Fix last change, use postorder.
19927
19928         * posix/bug-regex31.c: New file.
19929         * posix/Makefile: Add rules to build and run bug-regex31.
19930
19931         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19932
19933         [BZ #12078]
19934         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19935
19936         [BZ #12108]
19937         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19938         to have entries in sys_siglist.
19939
19940         [BZ #12093]
19941         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19942         be NULL.
19943
19944 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19945
19946         [BZ #3268]
19947         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19948         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19949         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19950         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19951         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19952         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19953         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19954         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19955         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19956         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19957         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19958         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19959         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19960         * math/ftestexcept.c (fetestexcept): Likewise.
19961         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19962         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19963         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19964         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19965         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19966         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19967         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19968
19969 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19970
19971         [BZ #12107]
19972         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19973         newline.
19974
19975 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19976
19977         * string/bug-strstr1.c: New file.
19978         * string/Makefile: Add rules to build and run bug-strstr1.
19979
19980 2010-10-05  Eric Blake  <eblake@redhat.com>
19981
19982         [BZ #12092]
19983         * string/str-two-way.h (two_way_long_needle): Always clear memory
19984         when skipping input due to the shift table.
19985
19986 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19987
19988         [BZ #12005]
19989         * malloc/mcheck.c: Handle large requests.
19990
19991         [BZ #12077]
19992         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19993         for strncmp and strncasecmp.
19994         * string/stratcliff.c: Add tests for strcmp and strncmp.
19995         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19996
19997 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19998
19999         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20000         __set_fpscr.
20001
20002 2010-09-30  Andreas Jaeger  <aj@suse.de>
20003
20004         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20005         (CGROUP_SUPER_MAGIC): Define.
20006         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20007         Handle btrfs and cgroup file systems.
20008         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20009         Likewise.
20010
20011 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20012
20013         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20014         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20015
20016 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20017
20018         [BZ #12067]
20019         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20020         trying to locate the ELF header.
20021
20022 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20023
20024         [BZ #11611]
20025         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20026         Mask out sign-bit copies when constructing f_fsid.
20027
20028 2010-09-24  Petr Baudis <pasky@suse.cz>
20029
20030         * debug/stack_chk_fail_local.c: Add missing licence exception.
20031         * debug/warning-nop.c: Likewise.
20032
20033 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20034
20035         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20036         implementing getdents64 using getdents syscall, set d_type if
20037         __ASSUME_GETDENTS32_D_TYPE.
20038
20039 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20040
20041         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20042         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20043
20044 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20045
20046         [BZ #12037]
20047         * posix/unistd.h: Undo change of feature selection for ftruncate from
20048         2010-01-11.
20049
20050 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20051
20052         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20053         detection.
20054
20055 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20056
20057         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20058         fanotify_mark.
20059         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20060
20061 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20062
20063         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20064         variables after CHECK_SP call.
20065         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20066
20067 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20068             Ulrich Drepper  <drepper@redhat.com>
20069
20070         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20071         re-relocationg ld.so.
20072         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20073         _dl_init_paths call.
20074         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20075         here anymore.
20076
20077 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20078
20079         * resolv/res_init.c (__res_vinit): Count the default server we added.
20080
20081 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20082             Ulrich Drepper  <drepper@redhat.com>
20083
20084         [BZ #11968]
20085         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20086         (____longjmp_chk): Use %ebx for saving value across system call.
20087         Add unwind info.
20088
20089 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20090
20091         * manual/Makefile: Don't mix pattern rules with normal rules.
20092
20093 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20094
20095         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20096         operation.
20097         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20098         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20099         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20100         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20101         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20102         Likewise.
20103
20104 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20105
20106         [BZ #11979]
20107         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20108         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20109
20110 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20111
20112         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20113         * sysdeps/x86_64/addmul_1.S: Likewise.
20114         * sysdeps/x86_64/lshift.S: Likewise.
20115         * sysdeps/x86_64/mul_1.S: Likewise.
20116         * sysdeps/x86_64/rshift.S: Likewise.
20117         * sysdeps/x86_64/sub_n.S: Likewise.
20118         * sysdeps/x86_64/submul_1.S: Likewise.
20119
20120 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20121
20122         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20123         Define __sched_param instead of SCHED_* and sched_param when
20124         <bits/sched.h> is included with __need_schedparam defined.
20125         * bits/sched.h [__need_schedparam]
20126         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20127         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20128         (__defined_schedparam): Define to 1.
20129         (__sched_param): New structure, identical to sched_param.
20130         (__need_schedparam): Undefine.
20131
20132 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20133
20134         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20135         (epoll_create1): Declare.
20136
20137         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20138
20139 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20140
20141         [BZ #7066]
20142         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20143         shifting retval into place.
20144
20145 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20146
20147         * nis/rpcsvc/nis.h: Update copyright notice.
20148         * nis/rpcsvc/nis.x: Likewise.
20149         * nis/rpcsvc/nis_callback.h: Likewise.
20150         * nis/rpcsvc/nis_callback.x: Likewise.
20151         * nis/rpcsvc/nis_object.x: Likewise.
20152         * nis/rpcsvc/nis_tags.h: Likewise.
20153         * nis/rpcsvc/yp.h: Likewise.
20154         * nis/rpcsvc/yp.x: Likewise.
20155         * nis/rpcsvc/ypupd.h: Likewise.
20156         * nis/yp_xdr.c: Likewise.
20157         * nis/ypupdate_xdr.c: Likewise.
20158
20159         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20160         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20161         (pmap_getport): Use __libc_rpc_getport.
20162         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20163         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20164         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20165
20166 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20167
20168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20169         fanotify_mark.
20170
20171 2010-08-27  Roland McGrath  <roland@redhat.com>
20172
20173         * sysdeps/i386/i686/multiarch/Makefile
20174         (CFLAGS-varshift.c): New variable.
20175
20176 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20177
20178         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20179         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20180
20181         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20182
20183         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20184
20185 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20186
20187         * sysdeps/x86_64/strlen.S: Unroll the loop.
20188         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20189         strlen-sse2 strlen-sse2-bsf.
20190         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20191         __strlen_no_bsf if bit_Slow_BSF is set.
20192         (__strlen_sse42): Removed.
20193         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20194         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20195
20196 2010-08-25  Roland McGrath  <roland@redhat.com>
20197
20198         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20199         * sysdeps/x86_64/multiarch/varshift.c: New file.
20200         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20201         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20202         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20203         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20204
20205 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20206
20207         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20208         strlen-sse2 strlen-sse2-bsf.
20209         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20210         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20211         (__strlen_sse2): Removed.
20212         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20213         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20214         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20215         bit_Slow_BSF for Atom.
20216         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20217         (index_Slow_BSF): Define.
20218         (HAS_SLOW_BSF): Define.
20219
20220 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20221
20222         [BZ #10851]
20223         * resolv/res_init.c (__res_vinit): When no server address at all
20224         is given default to loopback.
20225
20226 2010-08-24  Roland McGrath  <roland@redhat.com>
20227
20228         * configure.in: Remove config-name.h generation.
20229         * configure: Regenerated.
20230         * config-name.in: File removed.
20231         * scripts/config-uname.sh: New file.
20232         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20233         ($(objdir)config-name.h): New target.
20234
20235         * sunrpc/rpc_parse.h: Avoid nested comment.
20236
20237 2010-08-24  Richard Henderson  <rth@redhat.com>
20238             Ulrich Drepper  <drepper@redhat.com>
20239             H.J. Lu  <hongjiu.lu@intel.com>
20240
20241         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20242         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20243         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20244         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20245         _mm_alignr_epi8 with _mm_loadu_si128.
20246         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20247         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20248         (__m128i_shift_right): Removed.
20249         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20250         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20251         * sysdeps/x86_64/multiarch/varshift.h: New file.
20252         * sysdeps/x86_64/multiarch/varshift.S: New file.
20253
20254 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20255
20256         * configure.in: Move assembler checks to before sysdep dir checking.
20257
20258 2010-08-20  Petr Baudis  <pasky@suse.cz>
20259
20260         * LICENSES: Sync the sunrpc license.
20261
20262 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20263
20264         * sunrpc/auth_des.c: Update copyright notice once again.
20265         * sunrpc/auth_none.c: Likewise.
20266         * sunrpc/auth_unix.c: Likewise.
20267         * sunrpc/authdes_prot.c: Likewise.
20268         * sunrpc/authuxprot.c: Likewise.
20269         * sunrpc/bindrsvprt.c: Likewise.
20270         * sunrpc/clnt_gen.c: Likewise.
20271         * sunrpc/clnt_perr.c: Likewise.
20272         * sunrpc/clnt_raw.c: Likewise.
20273         * sunrpc/clnt_simp.c: Likewise.
20274         * sunrpc/clnt_tcp.c: Likewise.
20275         * sunrpc/clnt_udp.c: Likewise.
20276         * sunrpc/clnt_unix.c: Likewise.
20277         * sunrpc/des_crypt.c: Likewise.
20278         * sunrpc/des_soft.c: Likewise.
20279         * sunrpc/get_myaddr.c: Likewise.
20280         * sunrpc/getrpcport.c: Likewise.
20281         * sunrpc/key_call.c: Likewise.
20282         * sunrpc/key_prot.c: Likewise.
20283         * sunrpc/openchild.c: Likewise.
20284         * sunrpc/pm_getmaps.c: Likewise.
20285         * sunrpc/pm_getport.c: Likewise.
20286         * sunrpc/pmap_clnt.c: Likewise.
20287         * sunrpc/pmap_prot.c: Likewise.
20288         * sunrpc/pmap_prot2.c: Likewise.
20289         * sunrpc/pmap_rmt.c: Likewise.
20290         * sunrpc/rpc/auth.h: Likewise.
20291         * sunrpc/rpc/auth_unix.h: Likewise.
20292         * sunrpc/rpc/clnt.h: Likewise.
20293         * sunrpc/rpc/des_crypt.h: Likewise.
20294         * sunrpc/rpc/key_prot.h: Likewise.
20295         * sunrpc/rpc/netdb.h: Likewise.
20296         * sunrpc/rpc/pmap_clnt.h: Likewise.
20297         * sunrpc/rpc/pmap_prot.h: Likewise.
20298         * sunrpc/rpc/pmap_rmt.h: Likewise.
20299         * sunrpc/rpc/rpc.h: Likewise.
20300         * sunrpc/rpc/rpc_des.h: Likewise.
20301         * sunrpc/rpc/rpc_msg.h: Likewise.
20302         * sunrpc/rpc/svc.h: Likewise.
20303         * sunrpc/rpc/svc_auth.h: Likewise.
20304         * sunrpc/rpc/types.h: Likewise.
20305         * sunrpc/rpc/xdr.h: Likewise.
20306         * sunrpc/rpc_clntout.c: Likewise.
20307         * sunrpc/rpc_cmsg.c: Likewise.
20308         * sunrpc/rpc_common.c: Likewise.
20309         * sunrpc/rpc_cout.c: Likewise.
20310         * sunrpc/rpc_dtable.c: Likewise.
20311         * sunrpc/rpc_hout.c: Likewise.
20312         * sunrpc/rpc_main.c: Likewise.
20313         * sunrpc/rpc_parse.c: Likewise.
20314         * sunrpc/rpc_parse.h: Likewise.
20315         * sunrpc/rpc_prot.c: Likewise.
20316         * sunrpc/rpc_sample.c: Likewise.
20317         * sunrpc/rpc_scan.c: Likewise.
20318         * sunrpc/rpc_scan.h: Likewise.
20319         * sunrpc/rpc_svcout.c: Likewise.
20320         * sunrpc/rpc_tblout.c: Likewise.
20321         * sunrpc/rpc_util.c: Likewise.
20322         * sunrpc/rpc_util.h: Likewise.
20323         * sunrpc/rpcinfo.c: Likewise.
20324         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20325         * sunrpc/rpcsvc/key_prot.x: Likewise.
20326         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20327         * sunrpc/rpcsvc/mount.x: Likewise.
20328         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20329         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20330         * sunrpc/rpcsvc/rex.x: Likewise.
20331         * sunrpc/rpcsvc/rstat.x: Likewise.
20332         * sunrpc/rpcsvc/rusers.x: Likewise.
20333         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20334         * sunrpc/rpcsvc/spray.x: Likewise.
20335         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20336         * sunrpc/rtime.c: Likewise.
20337         * sunrpc/svc.c: Likewise.
20338         * sunrpc/svc_auth.c: Likewise.
20339         * sunrpc/svc_authux.c: Likewise.
20340         * sunrpc/svc_raw.c: Likewise.
20341         * sunrpc/svc_run.c: Likewise.
20342         * sunrpc/svc_simple.c: Likewise.
20343         * sunrpc/svc_tcp.c: Likewise.
20344         * sunrpc/svc_udp.c: Likewise.
20345         * sunrpc/svc_unix.c: Likewise.
20346         * sunrpc/svcauth_des.c: Likewise.
20347         * sunrpc/xcrypt.c: Likewise.
20348         * sunrpc/xdr.c: Likewise.
20349         * sunrpc/xdr_array.c: Likewise.
20350         * sunrpc/xdr_float.c: Likewise.
20351         * sunrpc/xdr_mem.c: Likewise.
20352         * sunrpc/xdr_rec.c: Likewise.
20353         * sunrpc/xdr_ref.c: Likewise.
20354         * sunrpc/xdr_sizeof.c: Likewise.
20355         * sunrpc/xdr_stdio.c: Likewise.
20356
20357         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20358         handling.
20359
20360 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20361
20362         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20363
20364 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20365
20366         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20367         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20368         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20369         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20370         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20371         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20372         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20373         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20374         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20375         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20376         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20377         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20378         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20379         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20380
20381 2010-07-26  Anton Blanchard  <anton@samba.org>
20382
20383         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20384         * malloc/arena.c (heap_trim): Likewise.
20385
20386 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20387
20388         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20389         here.  Not...
20390         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20391         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20392
20393 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20394
20395         * sysdeps/i386/elf/Makefile: New file.
20396
20397 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20398
20399         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20400         from fanotify_init.
20401         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20402         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20403
20404 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20405
20406         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20407         of strncasecmp_l.
20408         * sysdeps/multiarch/strcmp.S: Likewise.
20409
20410 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20411
20412         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20413         strncase_l-nonascii.
20414         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20415         Add strncase_l-ssse3.
20416         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20417         * sysdeps/x86_64/strcmp.S: Likewise.
20418         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20419         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20420         * sysdeps/x86_64/strncase.S: New file.
20421         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20422         * sysdeps/x86_64/strncase_l.S: New file.
20423         * string/Makefile (strop-tests): Add strncasecmp.
20424         * string/test-strncasecmp.c: New file.
20425
20426         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20427         warning.
20428
20429         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20430         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20431
20432 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20433
20434         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20435
20436 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20437
20438         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20439         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20440         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20441
20442 2010-05-01  Alan Modra  <amodra@gmail.com>
20443
20444         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20445         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20446         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20447         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20448         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20449         tidying.  Don't tail-call __sigjmp_save for static lib.
20450         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20451         save location.
20452         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20453         (CALL_MCOUNT): Add eh info, and nop after bl.
20454         (TAIL_CALL_SYSCALL_ERROR): New macro.
20455         (PSEUDO_RET): Use it.
20456         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20457         Correct save location of integer regs and cr.
20458         (_dl_profile_resolve): Correct cr save location.  Delete nops
20459         after bl when SHARED.  Reduce cfi size a little by better
20460         placement of cfi directives.
20461         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20462         make a stack frame.  Instead use parm save area as a temp.
20463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20464         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20466         Don't make a stack frame for parent, use parm save area.
20467         Increase child stack frame to 112 bytes.  Don't save unused reg,
20468         and adjust reg usage.  Set up cfi on error recovery and
20469         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20471         (__makecontext): Add dummy nop after jump to exit.
20472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20473         Use correct parm save area and cr save, reduce stack frame.
20474         Correct cfi for possible PSEUDO_RET frame setup.
20475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20476         Branch to local label emitted by PSEUDO_RET rather than
20477         __syscall_error.
20478
20479 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20480
20481         [BZ #11904]
20482         * locale/programs/locale.c (print_assignment): New function.
20483         (show_locale_vars): Use it.
20484
20485 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20486
20487         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20488         field.
20489         (struct statfs64): Likewise.
20490         (_STATFS_F_FLAGS): Define.
20491         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20492         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20493         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20494         (ST_VALID): Define locally.
20495         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20496         __statvfs_getflags, use the provided value.
20497         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20498         __ASSUME_STATFS_F_FLAGS.
20499
20500         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20501
20502         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20503         Add sys/fanotify.h.
20504         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20505         fanotify_mask for GLIBC_2.13.
20506         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20507         fanotify_init and fanotify_mark.
20508         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20509         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20510
20511         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20512         Add prlimit.
20513         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20514         prlimit64 for GLIBC_2.13.
20515         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20516         prlimit64.
20517         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20518         syscall.
20519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20520         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20521         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20522         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20523         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20524         add prlimit alias.
20525         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20526
20527         [BZ #11903]
20528         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20529         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20530
20531         * nss/Makefile: Add rules to build and run tst-nss-test1.
20532         * shlib-versions: Add entry for libnss_test1.
20533         * nss/nss_test1.c: New file.
20534         * nss/tst-nss-test1.c: New file.
20535
20536         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20537         (__nss_configure_lookup): Set appropriate entry in
20538         __nss_configure_lookup to true.
20539         * nss/nsswitch.h: Define enum with indeces of databases in
20540         databases and __nss_database_custom arrays.  Declare
20541         __nss_database_custom.
20542         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20543         to avoid using nscd when custom rules are installed.
20544         * nss/getXXbyYY_r.c: Likewise.
20545         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20546
20547         * nss/nss_files/files-parse.c: Whitespace fixes.
20548
20549 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20550
20551         [BZ #11883]
20552         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20553         * posix/fnmatch_loop.c: Likewise.
20554
20555 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20556
20557         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20558         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20559         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20560         * Versions.def [GLIBC_2.13]: Add.
20561
20562 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20563
20564         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20565         Also fail if tpwd after pwuid call is NULL.
20566
20567 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20568
20569         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20570         when converting to ms.
20571
20572 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20573
20574         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20575         EOPNOTSUPP errors with ENOTTY.
20576         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20577         EOPNOTSUPP errors with ENOTTY.
20578
20579 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20580
20581         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20582         Add strcasecmp_l-ssse3.
20583         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20584         strcasecmp.
20585         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20586         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20587         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20588
20589 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20590
20591         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20592
20593         * string/Makefile (strop-tests): Add strcasecmp.
20594         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20595         strcasecmp_l-nonascii.
20596         (gen-as-const-headers): Add locale-defines.sym.
20597         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20598         * sysdeps/x86_64/strcasecmp.S: New file.
20599         * sysdeps/x86_64/strcasecmp_l.S: New file.
20600         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20601         * sysdeps/x86_64/locale-defines.sym: New file.
20602         * string/test-strcasecmp.c: New file.
20603
20604         * string/test-strcasestr.c: Test both ends of the range of characters.
20605         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20606
20607 2010-07-29  Roland McGrath  <roland@redhat.com>
20608
20609         [BZ #11856]
20610         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20611
20612 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20613
20614         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20615         for ld.so.
20616
20617 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20618
20619         * manual/memory.texi (Malloc Tunable Parameters): Document
20620         M_PERTURB.
20621
20622 2010-07-26  Roland McGrath  <roland@redhat.com>
20623
20624         [BZ #11840]
20625         * configure.in (-fgnu89-inline check): Set and substitute
20626         gnu89_inline, not libc_cv_gnu89_inline.
20627         * configure: Regenerated.
20628         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20629
20630 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20631
20632         * string/test-strnlen.c: New file.
20633         * string/Makefile (strop-tests): Add strnlen.
20634         * string/tester.c (test_strnlen): Add a few more test cases.
20635         * string/tst-strlen.c: Better error reporting.
20636
20637         * sysdeps/x86_64/strnlen.S: New file.
20638
20639 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20640
20641         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20642         lower-latency instructions.
20643
20644 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20645
20646         * string/test-strcasestr.c: New file.
20647         * string/test-strstr.c: New file.
20648         * string/Makefile (strop-tests): Add strstr and strcasestr.
20649         * string/str-two-way.h: Don't undefine MAX.
20650         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20651
20652 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20653
20654         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20655         strcasestr-nonascii.
20656         (CFLAGS-strcasestr-nonascii.c): Define.
20657         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20658         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20659         Remove unused attribute.
20660
20661 2010-07-20  Roland McGrath  <roland@redhat.com>
20662
20663         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20664         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20665         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20666         like LD_HWCAP_MASK can disable hwcaps.
20667
20668 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20669
20670         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20671
20672 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20673
20674         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20675         call in strcasestr.
20676         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20677         __strcasestr_sse42_nonascii.
20678         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20679         strcasestr-nonascii.c.
20680         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20681
20682 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20683
20684         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20685         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20686         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20687         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20688
20689 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20690
20691         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20692         fcntl.
20693
20694 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20695
20696         [BZ #11577]
20697         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20698         dl_signal_cerror.
20699
20700 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20701
20702         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20703         _PC_PIPE_BUF using F_GETPIPE_SZ.
20704
20705 2010-07-05  Roland McGrath  <roland@redhat.com>
20706
20707         * manual/arith.texi (Rounding Functions): Fix rint description
20708         implicit in round description.
20709
20710 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20711
20712         * elf/Makefile: Fix linking for a few tests to make recent linker
20713         happy.
20714
20715 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20716
20717         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20718         $(common-objpfx)libc_nonshared.a.
20719
20720 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20721
20722         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20723         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20724         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20725         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20726         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20727         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20728         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20729         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20744         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20745         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20746         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20747         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20748         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20749         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20750         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20751         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20752         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20753         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20754         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20755         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20763         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20770
20771 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20772
20773         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20774         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20775         * string/memmove.c (memmove): Renamed to ...
20776         (MEMMOVE): ...this.  Default to memmove.
20777         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20778         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20779         (END_CHK): Define.
20780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20781         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20782         mempcpy-ssse3-back memmove-ssse3-back.
20783         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20784         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20785         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20786         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20787         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20788         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20789         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20790         * sysdeps/x86_64/multiarch/memmove.c: New file.
20791         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20792         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20793         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20794         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20795         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20796         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20797         Define.
20798         (index_Fast_Copy_Backward): Define.
20799         (HAS_ARCH_FEATURE): Define.
20800         (HAS_FAST_REP_STRING): Define.
20801         (HAS_FAST_COPY_BACKWARD): Define.
20802
20803 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20804
20805         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20806         Restore proper fallback handling.
20807
20808 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20809
20810         [BZ #11701]
20811         * posix/group_member.c (__group_member): Correct checking loop.
20812
20813         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20814         OOM in getpwuid_r correctly.  Return error number when the caller
20815         should return, otherwise -1.
20816         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20817         call returning > 0 value.
20818         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20819
20820 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20821
20822         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20823         libc_nonshared.a from targets in modules-names.
20824
20825 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20826
20827         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20828         requires it.
20829
20830 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20831
20832         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20833         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20834         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20835         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20836
20837 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20838
20839         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20840
20841 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20842
20843         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20844         and F_GETPIPE_SZ.
20845         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20846         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20847         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20848         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20849         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20850         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20851
20852 2010-06-14  Roland McGrath  <roland@redhat.com>
20853
20854         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20855
20856 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20857
20858         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20859         __REDIRECT followed by __THROW.
20860         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20861         * posix/getopt.h (getopt): Likewise.
20862
20863 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20864
20865         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20866         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20867         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20868         in AT_FLAGS.
20869         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20870         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20871
20872 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20873
20874         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20875
20876 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20877
20878         [BZ #11640]
20879         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20880         Properly check family and model.
20881
20882 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20883
20884         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20885
20886 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20887
20888         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20889
20890 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20891
20892         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20893         symbol reference.
20894
20895 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20896
20897         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20898         symbol reference.
20899
20900 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20901
20902         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20903         and internal_recvmmsg.
20904         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20905         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20906         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20907         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20908
20909         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20910         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20911         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20912
20913 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20914
20915         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20916
20917 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20918
20919         POWER7 optimizations.
20920         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20921         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20922
20923 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20924
20925         * version.h: Update for 2.13 development version.
20926
20927 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20928
20929         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20930         exceptions.  Return 0.
20931
20932 2010-05-07  Roland McGrath  <roland@redhat.com>
20933
20934         * elf/ldconfig.c (main): Add a const.
20935
20936 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20937
20938         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20939         (args_options): Add no-idn option.
20940         (ahosts_keys_int): Add idn_flags to ai_flags.
20941         (parse_option): Handle 'i' option to clear idn_flags.
20942
20943         * malloc/malloc.c (_int_free): Possible race in the most recently
20944         added check.  Only act on the data if no current modification
20945         happened.
20946
20947 See ChangeLog.17 for earlier changes.