Fix powerpc abilist sort order
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
2
3         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4         Fix sort order.
5         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6         Likewise.
7
8 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9
10         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11         Fix the order of the list for glibc 2.17.
12         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13         Likewise.
14
15 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
16
17         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18
19 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
20
21         [BZ #14610]
22         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
23         for low part of x being zero before using __atanl (y).
24         * math/libm-test.inc (atan2_test): Add another test.
25
26         * manual/install.texi (Configuring and compiling): Document
27         general use of test-wrapper and test-wrapper-env.
28         * INSTALL: Regenerated.
29
30         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
31         (__fma): Do not extract and scale down low bits on after-rounding
32         systems when result rounded to normal precision would have normal
33         exponent.
34         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
35         (__fmal): Do not extract and scale down low bits on after-rounding
36         systems when result rounded to normal precision would have normal
37         exponent.
38         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
39         (__fmal): Do not extract and scale down low bits on after-rounding
40         systems when result rounded to normal precision would have normal
41         exponent.
42         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
43         macro.
44         (fma_test): Add more tests.
45         (fma_test_towardzero): Likewise.
46         (fma_test_downward): Likewise.
47         (fma_test_upward): Likewise.
48
49 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
50
51         * sysdeps/i386/tininess.h: Renamed to ...
52         * sysdeps/x86/tininess.h: This.
53         * sysdeps/x86_64/tininess.h: Removed.
54
55 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56
57         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
58         input.  Use $(build-program-cmd).
59         ($(objpfx)tst-array1-static.out): Likewise.
60         ($(objpfx)tst-array2.out): Likewise.
61         ($(objpfx)tst-array3.out): Likewise.
62         ($(objpfx)tst-array4.out): Likewise.
63         ($(objpfx)tst-array5.out): Likewise.
64         ($(objpfx)tst-array5-static.out): Likewise.
65
66 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
67
68         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
69         if defined.
70
71         * nss/nsswitch.h (nss_interface_function): Provide new
72         macro for use with NSS functions.
73         * grp/initgroups.c: Use new macro.
74         * nss/getXXbyYY.c: Likewise.
75         * nss/getXXbyYY_r.c: Likewise.
76         * nss/getXXent.c: Likewise.
77         * nss/getXXent_r.c: Likewise.
78         * sysdeps/posix/getaddrinfo.c: Likewise.
79
80 2012-10-30  Andreas Jaeger  <aj@suse.de>
81
82         * po/ru.po: Update Russion translation from translation project.
83
84 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
85
86         [BZ #14152]
87         [BZ #14783]
88         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
89         result and shift together with sticky bit instead of replicating
90         round-to-nearest rounding.
91         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
92         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
93         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
94         missing underflow exceptions.
95         (fma_test_towardzero): Add more tests.
96         (fma_test_downward): Likewise.
97         (fma_test_upward): Likewise.
98
99         [BZ #14047]
100         * sysdeps/generic/tininess.h: New file.
101         * sysdeps/i386/tininess.h: Likewise.
102         * sysdeps/sh/tininess.h: Likewise.
103         * sysdeps/x86_64/tininess.h: Likewise.
104         * stdlib/tst-strtod-underflow.c: Likewise.
105         * stdlib/tst-tininess.c: Likewise.
106         * stdlib/strtod_l.c: Include <tininess.h>.
107         (round_and_return): Do not set errno for exact underflow cases.
108         Force an underflow exception when setting errno for underflow.
109         Determine underflow based on rounding to normal precision if
110         TININESS_AFTER_ROUNDING.
111         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
112         ERANGE for exact underflow cases.
113         * stdlib/Makefile (tests): Add tst-tininess and
114         tst-strtod-underflow.
115         ($(objpfx)tst-tininess): Use $(link-libm).
116         ($(objpfx)tst-strtod-underflow): Likewise.
117
118 2012-10-30  Andreas Jaeger  <aj@suse.de>
119
120         [BZ#14767]
121         * elf/Makefile (tests): Remove conditional for have-initfini-array
122         since this is now always required and the variable does not exist
123         anymore.
124         (tests-static): Likewise.
125         (modules-names): Likewise.
126
127         * po/eo.po: Add Esperanto translation from translation project.
128
129         * elf/tst-array1.c (fini_array): Make writeable so that it can be
130         merged with constructor/destructor.
131         (init_array): Likewise.
132         * elf/tst-array2dep.c (fini_array): Likewise.
133         (init_array): Likewise.
134
135 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
136
137         * manual/message.texi: Delete @cartouche tags.
138
139 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
140
141         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
142         EOPNOTSUPP.
143         * sysdeps/mach/hurd/fsync.c: Likewise.
144
145         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
146         [_POSIX_REALTIME_SIGNALS]: Change condition to
147         [_POSIX_REALTIME_SIGNALS > 0].
148
149 2012-10-27  Andreas Jaeger  <aj@suse.de>
150
151         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
152         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
154         [__WORDSIZE != 64]: Likewise.
155
156 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
157
158         *  iconvdata/tst-table.sh: Remove ${SHELL}.
159         *  iconvdata/tst-tables.sh: Likewise.
160
161 2012-10-25  David S. Miller  <davem@davemloft.net>
162
163         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
164         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
165         of strtoull.
166
167         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
168         ifunc-impl-list.c
169         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
170         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
171         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
172         file.
173
174 2012-10-25  Roland McGrath  <roland@hack.frob.com>
175
176         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
177         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
178         __getdirentries.
179
180 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
181             Jim Blandy  <jimb@codesourcery.com>
182
183         * scripts/cross-test-ssh.sh: New file.
184         * manual/install.texi (Configuring and compiling): Document use of
185         cross-test-ssh.sh.
186         * INSTALL: Regenerated.
187
188 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
189
190         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
191         EOPNOTSUPP.
192
193 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
194
195         * Makeconfig (run-program-prefix): Fix comment.
196
197 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
198             Jim Blandy  <jimb@codesourcery.com>
199
200         * Makeconfig (test-wrapper): New variable,
201         (test-wrapper-env): Likewise.
202         [$(cross-compiling) = yes && $(test-wrapper) != ""]
203         (run-built-tests): Define to yes.
204         (run-program-prefix): Use $(test-wrapper).
205         (built-program-cmd): Likewise.
206         * Rules (make-test-out): Use $(test-wrapper-env) and
207         $(host-built-program-cmd).
208         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
209         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
210         tst-pathopt.sh.
211         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
212         $(test-wrapper-env) to tst-rtld-load-self.sh.
213         ($(objpfx)order2.out): Use $(test-wrapper).
214         ($(objpfx)tst-initorder.out): Likewise.
215         ($(objpfx)tst-initorder2.out): Likewise.
216         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
217         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
218         (test_wrapper_env): New variable.  Use it to run ld.so.
219         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
220         Use it to run ld.so.
221         (test_wrapper_env): Likewise.
222         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
223         $(test-wrapper) to run-iconv-test.sh.
224         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
225         (ICONV): Use $test_wrapper.
226         * posix/Makefile ($(objpfx)globtest.out): Pass
227         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
228         globtest.sh, not $(run-program-prefix).
229         * posix/globtest.sh (run_via_rtld_prefix): New variable.
230         (test_wrapper): Likewise.
231         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
232         set together with run_via_rtld_prefix.
233         (run_program_prefix): Define in terms of test_wrapper and
234         run_via_rtld_prefix.
235
236 2012-10-24  Roland McGrath  <roland@hack.frob.com>
237
238         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
239         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
240         Targets removed.
241
242         [BZ #14743]
243         * include/time.h: Remove librt_hidden_proto (clock_gettime).
244         Declare __clock_getres, __clock_gettime, __clock_settime,
245         __clock_nanosleep, and __clock_getcpuclockid.
246         * rt/clock_gettime.c: Define __clock_gettime as an alias.
247         Remove librt_hidden_def (clock_gettime).
248         * sysdeps/unix/clock_gettime.c: Likewise.
249         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
250         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
251         * rt/clock_getres.c: Define __clock_getres as an alias.
252         * sysdeps/posix/clock_getres.c: Likewise.
253         * rt/clock_settime.c: Define __clock_settime as an alias.
254         * sysdeps/unix/clock_settime.c: Likewise.
255         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
256         * sysdeps/unix/clock_nanosleep.c: Likewise.
257         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
258         * rt/clock-compat.c: New file.
259         * rt/Makefile (librt-routines): Add clock-compat and move
260         $(clock-routines) to ...
261         (routines): ... here, new variable.
262         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
263         Don't add get_clockfreq here.
264         * rt/Versions (libc: GLIBC_2.17): New version set.
265         Add clock_* symbols here.
266         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
267         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
268         (GLIBC_2.17): Add clock_* symbols.
269         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
270         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
271         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
273         Likewise.
274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
275         Likewise.
276         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
277         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
278         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
280         * NEWS: Mention the move.
281
282         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
283         Use __open, __read, __close rather than their public counterparts.
284         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
285         (__get_clockfreq_via_cpuinfo): Likewise.
286         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
287         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
288
289         * config.h.in (HAVE_IFUNC): New #undef.
290         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
291         was successful.
292         * configure: Regenerated.
293
294 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
295
296         * configure.in: Move READELF check to start of file.
297         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
298         libc_cv_asm_gnu_indirect_function in the process.
299         * configure: Regenerated.
300
301 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
302
303         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
304         send the output to /dev/null.
305         (libc_cv_cc_with_libunwind): Likewise.
306         (libc_cv_as_noexecstack): Likewise.
307         * configure: Regenerate.
308
309 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
310
311         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
312
313         * posix/globtest.sh (TMPDIR): Do not set.
314         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
315         (testout): Likewise.
316
317 2012-10-24  Andreas Jaeger  <aj@suse.de>
318
319         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
320         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
321         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
322         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
323         posix_fadvise64, posix_fallocate64.
324
325         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
326         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
327         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
328         Likewise.
329         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
330         Likewise.
331         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
332
333         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
334         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
335         <bits/fcntl-linux.h>.
336         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
337
338         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
339         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
340         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
341         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
342         [__WORDSIZE != 64]: Likewise.
343
344 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
345
346         * Makeconfig (run-built-tests): New variable.
347         * Rules [$(cross-compiling) = yes]: Change condition to
348         [$(run-built-tests) = no].
349         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
350         to [$(run-built-tests) = yes].
351         * elf/Makefile [$(cross-compiling) = no]: Likewise
352         * grp/Makefile [$(cross-compiling) = no]: Likewise.
353         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
354         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
355         * intl/Makefile [$(cross-compiling) = no]: Likewise.
356         * io/Makefile [$(cross-compiling) = no]: Likewise.
357         * libio/Makefile [$(cross-compiling) = no]: Likewise.
358         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
359         * misc/Makefile [$(cross-compiling) = no]: Likewise.
360         * posix/Makefile [$(cross-compiling) = no]: Likewise.
361         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
362         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
363         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
364         * string/Makefile [$(cross-compiling) = no]: Likewise.
365
366         * posix/Makefile ($(objpfx)globtest.out): Pass
367         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
368         $(rtld-installed-name).
369         * posix/globtest.sh (elf_objpfx): Remove variable.
370         (rtld_installed_name): Likewise.
371         (library_path): Likewise.
372         (run_program_prefix): New variable.  Use for running globtest
373         binary.
374
375 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
376             Joseph Myers  <joseph@codesourcery.com>
377
378         * Makeconfig (host-built-program-cmd): New variable.
379         * elf/Makefile (tst-stackguard1-ARGS): Use
380         $(host-built-program-cmd).
381         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
382         (tst-spawn-ARGS): Likewise.
383         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
384
385 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
386             Jim Blandy  <jimb@codesourcery.com>
387
388         * Makeconfig (run-via-rtld-prefix): New variable.
389         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
390         (built-program-cmd): Likewise.
391
392 2012-10-22  Andreas Jaeger  <aj@suse.de>
393
394         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
395         __O_RSYNC if it exists, otherwise to O_SYNC.
396
397 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
398             Joseph Myers  <joseph@codesourcery.com>
399
400         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
401         /dev/null.
402         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
403         from /dev/null
404         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
405         /dev/null.
406
407 2012-10-22  Andreas Jaeger  <aj@suse.de>
408
409         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
410         Define always.
411         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
412
413         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
414         bits/fcntl-linux.h.
415
416         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
417         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
418
419         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
420         to __O_LARGEFILE.
421         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
422         to __O_LARGEFILE.
423
424 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
425             Joseph Myers  <joseph@codesourcery.com>
426
427         * config.make.in (NM): New variable.
428
429 2012-10-21  Andreas Jaeger  <aj@suse.de>
430
431         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
432         definitions and declarations that are provided by
433         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
434
435 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
436
437         [BZ #14683]
438         * elf/Makefile (tests-static): Add tst-leaks1-static.
439         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
440         ($(objpfx)tst-leaks1-static): New rule.
441         ($(objpfx)tst-leaks1-static-mem): Likewise.
442         (tst-leaks1-static-ENV): New macro.
443         * elf/dl-open.c (dl_open_worker): Check the main application
444         only if SHARED is defined.
445         * elf/tst-leaks1-static.c: New file.
446
447 2012-10-20  Andreas Jaeger  <aj@suse.de>
448
449         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
450         generic values for Linux.
451         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
452         and declarations that are provided by <bits/fcntl-linux.h> and
453         include <bits/fcntl-linux.h>.
454         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
455         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
456
457 2012-10-20  Roland McGrath  <roland@hack.frob.com>
458
459         * io/fcntl.h: Move include of <bits/types.h> to the top and
460         include it unconditionally.
461
462 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
463
464         * wcsmbs/Makefile (tests-ifunc): New variable.
465         (tests): Add $(tests-ifunc).
466         * wcsmbs/test-wcschr-ifunc.c: New file.
467         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
468         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
469         * wcsmbs/test-wcslen-ifunc.c: Likewise.
470         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
471         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
472
473         * string/Makefile (tests-ifunc): New variable.
474         (tests): Add $(tests-ifunc).
475         * string/test-memccpy.c (TEST_NAME): New macro.
476         * string/test-memchr.c (TEST_NAME): Likewise.
477         * string/test-memcmp.c (TEST_NAME): Likewise.
478         * string/test-memcpy.c (TEST_NAME): Likewise.
479         * string/test-memmem.c (TEST_NAME): Likewise.
480         * string/test-memmove.c (TEST_NAME): Likewise.
481         * string/test-memset.c (TEST_NAME): Likewise.
482         * string/test-rawmemchr.c (TEST_NAME): Likewise.
483         * string/test-stpcpy.c (TEST_NAME): Likewise.
484         * string/test-stpncpy.c (TEST_NAME): Likewise.
485         * string/test-strcasecmp.c (TEST_NAME): Likewise.
486         * string/test-strcasestr.c (TEST_NAME): Likewise.
487         * string/test-strcat.c (TEST_NAME): Likewise.
488         * string/test-strchr.c (TEST_NAME): Likewise.
489         * string/test-strcmp.c(TEST_NAME): Likewise.
490         * string/test-strcpy.c (TEST_NAME): Likewise.
491         * string/test-strcspn.c (TEST_NAME): Likewise.
492         * string/test-strlen.c (TEST_NAME): Likewise.
493         * string/test-strncasecmp.c (TEST_NAME): Likewise.
494         * string/test-strncmp.c (TEST_NAME): Likewise.
495         * string/test-strncpy.c (TEST_NAME): Likewise.
496         * string/test-strnlen.c (TEST_NAME): Likewise.
497         * string/test-strpbrk.c (TEST_NAME): Likewise.
498         * string/test-strrchr.c (TEST_NAME): Likewise.
499         * string/test-strspn.c (TEST_NAME): Likewise.
500         * string/test-strstr.c (TEST_NAME): Likewise.
501         * string/test-bcopy-ifunc.c: New file.
502         * string/test-bzero-ifunc.c: Likewise.
503         * string/test-memccpy-ifunc.c: Likewise.
504         * string/test-memchr-ifunc.c: Likewise.
505         * string/test-memcmp-ifunc.c: Likewise.
506         * string/test-memcpy-ifunc.c: Likewise.
507         * string/test-memmem-ifunc.c: Likewise.
508         * string/test-memmove-ifunc.c: Likewise.
509         * string/test-mempcpy-ifunc.c: Likewise.
510         * string/test-memset-ifunc.c: Likewise.
511         * string/test-rawmemchr-ifunc.c: Likewise.
512         * string/test-stpcpy-ifunc.c: Likewise.
513         * string/test-stpncpy-ifunc.c: Likewise.
514         * string/test-strcasecmp-ifunc.c: Likewise.
515         * string/test-strcasestr-ifunc.c: Likewise.
516         * string/test-strcat-ifunc.c: Likewise.
517         * string/test-strchr-ifunc.c: Likewise.
518         * string/test-strchrnul-ifunc.c: Likewise.
519         * string/test-strcmp-ifunc.c: Likewise.
520         * string/test-strcpy-ifunc.c: Likewise.
521         * string/test-strcspn-ifunc.c: Likewise.
522         * string/test-strlen-ifunc.c: Likewise.
523         * string/test-strncasecmp-ifunc.c: Likewise.
524         * string/test-strncat-ifunc.c: Likewise.
525         * string/test-strncmp-ifunc.c: Likewise.
526         * string/test-strncpy-ifunc.c: Likewise.
527         * string/test-strnlen-ifunc.c: Likewise.
528         * string/test-strpbrk-ifunc.c: Likewise.
529         * string/test-strrchr-ifunc.c: Likewise.
530         * string/test-strspn-ifunc.c: Likewise.
531         * string/test-strstr-ifunc.c: Likewise.
532
533         * debug/Makefile (tests-ifunc): New variable.
534         (tests): Add $(tests-ifunc).
535         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
536         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
537         * debug/test-stpcpy_chk-ifunc.c: New file.
538         * debug/test-strcpy_chk-ifunc.c: Likewise.
539
540 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
541
542         [BZ #13601]
543         * elf/dl-load.c (open_verify): Retry read if the entire ELF
544         header is not read in.
545
546 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
547
548         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
549         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
550         directly.  Pass built executable to script as
551         $(built-program-cmd).
552         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
553         $testprogram without using LD_LIBRARY_PATH and $ldso.
554
555         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
556         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
557         $(rtld-installed-name).
558         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
559         (rtld_installed_name): Likewise.
560         (library_path): Likewise.
561         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
562         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
563         $(run-program-prefix) to tst-tables.sh.
564         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
565         it to run tst-table-from and tst-table-to.
566         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
567         Pass it to tst-table.sh.
568         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
569         $(run-program-prefix) to tst-gettext.sh.
570         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
571         tst-translit.sh.
572         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
573         tst-gettext2.sh.
574         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
575         to run tst-gettext.
576         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
577         to run tst-gettext2.
578         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
579         to run tst-translit.
580         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
581         $(run-program-prefix) to tst-mtrace.sh.
582         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
583         to run tst-mtrace.
584         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
585         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
586         $(rtld-installed-name).
587         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
588         (rtld_installed_name): Likewise.
589         (run_program_prefix): New variable.  Use it to run wordexp-test.
590
591         * Makeconfig (ARCH): Remove all definitions.
592         (machine): Likewise.
593         [ARCH]: Remove conditional code.
594         [!objdir]: Give error.
595         [!objdir] (objpfx): Remove.
596         [!objdir] (common-objpfx): Likewise.
597         [!objdir] (common-objdir): Likewise.
598         * configure.in (config_makefile): Remove.  Hardcode Makefile in
599         AC_CONFIG_FILES call.
600         * configure: Regenerated.
601
602         [BZ #13888]
603         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
604         or TMPDIR.
605         (testout): Likewise.
606
607         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
608         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
609         $(rtld-installed-name).
610         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
611         (rtld_installed_name): Likwise.
612         (runit): Remove function.
613         (run_getconf): New variable,  Use it for running getconf binary.
614
615 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
616
617         [BZ #14716]
618         * string/test-memmem.c (check_result): New function.
619         (do_one_test): Use it.
620         (check1): New function.
621         (test_main): Use it.
622
623 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
624
625         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
626
627 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
628
629         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
630         (_G_LSEEK64): Likewise.
631         (_G_MMAP64): Likewise.
632         (_G_FSTAT64): Likewise.
633         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
634         (_G_LSEEK64): Likewise.
635         (_G_MMAP64): Likewise.
636         (_G_FSTAT64): Likewise.
637         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
638         unconditional.  Call __mmap64 directly.
639         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
640         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
641         __lseek64 directly.
642         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
643         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
644         __mmap64 directly.
645         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
646         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
647         __lseek64 directly.
648         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
649         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
650         __lseek64 directly.
651         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
652         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
653         __lseek64 directly.
654         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
655         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
656         __fxstat64 directly.
657         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
658         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
659         unconditional.
660         (freopen64) [!_G_OPEN64]: Remove conditional code.
661         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
662         unconditional.
663         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
664         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
665         unconditional.
666         (ftello64) [!_G_LSEEK64]: Remove conditional code.
667         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
668         unconditional.
669         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
670         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
671         unconditional.
672         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
673         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
674         unconditional.
675         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
676         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
677         unconditional.
678         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
679         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
680         unconditional.
681         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
682
683 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
684
685         [BZ #12140]
686         * manual/memory.texi (Malloc Tunable Parameters): Add note
687         about free list pointers overwriting some perturb bytes.
688         Wording suggested by Roland McGrath.
689
690 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
691
692         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
693         (lgamma_test): Likewise.
694         (tgamma_test): Likewise.
695
696 2012-10-16  Florian Weimer  <fweimer@redhat.com>
697
698         [BZ #14700]
699         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
700         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
701
702 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
703
704         * NEWS: Mention BZ #14716.
705         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
706         when removing AVAILABLE1_USES_J macro.
707
708 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
709
710         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
711         (__bswap_64): __uint64_t for unsigned 64-bit int.
712
713 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
714
715         * include/string.h (memmem): Declare libc hidden alias.
716         * string/memmem.c (memmem): Define libc hidden alias.
717         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
718         __read, __close instead of open, read, close.
719
720 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
721
722         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
723         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
724         global and hidden.
725         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
726         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
727         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
728         Likewise.
729         (__rawmemchr_sse2): Likewise.
730         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
731         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
732         (__strchr_sse2): Likewise.
733         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
734         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
735         (__strcasecmp_sse2): Likewise.
736         (__strncasecmp_sse2): Likewise.
737         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
738         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
739         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
740         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
741         (__strrchr_sse2): Likewise.
742         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
743         ifunc-impl-list.c.
744         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
745         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
746         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
747         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
748         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
749         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
750         * sysdeps/x86_64/multiarch/memset.S: Likewise.
751         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
752         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
753         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
754         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
755         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
756         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
757         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
758         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
759         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
760         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
761         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
762         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
763         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
764         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
765         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
766         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
767         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
768         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
769         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
770         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
771         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
772         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
773         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
774
775         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
776         global and hidden.
777         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
778         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
779         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
780         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
781         Likewise.
782         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
783         Likewise.
784         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
785         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
786         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
787         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
788         ifunc-impl-list.c.
789         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
790         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
791         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
792         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
793         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
794         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
795         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
796         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
797         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
798         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
799         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
800         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
801         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
802         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
803         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
804         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
805         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
806         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
807         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
808         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
809         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
810         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
811         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
812         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
813         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
814         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
815         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
816         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
817         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
818         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
819         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
820         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
821         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
822         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
823         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
824         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
825         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
826         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
827         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
828         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
829         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
830
831         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
832         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
833         * include/ifunc-impl-list.h: New file.
834         * misc/ifunc-impl-list.c: Likewise.
835         * misc/Makefile (routines): Add ifunc-impl-list.
836         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
837         * string/test-string.h: Include <ifunc-impl-list.h>.
838         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
839         impl_array): New variables.
840         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
841         are defined.
842         (test_init): Call __libc_ifunc_impl_list to initialize
843         func_list if TEST_IFUNC and TEST_NAME are defined.
844
845         * string/Makefile (strop-tests): Add bcopy and bzero.
846         * string/test-bcopy.c: New file.
847         * string/test-bzero.c: Likewise.
848         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
849         defined.
850         * string/test-memset.c: Support bzero test if TEST_BZERO is
851         defined.
852         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
853         __libc_memmove.
854         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
855         __libc_memset.
856         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
857         of memset.
858
859 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
860
861         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
862         * configure: Regenerated.
863
864         * Makeconfig (+link-static-before-libc): Don't include
865         $(link-static-libc).
866
867         * libio/libio.h (_IO_pos_t): Remove.
868
869 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
870
871         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
872         McGrath.
873
874 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
875
876         * crypt/crypt-entry.c: Include fips-private.h.
877         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
878         * crypt/md5c-test.c (main): Tolerate disabled MD5.
879         * sysdeps/unix/sysv/linux/fips-private.h: New file.
880         * sysdeps/generic/fips-private.h: New file, dummy fallback.
881
882 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
883
884         * crypt/crypt-private.h: Include stdbool.h.
885         (_ufc_setup_salt_r): Return bool.
886         * crypt/crypt-entry.c: Include errno.h.
887         (__crypt_r): Return NULL with EINVAL for bad salt.
888         * crypt/crypt_util.c (bad_for_salt): New.
889         (_ufc_setup_salt_r): Check that salt is long enough and within
890         the specified alphabet.
891         * crypt/badsalttest.c: New file.
892         * crypt/Makefile (tests): Add it.
893         ($(objpfx)badsalttest): New.
894
895 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
896
897         * NEWS: Add entry for BZ #14602.
898
899 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
900
901         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
902         type-generic.
903         * math/libm-test.inc: Update comment listing what functions and
904         macros are tested.
905         (isgreater_test): New function.
906         (isgreaterequal_test): Likewise.
907         (isless_test): Likewise.
908         (islessequal_test): Likewise.
909         (islessgreater_test): Likewise.
910         (isunordered_test): Likewise.
911         (main): Call the new functions.
912
913 2012-10-09  Roland McGrath  <roland@hack.frob.com>
914
915         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
916         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
917         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
918         * sysdeps/i386/configure: Regenerated.
919         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
920         * sysdeps/mach/configure: Regenerated.
921         * sysdeps/mach/hurd/configure: Regenerated.
922         * sysdeps/powerpc/configure: Regenerated.
923         * sysdeps/powerpc/powerpc32/configure: Regenerated.
924         * sysdeps/powerpc/powerpc64/configure: Regenerated.
925         * sysdeps/s390/s390-32/configure: Regenerated.
926         * sysdeps/s390/s390-64/configure: Regenerated.
927         * sysdeps/sh/configure: Regenerated.
928         * sysdeps/sparc/configure: Regenerated.
929         * sysdeps/unix/sysv/linux/configure: Regenerated.
930         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
931         * sysdeps/x86_64/configure: Regenerated.
932
933         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
934         defined.  Don't check if MAP is NULL.
935
936 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
937
938         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
939         (_G_stat64): Likewise.
940         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
941         (_G_stat64): Likewise.
942         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
943         instead of struct _G_stat64.
944         * libio/fileops.c (mmap_remap_check): Likewise.
945         (decide_maybe_mmap): Likewise.
946         (_IO_new_file_seekoff): Likewise.
947         (_IO_file_stat): Likewise.
948         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
949         _G_off64_t.
950         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
951         instead of struct _G_stat64.
952         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
953
954 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
955
956         [BZ #14602]
957         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
958         Replace with ...
959         (CHECK_EOL): New macro.
960         (two_way_short_needle): Check beginning of haystack for EOL.  Use
961         CHECK_EOL.
962         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
963         Replace with CHECK_EOL.
964         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
965         Replace with CHECK_EOL.
966
967 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
968
969         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
970         type-generic.
971         * math/libm-test.inc: Update comment listing what functions and
972         macros are tested.
973         (finite_test): New function.
974         (isinf_test): Likewise.
975         (isnan_test): Likewise.
976         (fpclassify_test): Test subnormal input.
977         (isfinite_test): Likewise.
978         (isnormal_test): Likewise.
979         (main): Call the new functions.
980
981 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
982
983         [BZ #14660]
984         * Makerules (%.dynsym): Force C locale when running
985         $(OBJDUMP) --dynamic-syms.
986
987 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
988
989         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
990         <stdint.h>.
991
992 2012-10-06  David S. Miller  <davem@davemloft.net>
993
994         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
995         upper 32-bits of the length value in %o2 since we use branch-on-register
996         tests which consider the entire 64-bit register.
997
998 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
999
1000         * string/test-strstr.c (check2): Add a test for page boundary.
1001
1002 2012-10-05  David S. Miller  <davem@davemloft.net>
1003
1004         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1005         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1006         file.
1007         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1008         sysdep_routines.
1009         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1010         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1011         and bzero when HWCAP_SPARC_CRYPTO is present.
1012
1013 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1014
1015         [BZ #14602]
1016         * string/test-strstr.c (check2): New function.
1017         (test_main): Call check2.
1018
1019         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1020         and bug-strchr1.
1021         * string/bug-strcasestr1.c (do_test): Moved to ...
1022         * string/test-strcasestr.c (check1): Here.  New function.
1023         (do_one_test): Break out result checking code into ...
1024         (check_result): This.  New function.
1025         (do_one_test): Call check_result.
1026         (test_main): Call check1.
1027         * string/bug-strchr1.c (do_test): Moved to ...
1028         * string/test-strchr.c (check1): Here.  New function.
1029         (do_one_test): Break out result checking code into ...
1030         (check_result): This.  New function.
1031         (do_one_test): Call check_result.
1032         (test_main): Call check1.
1033         * string/bug-strstr1.c (main): Moved to ...
1034         * string/test-strchr.c (check1): Here.  New function.
1035         (do_one_test): Break out result checking code into ...
1036         (check_result): This.  New function.
1037         (do_one_test): Call check_result.
1038         (test_main): Call check1.
1039         * string/bug-strcasestr1.c: Removed.
1040         * string/bug-strchr1.c: Likewise.
1041         * string/bug-strstr1.c: Likewise.
1042
1043         * elf/Makefile (dl-routines): Add hwcaps.
1044         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1045         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1046         (_dl_important_hwcaps): Moved to ...
1047         * elf/dl-hwcaps.c: Here.  New file.
1048         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1049
1050         [BZ #14557]
1051         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1052         if IS_IN_rtld isn't defined.
1053
1054         * elf/dl-support.c (_dl_sysinfo_map): New.
1055         Include "get-dynamic-info.h" and "setup-vdso.h".
1056         (_dl_non_dynamic_init): Call setup_vdso.
1057         * elf/dynamic-link.h: Don't include <assert.h>.
1058         (elf_get_dynamic_info): Moved to ...
1059         * elf/get-dynamic-info.h: Here.  New file.
1060         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1061         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1062         * elf/setup-vdso.h: Here.  New file.
1063         * elf/rtld.c: Include "setup-vdso.h".
1064         (dl_main): Call setup_vdso.
1065
1066 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1067
1068         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1069         creal in comment listing functions tested.  List finite, isinf,
1070         isnan, isless, islessequal, isgreater, isgreaterequal,
1071         islessgreater, isunordered, lgamma_r and pow10 as functions and
1072         macros not tested.  Mention which functions not tested are aliases
1073         for other functions.  Fix typo.  Note that signs of NaNs are not
1074         tested.
1075
1076         * scripts/config.guess: Update from config.git.
1077         * scripts/config.sub: Likewise.
1078
1079 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1080
1081         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1082         * misc/madvise.c (madvise): Renamed to __madvise.
1083         Make madvise a weak alias.
1084         * include/sys/mman.h: Declare __madvise.
1085         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1086         * sysdeps/unix/syscalls.list
1087         (madvise): Make __madvise the strong name, and madvise a weak alias.
1088         * sysdeps/unix/sysv/linux/syscalls.list
1089         (madvise, mmap): Remove redundant entries.
1090         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1091         * malloc/malloc.c (mtrim): Likewise.
1092         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1093
1094 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1095
1096         * sysdeps/mach/hurd/dl-cache.c: File removed.
1097         * config.h.in (USE_LDCONFIG): New #undef.
1098         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1099         * configure: Regenerated.
1100         * elf/Makefile (dl-routines): Add dl-cache only under
1101         [$(use-ldconfig) = yes].
1102         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1103         cache on [USE_LDCONFIG].
1104         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1105         [USE_LDCONFIG].
1106         * elf/rtld.c (dl_main): Likewise.
1107
1108 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1109
1110         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1111         _SC_LEVEL4_CACHE_LINESIZE.
1112
1113 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1114
1115         * sysdeps/unix/bsd/confstr.h: File removed.
1116
1117 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1118
1119         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1120         sys/sdt-config.h.
1121
1122 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1123
1124         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1125         Make 'mapoff' field ElfW(Off) rather than off_t.
1126
1127 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1128
1129         * nscd/Makefile: Remove nscd-cflags and all its users.
1130         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1131         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1132
1133         [BZ #10631]
1134         * malloc.c (malloc_printerr): Clarify error message.
1135
1136 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1137
1138         [BZ #14648]
1139         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1140         Set bit_FMA_Usable if FMA is supported.
1141         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1142         macro.
1143         (bit_FMA4_Usable): Updated.
1144         (index_FMA_Usable): New macro.
1145         (CPUID_FMA): Likewise
1146         (HAS_FMA): Defined with bit_FMA_Usable.
1147
1148 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1149
1150         * bits/types.h (__swblk_t): Type removed.
1151         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1152         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1153         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1154         (__SWBLK_T_TYPE): Likewise.
1155         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1156         (__SWBLK_T_TYPE): Likewise.
1157         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1158         (__SWBLK_T_TYPE): Likewise.
1159         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1160         (__SWBLK_T_TYPE): Likewise.
1161
1162 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1163             Honza Horak <hhorak@redhat.com>
1164
1165         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1166         (xdr_mapname): Use YPMAXMAP as maxsize.
1167         (xdr_peername): Use YPMAXPEER as maxsize.
1168         (xdr_keydat): Use YPAXRECORD as maxsize.
1169         (xdr_valdat): Use YPMAXRECORD as maxsize.
1170
1171 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1172
1173         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1174
1175         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1176         * csu/init-first.c: ... here.
1177         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1178         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1179         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1180         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1181         * sysdeps/i386/init-first.c: File removed.
1182         * sysdeps/sh/init-first.c: File removed.
1183
1184 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1185
1186         [BZ #14645]
1187         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1188         if x * y might underflow to zero and z is zero.
1189         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1190         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1191         * math/libm-test.inc (min_subnorm_value): New variable.
1192         (fma_test): Add more tests.
1193         (fma_test_towardzero): Likewise.
1194         (fma_test_downward): Likewise
1195         (fma_test_upward): Likewise.
1196         (initialize): Set min_subnorm_value.
1197
1198 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1199
1200         [BZ #14638]
1201         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1202         0 + 0.
1203         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1204         mode for addition resulting in exact zero.
1205         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1206         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1207         exact 0 + 0.
1208         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1209         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1210         * math/libm-test.inc (fma_test): Add more tests.
1211         (fma_test_towardzero): New function.
1212         (fma_test_downward): Likewise.
1213         (fma_test_upward): Likewise.
1214         (main): Call the new functions.
1215
1216 2012-09-28  David S. Miller  <davem@davemloft.net>
1217
1218         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1219
1220 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1221
1222         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1223         instead of SIGALRM.
1224
1225         * sysdeps/gnu/_G_config.h: Moved to ...
1226         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1227         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1228         * sysdeps/generic/_G_config.h: ... here.
1229
1230         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1231
1232         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1233
1234         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1235         Conditionalize target on [libnss_test1.so-version].
1236
1237         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1238
1239         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1240         (elfobjdir): Move out of conditionals.
1241
1242         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1243         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1244         (__nss_lookup_function): Conditionalize label remove_from_tree on
1245         [!DO_STATIC_NSS || SHARED], matching its only use.
1246
1247 2012-09-28  David S. Miller  <davem@davemloft.net>
1248
1249         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1250         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1251         file.
1252         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1253         sysdep_routines.
1254         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1255         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1256         when HWCAP_SPARC_CRYPTO is present.
1257
1258 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1259
1260         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1261
1262 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1263
1264         [BZ #6530]
1265         * stdio-common/vfprintf.c (process_string_arg): Revert
1266         2000-07-22 change.
1267
1268 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1269
1270         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1271         for testcase.
1272         * stdio-common/tst-sprintf.c: Include <locale.h>
1273         (main): Test sprintf's handling of incomplete multibyte
1274         characters.
1275
1276 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1277
1278         * elf/dl-runtime.c (VERSYMIDX): Removed.
1279         * elf/dl-version.c (VERSYMIDX): Likewise.
1280         * elf/do-rel.h (VERSYMIDX): Likewise.
1281         (VALIDX): Likewise.
1282         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1283         * elf/rtld.c (VALIDX): Likewise.
1284         (ADDRIDX): Likewise.
1285         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1286         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1287         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1288         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1289         (VALIDX): Likewise.
1290         (ADDRIDX): Likewise.
1291
1292 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1293
1294         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1295
1296 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1297
1298         [BZ #11438]
1299         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1300         to global scope.
1301         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1302         addresses are in the same scope as 192.0.2/24.
1303         * posix/gai.conf: Document new scope table defaults.
1304
1305 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1306
1307         [BZ #5298]
1308         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1309         for ftell.  Compute offsets from write pointers instead.
1310         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1311
1312 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1313
1314         [BZ #14543]
1315         * libio/Makefile (tests): New test case tst-fseek.
1316         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1317         combination works in wide mode.
1318         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1319         state when the external buffer state changes.
1320
1321 2012-09-27  David S. Miller  <davem@davemloft.net>
1322
1323         [BZ #14376]
1324         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1325         pass reloc->r_addend in as the 'high' argument to
1326         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1327
1328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1329
1330 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1331
1332         * rt/tst-aio2.c: Include <pthread.h>.
1333         * rt/tst-aio3.c: Likewise.
1334
1335 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1336
1337         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1338
1339 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1340
1341         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1342         contents on [SHARED].
1343
1344 2012-09-26  Marek Polacek  <polacek@redhat.com>
1345
1346         [BZ #14530]
1347         [BZ #13741]
1348         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1349         for C++ and GCC <4.3 as well as for non GCC compilers.
1350
1351 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1352
1353         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1354
1355 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1356
1357         * Makefile.in (all, install): Declare with .PHONY.
1358         Reported by Michael Hope <michael.hope@linaro.org>.
1359
1360 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1361
1362         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1363         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1364         system header.
1365         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1366         Likewise.
1367         (sydep_routines): Add the new and the internal functions.
1368         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1369         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1371         (GLIBC_2.17): Add the new function.
1372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1373         (GLIBC_2.17): Likewise.
1374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1375         (GLIBC_2.17): Likewise.
1376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1377         (GLIBC_2.17): Likewise.
1378         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1379
1380 2012-09-25  Alan Modra  <amodra@gmail.com>
1381
1382         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1383         Add release barrier before setting once_control to say
1384         initialisation is done.  Add hints on lwarx.  Use macro in
1385         place of isync.
1386         (clear_once_control): Add release barrier.
1387
1388 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1389
1390         [BZ #13629]
1391         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1392         specially.
1393         * math/s_clog10.c (__clog10): Likewise.
1394         * math/s_clog10f.c (__clog10f): Likewise.
1395         * math/s_clog10l.c (__clog10l): Likewise.
1396         * math/s_clogf.c (__clogf): Likewise.
1397         * math/s_clogl.c (__clogl): Likewise.
1398         * math/Makefile (libm-calls): Add x2y2m1.
1399         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1400         (__x2y2m1): Likewise.
1401         (__x2y2m1l): Likewise.
1402         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1403         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1404         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1405         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1406         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1407         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1408         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1409         * sysdeps/i386/fpu/libm-test-ulps: Update.
1410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1411
1412         [BZ #14621]
1413         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1414         int as type of variable DEPTH.
1415         (glob): Use size_t instead of int as type of variables NEWCOUNT
1416         and OLD_PATHC.
1417
1418 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1419
1420         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1421         Add s_sincosf-sse2.
1422         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1423         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1424         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1425         macros for using routine as __sincosf_ia32.
1426         Use macro for function declaration and weak_alias.
1427         * sysdeps/i386/fpu/libm-test-ulps: Update.
1428
1429         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1430         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1431
1432         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1433         subnormal argument.
1434         * math/s_cexpf.c (__cexpf): Likewise.
1435         * math/s_csinf.c (__csinf): Likewise.
1436         * math/s_csinhf.c (__csinhf): Likewise.
1437         * math/s_ctanf.c (__ctanf): Likewise.
1438         * math/s_ctanhf.c (__ctanhf): Likewise.
1439         * math/s_ccosh.c (__ccoshf): Likewise.
1440         * math/s_cexp.c (__cexpl): Likewise.
1441         * math/s_csin.c (__csin): Likewise.
1442         * math/s_csinh.c (__csinh): Likewise.
1443         * math/s_ctan.c (__ctan): Likewise.
1444         * math/s_ctanh.c (ctanh): Likewise.
1445         * math/s_ccoshl.c (__ccoshl): Likewise.
1446         * math/s_cexpl.c (__cexpl): Likewise.
1447         * math/s_csinl.c (__csinl): Likewise.
1448         * math/s_csinhl.c (__csinhl): Likewise.
1449         * math/s_ctanl.c (__ctanl): Likewise.
1450         * math/s_ctanhl.c (__ctanhl): Likewise.
1451
1452 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1453
1454         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1455         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1456         (_IO_off_t): Define to __off_t, not _G_off_t.
1457         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1458         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1459         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1460         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1461         type of __dummy and __dummy2 fields.
1462         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1463         (_G_ssize_t): Likewise.
1464         (_G_off_t): Likewise.
1465         (_G_pid_t): Likewise.
1466         (_G_uid_t): Likewise.
1467         (_G_wchar_t): Likewise.
1468         (_G_wint_t): Likewise.
1469         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1470         (_G_ssize_t): Likewise.
1471         (_G_off_t): Likewise.
1472         (_G_pid_t): Likewise.
1473         (_G_uid_t): Likewise.
1474         (_G_wchar_t): Likewise.
1475         (_G_wint_t): Likewise.
1476         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1477         (_G_ssize_t): Likewise.
1478         (_G_off_t): Likewise.
1479         (_G_pid_t): Likewise.
1480         (_G_uid_t): Likewise.
1481         (_G_wchar_t): Likewise.
1482         (_G_wint_t): Likewise.
1483
1484 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1485
1486         * malloc/arena.c: Include malloc-sysdep.h.
1487         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1488         is sufficient to shrink the heap or an unmap is needed.
1489         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1490         new function check_may_shrink_heap.
1491         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1492         new function check_may_shrink_heap.
1493
1494 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1495
1496         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1497         comments.
1498
1499 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1500
1501         * catgets/test-gencat.sh: Add "set -e".
1502         * elf/tst-pathopt.sh: Likewise.
1503         * grp/tst_fgetgrent.sh: Likewise.
1504         * iconvdata/run-iconv-test.sh: Likewise.
1505         * intl/tst-gettext.sh: Likewise.
1506         * intl/tst-gettext2.sh: Likewise.
1507         * intl/tst-gettext4.sh: Likewise.
1508         * intl/tst-gettext6.sh: Likewise.
1509         * intl/tst-translit.sh: Likewise.
1510         * io/ftwtest-sh: Likewise.
1511         * libio/test-freopen.sh: Likewise.
1512         * malloc/tst-mtrace.sh: Likewise.
1513         * posix/globtest.sh: Likewise.
1514         * posix/tst-getconf.sh: Likewise.
1515         * posix/wordexp-tst.sh: Likewise.
1516         * stdio-common/tst-printf.sh: Likewise.
1517         * stdio-common/tst-unbputc.sh: Likewise.
1518         * stdlib/tst-fmtmsg.sh: Likewise.
1519         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1520         * catgets/Makefile: Do not specify -e option when running
1521         testsuite shell scripts.
1522         * elf/Makefile: Likewise.
1523         * grp/Makefile: Likewise.
1524         * iconvdata/Makefile: Likewise.
1525         * intl/Makefile: Likewise.
1526         * io/Makefile: Likewise.
1527         * libio/Makefile: Likewise.
1528         * malloc/Makefile: Likewise.
1529         * posix/Makefile: Likewise.
1530         * stdio-common/Makefile: Likewise.
1531         * stdlib/Makefile: Likewise.
1532         * sysdeps/x86_64/Makefile: Likewise.
1533
1534         * io/ftwtest-sh: Add copyright header.
1535         * posix/globtest.sh: Likewise.
1536         * posix/tst-getconf.sh: Likewise.
1537         * posix/wordexp-tst.sh: Likewise.
1538         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1539
1540 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1541
1542         [BZ #13679]
1543         * Makeconfig (+link): Defined as $(+link-static) if
1544         $(build-shared) isn't yes.
1545         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1546         isn't yes.
1547         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1548
1549         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1550
1551         [BZ #14562]
1552         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1553         new chunk size with MALLOC_ALIGN_MASK.
1554
1555 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1556
1557         [BZ #5044]
1558         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1559         <rounding-mode.h>.
1560         (__printf_fphex): Determine rounding using get_rounding_mode and
1561         round_away.
1562         * stdio-common/tst-printf-round.c (struct hex_test): New
1563         structure.
1564         (hex_tests): New variable.
1565         (test_hex_in_one_mode): New function.
1566         (do_test): Also run tests for hex float output.
1567
1568 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1569
1570         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1571         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1572         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1573         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1574         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1575         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1576         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1577         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1578
1579 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1580
1581         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1582         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1583         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1584         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1585
1586 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1587
1588         [BZ #14579]
1589         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1590         mode only.
1591         * elf/tst-rtld-load-self.sh: New test.
1592         * elf/Makefile: Run it.
1593
1594 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1595
1596         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1597         (tst-writev-ENV): Remove.
1598         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1599
1600 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1601
1602         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1603
1604 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1605
1606         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1607         unconditional.
1608         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1609         Likewise.
1610         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1611         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1612         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1613         Likewise.
1614
1615 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1616
1617         [BZ #14587]
1618         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1619         * config.make.in (have-cpp-asm-debuginfo): Removed.
1620         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1621         * configure: Regenerated.
1622
1623 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1624
1625         [BZ #5044]
1626         * stdio-common/printf_fp.c: Include <stdbool.h> and
1627         <rounding-mode.h>.
1628         (___printf_fp): Determine rounding using get_rounding_mode and
1629         round_away.
1630         * stdio-common/tst-printf-round.c: New file.
1631         * stdio-common/Makefile (tests): Add tst-printf-round.
1632         (link-libm): New variable.
1633         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1634
1635 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1636
1637         [BZ #14576]
1638         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1639         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1640         Likewise.
1641         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1642         Likewise.
1643
1644 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1645
1646         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1647         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1648         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1649         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1650
1651 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1652
1653         [BZ #14518]
1654         * include/rounding-mode.h: New file.
1655         * sysdeps/generic/get-rounding-mode.h: Likewise.
1656         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1657         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1658         (MAX_VALUE): New macro.
1659         (MIN_VALUE): Likewise.
1660         (overflow_value): New function.
1661         (underflow_value): Likewise.
1662         (round_and_return): Use overflow_value and underflow_value to
1663         determine return values in overflow and underflow cases.  Use
1664         round_away to determine rounding depending on rounding mode.
1665         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1666         determine return values in overflow and underflow cases.
1667         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1668         (struct test_results): New structure.
1669         (struct test): Use struct test_results to store expected results
1670         for all rounding modes.
1671         (TEST): Include expected results for all rounding modes.
1672         (test_in_one_mode): New function.
1673         (do_test): Use test_in_one_mode to compute and check results.
1674         Check results for all rounding modes.
1675         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1676         $(link-libm).
1677
1678 2012-12-09  Allan McRae  <allan@archlinux.org>
1679
1680         * sysdeps/i386/fpu/libm-test-ulps: Update
1681
1682 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1683
1684         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1685         (_G_int32_t): Likewise.
1686         (_G_uint16_t): Likewise.
1687         (_G_uint32_t): Likewise.
1688         (_G_HAVE_BOOL): Likewise.
1689         (_G_HAVE_ATEXIT): Likewise.
1690         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1691         (_G_HAVE_IO_FILE_OPEN): Likewise.
1692         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1693         (_G_int32_t): Likewise.
1694         (_G_uint16_t): Likewise.
1695         (_G_uint32_t): Likewise.
1696         (_G_HAVE_BOOL): Likewise.
1697         (_G_HAVE_ATEXIT): Likewise.
1698         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1699         (_G_HAVE_IO_FILE_OPEN): Likewise.
1700         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1701         (_G_int32_t): Likewise.
1702         (_G_uint16_t): Likewise.
1703         (_G_uint32_t): Likewise.
1704         (_G_HAVE_BOOL): Likewise.
1705         (_G_HAVE_ATEXIT): Likewise.
1706         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1707         (_G_HAVE_IO_FILE_OPEN): Likewise.
1708
1709 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1710
1711         * csu/libc-tls.c: Update copyright years.
1712
1713 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1714
1715         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1716         [!_G_USING_THUNKS]: Remove conditional code.
1717         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1718         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1719
1720         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1721         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1722         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1723         (_G_VTABLE_LABEL_PREFIX): Likewise.
1724         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1725         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1726         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1727         (_G_VTABLE_LABEL_PREFIX): Likewise.
1728         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1729         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1730         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1731         (_G_VTABLE_LABEL_PREFIX): Likewise.
1732         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1733
1734 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1735
1736         * libio/Makefile: Include ../Makeconfig before tests.
1737         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1738         only if $(build-shared) is yes.
1739
1740         * iconv/gconv_db.c: Update copyright years.
1741
1742 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1743
1744         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1745         unwind info if defined PIC. Fix special cases description.
1746         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1747
1748         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1749         DP_HI_MASK entry.
1750         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1751
1752 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1753
1754         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1755
1756         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1757         is NULL.
1758
1759         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1760         (LDLIBS-tst-chk4): This.
1761         (LDFLAGS-tst-chk5): Renamed to ...
1762         (LDLIBS-tst-chk5): This.
1763         (LDFLAGS-tst-chk6): Renamed to ...
1764         (LDLIBS-tst-chk6): This.
1765         (LDFLAGS-tst-lfschk4): Renamed to ...
1766         (LDLIBS-tst-lfschk4): This.
1767         (LDFLAGS-tst-lfschk5): Renamed to ...
1768         (LDLIBS-tst-lfschk5): This.
1769         (LDFLAGS-tst-lfschk6): Renamed to ...
1770         (LDLIBS-tst-lfschk6): This.
1771
1772         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1773         on $(common-objpfx)soversions.mk.
1774
1775 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1776
1777         [BZ #10014]
1778         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1779         example host name.
1780
1781 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1782
1783         * malloc/arena.c (arena_get_retry): New function that gets
1784         another arena for the caller to try its request on.
1785         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1786         current arena cannot fulfill the request.
1787         (__libc_memalign): Likewise.
1788         (__libc_memalign): Likewise.
1789         (__libc_pvalloc): Likewise.
1790         (__libc_calloc): Likewise.
1791
1792 2012-09-05  John Tobey  <john.tobey@gmail.com>
1793
1794         [BZ #13542]
1795         * manual/arith.texi (Operations on Complex): Fix description
1796         of carg branch cut.
1797
1798 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1799
1800         [BZ #10014]
1801         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1802         host name.
1803
1804         [BZ #10038]
1805         * manual/memory.texi (Memory): Make order of menu items match
1806         order of sections.
1807
1808 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1809
1810         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1811         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1812         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1813
1814 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1815
1816         * csu/libc-tls.c (static_dtv): Renamed to ...
1817         (_dl_static_dtv): This.  Make it global.
1818         (_dl_initial_dtv): Removed.
1819         (__libc_setup_tls): Updated.
1820         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1821         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1822         DL_INITIAL_DTV.
1823
1824 2012-09-06  Petr Machata  <pmachata@redhat.com>
1825
1826         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1827         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1828         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1829         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1830
1831 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1832
1833         [BZ #14545]
1834         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1835         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1836         freeing dtv[-1].
1837
1838 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1839
1840         [BZ #14544]
1841         * Makeconfig (link-static-before-libc): Replace $(+prector)
1842         with $(+prectorT).
1843         (link-static-after-libc): Replace $(+postctor) with
1844         $(+postctorT).
1845         (link-bounded): Replace $(+prector)/$(+postctor) with
1846         $(+prectorT)/$(+postctorT).
1847         (+prectorT): New macro.
1848         (+postctorT): Likewise.
1849
1850 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1851
1852         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1853         (round_str): Handle values above the maximum for IBM long double
1854         as inexact.
1855         * stdlib/tst-strtod-round.c (tests): Regenerated.
1856
1857 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1858
1859         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1860         assembler flag.
1861         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1862         zarch_nohighgprs around the zarch optimized routines.
1863         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1864         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1865         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1866         for zarch.
1867
1868 2012-09-05  David S. Miller  <davem@davemloft.net>
1869
1870         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1871
1872         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1873         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1874         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1875         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1876         entries.
1877
1878 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1879
1880         * malloc/arena.c: Fold copyright years.
1881         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1882
1883 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1884
1885         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1886
1887 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1888
1889         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1890
1891 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1892
1893         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1894         change internal state upon failure.
1895
1896 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1897
1898         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1899         * malloc/memusage.c (mmap): Likewise.
1900         (mmap64, mremap): Likewise.  Adjust name in comment.
1901
1902 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1903
1904         * libio/fileops.c: Fix typos in comments.
1905         * libio/oldfileops.c: Likewise.
1906         * libio/wfileops.c: Likewise.
1907
1908 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1909
1910         [BZ #1349]
1911         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1912         (tst-malloc-usable-ENV): Set environment for test case.
1913         * malloc/hooks.c (malloc_check_get_size): New function to get
1914         requested size.
1915         * malloc/malloc.c (musable): Use malloc_check_get_size.
1916         * malloc/tst-malloc-usable.c: New test case.
1917
1918 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1919
1920         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1921
1922 2012-09-05  Allan McRae  <allan@archlinux.org>
1923
1924         [BZ #13966]
1925         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1926         determine header location.
1927         * configure: Regenerated.
1928
1929 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1930
1931         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1932         float format.
1933         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1934         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1935         format.
1936         (test): Regenerate.
1937
1938 2012-09-04  David S. Miller  <davem@davemloft.net>
1939
1940         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1941         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1942         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1943
1944 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1945
1946         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1947         failures.
1948
1949         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1950
1951 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1952
1953         [BZ #9914]
1954         * libio/iogetdelim.c: Include <limits.h>.
1955         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1956         + len + 1 would overflow.
1957
1958 2012-09-03  Andreas Jaeger  <aj@suse.de>
1959
1960         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1961         * sysdeps/i386/fpu/libm-test-ulps: Update.
1962
1963 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1964
1965         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1966         Add s_sinf-sse2, s_conf-sse2.
1967
1968         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1969         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1970         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1971         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1972
1973         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1974         for using routine as __sinf_ia32.
1975         Use macro for function declaration and weak_alias.
1976         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1977         for using routine as __cosf_ia32.
1978         Use macro for function declaration and weak_alias.
1979
1980         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1981         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1982
1983         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1984         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1985         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1986
1987         * math/libm-test.inc (cos_test): Add more test cases.
1988         (sin_test): Likewise.
1989         (sincos_test): Likewise.
1990
1991 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1992
1993         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1994         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1995         hidden.
1996         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1997
1998 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1999
2000         [BZ #14538]
2001         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2002         first element of the GOT.
2003         (elf_machine_load_address): Return the difference between
2004         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2005
2006 2012-09-01  Allan McRae  <allan@archlinux.org>
2007
2008         [BZ #13412]
2009         * configure.in (AWK): Require gawk version 3.0 or later.
2010         * configure: Regenerated.
2011
2012 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2013
2014         * sysdeps/unix/sysv/linux/kernel-features.h
2015         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2016         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2017         [__NR_clock_getres]: Make code unconditional.
2018         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2019         (clock_getcpuclockid): Remove code left unreachable by removal of
2020         conditionals.
2021         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2022         code unconditional.
2023         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2024         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2025         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2026         Make code unconditional.
2027         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2028         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2029         * sysdeps/unix/sysv/linux/clock_settime.c
2030         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2031         conditional code.
2032         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2033         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2034
2035 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2036
2037         [BZ #14476]
2038         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2039         scripts/test-installation.pl.
2040
2041         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2042         and $ld_so_version if it is set.
2043
2044 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2045
2046         [BZ #14516]
2047         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2048         failure if reading from procfs failed.
2049         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2050
2051 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2052
2053         * sysdeps/unix/sysv/linux/kernel-features.h
2054         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2055         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2056         Remove conditional code.
2057         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2058         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2059         Remove conditional code.
2060         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2061         * sysdeps/unix/sysv/linux/i386/fxstat.c
2062         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2063         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2064         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2065         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2066         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2067         * sysdeps/unix/sysv/linux/i386/lxstat.c
2068         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2069         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2070         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2071         Remove conditional code.
2072         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2073         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2074         Remove conditional code.
2075         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2076         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2077         <kernel-features.h>.
2078         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2079         Remove.
2080         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2081         Remove conditional code.
2082         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2083         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2084         Remove conditional.
2085
2086 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2087
2088         [BZ #5400]
2089         * NEWS: Add fixed bug number.
2090
2091 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2092
2093         [BZ #14519]
2094         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2095         underflowing exponent in case of negative sign.
2096         * stdlib/tst-strtod-round-data: Add more tests.
2097         * stdlib/tst-strtod-round.c (tests): Regenerated.
2098
2099         [BZ #3479]
2100         * stdlib/strtod_l.c (NDIG): Remove.
2101         (HEXNDIG): Likewise.
2102         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2103         smallest representable value.
2104         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2105         lie within an exact representation of 1/2 ulp of the result.
2106         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2107         unconditionally.
2108         (TENS_P9_IDX): Define unconditionally.
2109         (TENS_P9_SIZE): Likewise.
2110         (TENS_P10_IDX): Likewise.
2111         (TENS_P10_SIZE): Likewise.
2112         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2113         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2114         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2115         entries for 10^2^13 and 10^2^14.
2116         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2117         (TENS_P13_IDX): Define.
2118         (TENS_P13_SIZE): Likewise.
2119         (TENS_P14_IDX): Likewise.
2120         (TENS_P14_SIZE): Likewise.
2121         (_fpioconst_pow10): Change array size to
2122         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2123         unconditional.
2124         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2125         1024]: Add entries for 10^2^13 and 10^2^14.
2126         [LAST_POW10 > _LAST_POW10]: Remove #error.
2127         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2128         (_fpioconst_pow10): Change array size to
2129         FPIOCONST_POW10_ARRAY_SIZE.
2130         * stdlib/gen-fpioconst.c: New file.
2131         * stdlib/gen-tst-strtod-round.c: Likewise.
2132         * stdlib/tst-strtod-round-data: Likewise.
2133         * stdlib/tst-strtod-round.c: Likewise.
2134         * stdlib/Makefile (tests): Add tst-strtod-round.
2135
2136         [BZ #14459]
2137         * stdlib/strtod_l.c: Include <stdint.h>.
2138         (NDEBUG): Do not define.
2139         (round_and_return): Change EXPONENT parameter to type intmax_t.
2140         Rearrange calculations to avoid internal overflow possibilities.
2141         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2142         Rearrange calculations to avoid internal overflow possibilities.
2143         Assert that number fits inside MPNSIZE limbs.
2144         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2145         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2146         calculations and add assertions to avoid internal overflow
2147         possibilities.  Add casts to avoid signed/unsigned operations.
2148         * stdlib/tst-strtod-overflow.c: New file.
2149         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2150
2151 2012-08-25  Marek Polacek  <polacek@redhat.com>
2152
2153         * time/time.h: Fix some typos in comments.
2154
2155 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2156
2157         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2158         * posix/tst-rfc3484-2.c: Likewise.
2159         * posix/tst-rfc3484-3.c: Likewise.
2160
2161 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2162
2163         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2164         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2165
2166 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2167
2168         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2169         #include of fxstatat64.c.
2170
2171 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2172
2173         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2174         * shadow/getspent_r.c: Likewise.
2175         * shadow/getspnam.c: Likewise.
2176         * shadow/getspnam_r.c: Likewise.
2177         * gshadow/getsgent.c: Likewise.
2178         * gshadow/getsgent_r.c: Likewise.
2179         * gshadow/getsgnam.c: Likewise.
2180         * gshadow/getsgnam_r.c: Likewise.
2181         * inet/getnetbyad.c: Likewise.
2182         * inet/getnetbyad_r.c: Likewise.
2183         * inet/getnetbynm.c: Likewise.
2184         * inet/getnetbynm_r.c: Likewise.
2185         * inet/getnetent.c: Likewise.
2186         * inet/getnetent_r.c: Likewise.
2187         * inet/getproto.c: Likewise.
2188         * inet/getproto_r.c: Likewise.
2189         * inet/getprtent.c: Likewise.
2190         * inet/getprtent_r.c: Likewise.
2191         * inet/getprtname.c: Likewise.
2192         * inet/getprtname_r.c: Likewise.
2193         * inet/getrpcbyname.c: Likewise.
2194         * inet/getrpcbyname_r.c: Likewise.
2195         * inet/getrpcbynumber.c: Likewise.
2196         * inet/getrpcbynumber_r.c: Likewise.
2197         * inet/getrpcent.c: Likewise.
2198         * inet/getrpcent_r.c: Likewise.
2199         * inet/getaliasent.c: Likewise.
2200         * inet/getaliasent_r.c: Likewise.
2201         * inet/getaliasname.c: Likewise.
2202         * inet/getaliasname_r.c: Likewise.
2203         * nscd/getgrgid_r.c: Likewise.
2204         * nscd/getgrnam_r.c: Likewise.
2205         * nscd/gethstbyad_r.c: Likewise.
2206         * nscd/gethstbynm3_r.c: Likewise.
2207         * nscd/getpwnam_r.c: Likewise.
2208         * nscd/getpwuid_r.c: Likewise.
2209         * nscd/getsrvbynm_r.c: Likewise.
2210         * nscd/getsrvbypt_r.c: Likewise.
2211         * nscd/gai.c: Likewise.
2212
2213         * configure.in (build_nscd): New substituted variable, set
2214         by --disable-build-nscd and defaults to $use_nscd.
2215         * configure: Regenerated.
2216         * config.make.in (build-nscd): New substituted variable.
2217         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2218         Change conditional to require [$(build-nscd) = yes] as well.
2219         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2220
2221         [BZ# 13696]
2222         * configure.in (use_nscd): New substituted variable, set by
2223         --disable-nscd.  If enabled, define USE_NSCD.
2224         * configure: Regenerated.
2225         * config.h.in: Add USE_NSCD.
2226         * config.make.in (use-nscd): New substituted variable.
2227         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2228         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2229         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2230         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2231         (CFLAGS-getgrnam_r.c): Likewise.
2232         (CFLAGS-initgroups.c): Likewise.
2233         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2234         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2235         Variables removed.
2236         * inet/getnetgrent_r.c
2237         (nscd_setnetgrent): New function, broken out of ...
2238         (setnetgrent): ... here.  Call it.
2239         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2240         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2241         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2242         * nscd/Makefile (routines, aux): Move definitions after include of
2243         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2244         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2245         Conditionalize on [USE_NSCD].
2246         (is_nscd, nscd_init_cb): Likewise.
2247         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2248         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2249         * nss/nss_db/db-init.c: Likewise.
2250         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2251         [USE_NSCD].
2252         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2253         (make_request): Use it.
2254         (cache_valid_p): New function.
2255         (__check_pf): Use it.
2256         * NEWS: Add item for --disable-nscd.
2257
2258 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2259
2260         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2261         to support sed >= 4.2.1-20-ga9bf076.
2262         * configure: Regenerated.
2263
2264 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2265
2266         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2267         Conditionalize whole body on [IREL].
2268
2269 2012-08-22  Jeff Law <law@redhat.com>
2270
2271         [BZ #14505]
2272         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2273         if the family is PF_UNSPEC.
2274
2275 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2276
2277         * Makerules (lib-version): Rename from V.
2278         (install-lib-nosubdir): Change V to lib-version.
2279
2280 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2281
2282         [BZ #14252]
2283         * powerpc32/power6/wcschr.c: New file.
2284         * powerpc32/power6/wcscpy.c: New file.
2285         * powerpc32/power6/wcsrchr.c: New file.
2286         * powerpc64/power6/wcschr.c: New file.
2287         * powerpc64/power6/wcscpy.c: New file.
2288         * powerpc64/power6/wcsrchr.c: New file.
2289
2290 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2291
2292         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2293         (two_way_short_needle): Use it.
2294         * string/strstr.c (AVAILABLE1_USES_J): Define.
2295         * string/strcasestr.c: Likewise.
2296
2297         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2298         array references.
2299         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2300
2301         [BZ #11607]
2302         * NEWS: Add an entry.
2303         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2304         define their defaults.
2305         (two_way_short_needle): Detect end-of-string on-the-fly.
2306         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2307         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2308         * string/bug-strcasestr1.c: New test.
2309         * string/Makefile: Run it.
2310
2311 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2312
2313         [BZ #11607]
2314         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2315         the first character.
2316
2317 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2318
2319         * csu/elf-init.c (__libc_csu_irel): Function removed.
2320         * csu/libc-start.c (apply_irel): New function.
2321         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2322
2323 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2324
2325         * sysdeps/unix/sysv/linux/kernel-features.h
2326         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2327         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2328         <kernel-features.h>.
2329         [__NR_fadvise64_64]: Make code unconditional.
2330         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2331         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2332         !__NR_fadvise64_64)]: Likewise.
2333         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2334         !__NR_fadvise64_64))]: Likewise.
2335         [__NR_fadvise64]: Make code unconditional.
2336         [!__NR_fadvise64]: Remove conditional code.
2337         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2338         <kernel-features.h>.
2339         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2340         unconditional.
2341         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2342         conditional code.
2343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2344         not include <kernel-features.h>.
2345         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2346         unconditional.
2347         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2348         conditional code.
2349         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2350         include <kernel-features.h>.
2351         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2352         unconditional.
2353         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2354         conditional code.
2355
2356 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2357
2358         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2359         slight instruction rearrangements per scrollpipe analysis.
2360         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2361
2362 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2363
2364         * manual/syslog.texi (syslog; vsyslog, closelog):
2365         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2366         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2367
2368         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2369         DSOCAPS to match condition on defining it.
2370
2371 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2372
2373         * sysdeps/unix/sysv/linux/kernel-features.h
2374         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2376         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2377         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2379         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2380         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2382         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2383         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2384
2385         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2386         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2387
2388         * sysdeps/unix/sysv/linux/kernel-features.h
2389         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2390         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2391         unconditional.
2392         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2393         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2394         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2395         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2396         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2397         Make code unconditional.
2398         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2399         (__mmap64) [!__NR_mmap2]: Likewise.
2400         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2401         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2402         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2403         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2404         [__NR_mmap2]: Make code unconditional.
2405         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2406         (__mmap64) [!__NR_mmap2]: Likewise.
2407
2408 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2409
2410         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2411
2412 2012-08-18  Andreas Jaeger  <aj@suse.de>
2413
2414         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2415
2416 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2417
2418         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2419         * include/unistd.h (__have_sock_cloexec): Likewise.
2420         (__have_pipe2): Likewise.
2421         (__have_dup3): Likewise.
2422
2423 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2424
2425         [BZ #9685]
2426         * include/unistd.h (__have_pipe2): Change define into an extern int.
2427         (__have_dup3): Likewise.
2428         * socket/have_sock_cloexec.c: Include fcntl.h.
2429         (__have_pipe2): New variable.
2430         (__have_dup3): Likewise.
2431
2432 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2433
2434         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2435
2436 2012-08-17  Marek Polacek  <polacek@redhat.com>
2437
2438         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2439         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2440
2441 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2442
2443         * configure.in: Add AC_SUBST for sysheaders.
2444         * configure: Regenerated.
2445         * config.make.in (sysheaders): New substituted variable.
2446
2447         * sysdeps/unix/mkfifo.c: Moved ...
2448         * sysdeps/posix/mkfifo.c: ... here.
2449         * sysdeps/unix/mkfifoat.c: Moved ...
2450         * sysdeps/posix/mkfifoat.c: ... here.
2451
2452         * sysdeps/unix/utime.c: Moved ...
2453         * sysdeps/posix/utime.c: ... here.
2454
2455         * sysdeps/unix/time.c: Moved ...
2456         * sysdeps/posix/time.c: ... here.
2457         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2458         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2459
2460         * sysdeps/unix/nice.c: Moved ...
2461         * sysdeps/posix/nice.c: ... here.
2462
2463         * sysdeps/unix/alarm.c: Moved ...
2464         * sysdeps/posix/alarm.c: ... here.
2465
2466         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2467
2468 2012-08-17  Jeff Law <law@redhat.com>
2469
2470         * intl/Makefile (codeset_mo): New variable.
2471         ($(codeset_mo)): New target.
2472         (tst-codeset.out): Depend on that.  Remove explicit rule.
2473         (tst-gettext3.out, tst-gettext5.out): Likewise.
2474         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2475         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2476         * intl/tst-codeset.sh: Remove.
2477         * intl/tst-gettext3.sh: Likewise.
2478         * intl/tst-gettext5.sh: Likewise.
2479
2480 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2481
2482         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2483         * sysdeps/unix/syscalls.list: ... here.
2484
2485         * sysdeps/posix/getaddrinfo.c
2486         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2487         (gaiconf_init, gaiconf_reload): Use them.
2488         [!_STATBUF_ST_NSEC]
2489         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2490         Define using time_t rather than struct timespec.
2491
2492         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2493         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2494         Macros removed.
2495         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2496         [!NO_THREADS].
2497         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2498         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2499         Likewise.
2500
2501         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2502         __libc_cleanup_push argument.
2503
2504         * bits/param.h: New file.
2505         * misc/sys/param.h: New file.
2506         * include/sys/param.h: New file.
2507         * misc/Makefile (headers): Add bits/param.h.
2508         * sysdeps/generic/sys/param.h: File removed.
2509         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2510         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2511         * sysdeps/mach/hurd/bits/param.h: New file.
2512         * sysdeps/mach/hurd/sys/param.h: New file.
2513
2514         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2515         last change.
2516
2517         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2518         [_IO_MTSAFE_IO].
2519         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2520         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2521         New macros.
2522
2523         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2524         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2525         rather than -D_IO_MTSAFE_IO conditionally.
2526         * stdio-common/Makefile (CPPFLAGS): Likewise.
2527         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2528         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2529         Use $(libio-mtsafe).
2530         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2531         of -D_IO_MTSAFE_IO.
2532         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2533         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2534         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2535         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2536         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2537         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2538         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2539         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2540         (CFLAGS-fread_u_chk.c): Likewise.
2541         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2542         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2543         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2544         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2545         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2546         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2547         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2548         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2549         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2550
2551         * libio/Makefile: Test [$(libc-reentrant) = yes]
2552         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2553
2554         * Makeconfig
2555         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2556         * sysdeps/pthread/configure: File removed.
2557         * sysdeps/pthread/Makeconfig: New file.
2558         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2559         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2560
2561 2012-08-16  Gary Benson  <gbenson@redhat.com>
2562
2563         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2564         unmapping the first object in a namespace.
2565
2566 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2567
2568         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2569         (__internal_setnetgrent): ... this.  Add internal_function to
2570         definition.  Add libc_hidden_def.
2571         (setnetgrent): Update caller.
2572         (internal_endnetgrent): Renamed to ...
2573         (__internal_endnetgrent): ... this.  Add internal_function to
2574         definition.  Add libc_hidden_def.
2575         (endnetgrent): Update caller.
2576         (internal_getnetgrent_r): Renamed to ...
2577         (__internal_getnetgrent_r): ... this.  Add internal_function to
2578         definition.  Add libc_hidden_def.
2579         (__getnetgrent_r): Update caller.
2580         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2581
2582 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2583
2584         * stdlib/longlong.h: Update from GCC.
2585
2586 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2587
2588         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2589         on _QL, which is set by umul_ppmm but never used.
2590         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2591         variables, which are set by GMP macros but never used.
2592         * stdio-common/_itowa.c (_itowa): Likewise.
2593         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2594         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2595
2596 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2597
2598         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2599         struct La_sh_regs is not constant.
2600         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2601         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2602         and struct La_sparc64_regs are not constant.
2603
2604 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2605
2606         * sysdeps/unix/sysv/linux/kernel-features.h
2607         (__ASSUME_POSIX_TIMERS): Remove.
2608         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2609         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2610         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2611         Make code unconditional.
2612         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2613         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2614         Make code unconditional.
2615         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2616         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2617         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2618         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2619         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2620         Make code unconditional.
2621         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2622         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2623         (__libc_missing_posix_timers): Remove.
2624
2625 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2626
2627         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2628         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2629
2630         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2631
2632         * elf/dl-sym.c: Include <stdlib.h>.
2633
2634         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2635         constants, which avoids warnings in 32-bit builds.
2636
2637         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2638         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2639
2640         * misc/lseek.c: File moved to ...
2641         * io/lseek.c: ... here.
2642
2643         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2644
2645         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2646         shifting LEN more than 31 bits at once.
2647
2648 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2649
2650         [BZ #14195]
2651         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2652         segmentation fault for a case of two empty input strings.
2653         * string/test-strncasecmp.c (check1): Renamed to...
2654         (bz12205): ...this.
2655         (bz14195): Add new testcase for two empty input strings and N > 0.
2656         (test_main): Call new testcase, adapt for renamed function.
2657
2658 2012-08-15  Andreas Jaeger  <aj@suse.de>
2659
2660         [BZ #14090]
2661         * crypt/md5test2.c: New test, based on test supplied by Serge
2662         Belyshev <belyshev@depni.sinp.msu.ru>.
2663         * crypt/Makefile (xtests): Add md5test-giant..
2664         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2665
2666 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2667
2668         [BZ #14090]
2669         * crypt/md5.c (md5_process_block): Don't assume the buffer
2670         length is less than 2**32.
2671         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2672         length is less than 2**64.
2673
2674 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2675
2676         * string/str-two-way.h: Include <sys/param.h>.
2677         (MAX): Macro removed.
2678
2679         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2680         Move #define and #undef of memmove to just before and after
2681         including <string.h>.
2682
2683         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2684         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2685         and after including <string.h>.  Move declarations of
2686         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2687         to before #include "string/memmove.c".
2688
2689         * include/dirent.h: Declare __getdirentries.
2690
2691         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2692         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2693
2694 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2695
2696         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2697         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2698         * sysdeps/i386/configure: Regenerated.
2699         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2700         STABS_CURRENT_FILE, and STABS_FUN.
2701         (END): Remove call to STABS_FUN_END.
2702         (STABS_CURRENT_FILE1): Delete.
2703         (STABS_CURRENT_FILE): Likewise.
2704         (STABS_FUN): Likewise.
2705         (STABS_FUN_END): Likewise.
2706         (STABS_FUN2): Likewise.
2707         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2708         * sysdeps/x86_64/configure: Regenerated.
2709
2710 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2711
2712         * elf/dl-open.c: Include <atomic.h>.
2713         * elf/dl-lookup.c: Likewise.
2714
2715 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2716
2717         * sysdeps/unix/sysv/linux/kernel-features.h
2718         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2719         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2720         unconditionally.
2721         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2722         unconditionally.
2723         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2724         condition on __ASSUME_CLONE_THREAD_FLAGS.
2725
2726 2012-08-14  Andreas Jaeger  <aj@suse.de>
2727
2728         * sysdeps/i386/fpu/libm-test-ulps: Update.
2729
2730 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2731
2732         * include/atomic.h (atomic_exchange_and_add): Split into ...
2733         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2734         New atomic macros.
2735
2736 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2737
2738         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2739
2740 2012-08-13  Jeff Law <law@redhat.com>
2741
2742         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2743         null byte in the output string.
2744
2745 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2746
2747         * sysdeps/unix/sysv/linux/kernel-features.h
2748         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2749         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2750         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2751         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2752         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2753         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2754         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2755
2756 2012-08-09  Jeff Law <law@redhat.com>
2757
2758         [BZ #13939]
2759         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2760         When avoid_arena is set, don't retry in the that arena.  Pick the
2761         next one, whatever it might be.
2762         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2763         (arena_lock): Pass in new parameter to arena_get2.
2764         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2765         arena_get2.
2766         (__libc_malloc): Unify retrying after main arena failure with
2767         __libc_memalign version.
2768         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2769
2770 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2771
2772         [BZ #14166]
2773         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2774         to __redirect_strstr.
2775         (__strstr_sse42): Use typeof __redirect_strstr.
2776         (__strstr_ia32): Likewise.
2777         (__libc_strstr): New prototype.
2778         (strstr): Renamed to ...
2779         (__libc_strstr): This.
2780         (strstr): New strong alias of __libc_strstr.
2781         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2782         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2783         __redirect_time.
2784         Include <time.h>.
2785         (__libc_time): New prototype.
2786         (time_ifunc): Replace time with __libc_time.
2787         (time): New strong alias and hidden definition of __libc_time.
2788         (__GI_time): Remove strong alias.
2789         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2790         Include <stddef.h>.
2791         (memmove): Redefined to __redirect_memmove.
2792         (__memmove_sse2): Use typeof __redirect_memmove.
2793         (__memmove_ssse3): Likewise.
2794         (__memmove_ssse3_back): Likewise.
2795         (__libc_memmove): New prototype.
2796         (memmove): Renamed to ...
2797         (__libc_memmove): This.
2798         (memmove): New strong alias of __libc_memmove.
2799
2800 2012-08-08  Mark Salter  <msalter@redhat.com>
2801
2802         * elf/elf.h
2803         (R_MN10300_TLS_GD): Define.
2804         (R_MN10300_TLS_LD): Likewise.
2805         (R_MN10300_TLS_LDO): Likewise.
2806         (R_MN10300_TLS_GOTIE): Likewise.
2807         (R_MN10300_TLS_IE): Likewise.
2808         (R_MN10300_TLS_LE): Likewise.
2809         (R_MN10300_TLS_DTPMOD): Likewise.
2810         (R_MN10300_TLS_DTPOFF): Likewise.
2811         (R_MN10300_TLS_TPOFF): Likewise.
2812         (R_MN10300_SYM_DIFF): Likewise.
2813         (R_MN10300_ALIGN): Likewise.
2814         (R_MN10300_NUM): Update.
2815
2816 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2817
2818         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2819         Remove.
2820
2821 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2822
2823         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2824
2825         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2826         sysdeps/unix -> sysdeps/posix move.
2827         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2828
2829 2012-08-07      Allan McRae     <allan@archlinux.org>
2830
2831         [BZ #14303]
2832         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2833         (SUNOS_CPP): Likewise.
2834         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2835         not found.
2836         (open_input): Call CPP using execvp.
2837
2838 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2839
2840         * sysdeps/unix/sysv/linux/kernel-features.h
2841         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2842         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2843         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2844         (__ASSUME_WAITID_SYSCALL): Likewise.
2845         * sysdeps/unix/sysv/linux/dl-execstack.c
2846         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2847         code unconditional.
2848         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2849         conditional code.
2850         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2851         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2852         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2853         code.
2854         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2855         unconditional.
2856         [__ASSUME_WAITID_SYSCALL]: Likewise.
2857         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2858
2859 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2860
2861         * sysdeps/unix/closedir.c: Renamed to ...
2862         * sysdeps/posix/closedir.c: ... here.
2863         * sysdeps/unix/dirfd.c: Renamed to ...
2864         * sysdeps/posix/dirfd.c: ... here.
2865         * sysdeps/unix/dirstream.h: Renamed to ...
2866         * sysdeps/posix/dirstream.h: ... here.
2867         * sysdeps/unix/fdopendir.c: Renamed to ...
2868         * sysdeps/posix/fdopendir.c: ... here.
2869         * sysdeps/unix/opendir.c: Renamed to ...
2870         * sysdeps/posix/opendir.c: ... here.
2871         * sysdeps/unix/readdir.c: Renamed to ...
2872         * sysdeps/posix/readdir.c: ... here.
2873         * sysdeps/unix/readdir_r.c: Renamed to ...
2874         * sysdeps/posix/readdir_r.c: ... here.
2875         * sysdeps/unix/rewinddir.c: Renamed to ...
2876         * sysdeps/posix/rewinddir.c: ... here.
2877         * sysdeps/unix/seekdir.c: Renamed to ...
2878         * sysdeps/posix/seekdir.c: ... here.
2879         * sysdeps/unix/telldir.c: Renamed to ...
2880         * sysdeps/posix/telldir.c: ... here.
2881         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2882         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2883         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2884         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2885
2886         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2887         * bits/fcntl.h: ... here.
2888
2889         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2890         not 0.
2891         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2892         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2893         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2894         (struct flock): Move l_start, l_len to the beginning.
2895         Use __pid_t for l_pid.
2896         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2897         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2898         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2899         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2900         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2901         [__USE_LARGEFILE64] (struct flock64): New type.
2902         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2903
2904         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2905         * bits/dirent.h: ... here.
2906
2907         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2908         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2909
2910 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2911
2912         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2913         Change from 2.6.0 to 2.6.16.
2914         * sysdeps/unix/sysv/linux/configure: Regenerated.
2915         * sysdeps/unix/sysv/linux/kernel-features.h
2916         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2917         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2918         version.
2919         (__ASSUME_UTIMES): Likewise.
2920         (__ASSUME_CLONE_STOPPED): Remove.
2921         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2922         architectures, not kernel version.
2923         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2924         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2925         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2926         (__ASSUME_WAITID_SYSCALL): Likewise.
2927         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2928         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2929         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2930         refer to older versions.
2931
2932 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2933
2934         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2935         Define alphasort64 as an alias.
2936         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2937         Define versionsort64 as an alias.
2938         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2939         Define scandir64 as an alias.
2940         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2941         Define scandirat64 as an alias.
2942         * dirent/alphasort64.c (alphasort64):
2943         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2944         * dirent/versionsort64.c: Likewise.
2945         * dirent/scandir64.c: Likewise.
2946         * dirent/scandirat64.c: Likewise.
2947         * sysdeps/wordsize-64/alphasort.c: File removed.
2948         * sysdeps/wordsize-64/alphasort64.c: File removed.
2949         * sysdeps/wordsize-64/scandir.c: File removed.
2950         * sysdeps/wordsize-64/scandir64.c: File removed.
2951         * sysdeps/wordsize-64/scandirat.c: File removed.
2952         * sysdeps/wordsize-64/scandirat64.c: File removed.
2953         * sysdeps/wordsize-64/versionsort.c: File removed.
2954         * sysdeps/wordsize-64/versionsort64.c: File removed.
2955         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2956         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2957         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2958         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2959         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2960         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2961         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2962         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2963
2964         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2965         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2966         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2967         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2968         [defined __arch64__ || defined __sparcv9]
2969         (__INO_T_MATCHES_INO64_T): New macro.
2970         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2971         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2972         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2973         * sysdeps/unix/sysv/linux/bits/dirent.h
2974         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2975         (_DIRENT_MATCHES_DIRENT64): New macro.
2976
2977         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2978         Define lockf64 as an alias.
2979         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2980         Define fseeko64 as an alias.
2981         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2982         Define ftello64 as an alias.
2983         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2984         Define _IO_fgetpos64 and fgetpos64 as aliases.
2985         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2986         Define _IO_fsetpos64 and fsetpos64 as aliases.
2987         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2988         Conditionalize body on this.
2989         * libio/fseeko64.c: Likewise.
2990         * libio/ftello64.c: Likewise.
2991         * libio/iofgetpos64.c: Likewise.
2992         * libio/iofsetpos64.c: Likewise.
2993         * sysdeps/wordsize-64/lockf.c: File removed.
2994         * sysdeps/wordsize-64/lockf64.c: File removed.
2995         * sysdeps/wordsize-64/fseeko.c: File removed.
2996         * sysdeps/wordsize-64/fseeko64.c: File removed.
2997         * sysdeps/wordsize-64/ftello.c: File removed.
2998         * sysdeps/wordsize-64/ftello64.c: File removed.
2999         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3000         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3001         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3002         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3003         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3004         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3005         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3006         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3007         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3008         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3009         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3010         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3011         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3012         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3013
3014         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3015         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3016         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3017         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3018         [defined __arch64__ || defined __sparcv9]
3019         (__OFF_T_MATCHES_OFF64_T): New macro.
3020         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3021         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3022         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3023         (__OFF_T_MATCHES_OFF64_T): New macro.
3024
3025 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3026
3027         * stdlib/secure-getenv.c (__secure_getenv): Replace
3028         GLIBC_2_16 with GLIBC_2_17.
3029
3030 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3031
3032         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3033         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3034
3035 2012-08-03  David S. Miller  <davem@davemloft.net>
3036
3037         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3038
3039 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3040
3041         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3042         Remove.
3043         (__ASSUME_CORRECT_SI_PID): Likewise.
3044         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3045         (__ASSUME_TMPFS_NAME): Likewise.
3046         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3047         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3048         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3049         (HAVE_AUX_SECURE): Make definition unconditional.
3050         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3051         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3052
3053 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3054
3055         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3056         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3057         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3058         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3059         __eloop_threshold instead of SYMLOOP_MAX.
3060
3061         * sysdeps/generic/eloop-threshold.h: New file.
3062         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3063         of MAXSYMLINKS.
3064         * elf/chroot_canon.c (chroot_canon): Likewise.
3065
3066 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3067
3068         [BZ #13717]
3069         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3070         Change to 2.6.0 everywhere.
3071         * sysdeps/unix/sysv/linux/configure: Regenerated.
3072         * sysdeps/unix/sysv/linux/kernel-features.h
3073         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3074         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3075         kernel versions.
3076         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3077         (__ASSUME_FUTEX_REQUEUE): Remove.
3078         (__ASSUME_STATFS64): Define unconditionally.
3079         (__ASSUME_AT_SECURE): Likewise.
3080         (__ASSUME_CORRECT_SI_PID): Likewise.
3081         (__ASSUME_TGKILL): Define without depending on kernel version for
3082         i386.
3083         (__ASSUME_UTIMES): Likewise.
3084         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3085         kernel version.
3086         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3087         (__ASSUME_TMPFS_NAME): Likewise.
3088         * README: Update reference to Linux kernel versions.
3089
3090 2012-08-02  Marek Polacek  <polacek@redhat.com>
3091
3092         [BZ# 14150]
3093         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3094         libc_cv_asm_type_prefix with %.
3095         * configure: Regenerated.
3096         * include/libc-symbols.h: Remove comment about
3097         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3098         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3099         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3100         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3101         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3102         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3103         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3104         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3105         * elf/tst-unique2mod1.c: Likewise.
3106         * elf/tst-unique1mod2.c: Likewise.
3107         * elf/tst-unique1mod1.c: Likewise.
3108         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3109         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3110         Replace ASM_TYPE_DIRECTIVE with .type.
3111         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3112         * sysdeps/i386/sysdep.h: Likewise.
3113         * sysdeps/x86_64/sysdep.h: Likewise.
3114         * sysdeps/sh/sysdep.h: Likewise.
3115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3116         Do not define ASM_TYPE_DIRECTIVE.
3117         * sysdeps/powerpc/sysdep.h: Likewise.
3118         * sysdeps/powerpc/powerpc32/sysdep.h:
3119         Replace ASM_TYPE_DIRECTIVE with .type.
3120         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3121         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3122         * sysdeps/i386/fpu/e_powf.S: Likewise.
3123         * sysdeps/i386/fpu/e_expl.S: Likewise.
3124         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3125         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3126         * sysdeps/i386/fpu/e_pow.S: Likewise.
3127         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3128         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3129         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3130         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3131         * sysdeps/i386/fpu/e_log2.S: Likewise.
3132         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3133         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3134         * sysdeps/i386/fpu/e_powl.S: Likewise.
3135         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3136         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3137         * sysdeps/i386/fpu/e_logl.S: Likewise.
3138         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3139         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3140         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3141         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3142         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3143         * sysdeps/i386/fpu/e_log.S: Likewise.
3144         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3145         * sysdeps/i386/fpu/e_logf.S: Likewise.
3146         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3147         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3148         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3149         * sysdeps/i386/fpu/e_log10.S: Likewise.
3150         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3151         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3152         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3153         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3154         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3155         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3156         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3157         * sysdeps/i386/i686/strtok.S: Likewise.
3158         * sysdeps/i386/i386-mcount.S: Likewise.
3159         * sysdeps/i386/strtok.S: Likewise.
3160         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3161         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3162         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3163         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3164         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3165         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3166         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3167         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3168         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3169         * sysdeps/x86_64/_mcount.S: Likewise.
3170         * sysdeps/x86_64/strtok.S: Likewise.
3171         * sysdeps/sh/_mcount.S: Likewise.
3172
3173 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3174
3175         * libio/iofopen.c: Include <fcntl.h>.
3176         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3177         (_IO_fopen64, fopen64): Define as aliases.
3178         * libio/iofopen64.c: Include <fcntl.h>.
3179         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3180         Conditionalize body on this.
3181         * sysdeps/wordsize-64/iofopen.c: File removed.
3182         * sysdeps/wordsize-64/iofopen64.c: File removed.
3183
3184 2012-08-01  Marek Polacek  <polacek@redhat.com>
3185
3186         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3187         Use dlfcn directly instead of a variable.
3188         (binfmt-subdir): Do not define.
3189         (dlfcn): Likewise.
3190
3191 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3192
3193         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3194         Remove all definitions.
3195         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3196         <kernel-features.h>.
3197         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3198         (miss_F_GETOWN_EX): Remove all definitions.
3199         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3200         macro definition.
3201         [!__ASSUME_FCNTL64]: Remove conditional code.
3202         [__ASSUME_FCNTL64]: Make code unconditional.
3203         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3204         <kernel-features.h>.
3205         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3206         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3207         (lockf64) [__NR_fcntl64]: Make code unconditional.
3208         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3209
3210         * sysdeps/unix/sysv/linux/kernel-features.h
3211         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3212         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3213         Make code unconditional.
3214         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3215         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3217         [__NR_vfork]: Make code unconditional.
3218         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3219         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3221         [__NR_vfork]: Make code unconditional.
3222         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3223         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3224
3225 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3226
3227         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3228         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3229
3230         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3231         Define mkstemp64 as an alias.
3232         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3233         Define mkstemps64 as an alias.
3234         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3235         Define mkostemp64 as an alias.
3236         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3237         Define mkostemps64 as an alias.
3238         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3239         Conditionalize body on this.
3240         * misc/mkostemp64.c: Likewise.
3241         * misc/mkostemps64.c: Likewise.
3242         * misc/mkstemps64.c: Likewise.
3243         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3244         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3245         * sysdeps/wordsize-64/mkostemp.c: File removed.
3246         * sysdeps/wordsize-64/mkstemp.c: File removed.
3247         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3248         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3249         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3250         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3251
3252         [BZ #14138]
3253         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3254         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3255         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3256         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3257
3258         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3259         compat_symbol macros from <shlib-compat.h> rather than the underlying
3260         default_symbol_version and symbol_version macros, so that DEFAULT
3261         lines in shlib-versions are respected.
3262         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3263
3264 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3265
3266         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3267         Declare with warn_unused_result.
3268         (setgid, setregid, setegid, setresgid): Likewise.
3269         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3270         Likewise.
3271         * WUR-REPORT: Remove set*id functions.
3272
3273 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3274
3275         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3276
3277 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3278
3279         * include/sys/socket.h (__libc_accept, __libc_accept4):
3280         Add attribute_hidden.
3281         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3282
3283         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3284         use of PTR_MANGLE.
3285         * inet/getnetgrent_r.c (setup): Likewise.
3286
3287         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3288
3289 2012-07-31  David S. Miller  <davem@davemloft.net>
3290
3291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3292
3293 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3294
3295         [BZ #13629]
3296         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3297         value between 1.0 and 2.0 and smaller part has absolute value less
3298         than 1.0.
3299         * math/s_clog10.c (__clog10): Likewise.
3300         * math/s_clog10f.c (__clog10f): Likewise.
3301         * math/s_clog10l.c (__clog10l): Likewise.
3302         * math/s_clogf.c (__clogf): Likewise.
3303         * math/s_clogl.c (__clogl): Likewise.
3304         * math/libm-test.inc (clog_test): Add more tests.
3305         (clog10_test): Likewise.
3306         * sysdeps/i386/fpu/libm-test-ulps: Update.
3307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3308
3309 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3310
3311         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3312         Exit with zero in case no suitable GID is found, and write a
3313         message to standard error.
3314
3315 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3316
3317         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3318         rather than to 1.
3319         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3320         (MAXPATHLEN): Removed.
3321         (NOGROUP, NODEV): New macros.
3322         (setbit, clrbit, isset, isclr): New macros.
3323         (howmany, roundup, powerof2): New macros.
3324         (DEV_BSIZE): New macro.
3325
3326         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3327         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3328
3329         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3330         definition on [!__NO_LONG_DOUBLE_MATH].
3331
3332         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3333         PTR_MANGLE and PTR_DEMANGLE.
3334
3335         * socket/accept4.c (accept4): Rename to __libc_accept4.
3336         Define accept4 as a weak alias.
3337
3338         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3339         on [_DIRENT_HAVE_D_TYPE].
3340         * io/ftw.c (ftw_dir): Likewise.
3341
3342         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3343
3344         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3345
3346         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3347         Use the BSD numbers rather than the arbitrary ones we had.
3348         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3349         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3350         (SIGXCPU, SIGXFSZ): New macros.
3351         (_NSIG): Now 32.
3352
3353         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3354         initializer on [_LIBC_REENTRANT].
3355
3356         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3357         definitions inside [_POSIX_MAPPED_FILES].
3358
3359         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3360
3361         * dirent/opendir.c: Include <fcntl.h>.
3362
3363         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3364         (__libc_getspecific): Likewise.
3365         (__libc_key_create): Likewise.
3366
3367         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3368         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3369         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3370         (tmpfile64): Define as alias.
3371         * sysdeps/wordsize-64/tmpfile.c: File removed.
3372         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3373         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3374         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3375
3376         * stdio-common/vfscanf.c: Include <stdbool.h>.
3377         * nss/makedb.c: Likewise.
3378         * stdio-common/_i18n_number.h: Likewise.
3379         * argp/argp-help.c: Likewise.
3380         * posix/wordexp.c: Likewise.
3381         * sysdeps/posix/spawni.c: Likewise.
3382         * nss/nss_files/files-initgroups.c: Likewise.
3383         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3384         * nss/nss_files/files-initgroups.c: Likewise.
3385         * nss/nss_db/db-netgrp.c: Likewise.
3386         * nss/nss_db/db-initgroups.c: Likewise.
3387         * io/fchmodat.c: Include <sys/stat.h>.
3388
3389         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3390         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3391
3392         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3393         [HAVE_MMAP].
3394
3395         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3396         Add multiple inclusion protection.
3397
3398 2012-07-27  David S. Miller  <davem@davemloft.net>
3399
3400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3401
3402 2012-07-27  Gary Benson  <gbenson@redhat.com>
3403
3404         [BZ #14298]
3405         * elf/rtld.c: Include <stap-probe.h>.
3406         (dl_main): Added static probes "init_start" and "init_complete".
3407         * elf/dl-load.c: Include <stap-probe.h>.
3408         (lose): Take new parameter "nsid".
3409         Added static probe "map_failed".
3410         (_dl_map_object_from_fd): Pass namespace id to lose.
3411         Added static probe "map_start".
3412         (open_verify): Pass namespace id to lose.
3413         * elf/dl-open.c: Include <stap-probe.h>.
3414         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3415         and "reloc_complete".
3416         * elf/dl-close.c: Include <stap-probe.h>.
3417         (_dl_close_worker): Added static probes "unmap_start" and
3418         "unmap_complete".
3419         * elf/rtld-debugger-interface.txt: New file documenting the above.
3420
3421 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3422
3423         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3424         rather than a string variable.
3425         * sunrpc/rpc_main.c (h_output): Likewise.
3426         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3427
3428 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3429
3430         * inet/check_native.c: New file.
3431
3432 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3433
3434         [BZ #13629]
3435         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3436         if larger part has absolute value 1.0.
3437         * math/s_clog10.c (__clog10): Likewise.
3438         * math/s_clog10f.c (__clog10f): Likewise.
3439         * math/s_clog10l.c (__clog10l): Likewise.
3440         * math/s_clogf.c (__clogf): Likewise.
3441         * math/s_clogl.c (__clogl): Likewise.
3442         * math/libm-test.inc (clog_test): Add more tests.
3443         (clog10_test): Likewise.
3444         * sysdeps/i386/fpu/libm-test-ulps: Update.
3445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3446
3447         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3448         (pltexit): Likewise.
3449         (La_regs): Likewise.
3450         (La_retval): Likewise.
3451         (int_retval): Likewise.
3452         Update #error for removed macros to refer only to definitions in
3453         tst-audit.h.
3454         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3455         macro.
3456         (pltexit): Likewise.
3457         (La_regs): Likewise.
3458         (La_retval): Likewise.
3459         (int_retval): Likewise.
3460         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3461         macro.
3462         (pltexit): Likewise.
3463         (La_regs): Likewise.
3464         (La_retval): Likewise.
3465         (int_retval): Likewise.
3466         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3467         macro.
3468         (pltexit): Likewise.
3469         (La_regs): Likewise.
3470         (La_retval): Likewise.
3471         (int_retval): Likewise.
3472         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3473         macro.
3474         (pltexit): Likewise.
3475         (La_regs): Likewise.
3476         (La_retval): Likewise.
3477         (int_retval): Likewise.
3478         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3479         macro.
3480         (pltexit): Likewise.
3481         (La_regs): Likewise.
3482         (La_retval): Likewise.
3483         (int_retval): Likewise.
3484         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3485         macro.
3486         (pltexit): Likewise.
3487         (La_regs): Likewise.
3488         (La_retval): Likewise.
3489         (int_retval): Likewise.
3490         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3491         macro definitions in tst-audit.h.
3492         * sysdeps/i386/tst-audit.h: New file.
3493         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3494         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3495         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3496         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3497         * sysdeps/sh/tst-audit.h: Likewise.
3498         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3499         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3500         * sysdeps/x86_64/tst-audit.h: Likewise.
3501
3502 2012-07-26  Andreas Jaeger  <aj@suse.de>
3503
3504         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3505         ptrace.
3506
3507         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3508         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3509         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3510         PTRACE_O_MASK.
3511         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3512         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3513         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3514
3515         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3516         value.
3517
3518         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3519         _sigsys.
3520         (si_call_addr, si_syscall, si_arch): Define new macro.
3521         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3522         _sigsys.
3523         (si_call_addr, si_syscall, si_arch): Define new marcro.
3524         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3525         _sigsys.
3526         (si_call_addr, si_syscall, si_arch): Define new macro.
3527         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3528         _sigsys.
3529         (si_call_addr, si_syscall, si_arch): Define new macro.
3530
3531 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3532
3533         [BZ #13717]
3534         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3535         Change to 2.4.21 where previously 2.4.1.
3536         * sysdeps/unix/sysv/linux/configure: Regenerated.
3537         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3538         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3539         Linux kernel version.
3540         (__ASSUME_STD_AUXV): Remove.
3541         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3542         kernel version.
3543         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3544         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3545         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3546         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3547         (__ASSUME_NETLINK_SUPPORT): Likewise.
3548         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3549         (__no_netlink_support): Remove conditional definition.
3550         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3551         Remove.
3552         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3553         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3554         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3555         (if_nameindex_ioctl): Remove.
3556         (if_nameindex_netlink): Do not handle __no_netlink_support.
3557         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3558         code.
3559         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3560         Remove conditional code.
3561         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3562         code.
3563         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3564         unconditional.
3565         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3566         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3567         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3568         Remove.
3569         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3570         [!__ASSUME_STD_AUXV]: Remove conditional code.
3571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3572         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3573         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3575         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3576         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3577         code.
3578         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3580         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3581         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3582         conditional code.
3583         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3585         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3586         code.
3587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3588         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3589         conditional code.
3590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3591         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3592         code unconditional.
3593         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3594         conditional code.
3595         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3596         unconditional.
3597         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3598         conditional code.
3599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3600         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3601         unconditional.
3602         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3603         conditional code.
3604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3605         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3606         code unconditional.
3607         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3608         conditional code.
3609         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3610         unconditional.
3611         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3612         conditional code.
3613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3614         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3615         code unconditional.
3616         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3617         conditional code.
3618         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3619         unconditional.
3620         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3621         conditional code.
3622
3623 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3624
3625         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3626         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3627         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3628         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3629         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3630         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3631         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3632         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3633         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3634         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3635         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3636         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3637         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3638         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3639         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3640         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3641         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3642         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3643         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3644         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3645         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3646         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3647         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3648
3649 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3650
3651         * Versions.def: Add GLIBC_2.17.
3652         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3653         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3654         Introduce __libc_secure_getenv.
3655         * stdlib/Versions (2.17): Add secure_getenv
3656         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3657         * stdlib/secure-getenv.c: Rename __secure_getenv to
3658         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3659         symbol __secure_getenv for GLIBC_2.0.
3660         * stdlib/tst-secure-getenv.c: New.
3661         * stdlib/Makefile (tests): Add testcase.
3662         * manual/startup.texi (Environment Access): Document
3663         secure_getenv.
3664         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3665         __libc_secure_getenv.
3666         * inet/ruserpass.c (ruserpass): Likewise.
3667         * malloc/mtrace.c (mtrace): Likewise.
3668         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3669         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3670         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3671         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3672         HAVE_SECURE_GETENV.
3673         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3674         __secure_getenv to __libc_secure_getenv.
3675         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3677         Likewise.
3678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3679         Likewise.
3680         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3682         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3683         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3684         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3685         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3687
3688 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3689
3690         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3691         (struct La_i86_retval): Likewise.
3692         (struct La_x86_64_regs): Likewise.
3693         (struct La_x86_64_retval): Likewise.
3694         (struct La_x32_regs): Likewise.
3695         (struct La_x32_retval): Likewise.
3696         (struct La_ppc32_regs): Likewise.
3697         (struct La_ppc32_retval): Likewise.
3698         (struct La_ppc64_regs): Likewise.
3699         (struct La_ppc64_retval): Likewise.
3700         (struct La_sh_regs): Likewise.
3701         (struct La_sh_retval): Likewise.
3702         (struct La_s390_32_regs): Likewise.
3703         (struct La_s390_32_retval): Likewise.
3704         (struct La_s390_64_regs): Likewise.
3705         (struct La_s390_64_retval): Likewise.
3706         (struct La_sparc32_regs): Likewise.
3707         (struct La_sparc32_retval): Likewise.
3708         (struct La_sparc64_regs): Likewise.
3709         (struct La_sparc64_retval): Likewise.
3710         (struct audit_ifaces): Remove architecture-specific pltenter and
3711         pltexit members.
3712         * sysdeps/i386/ldsodefs.h: New file.
3713         * sysdeps/powerpc/ldsodefs.h: Likewise.
3714         * sysdeps/s390/ldsodefs.h: Likewise.
3715         * sysdeps/sh/ldsodefs.h: Likewise.
3716         * sysdeps/sparc/ldsodefs.h: Likewise.
3717         * sysdeps/x86_64/ldsodefs.h: Likewise.
3718
3719 2012-07-25  Marek Polacek  <polacek@redhat.com>
3720
3721         [BZ #6808]
3722         * math/libm-test.inc (yn_test): Add another test.
3723         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3724         to ERANGE when the result is +-Inf.
3725         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3726         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3727         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3728         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3729
3730 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3731
3732         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3733         equal to 0.
3734         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3735         clock_t.
3736         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3737
3738 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3739
3740         * configure.in <sysdeps resolving>: Correct printing
3741         Implies_before.
3742         * configure: Regenerate.
3743
3744 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3745
3746         * math/w_ilogb.c: Include <limits.h>.
3747         * math/w_ilogbl.c: Likewise.
3748
3749 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3750
3751         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3752         va_copy.  Document allowing for unavailable va_copy only as
3753         pre-C99 compatibility.
3754         * manual/string.texi (Copying and Concatenation): Use va_copy
3755         instead of __va_copy in concat example.
3756
3757 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3758
3759         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3760         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3761         it if not null.
3762
3763         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3764         with O_NOLINK passed to __file_name_lookup.
3765
3766         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3767         with O_NOLINK passed to __file_name_lookup.
3768
3769         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3770         negative N or less than NGIDS.
3771
3772         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3773         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3774         enough.  Use memcpy instead of strncpy.
3775
3776 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3777
3778         * elf/Makefile (check-data): Remove.
3779         (localplt.data): New vpath directive.
3780         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3781         instead of $(check-data).
3782         * scripts/data/localplt-generic.data: Move to ...
3783         * sysdeps/generic/localplt.data: ... here.
3784         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3785         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3786         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3788         ... here.
3789         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3791         ... here.
3792         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3794         ... here.
3795         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3796         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3797         ... here.
3798         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3800         ... here.
3801         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3802         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3803         ... here.
3804
3805 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3806
3807         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3808         PPC32 and PPC64 files.
3809         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3810         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3811
3812 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3813
3814         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3815         __makecontext_ret to ...
3816         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3817         ... here and call exit if uc_link is NULL.  New file.
3818         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3819         __makecontext_ret.S.
3820         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3821         __makecontext_ret to ...
3822         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3823         ... here and call exit if uc_link is NULL.  New file.
3824         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3825         __makecontext_ret.S.
3826
3827 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3828
3829         * elf/elf.h (R_390_IRELATIVE): New definition.
3830         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3831         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3832         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3833         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3834         (elf_machine_lazy_rel): Likewise.
3835         * sysdeps/s390/dl-irel.h: New file.
3836         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3837         * sysdeps/s390/s390-64/memset.S: New asm code.
3838         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3839         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3840         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3841         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3842         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3843         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3844         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3845         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3846         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3847         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3848         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3849         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3850         * sysdeps/s390/s390-32/memset.S: New asm code.
3851         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3852
3853 2012-07-17  Marek Polacek  <polacek@redhat.com>
3854
3855         [BZ #14349]
3856         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3857         * sysdeps/s390/s390-64/configure.in: Likewise.
3858         * sysdeps/sparc/configure.in: Likewise.
3859         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3860         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3861         * sysdeps/i386/configure.in: Likewise.
3862         * sysdeps/x86_64/configure.in: Likewise.
3863         * sysdeps/sh/configure.in: Likewise.
3864         * sysdeps/s390/s390-32/configure: Regenerated.
3865         * sysdeps/s390/s390-64/configure: Likewise.
3866         * sysdeps/x86_64/configure: Likewise.
3867         * sysdeps/sh/configure: Likewise.
3868         * sysdeps/powerpc/powerpc64/configure: Likewise.
3869         * sysdeps/powerpc/powerpc32/configure: Likewise.
3870         * sysdeps/sparc/configure: Likwise.
3871         * sysdeps/i386/configure: Likewise.
3872
3873         * elf/dl-open.c: Comment fixes.
3874
3875 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3876
3877         * Makefile [CXX] (check-data): Remove.
3878         [CXX] (c++-types.data): New vpath directive.
3879         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3880         vpath.  Do not allow for C++ type data being missing.
3881         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3882         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3883         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3884         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3885         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3886         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3887         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3889         ... here.
3890         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3892         ... here.
3893         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3895         ... here.
3896         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3897         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3898         ... here.
3899         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3901         ... here.
3902         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3903         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3904         ... here.
3905         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3906         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3907         ... here.
3908         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3910
3911         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3912         definitions to architecture-specific files.
3913         (TLS_IE): Likewise.
3914         (TLS_LD): Likewise.
3915         (TLS_GD): Likewise.
3916         * sysdeps/i386/tls-macros.h: New file.
3917         * sysdeps/powerpc/tls-macros.h: Likewise.
3918         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3919         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3920         * sysdeps/sh/tls-macros.h: Likewise.
3921         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3922         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3923         * sysdeps/x86_64/tls-macros.h: Likewise.
3924
3925 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3926
3927         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3928         zero value for regular exit case.
3929
3930         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3931         (__start_context): Preserve zero value for regular exit case.
3932
3933 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3934             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3935
3936         * manual/setjmp.texi (setcontext): Clarify normal process
3937         termination when uc_link is the null pointer.
3938         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3939         exit call.
3940
3941 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3942
3943         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3944         preprocessor.  Test for each exception mask separately.
3945
3946 2012-07-16  Andreas Jaeger  <aj@suse.de>
3947
3948         * po/ru.po: Update from translation team.
3949
3950 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3951
3952         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3953         equal to 0.
3954         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3955         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3956         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3957         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3958         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3959
3960 2012-07-13  Andreas Jaeger  <aj@suse.de>
3961
3962         * po/fr.po: Update from translation team.
3963
3964 2012-07-12  Marek Polacek  <polacek@redhat.com>
3965
3966         [BZ #14173]
3967         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3968         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3969         loop condition.
3970
3971 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3972
3973         [BZ #13717]
3974         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3975         Change to 2.4.1 where previously 2.4.0.
3976         * sysdeps/unix/sysv/linux/configure: Regenerated.
3977         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3978         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3979         version.
3980         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3981         (__ASSUME_AT_CLKTCK): Remove.
3982         (__ASSUME_AT_PAGESIZE): Likewise.
3983         (__ASSUME_AT_XID): Likewise.
3984         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3985         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3986         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3987         unconditionally.
3988         (HAVE_AUX_PAGESIZE): Likewise.
3989         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3990         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3991         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3992
3993 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3994
3995         [BZ #14307]
3996         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3997         the temporary buffer used to invoke __gethostbyname2_r,
3998         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3999         host_data / struct gaih_addrtuple.
4000         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4001         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4002         header file nss/nsswitch.h.
4003         * nss/nsswitch.h (global scope): Add definition of implementation
4004         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4005         resolv/nss_dns/dns-host.c).
4006
4007 2012-07-11  Andreas Jaeger  <aj@suse.de>
4008
4009         * po/fr.po: Update from translation team.
4010
4011         * po/sv.po: Update from translation team
4012         * po/fr.po: Another update from translation team.
4013
4014 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4015
4016         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4017         for subnormals or multiply small sinh result by itself.
4018         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4020
4021 2012-07-11  David S. Miller  <davem@davemloft.net>
4022
4023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4024
4025 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4026
4027         [BZ #14347]
4028         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4029         (INTERNAL_MARK): Shift it here.
4030
4031 2012-07-10  Marek Polacek  <polacek@redhat.com>
4032
4033         [BZ #14151]
4034         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4035         libc_cv_asm_global_directive with .globl.
4036         * configure: Regenerated.
4037         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4038         with .globl.
4039         * sysdeps/i386/configure: Regenerated.
4040         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4041         with .globl.
4042         * sysdeps/x86_64/configure: Regenerated.
4043         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4044         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4045         * elf/tst-unique2mod2.c: Likewise.
4046         * elf/tst-unique2mod1.c: Likewise.
4047         * elf/tst-unique1mod2.c: Likewise.
4048         * elf/tst-unique1mod1.c: Likewise.
4049         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4050         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4051         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4052         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4053         * sysdeps/mach/sysdep.h: Likewise.
4054         * sysdeps/i386/sysdep.h: Likewise.
4055         * sysdeps/i386/i386-mcount.S: Likewise.
4056         * sysdeps/x86_64/_mcount.S: Likewise.
4057         * sysdeps/x86_64/sysdep.h: Likewise.
4058         * sysdeps/sh/_mcount.S: Likewise.
4059         * sysdeps/sh/sysdep.h: Likewise.
4060         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4061         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4062         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4063         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4064         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4065         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4066         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4067         * locale/localeinfo.h: Likewise.
4068         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4069         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4070
4071 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4072
4073         [BZ #14336]
4074         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4075         system".
4076         * manual/message.texi (The Uniforum approach): Likewise.
4077         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4078         (glibc iconv Implementation): Likewise.
4079
4080 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4081
4082         [BZ #14337]
4083         * math/s_clog.c (__clog): Avoid scaling a value down where that
4084         could result in underflow.
4085         * math/s_clog10.c (__clog10): Likewise.
4086         * math/s_clog10f.c (__clog10f): Likewise.
4087         * math/s_clog10l.c (__clog10l): Likewise.
4088         * math/s_clogf.c (__clogf): Likewise.
4089         * math/s_clogl.c (__clogl): Likewise.
4090         * math/libm-test.inc (clog_test): Add more tests.
4091         (clog10_test): Likewise.
4092         * sysdeps/i386/fpu/libm-test-ulps: Update.
4093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4094
4095 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4096
4097         [BZ #14283]
4098         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4099         by 7 not 8 to examine high bit of fractional part.
4100
4101         [BZ #14042]
4102         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4103         for call to __mcount_internal.
4104         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4105         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4106         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4107
4108 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4109
4110         [BZ #14154]
4111         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4112         approximation for values within 0x1p-13f of an odd multiple of
4113         pi/4.
4114         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4115         exception.  Add more tests.
4116         * sysdeps/i386/fpu/libm-test-ulps: Update.
4117
4118         [BZ #6778]
4119         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4120         inputs and return -1 for them.  Do not check for +Inf in case not
4121         reachable for +Inf.
4122         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4123         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4124         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4125         and return -1 for them.  Do not check for +Inf in case not
4126         reachable for +Inf.
4127         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4128         define.
4129         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4130         and return -1 for them.  Do not check for +Inf in case not
4131         reachable for +Inf.
4132         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4133         spurious underflow.
4134         * sysdeps/i386/fpu/libm-test-ulps: Update.
4135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4136
4137 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4138
4139         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4140
4141 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4142
4143         [BZ #14157]
4144         [BZ #14331]
4145         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4146         could result in spurious underflow.  Scale down values above
4147         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4148         * math/s_csqrtf.c (__csqrtf): Likewise.
4149         * math/s_csqrtl.c (__csqrtl): Likewise.
4150         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4151         spurious underflow.
4152         * sysdeps/i386/fpu/libm-test-ulps: Update.
4153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4154
4155 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4156
4157         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4158         xopen-msg.sed.
4159         * catgets/xopen-msg.awk: New file.
4160         * catgets/xopen-msg.sed: Removed.
4161
4162         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4163         po2text.sed.
4164         * intl/po2test.awk: New file.
4165         * intl/po2test.sed: Removed.
4166
4167 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4168
4169         [BZ #14328]
4170         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4171         or multiply small sinh result by itself.
4172         * math/s_ctanf.c (__ctanf): Likewise.
4173         * math/s_ctanh.c (__ctanh): Likewise.
4174         * math/s_ctanhf.c (__ctanhf): Likewise.
4175         * math/s_ctanhl.c (__ctanhl): Likewise.
4176         * math/s_ctanl.c (__ctanl): Likewise.
4177         * math/libm-test.inc (ctan_test_tonearest): New function.
4178         (ctan_test_towardzero): Likewise.
4179         (ctan_test_downward): Likewise.
4180         (ctan_test_upward): Likewise.
4181         (ctanh_test_tonearest): Likewise.
4182         (ctanh_test_towardzero): Likewise.
4183         (ctanh_test_downward): Likewise.
4184         (ctanh_test_upward): Likewise.
4185         (main): Call these new functions.
4186         * sysdeps/i386/fpu/libm-test-ulps: Update.
4187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4188
4189 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4190
4191         * .gitignore: Delete /ports entry.
4192
4193 2012-07-03  Andreas Jaeger  <aj@suse.de>
4194
4195         * po/bg.po: Update from translation team.
4196         * po/cs.po: Likewise.
4197         * po/de.po: Likewise.
4198         * po/hr.po: Likewise.
4199         * po/nl.pl: Likewise.
4200         * po/pl.po: Likewise.
4201         * po/vi.po: Likewise.
4202
4203 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4204
4205         * Makeconfig [!+link] (+link-before-libc): New variable.
4206         [!+link] (+link-after-libc): Likewise.
4207         [!+link] (+link-tests): Likewise.
4208         [!+link] (+link): Define in terms of $(+link-before-libc) and
4209         $(+link-after-libc).
4210         [!+link-static] (+link-static-before-libc): New variable.
4211         [!+link-static] (+link-static-after-libc): Likewise.
4212         [!+link-static] (+link-static-tests): Likewise.
4213         [!+link-static] (+link-static): Define in terms of
4214         $(+link-static-before-libc) and $(+link-static-after-libc).
4215         [build-shared] (link-libc-before-gnulib): New variable.
4216         [build-shared] (link-libc-tests): Likewise.
4217         [build-shared] (link-libc): Define in terms of
4218         $(link-libc-before-gnulib).
4219         [!build-shared] (link-libc-tests): New variable.
4220         (link-libc-static-tests): New variable.
4221         [!gnulib] (gnulib-arch): New variable.
4222         [!gnulib] (gnulib-tests): Likewise.
4223         [!gnulib] (static-gnulib-arch): Likewise.
4224         [!gnulib] (static-gnulib-tests): Likewise.
4225         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4226         Define with "=" instead of ":=".
4227         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4228         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4229         * Rules (binaries-all-notests): New variable.
4230         (binaries-all-tests): Likewise.
4231         (binaries-static-notests): Likewise.
4232         (binaries-static-tests): Likewise.
4233         (binaries-all): Define using $(binaries-all-notests) and
4234         $(binaries-all-tests).
4235         (binaries-static): Define using $(binaries-static-notests) and
4236         $(binaries-static-tests).
4237         (binaries-shared-tests): New variable.
4238         (binaries-shared-notests): Likewise.
4239         (binaries-shared): Remove variable.
4240         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4241         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4242         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4243         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4244         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4245         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4246         * elf/Makefile (sln-modules): New variable.
4247         (extra-objs): Add $(sln-modules:=.o).
4248         (ldconfig-modules): Add static-stubs.
4249         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4250         * elf/static-stubs.c: New file.
4251
4252         [BZ #14283]
4253         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4254         by 7 not 8 to examine high bit of fractional part.  Use volatile
4255         variables when splitting into final array of floats if
4256         __FLT_EVAL_METHOD__ != 0.
4257         * math/libm-test.inc (cos_test): Add another test.
4258         (sin_test): Likewise.
4259         * sysdeps/i386/fpu/libm-test-ulps: Update.
4260
4261         [BZ #14273]
4262         * math/libm-test.inc (cosh_test): Add more tests.
4263
4264         * version.h (RELEASE): Set to "development".
4265         (VERSION): Set to "2.16.90".
4266
4267 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4268
4269         * NEWS: Update copyright. Remove last-updated date.
4270         Mention math library bug fixes and timezone data changes.
4271         * README: Mention GNU/Hurd, x32, and HPPA support status.
4272
4273 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4274
4275         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4276
4277 2012-06-27  Andreas Jaeger  <aj@suse.de>
4278
4279         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4280
4281 2012-06-25  Andreas Jaeger  <aj@suse.de>
4282
4283         * sysdeps/s390/fpu/libm-test-ulps: Update.
4284
4285 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4286             Thomas Schwinge  <thomas@codesourcery.com>
4287
4288         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4289         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4290         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4291         fanotify_mark.
4292
4293 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4294
4295         * sysdeps/mach/start.c: Remove file.
4296         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4297         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4298         * sysdeps/sh/init-first.c: Likewise.
4299
4300         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4301         registers for frame unwinding purposes, add CFI directives.
4302         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4303         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4304         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4305         Likewise.
4306
4307         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4308         __fortify_fail returning.
4309         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4310
4311         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4312         sysdeps/sh/____longjmp_chk.S.
4313         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4314         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4315         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4316         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4317
4318         * sysdeps/sh/abort-instr.h: New file.
4319         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4320         process in case exit returns.
4321
4322         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4323         initialize the GOT register before use.
4324
4325         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4326         calculation of ARGC > 4.
4327
4328         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4329         meaningful names to some local labels.
4330
4331 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4332             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4333
4334         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4335         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4336         (__arch_compare_and_exchange_val_16_acq): Likewise.
4337         (__arch_compare_and_exchange_val_32_acq): Likewise.
4338         (atomic_exchange_and_add): Fix gUSA sequence.
4339         (atomic_add): Likewise.
4340         (atomic_add_negative): Likewise.
4341         (atomic_add_zero): Likewise.
4342         (atomic_bit_test_set): Likewise.
4343
4344 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4345
4346         [BZ #13579]
4347         * include/link.h (struct link_map): Add l_free_initfini.
4348         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4349         l_initfini.
4350         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4351         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4352         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4353         set.
4354
4355 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4356
4357         * configure.in: Use AC_LANG_SOURCE.
4358         * configure: Regenerate.
4359
4360 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4361
4362         * configure.in (libc_cv_localstatedir): New substituted variable.
4363         * configure: Regenerated.
4364         * config.make.in (localstatedir): New variable, substituted from
4365         libc_cv_localstatedir.
4366         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4367         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4368         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4369         * sysdeps/gnu/configure: Regenerated.
4370
4371 2012-06-21  Jeff Law  <law@redhat.com>
4372
4373         [BZ #14277]
4374         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4375         free.  Simplify list management for _LIBC case.
4376
4377 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4378
4379         [BZ #14273]
4380         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4381         Clear sign bit of 64-bit integer value before comparing against
4382         overflow value.
4383
4384         * sysdeps/mach/configure: Regenerated.
4385
4386 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4387
4388         [BZ #14278]
4389         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4390
4391 2012-06-21  Jeff Law  <law@redhat.com>
4392
4393         [BZ #13882]
4394         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4395         uint16_t for elements in the "seen" array to avoid char overflows.
4396         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4397         * elf/dl-open.c (dl_open_worker): Likewise.
4398
4399 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4400
4401         * scripts/list-sources.sh: Scan PORTS for translations.
4402         * po/libc.pot: Regenerated.
4403
4404 2012-06-21  Andreas Jaeger  <aj@suse.de>
4405
4406         [BZ #12194]
4407         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4408         warning.
4409         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4410         * bits/byteswap-16.h (__bswap_16): Likewise.
4411         * bits/byteswap.h (__bswap_constant_16): Likewise.
4412
4413 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4414
4415         [BZ #14117]
4416         * sysdeps/i386/fpu_control.h: Removed.
4417         * sysdeps/x86_64/fpu_control.h: Moved to ...
4418         * sysdeps/x86/fpu_control.h: Here.
4419
4420         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4421         (_FPU_SETCW): Likewise.
4422
4423 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4424
4425         [BZ #14117]
4426         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4427         * sysdeps/x86/fpu/bits/mathinline.h: This.
4428         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4429
4430         [BZ #14050]
4431         [BZ #14117]
4432         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4433         functions if __x86_64__ is defined.
4434
4435 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4436
4437         * string/endian.h: Add !__ASSEMBLER__ condition for including
4438         conversion interfaces.
4439
4440 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4441
4442         [BZ #14241]
4443         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4444         of ABS(x) in calculating zero to negative powers other than odd
4445         integers.
4446         * math/libm-test.inc (pow_test): Add more tests.
4447
4448 2012-06-15  Andreas Jaeger  <aj@suse.de>
4449
4450         * manual/contrib.texi (Contributors): Update entry of Liubov
4451         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4452         Machado Filho.
4453
4454 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4455
4456         * string/string.h: Add __wur to GNU version of strerror_r.
4457
4458 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         [BZ #14229]
4461         * string/Makefile (tests): Add tst-strtok_r.
4462         * string/tst-strtok_r.c: New file.
4463         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4464         RAX_LP/RDX_LP on SAVE_PTR.
4465
4466 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4467
4468         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4469
4470 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4471
4472         * libm_test.inc (csqrt_test): Allow more spurious underflow
4473         exceptions.
4474         (j0_test): Likewise.
4475         (j1_test): Likewise.
4476         (y0_test): Likewise.
4477         (y1_test): Likewise.
4478
4479 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4480
4481         * po/Makefile (libc.pot): Use UTF-8 charset.
4482
4483 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4484
4485         [BZ #14210]
4486         Suppress sign-conversion warning from FD_SET.
4487         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4488         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4489         not unsigned long int.
4490         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4491
4492 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4493
4494         [BZ #14050]
4495         [BZ #14117]
4496         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4497         __extern_always_inline instead of __extern_inline.
4498         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4499         (__signbit): Likewise.
4500         (__signbitl): Support C++ namespace.
4501         (lrintf): New inline function.
4502         (lrint): Likewise.
4503         (llrintf): Likewise.
4504         (llrint): Likewise.
4505         (fmaxf): Likewise.
4506         (fmax): Likewise.
4507         (fminf): Likewise.
4508         (fmin): Likewise.
4509         (rint): Likewise.
4510         (rintf): Likewise.
4511         (ceil): Likewise.
4512         (ceilf): Likewise.
4513         (floor): Likewise.
4514         (floorf): Likewise.
4515         (nearbyint): Likewise.
4516         (nearbyintf): Likewise.
4517
4518 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4519
4520         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4521         non-default versions.
4522
4523 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4524
4525         [BZ #14218]
4526         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4527
4528 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4529
4530         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4531         (FE_UPWARD, FE_DOWNWARD): Don't define.
4532         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4533         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4534
4535         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4536         reading it.
4537         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4538         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4539
4540 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4541
4542         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4543         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4544         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4545         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4546
4547 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4548
4549         [BZ #14117]
4550         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4551         * sysdeps/i386/fpu/Implies: New file.
4552         * sysdeps/x86_64/fpu/Implies: Likewise.
4553         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4554         * sysdeps/x86/fpu/bits/fenv.h: This.
4555
4556         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4557         __SSE_MATH__.
4558
4559 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4560
4561         [BZ #14134]
4562         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4563         character 0xffff that matches the last element of the
4564         conversion table.
4565
4566 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4567
4568         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4569         fmodl commit.
4570
4571 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4572
4573         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4574         values higher than 25.6283.
4575
4576 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4577
4578         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4579         subnormal exponent extraction and add some __builtin_expect.
4580         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4581         Fix for subnormal mantissa calculation.
4582
4583 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4584
4585         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4586         cpu2 is -1 and errno is not ENOSYS.
4587
4588 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4589
4590         [BZ #14117]
4591         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4592         * sysdeps/x86/bits/string.h: This.
4593         * sysdeps/x86_64/bits/string.h: Removed.
4594
4595         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4596         if not compiling for x86-64, but compiling for >= i486.
4597
4598         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4599         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4600
4601         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4602         New macro from Linux kernel 3.4.0.
4603         (FP_XSTATE_MAGIC2): Likewise.
4604         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4605         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4606         (struct _fpx_sw_bytes): New struct.
4607         (struct _xsave_hdr): Likewise.
4608         (struct _ymmh_state): Likewise.
4609         (struct _xstate): Likewise.
4610
4611         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4612         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4613         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4614         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4615         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4616         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4617
4618         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4619         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4620         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4621         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4622         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4623         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4624
4625 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4626
4627         [BZ #13743]
4628         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4629         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4630         (sysdep_headers): Include sys/platform/ppc.h.
4631         * sysdeps/powerpc/test-gettimebase.c: Test for
4632         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4633         * manual/Makefile (appendices): Include platform.texi.
4634         * manual/contrib.texi (Contributors): Update @node pointers.
4635         * manual/maint.texi (Maintenance): Likewise.
4636         (Platform): New node.
4637         * manual/platform.texi: New file.  Document the new features.
4638
4639 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4640             Jakub Jelinek  <jakub@redhat.com>
4641
4642         [BZ #14188]
4643         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4644         where __builtin_expect is unavailable.
4645
4646 2012-06-03  David S. Miller  <davem@davemloft.net>
4647
4648         * stdlib/longlong.h: Updated from GCC.
4649
4650 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4651
4652         [BZ #14042]
4653         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4654         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4655         __mcount_internal.
4656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4657         (GLIBC_2.16): Likewise.
4658
4659 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4660
4661         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4662
4663 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4664
4665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4666         (default-abi): New variable.
4667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4668         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4669         variable.
4670         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4671         Likewise.
4672         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4673         Likewise.
4674         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4675         Likewise.
4676
4677         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4678         definition.  Document in comment.
4679
4680 2012-06-01  David S. Miller  <davem@davemloft.net>
4681
4682         * stdlib/longlong.h: Updated from GCC.
4683
4684 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4685
4686         [BZ #14117]
4687         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4688         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4689         sys/debugreg.h sys/io.h here.
4690         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4691         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4692         sys/io.h.
4693         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4694         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4695         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4696         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4697         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4698         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4699
4700         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4701         Define only if __x86_64__ is defined.
4702
4703 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4704
4705         [BZ #14048]
4706         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4707         Use int64_t for variable i.
4708         * math/libm-test.inc (fmod_test): Add more tests.
4709
4710         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4711         z computation is not scheduled after fetestexcept.
4712         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4713         Use math_force_eval instead of asm to ensure calculation scheduled
4714         before exception test.
4715         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4716         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4717
4718 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4719
4720         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4721         computation is not scheduled after fetestexcept.
4722
4723 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4724
4725         [BZ #14117]
4726         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4727         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4728
4729 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4730
4731         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4732         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4733
4734 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4735
4736         [BZ #14117]
4737         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4738         <bits/wordsize.h>.
4739         (__WCHAR_MIN): Support __WORDSIZE == 64.
4740         (__WCHAR_MAX): Likewise.
4741
4742         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4743         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4744
4745         [BZ #14183]
4746         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4747         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4748
4749         [BZ #14117]
4750         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4751         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4752
4753         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4754         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4755
4756         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4757         Defined to 1 if __x86_64__ isn't defined.
4758         (_STAT_VER_LINUX_OLD): New.
4759         (st_atime): Remove duplicate.
4760         (st_mtime): Likewise.
4761         (st_ctime): Likewise.
4762
4763 2012-05-31  David S. Miller  <davem@davemloft.net>
4764
4765         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4766         entries.
4767
4768 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4769
4770         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4771         gen-libm-test.pl.
4772
4773         [BZ #14132]
4774         * elf/dl-reloc.c: Include <_itoa.h>.
4775         (_dl_reloc_bad_type): Remove use of INTUSE.
4776         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4777         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4778         * stdio-common/psiginfo.c (psiginfo): Likewise.
4779         * stdio-common/psignal.c (psignal): Likewise.
4780         * string/strsignal.c (strsignal): Likewise.
4781         * include/signal.h (_sys_siglist): Declare hidden proto.
4782         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4783         INTVARDEF with libc_hidden_data_def.
4784         * stdio-common/itoa-udigits.c: Likewise.
4785         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4786         (_itoa_lower_digits_internal): Remove declaration.
4787         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4788         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4789         (_sys_sigabbrev_internal): Remove aliases.
4790         (_sys_siglist): Define hidden alias.
4791
4792 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4793
4794         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4795         bits/sysctl.h.
4796
4797 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4798
4799         [BZ #14117]
4800         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4801         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4802
4803         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4804         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4805         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4806         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4807         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4808         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4809
4810         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4811         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4812         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4813
4814         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4815         with __addr.
4816         (insw): Likewise.
4817         (insl): Likewise.
4818         (outsb): Likewise.
4819         (outsw): Likewise.
4820         (outsl): Likewise.
4821
4822         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4823         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4824         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4825
4826         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4827         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4828         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4829         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4830         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4831         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4832
4833         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4834         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4835
4836         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4837         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4838
4839         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4840         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4841         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4842
4843         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4844         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4845         to ...
4846         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4847
4848         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4849         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4850         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4851
4852         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4853         for x86-64.
4854         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4855
4856 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4857
4858         * math/math.h (M_El): Use two more decimal places.
4859         (M_LOG2El): Likewise.
4860         (M_LOG10El): Likewise.
4861         (M_LN2l): Likewise.
4862         (M_LN10l): Likewise.
4863         (M_PIl): Likewise.
4864         (M_PI_2l): Likewise.
4865         (M_PI_4l): Likewise.
4866         (M_1_PIl): Likewise.
4867         (M_2_PIl): Likewise.
4868         (M_2_SQRTPIl): Likewise.
4869         (M_SQRT2l): Likewise.
4870         (M_SQRT1_2l): Likewise.
4871
4872 2012-05-31  David S. Miller  <davem@davemloft.net>
4873
4874         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4875         values between float registers.
4876         * sysdeps/sparc/sparc64/memset.S: Likewise.
4877         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4878
4879 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4880
4881         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4882         -D_FORTIFY_SOURCE=1.
4883         (CPPFLAGS-tst-longjmp_chk.c): Define.
4884         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4885         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4886         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4887         CFLAGS-tst-wchar-h.c.
4888
4889 2012-05-31  Marek Polacek  <polacek@redhat.com>
4890
4891         [BZ #14132]
4892         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4893         __endmntent_internal): Remove declaration.
4894         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4895         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4896         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4897
4898 2012-05-30  David S. Miller  <davem@davemloft.net>
4899
4900         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4901         (___Q_simulate_exceptions): Use real FP ops rather than writing
4902         into the %fsr.
4903         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4904         Likewise.
4905
4906 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4907
4908         [BZ #14117]
4909         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4910         * sysdeps/x86/bits/xtitypes.h: This.
4911
4912         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4913         * sysdeps/x86/bits/wordsize.h: This.
4914
4915         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4916         * sysdeps/x86/bits/huge_vall.h: This.
4917
4918         * sysdeps/i386/bits/select.h: Removed.
4919         * sysdeps/x86_64/bits/select.h: Renamed to ...
4920         * sysdeps/x86/bits/select.h: This.
4921
4922         * sysdeps/i386/bits/setjmp.h: Removed.
4923         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4924         * sysdeps/x86/bits/setjmp.h: This.
4925
4926         * sysdeps/i386/bits/mathdef.h: Removed.
4927         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4928         * sysdeps/x86/bits/mathdef.h: This.
4929
4930 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4931
4932         [BZ #14132]
4933         * include/sys/socket.h (__connect_internal)
4934         (__libc_sa_len_internal): Remove declaration.
4935         (__connect, __libc_sa_len): Declare hidden_proto.
4936         (SA_LEN): Remove use of INTUSE.
4937         * socket/connect.c: Add libc_hidden_def.
4938         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4939         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4940         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4941         alias.
4942         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4943         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4944         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4945         of adding _internal alias.
4946
4947 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4948
4949         [BZ #14117]
4950         * sysdeps/i386/bits/link.h: Removed.
4951         * sysdeps/i386/bits/linkmap.h: Likewise.
4952         * sysdeps/x86_64/bits/link.h: Renamed to ...
4953         * sysdeps/x86/bits/link.h: This.
4954         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4955         * sysdeps/x86/bits/linkmap.h: This.
4956
4957         * sysdeps/i386/bits/endian.h: Removed.
4958         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4959         * sysdeps/x86/bits/endian.h: This.
4960
4961         * sysdeps/i386/bits/byteswap.h: Removed.
4962         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4963         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4964         * sysdeps/x86/bits/byteswap.h: This.
4965         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4966         * sysdeps/x86/bits/byteswap-16.h: This.
4967         * sysdeps/i386/Implies: Add x86.
4968         * sysdeps/x86_64/Implies: Likewise.
4969
4970 2012-05-30  David S. Miller  <davem@davemloft.net>
4971
4972         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4973         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4974         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4975         (FP_TRAPPING_EXCEPTIONS): Define.
4976         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4977         (FP_TRAPPING_EXCEPTIONS): Define.
4978         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4979         subnormals only when inexact has been signalled or underflow
4980         exceptions are enabled.
4981         (_FP_PACK_CANONICAL): Likewise.
4982
4983 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4984
4985         [BZ #14183]
4986         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4987         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4988
4989 2012-05-30  Richard Henderson  <rth@twiddle.net>
4990
4991         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4992         with #ifndef NOT_IN_libc.
4993
4994         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4995         marked to avoid plt entry.
4996
4997 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4998
4999         [BZ #14112]
5000         * Makeconfig (default-abi): New macro.
5001         (abi-includes): Likewise.
5002         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5003         $(abi-$(default-abi)-lib-soname) for soname if defined.
5004         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5005         abi-variants.
5006         * Makefile (installed-stubs): Likewise.
5007         * include/stubs-biarch.h: Removed.
5008         * scripts/lib-names.awk: Only handle one library at a time.
5009         * scripts/soversions.awk: Remove WORDSIZE support.
5010         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5011         entries.
5012         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5013         Removed.
5014         (syscall-list-default-condition): Likewise.
5015         (syscall-list-default-condition): Likewise.
5016         (syscall-list-includes): Likewise.
5017         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5018         syscall-list-* with abi-*.  Handle undefined abi-variants.
5019         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5020         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5021         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5022         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5023         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5024         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5025         Removed.
5026         (syscall-list-32-options): Likewise.
5027         (syscall-list-32-condition): Likewise.
5028         (syscall-list-64-options): Likewise.
5029         (syscall-list-64-condition): Likewise.
5030         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5031         macro.
5032         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5033         Renamed to ...
5034         (abi-*): This.
5035         (abi-64-ld-soname): New macro.
5036         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5037         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5038         Renamed to ...
5039         (abi-*): This.
5040         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5041         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5042
5043 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5044
5045         * sysdeps/unix/sysv/linux/kernel-features.h
5046         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5047         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5048         include <kernel-features.h>.
5049         [!__NR_ftruncate64]: Remove conditional code.
5050         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5051         [__NR_ftruncate64]: Make code unconditional.
5052         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5053         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5054         include <kernel-features.h>.
5055         [!__NR_ftruncate64]: Remove conditional code.
5056         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5057         [__NR_ftruncate64]: Make code unconditional.
5058         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5060         include <kernel-features.h>.
5061         [!__NR_ftruncate64]: Remove conditional code.
5062         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5063         [__NR_ftruncate64]: Make code unconditional.
5064         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5066         include <kernel-features.h>.
5067         [!__NR_ftruncate64]: Remove conditional code.
5068         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5069         [__NR_ftruncate64]: Make code unconditional.
5070         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5071
5072         * configure.in (libc_cv_fpie): Weaken to a compile test using
5073         LIBC_TRY_CC_OPTION.
5074         * configure: Regenerated.
5075
5076 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5077
5078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5079         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5081         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5082         Refreshed.
5083         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5086         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5087         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5089         Refreshed.
5090
5091 2012-05-27  David S. Miller  <davem@davemloft.net>
5092
5093         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5094         (___Q_zero): New.
5095         (__Q_simulate_exceptions): Return void.  Change to simulate
5096         exceptions by writing into the %fsr.
5097         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5098         (__Qp_handle_exceptions): Likewise.
5099         (numbers): Delete.
5100         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5101         __Qp_handle_exceptions.
5102         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5103         __Qp_handle_exceptions.
5104         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5105         as unused and give dummy FP_RND_NEAREST initializer.
5106         (FP_INHIBIT_RESULTS): Define.
5107         (___Q_simulate_exceptions): Update declaration.
5108         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5109         formatting.
5110         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5111         as unused and give dummy FP_RND_NEAREST initializer.
5112         (__Qp_handle_exceptions): Update declaration.
5113         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5114         formatting.
5115
5116 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5117
5118         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5119         the temporary FPU control word.
5120         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5121         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5122         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5123         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5124         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5125         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5126         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5127         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5128         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5129         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5130         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5131
5132 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5133
5134         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5135         fields.
5136
5137 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5138
5139         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5140         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5141         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5142         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5143         Likewise.
5144         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5145         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5146         Likewise.
5147
5148 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5149
5150         * po/h.po: Update from translation team.
5151
5152 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5153
5154         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5155
5156         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5157         handling of denormals.
5158         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5159         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5160         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5161         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5162         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5163         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5164         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5165         Likewise.
5166
5167 2012-05-26  Marek Polacek  <polacek@redhat.com>
5168
5169         [BZ #14152]
5170         * math/libm-test.inc (fma_test): Don't always expect underflow
5171         exception.
5172
5173 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5174
5175         [BZ #12416]
5176         * elf/tst-execstack.c: Include stackinfo.h.
5177         (do_test): Adjust test case to ensure that pthread_getattr_np
5178         behaviour remains the same after marking stack executable.
5179
5180 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5181
5182         * sysdeps/unix/sysv/linux/kernel-features.h
5183         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5184         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5185         kernel-features.h.
5186         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5187         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5188         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5189         kernel-features.h.
5190         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5191         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5192
5193 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5194
5195         * configure.in: Define the default includes to being none.
5196         * configure: Regenerated.
5197
5198 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5199
5200         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5201         * sysdeps/x86_64/setjmp.S: Likewise.
5202         * sysdeps/i386/bsd-setjmp.S: Likewise.
5203         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5204         * sysdeps/i386/setjmp.S: Likewise.
5205         * sysdeps/i386/__longjmp.S: Likewise.
5206         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5207         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5208
5209         * include/stap-probe.h: New file.
5210         * configure.in: Handle --enable-systemtap.
5211         * configure: Regenerated.
5212         * config.h.in (USE_STAP_PROBE): New #undef.
5213         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5214         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5215         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5216
5217 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5218
5219         [BZ #13717]
5220         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5221         to 2.4.0 where earlier.
5222         * sysdeps/unix/sysv/linux/configure: Regenerated.
5223         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
5232         [__ASSUME_32BITUIDS]: Make code unconditional.
5233         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5234         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5235         <kernel-features.h>.
5236         [__ASSUME_32BITUIDS]: Make code unconditional.
5237         [!__ASSUME_32BITUIDS]: Remove conditional code.
5238         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5239         <kernel-features.h>.
5240         [__ASSUME_32BITUIDS]: Make code unconditional.
5241         [!__ASSUME_32BITUIDS]: Remove conditional code.
5242         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5243         <kernel-features.h>.
5244         [__ASSUME_32BITUIDS]: Make code unconditional.
5245         [!__ASSUME_32BITUIDS]: Remove conditional code.
5246         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5247         <kernel-features.h>.
5248         [__ASSUME_32BITUIDS]: Make code unconditional.
5249         [!__ASSUME_32BITUIDS]: Remove conditional code.
5250         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5251         <kernel-features.h>.
5252         [__ASSUME_32BITUIDS]: Make code unconditional.
5253         [!__ASSUME_32BITUIDS]: Remove conditional code.
5254         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5255         <kernel-features.h>.
5256         [__ASSUME_32BITUIDS]: Make code unconditional.
5257         [!__ASSUME_32BITUIDS]: Remove conditional code.
5258         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5259         <kernel-features.h>.
5260         [__ASSUME_32BITUIDS]: Make code unconditional.
5261         [!__ASSUME_32BITUIDS]: Remove conditional code.
5262         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5263         <kernel-features.h>.
5264         [__ASSUME_32BITUIDS]: Make code unconditional.
5265         [!__ASSUME_32BITUIDS]: Remove conditional code.
5266         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5267         <kernel-features.h>.
5268         [__ASSUME_32BITUIDS]: Make code unconditional.
5269         [!__ASSUME_32BITUIDS]: Remove conditional code.
5270         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5271         <kernel-features.h>.
5272         [__ASSUME_32BITUIDS]: Make code unconditional.
5273         [!__ASSUME_32BITUIDS]: Remove conditional code.
5274         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5275         <kernel-features.h>.
5276         [__NR_setresgid] (__setresgid): Do not declare.
5277         [__ASSUME_32BITUIDS]: Make code unconditional.
5278         [!__ASSUME_32BITUIDS]: Remove conditional code.
5279         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5280         <kernel-features.h>.
5281         [__NR_setresuid] (__setresuid): Do not declare.
5282         [__ASSUME_32BITUIDS]: Make code unconditional.
5283         [!__ASSUME_32BITUIDS]: Remove conditional code.
5284         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5285         <kernel-features.h>.
5286         [__ASSUME_32BITUIDS]: Make code unconditional.
5287         [!__ASSUME_32BITUIDS]: Remove conditional code.
5288         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5289         <kernel-features.h>.
5290         [__ASSUME_32BITUIDS]: Make code unconditional.
5291         [!__ASSUME_32BITUIDS]: Remove conditional code.
5292         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5293         <kernel-features.h>.
5294         [__ASSUME_32BITUIDS]: Make code unconditional.
5295         [!__ASSUME_32BITUIDS]: Remove conditional code.
5296         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5297         <kernel-features.h>.
5298         [__ASSUME_32BITUIDS]: Make code unconditional.
5299         [!__ASSUME_32BITUIDS]: Remove conditional code.
5300         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5301         <kernel-features.h>.
5302         [__ASSUME_32BITUIDS]: Make code unconditional.
5303         [!__ASSUME_32BITUIDS]: Remove conditional code.
5304         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5305         <kernel-features.h>.
5306         [__ASSUME_32BITUIDS]: Make code unconditional.
5307         [!__ASSUME_32BITUIDS]: Remove conditional code.
5308         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5309         <kernel-features.h>.
5310         [__ASSUME_32BITUIDS]: Make code unconditional.
5311         [!__ASSUME_32BITUIDS]: Remove conditional code.
5312         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5313         <kernel-features.h>.
5314         [__ASSUME_32BITUIDS]: Make code unconditional.
5315         [!__ASSUME_32BITUIDS]: Remove conditional code.
5316         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5317         <kernel-features.h>.
5318         [__ASSUME_32BITUIDS]: Make code unconditional.
5319         [!__ASSUME_32BITUIDS]: Remove conditional code.
5320         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5321         <kernel-features.h>.
5322         [__ASSUME_32BITUIDS]: Make code unconditional.
5323         [!__ASSUME_32BITUIDS]: Remove conditional code.
5324         * sysdeps/unix/sysv/linux/kernel-features.h
5325         (__ASSUME_SETRESUID_SYSCALL): Remove.
5326         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5327         (__ASSUME_32BITUIDS): Likewise.
5328         (__ASSUME_LDT_WORKS): Likewise.
5329         (__ASSUME_O_DIRECTORY): Likewise.
5330         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5331         architecture but not kernel version.
5332         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5333         (__ASSUME_MMAP2_SYSCALL): Likewise.
5334         (__ASSUME_STAT64_SYSCALL): Likewise.
5335         (__ASSUME_IPC64): Likewise.
5336         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5337         <kernel-features.h>.
5338         [__ASSUME_32BITUIDS]: Make code unconditional.
5339         [!__ASSUME_32BITUIDS]: Remove conditional code.
5340         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5341         <kernel-features.h>.
5342         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5343         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5344         132096]: Remove conditional code.
5345         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5346         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5347         <kernel-features.h>.
5348         [__ASSUME_32BITUIDS]: Make code unconditional.
5349         [!__ASSUME_32BITUIDS]: Remove conditional code.
5350         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5351         <kernel-features.h>.
5352         [__ASSUME_32BITUIDS]: Make code unconditional.
5353         [!__ASSUME_32BITUIDS]: Remove conditional code.
5354         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5355         <kernel-features.h>.
5356         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5357         unconditional.
5358         (__setresgid): Do not declare.
5359         [__ASSUME_32BITUIDS]: Make code unconditional.
5360         [!__ASSUME_32BITUIDS]: Remove conditional code.
5361         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5362         <kernel-features.h>.
5363         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5364         unconditional.
5365         (__setresuid): Do not declare.
5366         [__ASSUME_32BITUIDS]: Make code unconditional.
5367         [!__ASSUME_32BITUIDS]: Remove conditional code.
5368         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5369         <kernel-features.h>.
5370         [__ASSUME_32BITUIDS]: Make code unconditional.
5371         [!__ASSUME_32BITUIDS]: Remove conditional code.
5372         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5373         <kernel-features.h>.
5374         [__ASSUME_32BITUIDS]: Make code unconditional.
5375         [!__ASSUME_32BITUIDS]: Remove conditional code.
5376
5377 2012-05-25  Richard Henderson  <rth@twiddle.net>
5378
5379         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5380         dl_hwcap to ifunc resolver.
5381         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5382         elf_ifunc_invoke.
5383         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5384         dl_hwcap to ifunc resolver.
5385         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5386
5387 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5388
5389         [BZ #14153]
5390         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5391         for |x| <= 2**-26, not 2**-57.
5392         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5393         exception.
5394
5395 2012-05-24  Jeff Law  <law@redhat.com>
5396
5397         * stdio-common/Makefile (tests): Add bug25.
5398         * stdio-common/bug25.c: New test.
5399
5400 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5401
5402         [BZ #13576]
5403         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5404         multiple of MALLOC_ALIGNMENT in size.
5405         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5406
5407 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5408
5409         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5410         Require >= 256.
5411         (FILENAME_MAX): Use macro-int-constant.
5412         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5413         (_IOFBF): Use macro-int-constant.
5414         (_IOLBF): Likewise.
5415         (_IONBF): Likewise.
5416         (SEEK_CUR): Likewise.
5417         (SEEK_END): Likewise.
5418         (SEEK_SET): Likewise.
5419         (TMP_MAX): Likewise.
5420         (EOF): Use macro-int-constant.  Require < 0.
5421         (NULL): Use macro-constant.  Require == 0.
5422         (stdin): Require type to be FILE *.
5423         (stdout): Likewise.
5424         (stderr): Likewise.
5425         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5426         macro-int-constant.
5427         (EXIT_SUCCESS): Likewise.
5428         (NULL): Use macro-constant.  Require == 0.
5429         (RAND_MAX): Use macro-int-constant.
5430         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5431         [C99-based standards] (strtof): Require function.
5432         [C99-based standards] (strtold): Likewise.
5433         [C99-based standards] (strtoll): Likewise.
5434         [C99-based standards] (strtoull): Likewise.
5435         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5436         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5437         [ISO || ISO99 || ISO11] (math.h): Likewise.
5438         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5439         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5440         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5441
5442 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5443
5444         [BZ #14132]
5445         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5446         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5447         * intl/dgettext.c (DCGETTEXT): Likewise.
5448         * intl/gettext.c (DCGETTEXT): Likewise.
5449         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5450         * posix/regex_internal.h (gettext): Likewise.
5451         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5452         Remove declaration.
5453         * include/argz.h (__argz_count_internal)
5454         (__argz_stringify_internal): Remove declaration.
5455         (__argz_count, __argz_stringify): Declare hidden proto.
5456         * intl/dcgettext.c: Remove use of INTDEF.
5457         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5458         * string/argz-stringify.c: Likewise.
5459         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5460         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5461         Declare hidden proto.
5462         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5463         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5464         Declare hidden proto.
5465         * include/stdio.h (__asprintf_internal): Don't declare.
5466         (__asprintf): Don't define as macro.  Declare hidden proto.
5467         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5468         (__fsetlocking): Declare hidden proto.
5469         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5470         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5471         hidden proto.
5472         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5473         (_IO_setlinebuf): Remove use of INTUSE.
5474         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5475         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5476         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5477         Remove declaration.
5478         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5479         (_IO_do_flush): Remove use of INTUSE.
5480         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5481         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5482         (_IO_adjust_column, _IO_least_wmarker)
5483         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5484         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5485         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5486         (_IO_default_doallocate, _IO_wdefault_doallocate)
5487         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5488         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5489         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5490         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5491         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5492         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5493         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5494         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5495         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5496         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5497         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5498         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5499         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5500         proto.
5501         (_IO_flush_all_internal, _IO_adjust_column_internal)
5502         (_IO_default_uflow_internal, _IO_default_finish_internal)
5503         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5504         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5505         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5506         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5507         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5508         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5509         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5510         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5511         (_IO_file_close_internal, _IO_file_close_it_internal)
5512         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5513         (_IO_file_init_internal, _IO_file_attach_internal)
5514         (_IO_file_fopen_internal, _IO_file_read_internal)
5515         (_IO_file_sync_internal, _IO_file_seek_internal)
5516         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5517         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5518         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5519         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5520         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5521         (_IO_list_all_internal, _IO_link_in_internal)
5522         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5523         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5524         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5525         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5526         (_IO_do_write_internal, _IO_padn_internal)
5527         (_IO_getline_info_internal, _IO_getline_internal)
5528         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5529         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5530         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5531         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5532         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5533         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5534         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5535         with libc_hidden_ver, remove use of INTUSE.
5536         * libio/genops.c: Likewise.
5537         * libio/freopen.c: Likewise.
5538         * libio/freopen64.c: Likewise.
5539         * libio/iofclose.c: Likewise.
5540         * libio/iofdopen.c: Likewise.
5541         * libio/iofflush.c: Likewise.
5542         * libio/iofflush_u.c: Likewise.
5543         * libio/iofgets.c: Likewise.
5544         * libio/iofgets_u.c: Likewise.
5545         * libio/iofopen.c: Likewise.
5546         * libio/iofopncook.c: Likewise.
5547         * libio/iofread.c: Likewise.
5548         * libio/iofread_u.c: Likewise.
5549         * libio/ioftell.c: Likewise.
5550         * libio/iofwrite.c: Likewise.
5551         * libio/iogetline.c: Likewise.
5552         * libio/iogets.c: Likewise.
5553         * libio/iogetwline.c: Likewise.
5554         * libio/iopadn.c: Likewise.
5555         * libio/iopopen.c: Likewise.
5556         * libio/ioseekoff.c: Likewise.
5557         * libio/ioseekpos.c: Likewise.
5558         * libio/iosetbuffer.c: Likewise.
5559         * libio/iosetvbuf.c: Likewise.
5560         * libio/ioungetc.c: Likewise.
5561         * libio/ioungetwc.c: Likewise.
5562         * libio/iovdprintf.c: Likewise.
5563         * libio/iovsprintf.c: Likewise.
5564         * libio/iovsscanf.c: Likewise.
5565         * libio/memstream.c: Likewise.
5566         * libio/obprintf.c: Likewise.
5567         * libio/oldfileops.c: Likewise.
5568         * libio/oldiofclose.c: Likewise.
5569         * libio/oldiofdopen.c: Likewise.
5570         * libio/oldiofopen.c: Likewise.
5571         * libio/oldiopopen.c: Likewise.
5572         * libio/oldstdfiles.c: Likewise.
5573         * libio/putc.c: Likewise.
5574         * libio/setbuf.c: Likewise.
5575         * libio/setlinebuf.c: Likewise.
5576         * libio/stdfiles.c: Likewise.
5577         * libio/strops.c: Likewise.
5578         * libio/vasprintf.c: Likewise.
5579         * libio/vscanf.c: Likewise.
5580         * libio/vsnprintf.c: Likewise.
5581         * libio/vswprintf.c: Likewise.
5582         * libio/wfiledoalloc.c: Likewise.
5583         * libio/wfileops.c: Likewise.
5584         * libio/wgenops.c: Likewise.
5585         * libio/wmemstream.c: Likewise.
5586         * libio/wstrops.c: Likewise.
5587         * libio/__fpurge.c: Likewise.
5588         * libio/__fsetlocking.c: Likewise.
5589         * assert/assert.c: Likewise.
5590         * debug/fgets_chk.c: Likewise.
5591         * debug/fgets_u_chk.c: Likewise.
5592         * debug/fread_chk.c: Likewise.
5593         * debug/fread_u_chk.c: Likewise.
5594         * debug/gets_chk.c: Likewise.
5595         * debug/obprintf_chk.c: Likewise.
5596         * debug/vasprintf_chk.c: Likewise.
5597         * debug/vdprintf_chk.c: Likewise.
5598         * debug/vsnprintf_chk.c: Likewise.
5599         * debug/vsprintf_chk.c: Likewise.
5600         * malloc/mtrace.c: Likewise.
5601         * misc/error.c: Likewise.
5602         * misc/syslog.c: Likewise.
5603         * stdio-common/asprintf.c: Likewise.
5604         * stdio-common/fxprintf.c: Likewise.
5605         * stdio-common/getw.c: Likewise.
5606         * stdio-common/isoc99_fscanf.c: Likewise.
5607         * stdio-common/isoc99_scanf.c: Likewise.
5608         * stdio-common/isoc99_vfscanf.c: Likewise.
5609         * stdio-common/isoc99_vscanf.c: Likewise.
5610         * stdio-common/isoc99_vsscanf.c: Likewise.
5611         * stdio-common/printf-prs.c: Likewise.
5612         * stdio-common/printf_fp.c: Likewise.
5613         * stdio-common/printf_fphex.c: Likewise.
5614         * stdio-common/printf_size.c: Likewise.
5615         * stdio-common/putw.c: Likewise.
5616         * stdio-common/scanf.c: Likewise.
5617         * stdio-common/sprintf.c: Likewise.
5618         * stdio-common/tmpfile.c: Likewise.
5619         * stdio-common/vfprintf.c: Likewise.
5620         * stdio-common/vfscanf.c: Likewise.
5621         * stdlib/strfmon_l.c: Likewise.
5622         * sunrpc/openchild.c: Likewise.
5623         * sunrpc/xdr_stdio.c: Likewise.
5624         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5625         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5626
5627 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5628
5629         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5630
5631         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5632         in the third column, to generate for the shared library an IFUNC
5633         that uses _dl_vdso_vsym.
5634         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5635         * Makeconfig (object-suffixes-noshared): New variable.
5636
5637         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5638         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5639         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5640         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5641
5642         [BZ #14132]
5643         * include/sys/time.h (__gettimeofday): Remove macro.
5644         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5645         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5646         Remove INTDEF.
5647         (__gettimeofday): Add libc_hidden_def.
5648         (gettimeofday): Add libc_hidden_weak.
5649         * sysdeps/mach/gettimeofday.c: Likewise.
5650         * sysdeps/posix/gettimeofday.c: Likewise.
5651         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5652         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5653         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5654         (__gettimeofday_internal): Remove strong_alias.
5655         (__gettimeofday): Add libc_hidden_def.
5656         (gettimeofday): Add libc_hidden_weak.
5657         * sysdeps/unix/syscalls.list (gettimeofday):
5658         Remove __gettimeofday_internal alias.
5659
5660 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5661             H.J. Lu  <hongjiu.lu@intel.com>
5662
5663         [BZ #12495]
5664         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5665         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5666         (largebin_index_32_big): New.
5667         (largebin_index): Use it for 16-byte alignment.
5668         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5669         correction with front_misalign.
5670
5671 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5672
5673         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5675         Likewise.
5676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5677         Likewise.
5678         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5679         Likewise.
5680         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5681         Likewise.
5682         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5683         Likewise.
5684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5685         Likewise.
5686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5687         Likewise.
5688         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5689         Likewise.
5690         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5691         Likewise.
5692         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5693         Likewise.
5694         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5695         Likewise.
5696         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5697         Likewise.
5698
5699         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5700         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5701
5702 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5703
5704         [BZ #10846]
5705         [BZ #14036]
5706         * math/libm-test.inc (exp_test): Add test from bug 14036.
5707         (pow_test): Add test from bug 10846.
5708
5709         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5710         and other flags.
5711         (special_function): Do not include flags in test name.
5712         (parse_args): Likewise.
5713         * sysdeps/i386/fpu/libm-test-ulps: Update.
5714         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5715         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5716         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5718
5719         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5720         exceptions.
5721         * math/libm-test.inc ("Philosophy"): Update comment about
5722         exception testing.
5723         (UNDERFLOW_EXCEPTION): New macro.
5724         (UNDERFLOW_EXCEPTION_OK): Likewise.
5725         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5726         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5727         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5728         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5729         (INVALID_EXCEPTION_OK): Update value.
5730         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5731         (OVERFLOW_EXCEPTION_OK): Likewise.
5732         (IGNORE_ZERO_INF_SIGN): Likewise.
5733         (test_exceptions): Handle underflow exceptions.
5734         (acos_test): Update for underflow exception expectations.
5735         (cexp_test): Likewise.
5736         (clog_test): Likewise.
5737         (clog10_test): Likewise.
5738         (csqrt_test): Likewise.
5739         (ctan_test): Likewise.
5740         (ctanh_test): Likewise.
5741         (exp_test): Likewise.
5742         (exp10_test): Likewise.
5743         (exp2_test): Likewise.
5744         (expm1_test): Likewise.
5745         (fma_test): Likewise.
5746         (j0_test): Likewise.
5747         (jn_test): Likewise.
5748         (nexttoward_test): Likewise.
5749         (pow_test): Likewise.
5750         (scalbn_test): Likewise.
5751         (scalbln_test): Likewise.
5752         (tan_test): Likewise.
5753         (y1_test): Likewise.
5754         * sysdeps/i386/fpu/libm-test-ulps: Update.
5755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5756
5757 2012-05-23  David S. Miller  <davem@davemloft.net>
5758
5759         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5760         (__libc_sigaction): Remove unused local variables.
5761
5762 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5763
5764         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5765
5766 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5767
5768         mktime: avoid signed integer overflow
5769         * time/mktime.c (__mktime_internal): Do not mishandle the case
5770         where diff == INT_MIN.
5771
5772         mktime: simplify computation of average
5773         * time/mktime.c (ranged_convert): Use new time_t_avg function
5774         instead of rolling our own (probably-slower) code.
5775
5776         mktime: do not assume signed right shift propagates sign bit
5777         * time/mktime.c (isdst_differ): New static function.
5778         (__mktime_internal): No need to normalize tm_isdst now.
5779         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5780         tm_isdst values.
5781
5782         mktime: merge another wrapv change from gnulib
5783         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5784         from some compilers.
5785
5786         mktime: remove incorrect attempt at unusual arithmetics
5787         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5788         The code didn't really work on such machines anyway.
5789         (TYPE_MINIMUM): Assume two's complement.
5790         (twos_complement_arithmetic): Verify that long_int and time_t
5791         are two's complement (or unsigned, in the latter case).
5792
5793         mktime: check signed shifts on long_int and time_t, too
5794         * time/mktime.c (SHR): Check that shifts work as desired
5795         on the types long_int and time_t too, as SHR is used on
5796         such types.
5797
5798         mktime: do not assume 'long' is wide enough
5799         * time/mktime.c (verify): Move decl up.
5800         (long_int): New type.
5801         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5802         to remove assumption in the code that 'long' is wide enough to
5803         store year values.  This assumption is not true on x32 and on
5804         some non-glibc platforms.
5805
5806         mktime: merge wrapv change from gnulib
5807         * time/mktime.c (WRAPV): New macro.
5808         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5809         (guess_time_tm, __mktime_internal): Do not assume that signed
5810         integer overflow wraps around; modern compilers generate code
5811         where this assumption is no longer valid.
5812
5813 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5816         Replace "jmp L(pseudo_end)" with "ret".
5817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5818         Likewise.
5819
5820 2012-05-23  Andreas Jaeger  <aj@suse.de>
5821
5822         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5823         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5824
5825 2012-05-23  Andreas Jaeger  <aj@suse.de>
5826             Maximilian Attems  <max@stro.at>
5827
5828         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5829         New macros.
5830
5831 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5832
5833         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5834         code so that pseudo_end is just ret and the stack pointer is
5835         correct also for static library in error case.
5836
5837 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5838
5839         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5840         move to syscalls.list.
5841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5845
5846         * manual/install.texi (Running make install): Do not mention Linux
5847         kernel version for which pt_chown is not needed.
5848         (Linux): Do not mention problems with nscd with 2.0 kernels.
5849         * INSTALL: Regenerated.
5850
5851 2012-05-23  Andreas Jaeger  <aj@suse.de>
5852
5853         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5854         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5855         macro.
5856         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5857         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5858         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5859         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5860         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5861         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5862         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5863         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5864         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5865         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5866         * sysdeps/unix/sysv/linux/bits/in.h
5867         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5868
5869 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5870
5871         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5872         (PREPARE_VERSION): Just use assert instead, it will be elided
5873         under [NDEBUG] anyway.
5874
5875 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5876
5877         * sysdeps/unix/sysv/linux/Makefile: Include
5878         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5879         (sysdep_routines): Remove sysctl.
5880         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5881         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5882         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5883         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5884         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5885
5886 2012-05-22  Andreas Jaeger  <aj@suse.de>
5887
5888         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5889         that pseudo_end is just ret and the stack pointer is correct also
5890         for static library in error case.
5891
5892 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5893
5894         [BZ #14122]
5895         * nss/nsswitch.c (defconfig_entries): New variable.
5896         (__nss_database_lookup): Don't leak defconfig entries.
5897         (nss_parse_service_list): Don't leak on error paths.
5898         (free_database_entries): New function.
5899         (free_defconfig): New function.
5900         (free_mem): Move common code to free_database_entries.
5901
5902 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5903
5904         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5905         Add arch_prctl.
5906         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5907
5908         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5909         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5910         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5911         New macro.
5912         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5913         (INTERNAL_SYSCALL_TYPES): Likewise.
5914         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5915         (LOAD_REGS_TYPES_[1-6]): Likewise.
5916         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5917         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5918
5919 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5920
5921         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5922         copysignl for GLIBC_2_0.
5923         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5924         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5925         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5926         logbl for GLIBC_2_0.
5927         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5928         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5929
5930 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5931
5932         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5933         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5934
5935         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5936         Use "neg %eax".
5937
5938         * time/mktime.c: Update copyright years.
5939
5940 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5941
5942         mktime: merge comment-quoting-style change from gnulib
5943         * time/mktime.c: Quote 'like this' in comments.
5944         The GNU coding standards suggest that we no longer quote `like this',
5945         as "`" and "'" are typically rendered asymmetrically nowadays.
5946         The typical gnulib style is to quote 'like this' when quoting
5947         code, and "like this" when quoting English.
5948
5949         * time/mktime.c (compile-command): Add "-I.".
5950
5951         mktime: merge mktime-internal.h change from gnulib
5952         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5953
5954         mktime: merge time_r change from gnulib
5955         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5956
5957         mktime: merge DEBUG change from gnulib
5958         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5959         case system <time.h> has a #define.
5960
5961         mktime: merge <sys/types.h> change from gnulib
5962         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5963         since <time.t> is now guaranteed to define time_t.
5964
5965         mktime: merge HAVE_CONFIG_H change from gnulib
5966         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5967
5968 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5969
5970         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5971         Use "neg %eax".
5972
5973         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5974         __rlim_t cast.
5975         (struct rusage): Use anonymous union to pad each field to
5976         __syscall_slong_t.
5977
5978 2012-05-21  David S. Miller  <davem@davemloft.net>
5979
5980         * Makefules (o-iterator): Remove .s cases.
5981         (compile-command.s): Delete.
5982         (COMPILE.s): Delete.
5983         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5984
5985 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5986
5987         * configure.in (libc_cv_predef_stack_protector): Only consider
5988         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5989         * configure: Regenerated.
5990
5991 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5992
5993         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5994         New macro.  Use R*LP on int and pointer.
5995         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5996         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5997         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5998         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5999
6000         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6001         [__WORDSIZE_TIME64_COMPAT32] instead of
6002         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6003         (struct utmp): Likewise.
6004         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6005         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6006         Renamed to ...
6007         (__WORDSIZE_TIME64_COMPAT32): This.
6008         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6009         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6010         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6011         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6012         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6013         (__WORDSIZE_TIME64_COMPAT32): New macro.
6014
6015 2012-05-21  Andreas Jaeger  <aj@suse.de>
6016
6017         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6018         only if [SHARED]. Add prototype for __wcschr_ia32.
6019
6020 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6021
6022         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6023         of %rbp unmolested in the jmp_buf while mangling the low bits.
6024         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6025         unmolested high bits of %rbp while demangling the low bits.
6026         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6027
6028 2012-05-21  Andreas Jaeger  <aj@suse.de>
6029
6030         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6031         * sunrpc/svc_simple.c: Use it for registerrpc.
6032         * sunrpc/xcrypt.c: Use it for passwd2des.
6033
6034         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6035
6036 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6037
6038         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6039         Don't define if [__SYSCALL_WORDSIZE != 32].
6040         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6041         New macro.
6042
6043 2012-05-21  Bruno Haible  <bruno@clisp.org>
6044             Andreas Jaeger  <aj@suse.de>
6045
6046         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6047         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6048         inptr and inend for must_buffer_ch.
6049         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6050         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6051         * stdio-common/Makefile (tests): Remove bug15.
6052         (bug15-ENV): Remove macro.
6053         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6054         anymore.
6055
6056 2012-05-19  Andreas Jaeger  <aj@suse.de>
6057             Roland McGrath  <roland@hack.frob.com>
6058
6059         * manual/contrib.texi: Completely rewritten. It contains now an
6060         alphabetical list of contributors and their contributions.
6061
6062 2012-05-21  Richard Henderson  <rth@twiddle.net>
6063
6064         * misc/getauxval.c (__getauxval): Use unsigned long int.
6065         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6066         (getauxval): Use unsigned long int.
6067
6068 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6069
6070         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6071
6072 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6073
6074         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6075         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6076         __alignof__ (long double).
6077
6078 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6079
6080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6081
6082 2012-05-20  Richard Henderson  <rth@twiddle.net>
6083
6084         * misc/getauxval.c: New file.
6085         * misc/sys/auxv.h: New file.
6086         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6087         (routines): Add getauxval.
6088         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6089         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6090         * elf/dl-sysdep.c (_dl_auxv): Remove.
6091         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6092         * elf/dl-support.c (_dl_auxv): New variable.
6093         (_dl_aux_init): Initialize it.
6094         * manual/startup.texi (Auxiliary Vector): New node.
6095         * sysdeps/generic/bits/hwcap.h: New file.
6096         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6097         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6098         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6099         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6100         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6101         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6103         Update.
6104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6107         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6111         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6112
6113 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6114
6115         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6116
6117 2012-05-19  David S. Miller  <davem@davemloft.net>
6118
6119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6120
6121 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6122
6123         [BZ #14123]
6124         * math/s_ccosh.c: Include <float.h>
6125         (__ccosh): Avoid internal overflow calculating sinh and cosh
6126         values before multiplying by sin and cos values.
6127         * math/s_ccoshf.c: Likewise.
6128         * math/s_ccoshl.c: Likewise.
6129         * math/s_csin.c: Likewise.
6130         * math/s_csinf.c: Likewise.
6131         * math/s_csinl.c: Likewise.
6132         * math/s_csinh.c: Likewise.
6133         * math/s_csinhf.c: Likewise.
6134         * math/s_csinhl.c: Likewise.
6135         * math/libm-test.inc (ccos_test): Add more tests.
6136         (ccosh_test): Likewise.
6137         (csin_test): Likewise.
6138         (csinh_test): Likewise.
6139         * sysdeps/i386/fpu/libm-test-ulps: Update.
6140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6141
6142 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6143
6144         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6145         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6146
6147         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6148
6149 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6150
6151         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6152         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6153         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6154         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6155         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6156         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6157         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6158         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6159         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6160         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6161         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6162         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6163         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6164         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6165         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6166         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6167         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6168         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6169         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6170         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6171         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6172         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6173         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6174         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6175         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6176         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6177         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6178         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6179         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6180         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6181         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6182
6183 2012-05-18  Andreas Jaeger  <aj@suse.de>
6184
6185         * csu/.gitignore: Delete.
6186
6187 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6188
6189         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6190         (timex): Use __syscall_slong_t.
6191
6192 2012-05-18  Andreas Jaeger  <aj@suse.de>
6193             Carlos O'Donell  <carlos_odonell@mentor.com>
6194
6195         * manual/install.texi (Configuring and compiling): Update
6196         description about files modified in the source directory.
6197         * INSTALL: Regenerated.
6198
6199 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6200
6201         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6202         value.  Use "or" to set return value to -1.
6203         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6204         negate return value.
6205
6206 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6207
6208         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6209         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6210         failure if the compiler has Graphite support disabled.
6211         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6212         Likewise.
6213         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6214         CFLAGS-memmove.c): Likewise.
6215         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6216         Likewise.
6217
6218 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6219
6220         * sysdeps/x86_64/x32/_itoa.h: New file.
6221
6222         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6223         getdents system call only if kernel and user dirents have the
6224         same d_ino and d_off.
6225
6226         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6227         LLONG_MAX != LONG_MAX.
6228         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6229         (_fitoa_word): Likewise.
6230
6231         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6232         years.
6233         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6234         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6235         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6236
6237         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6238         include <bits/wordsize.h>.  Check __x86_64__ instead of
6239         __WORDSIZE.
6240         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6241         if __x86_64__ is defined.  Use anonymous union on fpstate.
6242
6243         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6244         anonymous union.
6245
6246 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6247
6248         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6249         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6250         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6251         Refer to _rtld_local_ro instead of _rtld_global_ro.
6252         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6253         Likewise.
6254         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6255         Likewise.
6256         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6257         Likewise.
6258         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6259         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6260         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6261
6262         * sysdeps/powerpc/powerpc32/dl-machine.c
6263         (__elf_machine_runtime_setup) [PROF]: Don't reference
6264         _dl_prof_resolve.
6265
6266 2012-05-18  Andreas Jaeger  <aj@suse.de>
6267
6268         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6269         function only available for GCCs before 3.4 since GCC 3.4
6270         introduced a builtin.
6271         (lrint): Likewise.
6272         (llrintf): Likewise.
6273         (llrint): Likewise.
6274         (fmaxf): Likewise.
6275         (fmax): Likewise.
6276         (fminf): Likewise.
6277         (fmin): Likewise.
6278         (rint): Likewise.
6279         (rintf): Likewise.
6280         (nearbyint): Likewise.
6281         (nearbyintf): Likewise.
6282         (ceil): Likewise.
6283         (ceilf): Likewise.
6284         (floor): Likewise.
6285         (floorf): Likewise.
6286
6287 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6288
6289         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6290         on both fields and cast pointer to __syscall_ulong_t.
6291
6292         * bits/types.h (__fsword_t): New type.
6293         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6294         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6295         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6296         (__FSWORD_T_TYPE): Likewise.
6297         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6298         (__FSWORD_T_TYPE): Likewise.
6299         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6300         (__FSWORD_T_TYPE): Likewise.
6301         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6302         (__FSWORD_T_TYPE): Likewise.
6303         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6304         __SWORD_TYPE with __fsword_t.
6305         (statfs64): Likewise.
6306
6307 2012-05-17  David S. Miller  <davem@davemloft.net>
6308
6309         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6310
6311 2012-05-17  Andreas Jaeger  <aj@suse.de>
6312
6313         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6314         warning.
6315
6316 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6317
6318         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6319
6320 2012-05-17  Andreas Jaeger  <aj@suse.de>
6321
6322         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6323         when it is used.
6324
6325 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6326
6327         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6328
6329 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6330
6331         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6332         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6333
6334 2012-05-17  Andreas Jaeger  <aj@suse.de>
6335             Carlos O'Donell  <carlos_odonell@mentor.com>
6336
6337         [BZ #14059]
6338         * sysdeps/x86_64/multiarch/init-arch.h
6339         (bit_YMM_Usable): Rename to...
6340         (bit_AVX_Usable): ... this.
6341         (bit_FMA4_Usable): New macro.
6342         (bit_XMM_state): New macro.
6343         (bit_YMM_state): New macro.
6344         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6345         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6346         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6347         (CPUID_OSXSAVE): New macro.
6348         (CPUID_AVX): New macro.
6349         (CPUID_FMA4): New macro.
6350         (index_YMM_Usable): Rename to...
6351         (index_AVX_Usable): ... this.
6352         (HAS_AVX): Use HAS_ARCH_FEATURE.
6353         (HAS_FMA4): Likewise.
6354         (HAS_YMM_USABLE): Remove.
6355         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6356         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6357         are present.
6358         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6359         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6360         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6361         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6362         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6363
6364 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6365
6366         * math/libm-test.c: Support platforms without multiple rounding modes.
6367         * math/bug-nextafter.c: Support platforms without FP exceptions.
6368         * math/bug-nexttoward.c: Likewise.
6369         * math/test-fenv.c: Likewise.
6370         * math/test-misc.c: Likewise.
6371         * stdlib/bug-getcontext.c: Likewise.
6372
6373 2012-05-17  Andreas Jaeger  <aj@suse.de>
6374
6375         * manual/examples/search.c (critter_cmp): Change signature to
6376         avoid warnings.
6377         * manual/string.texi (Collation Functions): Likewise.
6378
6379 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6380
6381         * bits/types.h: Fold copyright years.
6382         * bits/typesizes.h: Likewise.
6383         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6384         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6385         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6386         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6387         * time/time.h: Likewise.
6388
6389 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6390
6391         [BZ #208]
6392         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6393         in instead of returning them.  Return void.
6394         (__libc_mallinfo): Accumulate over all arenas.
6395         (__malloc_stats): Adjust for change in int_mallinfo interface.
6396
6397 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6398
6399         [BZ #10375]
6400         * configure.in (NM): Add AC_CHECK_TOOL for it.
6401         (libc_extra_cflags): New substituted variable.
6402         Check for -fstack-protector being used implicitly.
6403         * configure: Regenerated.
6404         * config.make.in (config-extra-cflags): New variable,
6405         gets @libc_extra_cflags@.
6406         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6407
6408         [BZ #10375]
6409         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6410         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6411         * configure: Regenerated.
6412         * config.make.in (CPPUNDEFS): New substituted variable.
6413         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6414         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6415         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6416
6417 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6418
6419         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6420         (mq_attr): Use __syscall_slong_t.
6421
6422 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6423
6424         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6425         Check __x86_64__ instead of __WORDSIZE.
6426         (_STAT_VER_LINUX): Likewise.
6427         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6428         __syscall_ulong_t and __syscall_slong_t.
6429         (stat64): Likewise.
6430
6431 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6432
6433         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6434
6435 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6436
6437         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6438
6439 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6440
6441         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6442         __syscall_ulong_t.
6443
6444         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6445         include <bits/wordsize.h>.  Check __x86_64__ instead of
6446         __WORDSIZE.
6447         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6448         defined.
6449         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6450
6451         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6452         include <bits/wordsize.h>.  Check __x86_64__ instead of
6453         __WORDSIZE.
6454         (user_regs_struct): Use "__extension__ unsigned long long"
6455         instead of "unsigned long" if __x86_64__ is defined.
6456         (user): Likewise.  Pad after pointer field if __ILP32__ is
6457         defined.
6458
6459 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6460
6461         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6462         versions 5 to 9.
6463         * configure: Regenerated.
6464         * manual/install.texi (texinfo): Increase version requirement to
6465         4.5 or later.
6466         * INSTALL: Regenerated.
6467
6468         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6469
6470 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6471
6472         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6473
6474         * sysdeps/x86_64/x32/ffs.c: New file.
6475
6476         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6477         __syscall_ulong_t.
6478         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6479         defined.  Use __syscall_ulong_t.
6480         (shminfo): Use __syscall_ulong_t.
6481         (shm_info): Likewise.
6482
6483         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6484         __syscall_ulong_t.
6485
6486         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6487         <bits/wordsize.h>.
6488         (msgqnum_t): Use __syscall_ulong_t.
6489         (msglen_t): Likewise.
6490         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6491         __syscall_ulong_t.
6492
6493         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6494         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6495
6496         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6497
6498         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6499         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6500
6501         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6502         __syscall_slong_t.
6503
6504         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6505         include <bits/wordsize.h>.  Check __x86_64__ instead of
6506         __WORDSIZE.
6507
6508         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6509         "unsigned long long int" if __x86_64__ is defined.
6510         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6511
6512         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6513         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6514         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6515
6516         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6517         <stdint.h>.
6518         (GET_PC): Cast to uintptr_t first.
6519         (GET_FRAME): Likewise.
6520         (GET_STACK): Likewise.
6521
6522         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6523         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6524         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6525         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6526         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6527         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6528         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6529         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6530         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6531         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6532         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6533         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6534         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6535         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6536         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6537         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6538         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6539         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6540         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6541         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6542         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6543         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6544         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6545         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6546         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6547         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6548         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6549         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6550         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6551
6552 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6553
6554         * Makerules (+depfiles): Also collect depfiles from .oS in
6555         $(extra-objs).
6556         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6557         .oS, $(libnldbl-routines)).
6558
6559         * Makerules (native-compile-mkdep-flags): Define.
6560         * sunrpc/Makefile (extra-objs): Add $(addprefix
6561         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6562         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6563         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6564         calling $(make-target-directory).
6565
6566 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6567
6568         * bits/types.h (__snseconds_t): Removed.
6569         * time/time.h (struct timespec): Replace __snseconds_t with
6570         __syscall_slong_t.
6571         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6572         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6573         Likewise.
6574         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6575         (__SNSECONDS_T_TYPE): Likewise.
6576         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6577         (__SNSECONDS_T_TYPE): Likewise.
6578         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6579         (__SNSECONDS_T_TYPE): Likewise.
6580
6581 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6582
6583         * sysdeps/mach/hurd/bits/typesizes.h
6584         (__SYSCALL_SLONG_TYPE): New macro.
6585         (__SYSCALL_ULONG_TYPE): Likewise.
6586
6587 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6588
6589         * bits/types.h (__syscall_slong_t): New type.
6590         (__syscall_ulong_t): Likewise.
6591
6592         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6593         (__SYSCALL_ULONG_TYPE): Likewise.
6594         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6595         (__SYSCALL_SLONG_TYPE): Likewise.
6596         (__SYSCALL_ULONG_TYPE): Likewise.
6597         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6598         (__SYSCALL_SLONG_TYPE): Likewise.
6599         (__SYSCALL_ULONG_TYPE): Likewise.
6600         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6601         (__SYSCALL_SLONG_TYPE): Likewise.
6602         (__SYSCALL_ULONG_TYPE): Likewise.
6603
6604 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6605
6606         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6607         Add sigaltstack-offsets.sym.
6608         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6609         <sigaltstack-offsets.h>.
6610         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6611         longjmp_msg pointer.
6612         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6613         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6614         signal stack.
6615         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6616
6617 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6618
6619         * elf/stackguard-macros.h: Remove file.
6620         * sysdeps/generic/stackguard-macros.h: New file.
6621         * sysdeps/i386/stackguard-macros.h: Likewise.
6622         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6623         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6624         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6625         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6626         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6627         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6628         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6629         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6630         <elf/stackguard-macros.h>.
6631
6632         [BZ #14109]
6633         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6634         __aligned__ in attribute.
6635         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6636         (gregset_t): Likewise.
6637
6638 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6639
6640         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6641         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6642         * sysdeps/x86_64/x32/Implies-after: New file.
6643
6644 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6645
6646         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6647         and access return value for _dl_profile_fixup.  Use R10_LP to
6648         load frame size.
6649
6650 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6651
6652         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6653
6654 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6655
6656         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6657         * sysdeps/x86_64/x32/sysdep.h: New file.
6658
6659 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6660
6661         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6662         * sysdeps/x86_64/setjmp.S: Likewise.
6663
6664 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6665
6666         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6667         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6668         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6669         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6670         remove unused global constant.
6671
6672 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6673
6674         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6675         include of <not-cancel.h>.
6676
6677 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6678
6679         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6680
6681 2012-05-15  Jeff Law  <law@redhat.com>
6682             Andreas Jaeger  <aj@suse.de>
6683
6684         [BZ #13594]
6685         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6686         out from...
6687         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6688         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6689         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6690         code changing __hst_map_handle.map.
6691
6692 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6693
6694         * configure.in (sysnames): Look for Implies-before and Implies-after
6695         files.
6696         * configure: Regenerated.
6697
6698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6699
6700         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6701         8-byte data alignment with LP_SIZE alignment.
6702
6703 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6704
6705         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6706         into R10_LP.
6707
6708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6709
6710         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6711
6712 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6713
6714         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6715         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6716         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6717         Likewise.
6718         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6719
6720 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6721
6722         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6723         (stackinfo_sub_sp): Likewise.
6724
6725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6726
6727         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6728         RAX_LP.
6729
6730 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6731
6732         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6733         into R*_LP.
6734
6735 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6736
6737         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6738         sizes into R*_LP.
6739
6740 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6741
6742         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6743
6744 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6745
6746         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6747         into R11_LP and load __x86_64_shared_cache_size_half into
6748         R8_LP.
6749
6750 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6751
6752         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6753         R8_LP.
6754
6755 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6756
6757         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6758         logb for POWER7.
6759         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6760         logbf for POWER7.
6761         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6762         logbl for POWER7.
6763         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6764         powerpc32/power7/fpu/s_logb.c via #include.
6765         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6766         powerpc32/power7/fpu/s_logbf.c via #include.
6767         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6768         powerpc32/power7/fpu/s_logbl.c via #include.
6769
6770 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6771
6772         * README.libm: Remove file.
6773
6774 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6775
6776         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6777         count for x32.  Use R*_LP and omit operand-size suffix.
6778
6779 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6782         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6783         * sysdeps/x86_64/x32/shlib-versions: New file.
6784
6785 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6786
6787         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6788         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6789         Use _dl_fatal_printf instead.
6790
6791 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6792
6793         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6794         set if not set by the user.  Do not allow for being unset.
6795         * sysdeps/unix/sysv/linux/configure: Regenerated.
6796
6797 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6798
6799         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6800         the `q' suffix from lea and replace .quad with ASM_ADDR.
6801
6802 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6803
6804         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6805         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6806         instead of $17.
6807         (PTR_DEMANGLE): Likewise.
6808
6809 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6810
6811         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6812         (LP_OP): Likewise.
6813         (ASM_ADDR): Likewise.
6814         (RAX_LP): Likewise.
6815         (RBP_LP): Likewise.
6816         (RBX_LP): Likewise.
6817         (RCX_LP): Likewise.
6818         (RDI_LP): Likewise.
6819         (RSI_LP): Likewise.
6820         (RSP_LP): Likewise.
6821         (R8_LP): Likewise.
6822         (R9_LP): Likewise.
6823         (R10_LP): Likewise.
6824         (R10_LP): Likewise.
6825         (R11_LP): Likewise.
6826         (R12_LP): Likewise.
6827         (R13_LP): Likewise.
6828         (R14_LP): Likewise.
6829         (R15_LP): Likewise.
6830
6831 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6832
6833         * sysdeps/x86_64/x32/dl-machine.h: New file.
6834
6835 2012-05-14  Andreas Jaeger  <aj@suse.de>
6836
6837         * manual/Makefile (subdir): Remove export of subdir.
6838         (all): Remove target.
6839         (.PHONY): Remove all from list.
6840         (mkinstalldirs): Remove.
6841         (.PHONY): Remove installdirs from list.
6842         ($(inst_infodir)/libc.info): Use make-target-directory.
6843         (installdirs): Remove.
6844         (subdir_%): Remove.
6845         (glibc-targets): Remove.
6846         (lib): Remove.
6847         (stubs): Remove.
6848         ($(objpfx)stubs ../po/manual.pot): Remove.
6849         ($(objpfx)stamp%): Remove.
6850         (make-target-directory): Remove.
6851         (subdir_install): Remove.
6852         (routines): Remove.
6853         (aux): Remove.
6854         (sources): Remove.
6855         (objects): Remove.
6856         (headers): Remove.
6857
6858         [BZ #13750]
6859         * manual/.gitignore: Remove, it's not needed anymore.
6860         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6861         all files in it.
6862         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6863         directory.
6864         (texis): Renamed to $(objpfx)texis.
6865         (texis-path): New, contains path to generated files.
6866         (chapters.%): Use texis-path for complete path, add extra argument
6867         libc-texinfo.sh.
6868         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6869         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6870         (summary,texi, stamp-summary): Use complete path of
6871         files. Generate files in build dir.
6872         (dir-add.texi): Build in build dir.
6873         (libm-err.texi,stamp-libm-err): Likewise.
6874         (version.texi, stamp-version): Likewise.
6875         (.%c.texi): Likewise.
6876         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6877         (mostlyclean): Remove target.
6878         (realclean): Remove target.
6879         (generated): Add new variable with contents from mostlyclean and
6880         realclean, remove entries duplicated in common-mostlyclean, add
6881         stamp-libm-err and stamp-version.
6882         (generated-dirs): Add libc directory.
6883         ($(inst_infodir)/libc.info): Install files from build dir.
6884
6885         * manual/install.texi (Configuring and compiling): Adjust since
6886         the info files are not part of the tar ball anymore.
6887
6888 2012-05-14  Andreas Jaeger  <aj@suse.de>
6889
6890         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6891         variable.
6892
6893 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6894
6895         [BZ #13717]
6896         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6897         to 2.2.0 where earlier.
6898         * sysdeps/unix/sysv/linux/configure: Regenerated.
6899         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6900         Remove conditional code.
6901         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6902         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6903         Remove conditional code.
6904         [!__NR_lchown]: Likewise.
6905         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6906         [__NR_lchown]: Likewise.
6907         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6908         comment referencing __ASSUME_LCHOWN_SYSCALL.
6909         * sysdeps/unix/sysv/linux/i386/sigaction.c
6910         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6911         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6912         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6913         Remove conditional code.
6914         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6915         (__protocol_available): Remove #if 0 code.
6916         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6917         conditional code.
6918         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6919         * sysdeps/unix/sysv/linux/kernel-features.h
6920         (__ASSUME_GETCWD_SYSCALL): Don't define.
6921         (__ASSUME_REALTIME_SIGNALS): Likewise.
6922         (__ASSUME_PREAD_SYSCALL): Likewise.
6923         (__ASSUME_PWRITE_SYSCALL): Likewise.
6924         (__ASSUME_POLL_SYSCALL): Likewise.
6925         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6926         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6927         non-SPARC.
6928         (__ASSUME_SIOCGIFNAME): Don't define.
6929         (__ASSUME_MSG_NOSIGNAL): Likewise.
6930         (__ASSUME_SENDFILE): Define unconditionally.
6931         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6932         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6933         conditional code.
6934         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6935         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6936         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6937         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6938         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6939         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6940         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6941         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6942         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6943         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6945         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6946         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6948         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6949         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6951         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6952         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6954         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6955         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6957         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6958         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6960         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6961         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6963         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6964         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6965         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6966         Remove conditional code.
6967         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6968         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6969         Remove conditional code.
6970         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6971         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6972         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6973         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6974         Remove conditional code.
6975         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6976         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6977         Remove conditional code.
6978         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6979         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6980         Remove conditional code.
6981         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6982         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6983         Remove conditional code.
6984         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6985         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6986         Remove conditional code.
6987         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6988         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6989         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6990         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6991         * sysdeps/unix/sysv/linux/sigaction.c
6992         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6993         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6994         * sysdeps/unix/sysv/linux/sigpending.c
6995         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6996         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6997         * sysdeps/unix/sysv/linux/sigprocmask.c
6998         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6999         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7000         * sysdeps/unix/sysv/linux/sigsuspend.c
7001         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7002         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7003         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7004         (__libc_missing_rt_sigs): Remove.
7005         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7006         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7007         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7008         Remove conditional code.
7009         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7010         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7011         return 1.
7012         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7013         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7014         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7015         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7016
7017 2012-05-14  Andreas Jaeger  <aj@suse.de>
7018
7019         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7020         it's not used in glibc.
7021         (__coshm1): Likewise.
7022         (__acosh1p): Likewise.
7023         (__sgn): Likewise.
7024
7025         * manual/string.texi (Copying and Concatenation): Add missing
7026         variable in concat example.
7027         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7028
7029 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7030
7031         [BZ #14103]
7032         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7033         __builtin_clzl with __builtin_clzll.
7034
7035 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7036
7037         [BZ #14104]
7038         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7039         libc_freeres_ptr.
7040
7041 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7042
7043         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7044         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7045         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7046         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7047
7048 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7049
7050         * NEWS: Update ia64 info.
7051
7052 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7053
7054         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7055         used as bcopy.
7056
7057 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7058
7059         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7060         * sysdeps/unix/syscalls.list (dup3): Likewise.
7061         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7062         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7063
7064 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7065
7066         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7067         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7068
7069 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7070
7071         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7072         thread pointer.
7073         (TLS_IE): Use mov/add instead of movq/addq to load thread
7074         pointer.
7075         (TLS_GD_PREFIX): New.
7076         (TLS_GD): Use it.
7077
7078 2012-05-11  David S. Miller  <davem@davemloft.net>
7079
7080         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7081         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7082         (_FPU_SETCW): Likewise.
7083
7084 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7085
7086         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7087         is 32-byte aligned.
7088
7089 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7090
7091         [BZ #11837]
7092         * iconvdata/gb18030.c: Update tables.
7093         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7094         characters specially.
7095         (BODY for TO_LOOP): Add encoding of missing ranges.
7096
7097 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7098
7099         [BZ #13673]
7100         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7101         * sysdeps/mach/hurd/dup3.c: Likewise.
7102         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7103         * sysdeps/powerpc/memmove.c:: Likewise.
7104
7105 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7106
7107         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7108         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7109
7110 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7111
7112         * elf/elf.h (R_X86_64_RELATIVE64): New.
7113         (R_X86_64_NUM): Updated.
7114         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7115         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7116         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7117         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7118         tst-quad1pie tst-quad2pie
7119         (modules-names): Add tst-quadmod1 tst-quadmod2.
7120         ($(objpfx)tst-quad1): New dependency.
7121         ($(objpfx)tst-quad2): Likewise.
7122         ($(objpfx)tst-quad1pie): Likewise.
7123         ($(objpfx)tst-quad2pie): Likewise.
7124         * sysdeps/x86_64/tst-quad1.c: New file.
7125         * sysdeps/x86_64/tst-quad1pie.c: New file.
7126         * sysdeps/x86_64/tst-quad2.c: Likewise.
7127         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7128         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7129         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7130         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7131         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7132
7133 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7134
7135         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7136         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7137         * streams/stropts.h (t_scalar_t): Define type.
7138
7139         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7140         (_PATH_PRESERVE): Set to "/var/lib".
7141         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7142
7143         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7144         instead of int.
7145
7146         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7147         if __dir_mkfile succeeded.
7148
7149         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7150         checking for _hurd_dtablesize.  Unlock it right after having
7151         finished _hurd_dtable allocation.
7152
7153 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7154
7155         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7156         * sysdeps/mach/hurd/configure: Regenerated.
7157         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7158         special-casing to...
7159         * sysdeps/gnu/configure.in: ... this new file.
7160         * sysdeps/unix/sysv/linux/configure: Regenerated.
7161         * sysdeps/gnu/configure: New generated file.
7162
7163         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7164         for Linux: use nsec instead of usec, as well as:
7165         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7166         members of type struct timespec.
7167         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7168         New macros.
7169         (struct stat64): Likewise.
7170         (_STATBUF_ST_NSEC): New macro.
7171         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7172
7173         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7174         __strtoul_internal rather than strtoul.
7175
7176 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7177
7178         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7179         and reject them.
7180
7181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7182
7183         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7184         which preserves existing values.
7185         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7186
7187 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7188
7189         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7190         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7191         greater than FD_SETSIZE.
7192
7193 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7194
7195         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7196         allocated, call __vm_protect to finish enabling the existing space, and
7197         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7198         allocate the remainder.
7199
7200 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7201
7202         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7203         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7204
7205 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7206
7207         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7208         sysdeps/mach/hurd/readlink.c.
7209
7210         * posix/tst-sysconf.c (posix_options): Only use
7211         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7212         _POSIX_SYNCHRONIZED_IO when they are defined
7213         * sysdeps/mach/hurd/bits/posix_opt.h:
7214         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7215         (_XOPEN_REALTIME): Undefine macro.
7216         (_XOPEN_REALTIME_THREADS): Undefine macro.
7217         (_XOPEN_SHM): Undefine macro.
7218         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7219         macro to -1.
7220         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7221         macro to -1.
7222         (_POSIX_ASYNC_IO): Undefine macro.
7223         (_POSIX_PRIORITIZED_IO): Undefine macro.
7224         (_POSIX_SPIN_LOCKS): Define macro to -1.
7225
7226         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7227         SA_NODEFER, SA_RESETHAND.
7228         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7229         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7230         F_DUPFD_CLOEXEC.
7231
7232 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7233
7234         * elf/Makefile (pldd-modules): Define unconditionally.
7235
7236 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7237
7238         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7239
7240 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7241
7242         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7243         Return ENOENT when name is empty.
7244         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7245
7246 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7247
7248         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7249
7250         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7251
7252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7253
7254         Fix mlock in all cases except non-readable pages.
7255         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7256         instead of VM_PROT_ALL as parameter to __vm_wire function.
7257
7258         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7259         (__mkdir): When path is `/', just fail with EEXIST.
7260         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7261
7262 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7263
7264         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7265         <sys/uio.h> (for writev).
7266         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7267         and <sys/param.h> (for MIN).
7268
7269 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7270
7271         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7272         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7273         if interrupted.
7274
7275 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7276
7277         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7278         Depend on against $(link-rpcuserlibs).
7279
7280 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7281
7282         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7283         (__libc_stack_end): Do not use attribute_relro.
7284         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7285         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7286         to libthread-provided value.
7287         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7288         attribute_relro.
7289
7290 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7291
7292         [BZ #3748]
7293         * bits/libc-lock.h (__libc_once_get): New macro.
7294         * sysdeps/mach/bits/libc-lock.h: Likewise.
7295         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7296         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7297         instead of using implementation details.
7298
7299         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7300         * libio/freopen.c: Likewise.
7301         * libio/freopen64.c: Likewise.
7302         * misc/syslog.c: Likewise.
7303         * nscd/connections.c: Likewise.
7304         * nscd/netgroupcache.c: Likewise.
7305         * sysdeps/posix/getcwd.c: Likewise.
7306
7307 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7308
7309         * math/w_ilogbf.c: Add #include <limits.h>.
7310
7311 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7312
7313         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7314         path instead of returning without unlocking.
7315
7316         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7317         immediate-write ioctls.
7318         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7319
7320 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7321
7322         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7323         __builtin_frame_address instead of making assumptions about the
7324         location of the return address relative to DATA.  Force early load of
7325         the return address.
7326         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7327         __builtin_frame_address.
7328
7329         dup3 for GNU Hurd.
7330         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7331         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7332         implement dup3 and do some further code clean-ups.
7333         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7334         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7335
7336 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7337
7338         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7339
7340         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7341         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7342         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7343         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7344         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7345         d->port.lock.
7346
7347         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7348         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7349         when handler == SIG_ERR, not when handler != SIG_ERR.
7350
7351 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7352
7353         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7354         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7355         definitions.
7356
7357         accept4 for GNU Hurd.
7358         * include/sys/socket.h (__libc_accept4): New prototype.
7359         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7360         to implement __libc_accept4.
7361         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7362         __libc_accept4.
7363         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7364
7365         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7366         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7367         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7368         signal-defines.sym.
7369
7370 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7371
7372         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7373
7374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7375
7376         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7377         assertion on O_CLOEXEC flag.
7378         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7379         * hurd/intern-fd.c: Likewise.
7380         * hurd/port2fd.c: Likewise.
7381
7382 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7383
7384         [BZ #3906]
7385         * bits/in.h (IPV6_PKTINFO): Define new macro.
7386         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7387
7388 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7389
7390         [BZ #13954]
7391         [BZ #13955]
7392         [BZ #13956]
7393         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7394         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7395         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7396         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7397         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7398         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7399         * math/libm-test.inc (logb_test) : Additional logb tests.
7400
7401 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7402             Andreas Jaeger  <aj@suse.de>
7403
7404         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7405         * configure: Regenerated.
7406         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7407         * config.make.in (link-obsolete-rpc): New substituted variable.
7408         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7409         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7410         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7411         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7412         so that libc.a contains the symbols.
7413         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7414         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7415         * sunrpc/auth_none.c: Likewise.
7416         * sunrpc/auth_unix.c: Likewise.
7417         * sunrpc/authdes_prot.c: Likewise.
7418         * sunrpc/authuxprot.c: Likewise.
7419         * sunrpc/clnt_gen.c: Likewise.
7420         * sunrpc/clnt_perr.c: Likewise.
7421         * sunrpc/clnt_raw.c: Likewise.
7422         * sunrpc/clnt_simp.c: Likewise.
7423         * sunrpc/clnt_tcp.c: Likewise.
7424         * sunrpc/clnt_udp.c: Likewise.
7425         * sunrpc/clnt_unix.c: Likewise.
7426         * sunrpc/des_crypt.c: Likewise.
7427         * sunrpc/des_soft.c: Likewise.
7428         * sunrpc/get_myaddr.c: Likewise.
7429         * sunrpc/key_call.c: Likewise.
7430         * sunrpc/key_prot.c: Likewise.
7431         * sunrpc/netname.c: Likewise.
7432         * sunrpc/pm_getmaps.c: Likewise.
7433         * sunrpc/pm_getport.c: Likewise.
7434         * sunrpc/pmap_clnt.c: Likewise.
7435         * sunrpc/pmap_prot.c: Likewise.
7436         * sunrpc/pmap_prot2.c: Likewise.
7437         * sunrpc/pmap_rmt.c: Likewise.
7438         * sunrpc/publickey.c: Likewise.
7439         * sunrpc/rpc_cmsg.c: Likewise.
7440         * sunrpc/rpc_common.c: Likewise.
7441         * sunrpc/rpc_dtable.c: Likewise.
7442         * sunrpc/rpc_prot.c: Likewise.
7443         * sunrpc/rpc_thread.c: Likewise.
7444         * sunrpc/rtime.c: Likewise.
7445         * sunrpc/svc.c: Likewise.
7446         * sunrpc/svc_auth.c: Likewise.
7447         * sunrpc/svc_raw.c: Likewise.
7448         * sunrpc/svc_run.c: Likewise.
7449         * sunrpc/svc_tcp.c: Likewise.
7450         * sunrpc/svc_udp.c: Likewise.
7451         * sunrpc/svc_unix.c: Likewise.
7452         * sunrpc/svcauth_des.c: Likewise.
7453         * sunrpc/xcrypt.c: Likewise.
7454         * sunrpc/xdr.c: Likewise.
7455         * sunrpc/xdr_array.c: Likewise.
7456         * sunrpc/xdr_float.c: Likewise.
7457         * sunrpc/xdr_intXX_t.c: Likewise.
7458         * sunrpc/xdr_mem.c: Likewise.
7459         * sunrpc/xdr_rec.c: Likewise.
7460         * sunrpc/xdr_ref.c: Likewise.
7461         * sunrpc/xdr_sizeof.c: Likewise.
7462         * sunrpc/xdr_stdio.c: Likewise.
7463
7464 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7465
7466         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7467         change.  Update copyright years.
7468
7469 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7470
7471         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7472
7473 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7474             Joseph Myers  <joseph@codesourcery.com>
7475             Paul Pluzhnikov  <ppluzhnikov@google.com>
7476
7477         [BZ #14012]
7478         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7479         requiring rpcgen.
7480         [cross-compiling] (extra-libs): Likewise.
7481         [cross-compiling] (extra-libs-others): Likewise.
7482         [cross-compiling] (librpcsvc-routines): Likewise.
7483         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7484         [cross-compiling] (omit-deps): Likewise.
7485         (sunrpc-CPPFLAGS): New variable.
7486         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7487         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7488         (cross-rpcgen-objs): New variable.
7489         (extra-objs): Append $(cross-rpcgen-objs).
7490         ($(cross-rpcgen-objs)): New rule.
7491         ($(objpfx)cross-rpcgen): Likewise.
7492         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7493         comment.
7494         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7495         ($(objpfx)x%.stmp): Likewise.
7496         * sunrpc/proto.h [IS_IN_build] (_): Define.
7497         [IS_IN_build] (_libc_intl_domainname): Likewise.
7498
7499 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7500
7501         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7502         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7503         and R_X86_64_TPOFF64.
7504
7505 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7506
7507         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7508         sysdeps/unix/sysv/syscalls.list.
7509         (stime): Likewise.
7510         (utime): Likewise.
7511         * sysdeps/unix/sysv/syscalls.list: Remove file.
7512
7513 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7514
7515         [BZ #3440]
7516         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7517         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7518         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7519         (__LC_IDENTIFICATION): Make these macros useful in #if
7520         expressions, as required by C99.
7521
7522 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7523
7524         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7525         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7526         after this.
7527
7528 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7529
7530         * stdlib/longlong.h: Updated from GCC.
7531
7532 2012-05-09  Andreas Jaeger  <aj@suse.de>
7533
7534         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7535         default is first entry.
7536         (run_mode): Set type.
7537         (main): Remove informal message about syslog.
7538         (options): Fix typo.
7539
7540         [BZ #14053]
7541         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7542         to asm.
7543         (lrint): Likewise.
7544         (llrintf): Likewise.
7545         (llrint): Likewise.
7546         (rint): Likewise.
7547         (rintf): Likewise.
7548         (nearbyint): Likewise.
7549         (nearbyintf): Likewise.
7550
7551 2012-05-09  Andreas Jaeger  <aj@suse.de>
7552             Pedro Alves  <palves@redhat.com>
7553
7554         * nscd/nscd.c (run_mode): Use enum.
7555         (main): Cleanup coding style issue.
7556
7557 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7558             Andreas Jaeger  <aj@suse.de>
7559
7560         * nscd/nscd.c (go_background): Replaced with...
7561         (run_mode): ... this.
7562         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7563         (options): Add -F --foreground.
7564         (main): Implement it.
7565         (parse_opt): Parse it.
7566
7567 2012-05-09  Andreas Jaeger  <aj@suse.de>
7568
7569         [BZ #14083]
7570         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7571         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7572         -Wconversion warning.
7573         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7574         Likewise.
7575
7576 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7577
7578         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7579         == 0.
7580         (LC_ALL): Use macro-int-constant.
7581         (LC_COLLATE): Likewise.
7582         (LC_CTYPE): Likewise.
7583         (LC_MESSAGES): Likewise.
7584         (LC_MONETARY): Likewise.
7585         (LC_NUMERIC): Likewise.
7586         (LC_TIME): Likewise.
7587         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7588         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7589         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7590         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7591         Specify type.
7592         [C99-based standards] (float_t): Expect type.
7593         [C99-based standards] (double_t): Expect type.
7594         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7595         type.
7596         [C99-based standards] (HUGE_VALL): Likewise.
7597         [C99-based standards] (INFINITY): Likewise.
7598         [C99-based standards] (NAN): Likewise.
7599         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7600         [C99-based standards] (FP_NAN): Likewise.
7601         [C99-based standards] (FP_NORMAL): Likewise.
7602         [C99-based standards] (FP_SUBNORMAL): Likewise.
7603         [C99-based standards] (FP_ZERO): Likewise.
7604         [C99-based standards] (FP_FAST_FMA): Use
7605         optional-macro-int-constant.  Specify type.  Require == 1.
7606         [C99-based standards] (FP_FAST_FMAF): Likewise.
7607         [C99-based standards] (FP_FAST_FMAL): Likewise.
7608         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7609         [C99-based standards] (FP_ILOGBNAN): Likewise.
7610         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7611         Specify type.
7612         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7613         [C99-based standards] (math_errhandling): Specify type.
7614         [ISO99 || ISO11] (signgam): Do not allow.
7615         [non-C99-based standards] (copysignf): Do not allow.
7616         [non-C99-based standards] (exp2f): Likewise.
7617         [non-C99-based standards] (log2f): Likewise.
7618         [non-C99-based standards] (modff): Allow.
7619         [non-C99-based standards] (erff): Do not allow.
7620         [non-C99-based standards] (erfcf): Likewise.
7621         [non-C99-based standards] (gammaf): Likewise.
7622         [non-C99-based standards] (hypotf): Likewise.
7623         [non-C99-based standards] (j0f): Likewise.
7624         [non-C99-based standards] (j1f): Likewise.
7625         [non-C99-based standards] (jnf): Likewise.
7626         [non-C99-based standards] (lgammaf): Likewise.
7627         [non-C99-based standards] (tgammaf): Likewise.
7628         [non-C99-based standards] (y0f): Likewise.
7629         [non-C99-based standards] (y1f): Likewise.
7630         [non-C99-based standards] (ynf): Likewise.
7631         [non-C99-based standards] (isnanf): Likewise.
7632         [non-C99-based standards] (acoshf): Likewise.
7633         [non-C99-based standards] (asinhf): Likewise.
7634         [non-C99-based standards] (atanhf): Likewise.
7635         [non-C99-based standards] (cbrtf): Likewise.
7636         [non-C99-based standards] (expm1f): Likewise.
7637         [non-C99-based standards] (ilogbf): Likewise.
7638         [non-C99-based standards] (log1pf): Likewise.
7639         [non-C99-based standards] (logbf): Likewise.
7640         [non-C99-based standards] (nextafterf): Likewise.
7641         [non-C99-based standards] (remainderf): Likewise.
7642         [non-C99-based standards] (rintf): Likewise.
7643         [non-C99-based standards] (scalbf): Likewise.
7644         [non-C99-based standards] (copysignl): Likewise.
7645         [non-C99-based standards] (exp2l): Likewise.
7646         [non-C99-based standards] (log2l): Likewise.
7647         [non-C99-based standards] (modfl): Allow.
7648         [non-C99-based standards] (erfl): Do not allow.
7649         [non-C99-based standards] (erfcl): Likewise.
7650         [non-C99-based standards] (gammal): Likewise.
7651         [non-C99-based standards] (hypotl): Likewise.
7652         [non-C99-based standards] (j0l): Likewise.
7653         [non-C99-based standards] (j1l): Likewise.
7654         [non-C99-based standards] (jnl): Likewise.
7655         [non-C99-based standards] (lgammal): Likewise.
7656         [non-C99-based standards] (tgammal): Likewise.
7657         [non-C99-based standards] (y0l): Likewise.
7658         [non-C99-based standards] (y1l): Likewise.
7659         [non-C99-based standards] (ynl): Likewise.
7660         [non-C99-based standards] (isnanl): Likewise.
7661         [non-C99-based standards] (acoshl): Likewise.
7662         [non-C99-based standards] (asinhl): Likewise.
7663         [non-C99-based standards] (atanhl): Likewise.
7664         [non-C99-based standards] (cbrtl): Likewise.
7665         [non-C99-based standards] (expm1l): Likewise.
7666         [non-C99-based standards] (ilogbl): Likewise.
7667         [non-C99-based standards] (log1pl): Likewise.
7668         [non-C99-based standards] (logbl): Likewise.
7669         [non-C99-based standards] (nextafterl): Likewise.
7670         [non-C99-based standards] (remainderl): Likewise.
7671         [non-C99-based standards] (rintl): Likewise.
7672         [non-C99-based standards] (scalbl): Likewise.
7673         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7674         [non-C99-based standards] (FP_*): Do not allow.
7675         [C99-based standards] (FP_*): Change to
7676         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7677         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7678         allow.
7679         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7680         (SIG_ERR): Likewise.
7681         [X/Open-based standards] (SIG_HOLD): Likewise.
7682         (SIG_IGN): Likewise.
7683         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7684         positive value.
7685         (SIGFPE): Likewise.
7686         (SIGILL): Likewise.
7687         (SIGINT): Likewise.
7688         (SIGSEGV): Likewise.
7689         (SIGTER): Likewise.
7690         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7691         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7692         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7693         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7694         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7695         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7696         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7697         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7698         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7699         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7700         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7701         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7702         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7703         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7704         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7705         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7706         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7707         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7708         [X/Open-based standards] (SIGTRAP): Likewise.
7709         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7710         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7711         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7712         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7713         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7714         allow.
7715
7716 2012-05-08  Ian Wienand  <ianw@vmware.com>
7717
7718         [BZ #14080]
7719         * time/tzset.c (__tzset_parse_tz): Update default rules for
7720         daylight time changes in the Energy Policy Act of 2005.
7721
7722 2012-05-09  Andreas Jaeger  <aj@suse.de>
7723
7724         [BZ #13983]
7725         * elf/ldconfig.c (parse_conf): Change string to make clear that
7726         ldconfig only issued a warning if ld.so.conf does not exist.
7727
7728 2012-05-08  David S. Miller  <davem@davemloft.net>
7729
7730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7731         movxtod instead of popping the value on the stack.
7732
7733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7734
7735 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7736
7737         * config.h.in: Add HAVE_ARM_PCS_VFP.
7738
7739 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7740
7741         [BZ #13979]
7742         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7743         checking but the checks are disabled for any reason.
7744
7745 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7746
7747         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7748         and ELF64_R_TYPE with ELFW(R_TYPE).
7749
7750 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7751
7752         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7753         (ulimit): Likewise.
7754
7755         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7756         (settimeofday): Likewise.
7757
7758 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7759
7760         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7761         a struct th_u2 inside the union, and move tu_block/tu_code into
7762         a new th_u3 union of tu_block/tu_code inside of that.  Move
7763         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7764         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7765         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7766         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7767         (th_stuff): Change to th_u1.tu_stuff.
7768         (th_data): Define.
7769         (th_msg): Change to th_u1.th_u2.tu_data.
7770
7771 2012-05-07  David S. Miller  <davem@davemloft.net>
7772
7773         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7774
7775         [BZ #14074]
7776         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7777         (SETUP_PIC_REG): Use it.
7778         (SETUP_PIC_REG_LEAF): Use it.
7779
7780 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7781
7782         [BZ #13885]
7783         [BZ #13923]
7784         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7785         USE_AS_EXPM1L.
7786         (EXPL_FINITE): Likewise.
7787         (FLDLOG): Likewise.
7788         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7789         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7790         e_expl.S.
7791         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7792         USE_AS_EXPM1L.
7793         (EXPL_FINITE): Likewise.
7794         (FLDLOG): Likewise.
7795         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7796         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7797         e_expl.S.
7798         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7799         test of -max_value argument for long double.
7800         * sysdeps/i386/fpu/libm-test-ulps: Update.
7801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7802
7803 2012-05-06  David S. Miller  <davem@davemloft.net>
7804
7805         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7806         quad soft-float symbols whose references which are compiler
7807         generated.
7808         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7809
7810 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7811
7812         [BZ #13884]
7813         [BZ #13914]
7814         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7815         USE_AS_EXP10L.
7816         (EXPL_FINITE): Likewise.
7817         (FLDLOG): Likewise.
7818         (c0): Likewise.
7819         (c1): Likewise.
7820         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7821         Adjust comments for base varying.
7822         (__expl_finite): Change alias to EXPL_FINITE.
7823         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7824         e_expl.S.
7825         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7826         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7827         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7828         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7829         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7830         USE_AS_EXP10L.
7831         (EXPL_FINITE): Likewise.
7832         (FLDLOG): Likewise.
7833         (c0): Likewise.
7834         (c1): Likewise.
7835         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7836         Adjust comments for base varying.
7837         (__expl_finite): Change alias to EXPL_FINITE.
7838         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7839         tests for bugs.
7840         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7841
7842         [BZ #14064]
7843         * math/libm-test.inc (check_float_internal): Correct ulp
7844         calculation for subnormal expected results.
7845
7846 2012-05-06  Andreas Jaeger  <aj@suse.de>
7847
7848         * Makeconfig (+math-flags): New, set to -frounding-math.
7849         (+cflags): Add +math-flags so that all of glibc gets compiled with
7850         it.
7851
7852         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7853
7854 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7855
7856         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7857         Disable one test.
7858
7859         [BZ #13787]
7860         [BZ #13922]
7861         [BZ #14036]
7862         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7863         (__ieee754_expl): Allow for and saturate large arguments.
7864         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7865         (u_threshold): Likewise.
7866         (__exp): Call __ieee754_exp before checking for overflow and
7867         underflow.
7868         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7869         (u_threshold): Likewise.
7870         (__expf): Call __ieee754_expf before checking for overflow and
7871         underflow.
7872         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7873         (u_threshold): Likewise.
7874         (__expl): Call __ieee754_expl before checking for overflow and
7875         underflow.
7876         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7877         (__ieee754_expl): Allow for and saturate large arguments.
7878         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7879         missing overflow exception on overflow.
7880         (expm1_test): Do not allow missing overflow exception on overflow.
7881
7882         * sysdeps/i386/fpu/e_expl.c: Move to ...
7883         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7884         rather than using inline asm.
7885         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7886         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7887         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7888
7889         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7890         (nice): Likewise.
7891         (poll): Likewise.
7892         (signal): Likewise.
7893         (time): Likewise.
7894         (times): Likewise.
7895
7896 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7899         sysdeps/unix/common/syscalls.list.
7900         (fchmod): Likewise.
7901         (fchown): Likewise.
7902         (ftruncate): Likewise.
7903         (getrusage): Likewise.
7904         (gettimeofday): Likewise.
7905         (setpgid): Likewise.
7906         (setregid): Likewise.
7907         (setreuid): Likewise.
7908         (sigaction): Likewise.
7909         (truncate): Likewise.
7910         (vhangup): Likewise.
7911         * sysdeps/unix/common/syscalls.list: Remove file.
7912         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7913         * sysdeps/unix/sysv/linux/Implies: Likewise.
7914
7915 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7916
7917         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7918         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7919         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7920         Moved to ...
7921         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7922         Here.
7923         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7924         to ...
7925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7926         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7927         to ...
7928         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7929         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7930         to ...
7931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7932         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7933         to ...
7934         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7935         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7936         to ...
7937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7938         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7939         to ...
7940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7941         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7942         to ...
7943         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7944         Here.
7945         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7946         to ...
7947         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7948         Here.
7949         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7950         to ...
7951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7952         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7953         Moved to ...
7954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7955         Here.
7956         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7957         to ...
7958         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7959
7960 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7961
7962         * sysdeps/unix/common/bits/dirent.h: Remove file.
7963         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7964
7965         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7966         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7967         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7968         * sysdeps/unix/bsd/isatty.c: Likewise.
7969         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7970         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7971         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7972
7973 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7974
7975         [BZ #13563]
7976         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7977         long double comparison inaccuracies.
7978         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7979         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7980
7981 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7982
7983         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7984         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7985
7986 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7987
7988         [BZ #14049]
7989         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7990         nonzero digits before rounding a hex value.
7991         * stdlib/tst-strtod.c (tests): Add another test.
7992
7993 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7994
7995         * sysdeps/s390/fpu/libm-test-ulps: Update.
7996
7997 2012-05-03  Andreas Jaeger  <aj@suse.de>
7998
7999         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8000         does not get optimized out.
8001         (malloc_opt_barrier): New.
8002
8003 2012-05-03  Andreas Jaeger  <aj@suse.de>
8004             Roland McGrath  <roland@hack.frob.com>
8005
8006         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8007         intermediate file deletion.
8008         (generated): Add .symlist files.
8009
8010 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8011
8012         [BZ #13775]
8013         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8014         Redirect under this condition.
8015         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8016         [__USE_GNU] (__dprintf_chk): Not under this condition.
8017         [__USE_GNU] (__vdprintf_chk): Likewise.
8018         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8019         under this condition.
8020         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8021         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8022         [__USE_XOPEN2K8] (vdprintf): Likewise.
8023         [__USE_GNU] (__dprintf_chk): Not under this condition.
8024         [__USE_GNU] (__vdprintf_chk): Likewise.
8025         [__USE_GNU] (dprintf): Likewise.
8026         [__USE_GNU] (vdprintf): Likewise.
8027
8028 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8029
8030         * elf/Makefile (common-generated): Set this instead of generated for
8031         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8032         $(all-built-dso)-derived lists.
8033
8034 2012-05-03  Andreas Jaeger  <aj@suse.de>
8035
8036         * sysdeps/i386/fpu/libm-test-ulps: Update.
8037
8038         * FAQ: Removed.
8039         * FAQ.in: Likewise.
8040         * scripts/gen-FAQ.pl: Likewise.
8041         * manual/install.texi (Installation): Point to online location of
8042         FAQ.
8043         * Makefile (files-for-dist): Remove FAQ.
8044         (FAQ): Remove.
8045
8046 2012-05-02  Allan McRae  <allan@archlinux.org>
8047
8048         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8049         (LDFLAGS-reldepmod5.so): Likewise.
8050         (LDFLAGS-reldep6mod1.so): Likewise.
8051         (LDFLAGS-reldep6mod4.so): Likewise.
8052         (LDFLAGS-reldep8mod3.so): Likewise.
8053         (LDFLAGS-unload4mod1.so): Likewise.
8054         (LDFLAGS-unload4mod2.so): Likewise.
8055         (LDFLAGS-tst-initorder): Likewise.
8056         (LDFLAGS-tst-initordera2.so): Likewise.
8057         (LDFLAGS-tst-initordera3.so): Likewise.
8058         (LDFLAGS-tst-initordera4.so): Likewise.
8059         (LDFLAGS-tst-initorderb2.so): Likewise.
8060         (LDFLAGS-noload): Likewise.
8061         (LDFLAGS-next): Likewise.
8062         (LDFLAGS-order2mod1.so): Likewise.
8063         (LDFLAGS-order2mod2.so): Likewise.
8064         (LDFLAGS-tst-initorder2): Likewise.
8065         (LDFLAGS-tst-initorder2a.so): Likewise.
8066         (LDFLAGS-tst-initorder2b.so): Likewise.
8067         (LDFLAGS-tst-initorder2c.so): Likewise.
8068         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8069
8070 2012-05-02  David S. Miller  <davem@davemloft.net>
8071
8072         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8073
8074 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8075
8076         [BZ #14055]
8077         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8078
8079 2012-05-02  Andreas Jaeger  <aj@suse.de>
8080
8081         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8082         since we manipulate rounding mode.
8083         (CPPFLAGS-test-idouble.c): Likewise.
8084         (CPPFLAGS-test-ifloat.c): Likewise.
8085         (CFLAGS-test-ldouble.c): Likewise.
8086         (CFLAGS-test-double.c): Likewise.
8087         (CFLAGS-test-float.c): Likewise.
8088         (CFLAGS-test-misc.c): Likewise.
8089         (CFLAGS-test-test-fenv.c): Likewise.
8090
8091 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8092
8093         [BZ #2550]
8094         [BZ #2570]
8095         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8096         comparisons to determine direction to adjust input.
8097
8098 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8099
8100         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8101         output to the target.
8102
8103         * scripts/localplt.awk: New file.
8104         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8105         (check-localplt-CFLAGS): Variable removed.
8106         ($(all-built-dso:=.jmprel)): New static pattern rule.
8107         (generated): Add those targets.
8108         (localplt-built-dso): New variable.
8109         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8110
8111         * elf/check-localplt.c: File removed.
8112
8113         * scripts/check-execstack.awk: New file.
8114         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8115         (check-execstack-CFLAGS): Variable removed.
8116         ($(objpfx)check-execstack.h): Target removed.
8117         ($(objpfx)execstack-default): New target.
8118         (generated): Add that instead of check-execstack.h.
8119         ($(all-built-dso:=.phdr)): New static pattern rule.
8120         (generated): Add those targets.
8121         * elf/check-execstack.c: File removed.
8122
8123         * scripts/check-textrel.awk: New file.
8124         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8125         (check-textrel-CFLAGS): Variable removed.
8126         (all-built-dso): Use := to define.o
8127         ($(all-built-dso:=.dyn)): New static pattern rule.
8128         (generated): Add those targets.
8129         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8130         * config.make.in (READELF): New substituted variable.
8131         * elf/check-textrel.c: File removed.
8132
8133 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8134
8135         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8136         allow.
8137         * conform/data/ctype.h-data [C99-based standards] (isblank):
8138         Expect function.
8139         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8140         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8141         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8142         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8143         Specify type.  Require positive value.
8144         (EILSEQ): Likewise.
8145         (ERANGE): Likewise.
8146         [ISO || POSIX] (EILSEQ): Do not expect.
8147         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8148         Specify type.  Require positive value.
8149         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8150         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8151         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8152         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8153         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8154         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8155         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8156         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8157         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8158         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8159         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8160         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8161         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8162         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8175         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8176         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8177         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8178         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8179         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8180         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8181         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8182         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8183         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8184         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8205         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8206         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8207         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8208         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8209         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8210         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8211         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8212         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8213         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8214         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8215         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8216         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8217         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8218         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8219         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8220         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8221         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8222         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8223         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8224         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8225         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8226         Require >= 2.
8227         (FLT_ROUNDS): Expect as macro, not constant.
8228         (FLT_MANT_DIG): Use macro-int-constant.
8229         (DBL_MANT_DIG): Likewise.
8230         (LDBL_MANT_DIG): Likewise.
8231         (FLT_DIG): Likewise.
8232         (DBL_DIG): Likewise.
8233         (LDBL_DIG): Likewise.
8234         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8235         (DBL_MIN_EXP): Likewise.
8236         (LDBL_MIN_EXP): Likewise.
8237         (FLT_MAX_EXP): Use macro-int-constant.
8238         (DBL_MAX_EXP): Likewise.
8239         (LDBL_MAX_EXP): Likewise.
8240         (FLT_MAX_10_EXP): Likewise.
8241         (DBL_MAX_10_EXP): Likewise.
8242         (LDBL_MAX_10_EXP): Likewise.
8243         (FLT_MAX): Use macro-constant.
8244         (DBL_MAX): Likewise.
8245         (LDBL_MAX): Likewise.
8246         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8247         (DBL_EPSILON): Likewise.
8248         (LDBL_EPSILON): Likewise.
8249         (FLT_MIN): Likewise.
8250         (DBL_MIN): Likewise.
8251         (LDBL_MIN): Likewise.
8252         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8253         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8254         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8255         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8256         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8257         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8258         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8259         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8260         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8261         [ISO11] (FLT_TRUE_MIN): Likewise.
8262         [ISO11] (LDBL_TRUE_MIN): Likewise.
8263         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8264         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8265         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8266         (SCHAR_MAX): Likewise.
8267         (UCHAR_MAX): Likewise.
8268         (CHAR_MIN): Likewise.
8269         (CHAR_MAX): Likewise.
8270         (MB_LEN_MAX): Use macro-int-constant.
8271         (SHRT_MIN): Use macro-int-constant.  Specify type.
8272         (SHRT_MAX): Likewise.
8273         (USHRT_MAX): Likewise.
8274         (INT_MAX): Likewise.
8275         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8276         bound negative.
8277         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8278         bound with "U".
8279         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8280         bound with "L".
8281         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8282         bound negative.  Suffix upper bound with "L".
8283         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8284         bound with "UL".
8285         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8286         Specify type.
8287         [C99-based standards] (LLONG_MAX): Likewise.
8288         [C99-based standards] (ULLONG_MAX): Likewise.
8289         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8290         == 0.
8291         [ISO11] (max_align_t): Require type.
8292         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8293
8294         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8295         from $CFLAGS, without defining away __attribute__ calls.
8296         (checknamespace): Use $CFLAGS_namespace.
8297
8298         * conform/conformtest.pl (@keywords): Only include C99 keywords
8299         for standards based on C99 or C11.
8300
8301         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8302         Disable tests.
8303         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8304         UNIX98]: Likewise.
8305
8306         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8307         usability of symbols in #if.
8308
8309         * conform/conformtest.pl: If macro or constant types start
8310         "promoted:", expect the symbol to be of the following type
8311         promoted by the integer promotions.
8312
8313         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8314         in one place.  Also handle "macro-constant".
8315
8316         * conform/conformtest.pl: Only accept expected macro values with
8317         "==".  Parse all "macro" lines in one place.
8318         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8319
8320         * conform/conformtest.pl: Handle braced types on "constant" lines
8321         instead of handling "typed-constant".
8322         * conform/data/signal.h-data: Use "constant" instead of
8323         "typed-constant".
8324
8325         * conform/conformtest.pl: Handle "optional-" at start of lines in
8326         one place rather than duplicating several cases.  Handle each
8327         format of "macro" line with initial "optional-".
8328
8329         * conform/conformtest.pl: Only accept expected constant or
8330         optional-constant values with "==".  Parse all "constant" lines in
8331         one place.  Parse all "optional-constant" lines in one place.
8332         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8333         * conform/data/fmtmsg.h-data: Likewise.
8334         * conform/data/netinet/in.h-data: Likewise.
8335         * conform/data/tar.h-data: Likewise.
8336         * conform/data/limits.h-data: Use "==" form on "constant" and
8337         "optional-constant" lines.
8338
8339         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8340         Use -std=c99 for XOPEN2K.
8341         (@knownproblems): Remove.
8342         (newtoken): Don't check %isknown.
8343
8344         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8345         Do not expect macro.
8346         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8348         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8349         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8350         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8351         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8352         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8353         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8354         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8355         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8356         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8357         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8358         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8359         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8360         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8361         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8362         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8363         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8364         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8365         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8366         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8367         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8368         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8369         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8370         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8371         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8372         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8373         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8374         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8375         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8376         [XPG3] (acosh): Likewise.
8377         [XPG3] (asinh): Likewise.
8378         [XPG3] (atanh): Likewise.
8379         [XPG3] (cbrt): Likewise.
8380         [XPG3] (expm1): Likewise.
8381         [XPG3] (ilogb): Likewise.
8382         [XPG3] (log1p): Likewise.
8383         [XPG3] (logb): Likewise.
8384         [XPG3] (nextafter): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8387         [XPG3] (remainder): Likewise.
8388         [XPG3] (rint): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8396         [UNIX98 || XOPEN2K] (scalb): Expect.
8397         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8398         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8534
8535         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8536         _XOPEN_SOURCE_EXTENDED for XPG4.
8537
8538         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8539
8540         * Makeconfig (localtime): Remove variable.
8541         (inst_localtime-file): Likewise.
8542
8543 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8544
8545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8546         Update.
8547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8548         Update.
8549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8550         Update.
8551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8552         Update.
8553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8554         Update.
8555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8556         Update.
8557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8558         Update.
8559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8560         Update.
8561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8562         Update.
8563
8564 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8565
8566         [BZ #2550]
8567         [BZ #2570]
8568         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8569         comparisons to determine direction to adjust input.
8570         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8571         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8572         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8573         Likewise.
8574         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8575         Likewise.
8576         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8577         Likewise.
8578         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8579         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8580         Likewise.
8581         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8582         Likewise.
8583         * math/libm-test.inc (nexttoward_test): Add more tests.
8584
8585 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8586
8587         [BZ #14040]
8588         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8589         in version GLIBC_2.1, not GLIBC_2.0.
8590         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8591         Likewise.
8592
8593 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8594
8595         [BZ #13942]
8596         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8597         (1 - x) * (1 + x).
8598         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8599         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8600         * math/libm-test.inc (acos_test): Add more tests.
8601         (asin_test): Likewise.
8602         * sysdeps/i386/fpu/libm-test-ulps: Update.
8603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8604
8605         [BZ #14034]
8606         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8607         of square root.
8608         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8609         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8610         * math/libm-test.inc (acos_test_tonearest): New function.
8611         (acos_test_towardzero): Likewise.
8612         (acos_test_downward): Likewise.
8613         (acos_test_upward): Likewise.
8614         (asin_test_tonearest): Likewise.
8615         (asin_test_towardzero): Likewise.
8616         (asin_test_downward): Likewise.
8617         (asin_test_upward): Likewise.
8618         (main): Call the new functions.
8619         * sysdeps/i386/fpu/libm-test-ulps: Update.
8620         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8621
8622         [BZ #13884]
8623         [BZ #13924]
8624         * math/e_exp10.c: Include <float.h>.
8625         (__ieee754_exp10): Handle underflow here rather than multiplying
8626         large negative argument by M_LN10.
8627         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8628         of __ieee754_expf.
8629         * math/e_exp10l.c: Include <float.h>.
8630         (__ieee754_exp10l): Handle underflow here rather than multiplying
8631         large negative argument by M_LN10l.
8632         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8633         spurious overflow exception on underflow.
8634
8635 2012-04-29  Marek Polacek  <polacek@redhat.com>
8636
8637         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8638         (__fortify_function): New macro.
8639         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8640         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8641         __extern_always_inline.
8642         * libio/bits/stdio2.h: Likewise.
8643         * libio/bits/stdio.h: Likewise.
8644         * string/string.h: Likewise.
8645         * string/bits/string3.h: Likewise.
8646         * include/stdio.h: Likewise.
8647         * stdlib/bits/stdlib.h: Likewise.
8648         * stdlib/stdlib.h: Likewise.
8649         * rt/bits/mqueue2.h: Likewise.
8650         * rt/mqueue.h: Likewise.
8651         * posix/bits/unistd.h: Likewise.
8652         * posix/unistd.h: Likewise.
8653         * io/bits/poll2.h: Likewise.
8654         * io/bits/fcntl2.h: Likewise.
8655         * io/fcntl.h: Likewise.
8656         * io/sys/poll.h: Likewise.
8657         * misc/bits/syslog.h: Likewise.
8658         * misc/bits/syslog-ldbl.h: Likewise.
8659         * misc/sys/syslog.h: Likewise.
8660         * socket/bits/socket2.h: Likewise.
8661         * socket/sys/socket.h: Likewise.
8662         * debug/tst-chk1.c: Likewise.
8663         * wcsmbs/bits/wchar2.h: Likewise.
8664         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8665         * wcsmbs/wchar.h: Likewise.
8666
8667 2012-04-29  Andreas Jaeger  <aj@suse.de>
8668
8669         * Makerules (tests): Remove enable-check-abi protection.
8670         (check-abi-warn): Remove.
8671         (check-abi-%): Remove check-abi-warn usage.
8672
8673         * configure.in: Remove check-abi configure option.
8674         * configure: Regenerated.
8675         * config.make.in (enable-check-abi): Remove.
8676
8677 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8678
8679         [BZ #14033]
8680         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8681         double functions to double *_finite functions.
8682
8683         [BZ #13941]
8684         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8685         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8686         LDBL_MIN_EXP.
8687         * stdio-common/Makefile (tests): Add tst-sprintf3.
8688         * stdio-common/tst-sprintf3.c: New file.
8689
8690         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8691         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8692
8693 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8694
8695         * conform/conformtest.pl: Remove duplicate typed-constant
8696         handling.
8697
8698 2012-04-28  David S. Miller  <davem@davemloft.net>
8699
8700         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8701         (check-abi-%): Remove AWK script prerequisite and explicit
8702         abilist directory.
8703         (check-abi): Rewrite to just diff the symlist with the abilist.
8704         (config-tls, config-abi-config): Delete, no longer used.
8705         (update-abi-%): Remove AWK script and explicit abilist directory.
8706         (update-abi): Rewrite to simply compare and conditionally copy the
8707         symlist and the sysdep abilist file.  Remove update-abi-config
8708         checks.
8709         * abilist/ld.abilist: Remove.
8710         * abilist/libBrokenLocale.abilist: Remove.
8711         * abilist/libanl.abilist: Remove.
8712         * abilist/libcrypt.abilist: Remove.
8713         * abilist/libdl.abilist: Remove.
8714         * abilist/librt.abilist: Remove.
8715         * abilist/libthread_db.abilist: Remove.
8716         * abilist/libutil.abilist: Remove.
8717         * scripts/extract-abilist.awk: Remove.
8718         * scripts/merge-abilist.awk: Remove.
8719         * sysdeps/generic/libcidn.abilist: New file.
8720         * sysdeps/generic/libnss_compat.abilist: New file.
8721         * sysdeps/generic/libnss_db.abilist: New file.
8722         * sysdeps/generic/libnss_dns.abilist: New file.
8723         * sysdeps/generic/libnss_files.abilist: New file.
8724         * sysdeps/generic/libnss_hesiod.abilist: New file.
8725         * sysdeps/generic/libnss_nis.abilist: New file.
8726         * sysdeps/generic/libnss_nisplus.abilist: New file.
8727         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8728         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8729         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8730         file.
8731         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8732         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8733         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8734         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8735         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8736         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8737         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8738         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8739         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8740         file.
8741         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8742         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8743         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8744         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8745         file.
8746         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8747         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8748         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8749         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8750         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8751         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8752         file.
8753         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8754         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8755         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8756         file.
8757         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8758         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8759         New file.
8760         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8761         New file.
8762         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8763         New file.
8764         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8765         New file.
8766         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8767         New file.
8768         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8769         New file.
8770         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8771         New file.
8772         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8773         New file.
8774         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8775         New file.
8776         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8777         New file.
8778         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8779         New file.
8780         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8781         New file.
8782         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8783         New file.
8784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8785         file.
8786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8787         New file.
8788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8789         New file.
8790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8791         file.
8792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8793         New file.
8794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8795         New file.
8796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8797         file.
8798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8799         New file.
8800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8801         New file.
8802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8803         New file.
8804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8805         New file.
8806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8807         New file.
8808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8809         New file.
8810         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8812         file.
8813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8814         New file.
8815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8816         file.
8817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8818         file.
8819         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8820         file.
8821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8822         file.
8823         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8824         file.
8825         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8826         New file.
8827         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8828         file.
8829         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8830         file.
8831         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8832         New file.
8833         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8834         file.
8835         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8837         file.
8838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8839         New file.
8840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8841         file.
8842         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8843         file.
8844         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8845         file.
8846         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8847         file.
8848         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8849         file.
8850         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8851         New file.
8852         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8853         file.
8854         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8855         file.
8856         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8857         New file.
8858         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8859         file.
8860         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8861         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8862         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8863         file.
8864         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8865         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8866         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8867         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8868         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8869         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8870         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8871         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8872         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8873         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8874         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8876         file.
8877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8878         New file.
8879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8880         file.
8881         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8882         file.
8883         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8884         file.
8885         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8886         file.
8887         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8888         file.
8889         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8890         New file.
8891         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8892         New file.
8893         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8894         file.
8895         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8896         New file.
8897         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8898         file.
8899         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8901         file.
8902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8903         New file.
8904         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8905         file.
8906         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8907         file.
8908         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8909         file.
8910         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8911         file.
8912         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8913         file.
8914         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8915         New file.
8916         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8917         New file.
8918         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8919         file.
8920         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8921         New file.
8922         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8923         file.
8924
8925 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8926
8927         * conform/conformtest.pl: Fix typo in handling typed-constant from
8928         allow-header.
8929
8930 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8931
8932         * README: Cut down references to pre-2.6 Linux kernels and
8933         Linuxthreads.  Update lists of configurations in libc and ports
8934         and sort alphabetically.  Say "or newer" with Linux kernel version
8935         requirements.
8936
8937         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8938
8939 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8940
8941         [BZ #887]
8942         * math/libm-test.inc (logb_test_downward): New test to expose
8943         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8944         rounding mode.
8945
8946 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8947
8948         [BZ #14027]
8949         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8950         to be done.
8951         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8952         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8953
8954 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8955
8956         * sysdeps/unix/i386/brk.S: Remove file.
8957         * sysdeps/unix/i386/dl-brk.S: Likewise.
8958         * sysdeps/unix/i386/pipe.S: Likewise.
8959         * sysdeps/unix/i386/sigreturn.S: Likewise.
8960         * sysdeps/unix/i386/syscall.S: Likewise.
8961         * sysdeps/unix/i386/vfork.S: Likewise.
8962         * sysdeps/unix/i386/wait.S: Likewise.
8963
8964         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8965         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8966
8967         * configure.in (arm*-none*): Do not allow without
8968         --enable-hacker-mode.
8969         (netbsd*): Remove case setting base_os.
8970         (386bsd*): Likewise.
8971         (freebsd*): Likewise.
8972         (bsdi*): Likewise.
8973         (osf*): Likewise.
8974         (sunos*): Likewise.
8975         (ultrix*): Likewise.
8976         (newsos*): Likewise.
8977         (dynix*): Likewise.
8978         (*bsd*): Likewise.
8979         (sysv*): Likewise.
8980         (isc*): Likewise.
8981         (esix*): Likewise.
8982         (sco*): Likewise.
8983         (minix*): Likewise.
8984         (irix4*): Likewise.
8985         (irix6*): Likewise.
8986         (solaris[2-9]*): Likewise.
8987         (none): Likewise.
8988         * configure: Regenerated.
8989
8990 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8991
8992         [BZ #11521]
8993         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8994         overflow or cancellation in calculating denominator.
8995         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8996         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8997         down expression to avoid unexpected rounding in newer GCCs.
8998         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8999
9000 2012-04-26  David S. Miller  <davem@davemloft.net>
9001
9002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9003         long-double compat symbols.
9004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9009         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9010         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9011         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9012         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9013         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9014         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9017
9018 2012-04-25  David S. Miller  <davem@davemloft.net>
9019
9020         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9021         HWCAP_* values only after the memory barriers have been defined.
9022         (atomic_full_barrier): Define.
9023         (atomic_read_barrier): Define.
9024         (atomic_write_barrier): Define.
9025
9026 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9027
9028         * shlib-versions: Add libgcc_s version information.
9029         * sysdeps/generic/libgcc_s.h: Remove.
9030         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9031         libgcc_s.h.
9032         * sysdeps/gnu/unwind-resume.c: Likewise.
9033         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9034
9035 2012-04-25  David S. Miller  <davem@davemloft.net>
9036
9037         * sysdeps/unix/sparc/brk.S: Delete.
9038         * sysdeps/unix/sparc/dl-brk.S: Delete.
9039         * sysdeps/unix/sparc/pipe.S: Delete.
9040         * sysdeps/unix/sparc/sysdep.S: Delete.
9041         * sysdeps/unix/sparc/sysdep.h: Delete.
9042         * sysdeps/unix/sparc/vfork.S: Delete.
9043         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9044         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9045         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9046         ret_ERRVAL, r0, r1, MOVE): Define.
9047         (JUMPTARGET): Remove.
9048         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9049         sysdeps/unix/sparc/sysdep.h
9050         (ENTRY, END): Remove.
9051         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9052
9053 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9054
9055         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9056         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9057         -DIS_IN_build.
9058
9059         * timezone/README: Update upstream location and email address for
9060         tzcode and tzdata.
9061         * timezone/zdump.c: Update from tzcode 2012b.
9062         * timezone/zic.c: Likewise.
9063
9064         * configure.in (libc_cv_as_needed): Remove test.
9065         * configure: Regenerated.
9066         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9067         conditional definition.
9068         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9069         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9070         * config.make.in (have-as-needed): Remove variable.
9071
9072 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9073             Paul Pluzhnikov  <ppluzhnikov@google.com>
9074
9075         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9076         strings correctly.
9077
9078 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9079
9080         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9081         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9082         * sysdeps/sh/strlen.S: Likewise.
9083
9084 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9085
9086         * sysdeps/unix/fork.S: Remove file.
9087         * sysdeps/unix/i386/fork.S: Likewise.
9088         * sysdeps/unix/sparc/fork.S: Likewise.
9089
9090         * sysdeps/unix/system.c: Remove file.
9091         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9092
9093         * sysdeps/unix/getegid.S: Remove file.
9094         * sysdeps/unix/geteuid.S: Likewise.
9095
9096 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9097
9098         * scripts/check-localplt.awk: New file.
9099         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9100         of diff.
9101         * scripts/data/localplt-generic.data: Add a comment.
9102
9103         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9104         NODE when __dir_mkfile failed.
9105         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9106         Reported by Ludovic Courtès <ludo@gnu.org>.
9107
9108 2012-04-24  Andreas Jaeger  <aj@suse.de>
9109
9110         * Makerules (common-clean): Also remove gen-as-const-headers
9111         files.
9112
9113 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9114
9115         * Makerules (native-compile): Do not change working directory for
9116         build.  Use $(OUTPUT_OPTION) in command.
9117         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9118
9119 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9120
9121         [BZ #13886]
9122         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9123         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9124         * math/libm-test.inc (floor_test): Add more tests.
9125         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9126
9127 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9128
9129         * sysdeps/unix/getdents.c: Remove file.
9130         * sysdeps/unix/sysv/getdents.c: Likewise.
9131         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9132
9133         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9134         sysdeps/unix/mman/syscalls.list.
9135         (mmap): Likewise.
9136         (mprotect): Likewise.
9137         (msync): Likewise.
9138         (munmap): Likewise.
9139         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9140         * sysdeps/unix/mman/syscalls.list: Remove.
9141         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9142
9143         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9144         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9145         * configure: Regenerated.
9146         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9147         $(libgcc_s_suffix).
9148         * config.make.in (libgcc_s_suffix): Remove variable.
9149
9150 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9151
9152         * sysdeps/unix/sysv/gethostname.c: Move to ...
9153         * sysdeps/posix/gethostname.c: ... here.
9154
9155         * sysdeps/unix/execve.S: Remove file.
9156
9157         * sysdeps/unix/_exit.S: Remove file.
9158
9159 2012-04-23  Andreas Jaeger  <aj@suse.de>
9160
9161         [BZ #13739]
9162         * manual/Makefile: Remove make dist support, there's no
9163         need for a stand-alone documentation tar ball.
9164         (TEXI2DVI): Define always, it's not in Makeconfig.
9165         (dist): Removed.
9166         (tar-it): Removed.
9167         (edition): Removed.
9168         (glibc-doc-$(edition).tar): Removed
9169         (%.Z): Removed.
9170         (%.gz): Removed.
9171         (%.uu): Removed.
9172         (ETAGS): Remove, it's in Makeconfig.
9173         (move-if-change): Remove, it's in Makeconfig.
9174
9175 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9176
9177         [BZ #13970]
9178         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9179         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9180         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9181         (strtod_l, strtof_l, strtold_l): Remove __wur.
9182         It is not necessarily an error to ignore strtol's return value.
9183         One can reliably look at the stored endptr to decide whether
9184         the number had valid syntax.
9185
9186 2012-04-21  Andreas Jaeger  <aj@suse.de>
9187
9188         [BZ #13739]
9189         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9190
9191 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9194         * sysdeps/unix/sysv/Versions: Remove file.
9195
9196 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9197
9198         [BZ #13927]
9199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9200
9201 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9202
9203         [BZ #7064]
9204         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9205         version from __vm86.
9206
9207 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9208
9209         * sysdeps/unix/common/lxstat.c: Remove file.
9210         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9211
9212         * sysdeps/unix/sysv/Makefile: Remove file.
9213
9214         * sysdeps/unix/sysv/direct.h: Remove file.
9215
9216         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9217         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9218         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9219         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9220         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9221         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9222         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9223
9224         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9225
9226         * sysdeps/unix/xmknod.c: Remove file.
9227         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9228
9229         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9230
9231         * sysdeps/unix/sysv/i386/time.S: Remove file.
9232
9233         * sysdeps/unix/fxstat.c: Remove file.
9234         * sysdeps/unix/xstat.c: Likewise.
9235         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9236
9237         * sysdeps/unix/sysv/sigaction.c: Remove file.
9238
9239         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9240         (sysdep_headers): Remove variable.
9241         [termio.h not in sysdep_headers] (generated): Likewise.
9242         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9243         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9244         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9245         * sysdeps/unix/sysv/tcflow.c: Likewise.
9246         * sysdeps/unix/sysv/tcflush.c: Likewise.
9247         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9248         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9249         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9250         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9251         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9252
9253         * sysdeps/unix/siglist.c: Remove file.
9254
9255         * sysdeps/unix/getppid.S: Remove file.
9256
9257         * sysdeps/unix/mkdir.c: Remove file.
9258         * sysdeps/unix/rmdir.c: Likewise.
9259
9260 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9261
9262         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9263         ERR_MAX value.
9264         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9265         errlist-compat value.
9266
9267 2012-04-18  David S. Miller  <davem@davemloft.net>
9268
9269         * sysdeps/generic/memcopy.h (reg_char): Delete.
9270         * debug/strcat_chk.c: Use char, not reg_char.
9271         * debug/strcpy_chk.c: Likewise.
9272         * debug/strncat_chk.c: Likewise.
9273         * debug/strncpy_chk.c: Likewise.
9274         * string/memchr.c: Likewise.
9275         * string/memrchr.c: Likewise.
9276         * string/rawmemchr.c: Likewise.
9277         * string/strcat.c: Likewise.
9278         * string/strchr.c: Likewise.
9279         * string/strchrnul.c: Likewise.
9280         * string/strcmp.c: Likewise.
9281         * string/strcpy.c: Likewise.
9282         * string/strncat.c: Likewise.
9283         * string/strncmp.c: Likewise.
9284         * string/strncpy.c: Likewise.
9285
9286 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9287
9288         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9289         __builtin_memcopy is called when src and dest ranges are known to not
9290         overlap.
9291
9292 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9293
9294         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9295         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9296         fwd_align_merge macro call.
9297         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9298         bwd_align_merge macro call.
9299         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9300
9301 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9302
9303         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9304         bwd_align_merge macros.
9305         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9306         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9307         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9308
9309 2012-04-18  David S. Miller  <davem@davemloft.net>
9310
9311         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9312
9313 2012-04-18  Andreas Jaeger  <aj@suse.de>
9314
9315         [BZ# 6794]
9316         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9317         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9318         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9319
9320         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9321         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9322         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9323
9324         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9325         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9326         Adjust for changed ldbl-128 files.
9327
9328         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9329         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9330         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9331
9332 2012-04-17  David S. Miller  <davem@davemloft.net>
9333
9334         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9335
9336 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9337
9338         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9339         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9340         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9341         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9342         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9343         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9344
9345 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9346
9347         [BZ #6794]
9348         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9349         * math/libm-test.inc: Add ilogb errno and exception tests.
9350         * math/w_ilogb.c: New file: ilogb wrapper.
9351         * math/w_ilogbf.c: New file: ilogbf wrapper.
9352         * math/w_ilogbl.c: New file: ilogbl wrapper.
9353         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9354         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9355         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9356         exception being thrown with 0.0 as argument.
9357         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9358         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9359         exception being thrown with 0.0 as argument.
9360         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9361         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9362         exception being thrown with 0.0 as argument.
9363         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9364         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9365         exception being thrown with 0.0 as argument.
9366         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9367         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9368         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9369         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9370         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9371         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9372         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9373         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9374         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9375
9376 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9377
9378         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9379         with altivec.
9380
9381 2012-04-16  Marek Polacek  <polacek@redhat.com>
9382
9383         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9384
9385 2012-04-16  Marek Polacek  <polacek@redhat.com>
9386
9387         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9388         operands of fdivp instruction.
9389
9390 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9391
9392         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9393         * elf/tst-auditmod3b.c: Likewise.
9394         * elf/tst-auditmod4b.c: Likewise.
9395         * elf/tst-auditmod5b.c: Likewise.
9396         * elf/tst-auditmod6b.c: Likewise.
9397         * elf/tst-auditmod6c.c: Likewise.
9398         * elf/tst-auditmod7b.c: Likewise.
9399         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9400         * sysdeps/x86_64/preconfigure.in: Likewise.
9401         * sysdeps/x86_64/preconfigure: Regenerated.
9402
9403 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9404
9405         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9406         __ILP32__.
9407
9408 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9409
9410         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9411         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9412
9413 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9414
9415         [BZ #13973]
9416         * locale/iso-639.def: Fix gl language name. Spotted by
9417         Yaron Shahrabani.
9418
9419 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9420
9421         [BZ #2074]
9422         * libio/libio.h (__io_write_fn): Update comment.
9423
9424 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9425
9426         [BZ #2074]
9427         * stdio.texi (Hook Functions): The user provided writer function
9428         is not allowed to return -1.
9429
9430 2012-04-11  David S. Miller  <davem@davemloft.net>
9431
9432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9433
9434 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9435
9436         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9437         Add a leading slash to rtkaio.
9438
9439 2012-04-11  Jim Meyering  <meyering@redhat.com>
9440
9441         [BZ #11959]
9442         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9443         It is not necessarily an error to ignore fwrite's return
9444         value.  One can reliably use ferror to test for errors after
9445         the fact.
9446
9447 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9448
9449         * bits/types.h (__snseconds_t): New type.
9450         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9451
9452         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9453         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9454         (__SNSECONDS_T_TYPE): Likewise.
9455         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9456         (__SNSECONDS_T_TYPE): Likewise.
9457         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9458         (__SNSECONDS_T_TYPE): Likewise.
9459
9460 2012-04-10  Andreas Jaeger  <aj@suse.de>
9461
9462         [BZ #2636]
9463         * manual/time.texi (Processor Time): Return type of times is
9464         elapsed real time since an arbitrary point in the past.
9465         (CPU Time): Move CLK_TCK from here...
9466         (Processor Time): ...to here.  Correct description.
9467         * manual/conf.texi (Constants for Sysconf): Correct description of
9468         _SC_CLK_TCK.
9469
9470 2012-04-10  David S. Miller  <davem@davemloft.net>
9471
9472         [BZ #13967]
9473         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9474         where the is a gap between DT_REL(A) and DT_JMPREL.
9475
9476 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9477
9478         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9479         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9480         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9481
9482 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9483
9484         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9485         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9486         (dl_main): Handle --inhibit-cache.
9487         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9488         _dl_inhibit_cache.
9489         * elf/dl-load.c (_dl_map_object): Use it.
9490         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9491
9492 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9493
9494         [BZ #13872]
9495         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9496         (__ieee754_powl): Saturate large exponents rather than testing for
9497         overflow of y*log2(x).
9498         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9499         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9500         exceptions.
9501
9502         [BZ #11521]
9503         * math/s_ctan.c: Include <float.h>.
9504         (__ctan): Avoid internal overflow or cancellation in calculating
9505         denominator.
9506         * math/s_ctanf.c: Likewise.
9507         * math/s_ctanl.c: Likewise.
9508         * math/s_ctanh.c: Likewise.
9509         * math/s_ctanhf.c: Likewise.
9510         * math/s_ctanhl.c: Likewise.
9511         * math/libm-test.inc (ctan_test): Add more tests.
9512         (ctanh_test): Likewise.
9513         * sysdeps/i386/fpu/libm-test-ulps: Update.
9514         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9515
9516 2012-04-09  Andreas Jaeger  <aj@suse.de>
9517
9518         [BZ #6894]
9519         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9520         is an optional BSD extension.
9521
9522         [BZ #10254]
9523         * manual/stdio.texi (Opening Streams): Document additional fopen
9524         parameters.
9525
9526 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9527
9528         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9529         %eax without telling the compiler.
9530
9531 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9532
9533         [BZ # 13963]
9534         * manual/install.texi: Use sourceware.org.
9535
9536 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9537
9538         [BZ #13873]
9539         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9540         (__ieee754_pow): Generate overflow and underflow using huge*huge
9541         and tiny*tiny rather than just returning constant infinity or zero
9542         for large exponents.
9543         * math/libm-test.inc (pow_test): Require overflow exceptions for
9544         applicable cases of large exponents.
9545
9546         [BZ #706]
9547         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9548         (__ieee754_pow): Use iterative multiplication algorithm only for
9549         integer exponents with absolute value below 1024.  Check for odd
9550         integer exponents when using algorithm for real exponents.
9551         * math/libm-test.inc (pow_test): Add more tests.
9552         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9553
9554 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9555
9556         [BZ #13705]
9557         * math/libm-test.inc (exp_test): Do not allow overflow exception
9558         on underflow test.
9559
9560 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9561
9562         [BZ #13705]
9563         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9564         instead of __kernel_standard_f.
9565
9566 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9567
9568         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9569         * sysdeps/x86_64/memset_chk.S: Likewise.
9570
9571 2012-04-08  Andreas Jaeger  <aj@suse.de>
9572
9573         [BZ #10153]
9574         * manual/startup.texi (Environment Access): Describe return value
9575         for putenv and setenv.
9576
9577         [BZ #6895]
9578         * manual/filesys.texi (Directory Entries): Add description for
9579         DT_LNK.
9580
9581         [BZ #6890]
9582         * manual/filesys.texi (Directory Entries): Clarify that it's file
9583         system not operating system in the description of DT_UNKNOWN.
9584
9585         [BZ #6578]
9586         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9587
9588 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9589
9590         [BZ #6649]
9591         * manual/llio.texi (Opening and Closing Files): Add cross
9592         reference to explain mode argument.
9593
9594 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9595
9596         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9597         * sysdeps/x86_64/memset_chk.S: Likewise.
9598
9599 2012-04-07  David S. Miller  <davem@davemloft.net>
9600
9601         * elf/elf.h (R_SPARC_WDISP10): Define.
9602         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9603         R_SPARC_SIZE32.
9604         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9605         R_SPARC_SIZE64 and R_SPARC_H34.
9606
9607 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9608
9609         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9610         conditions and remove no longer applicable assertion.
9611
9612 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9613
9614         * bits/byteswap.h: Include <features.h>.
9615         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9616         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9617
9618 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9619
9620         * bits/byteswap.h (__bswap_16): Removed.
9621         Include <bits/byteswap-16.h> to get __bswap_16.
9622         * sysdeps/i386/bits/byteswap.h: Likewise.
9623         * sysdeps/s390/bits/byteswap.h: Likewise.
9624         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9625         * bits/byteswap-16.h: New file.
9626         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9627         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9628         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9629         * string/Makefile (headers): Add bits/byteswap-16.h.
9630
9631 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9632
9633         [BZ #13895]
9634         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9635         extra indirection.
9636         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9637         * nss/tst-nss-static.c: New.
9638
9639 2012-04-06  Robert Millan  <rmh@gnu.org>
9640
9641         [BZ #6486]
9642         * manual/llio.texi (File Position Primitive): lseek
9643         refers to WHENCE when it really means OFFSET.
9644
9645 2012-04-06  Andreas Jaeger  <aj@suse.de>
9646
9647         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9648         strncmp declarations.
9649
9650         * abilist/libc.abilist: Add __poll and __ppoll.
9651
9652 2012-04-05  David S. Miller  <davem@davemloft.net>
9653
9654         * scripts/check-local-headers.sh: Accept a host triplet in the
9655         path matched by the exclude regexp.
9656
9657         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9658         definition.
9659         * sysdeps/powerpc/powerpc32/dl-machine.h
9660         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9661         * sysdeps/s390/s390-32/dl-machine.h
9662         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9663         * sysdeps/sparc/sparc32/dl-machine.h
9664         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9665         * sysdeps/sparc/sparc64/dl-machine.h
9666         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9667
9668         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9669         lazy binding.
9670         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9671         undefined symbol errors.
9672
9673         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9674         DT_NEEDED entries.
9675
9676 2012-04-05  Michael Matz  <matz@suse.de>
9677
9678         [BZ #13592]
9679         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9680
9681 2012-04-05  Andreas Jaeger  <aj@suse.de>
9682
9683         [BZ #13908]
9684         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9685         comment.
9686
9687 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9688
9689         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9690         which ROUND is no valid rounding mode.
9691
9692 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9693
9694         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9695         read again.
9696         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9697
9698 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9699
9700         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9701         an exception using FPU order intentionally.
9702
9703 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9704
9705         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9706         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9707         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9708         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9709
9710 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9711
9712         [BZ #12340]
9713         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9714         EINVAL when BUFLEN is too smal.
9715
9716 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9717
9718         [BZ #13553]
9719         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9720         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9721
9722 2012-04-03  Andreas Jaeger  <aj@suse.de>
9723
9724         [BZ #13938]
9725         * manual/setjmp.texi (System V contexts): Fix sentence.
9726
9727         [BZ #13926]
9728         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9729         New macro for this case.
9730         [!__GNUC__] (__bswap_64): New inline function for this case.
9731         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9732         * bits/byteswap.h: Likewise.
9733         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9734         ull, guard with __GLIBC_HAVE_LONG_LONG.
9735
9736         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9737         __GLIBC_HAVE_LONG_LONG.
9738
9739         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9740         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9741
9742 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9743
9744         [BZ #13691]
9745         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9746         inptr and inend, rather than using last_ch.
9747
9748 2012-04-02  David S. Miller  <davem@davemloft.net>
9749
9750         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9751         * stdio-common/printf-parse.h (read_int): Change return type to
9752         'int', return -1 on INT_MAX overflow.
9753         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9754         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9755         overflows INT_MAX.  Check for overflow of in-format-string precision
9756         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9757         SIZE_MAX not INT_MAX for integer overflow test.
9758         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9759         skip the construct in the format string but do not record anything.
9760         * stdio-common/bug22.c: Adjust to test both width/prevision
9761         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9762         explicitly for proper errno values.
9763
9764 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9765
9766         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9767         CHAR_MAX.
9768         * string/test-strcmp.c [! WIDE]: Likewise.
9769         * time/tst-mktime2.c: Likewise for INT_MAX.
9770         * string/test-string.h: #include <sys/param.h> for MIN.
9771
9772         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9773         * sysdeps/i386/init-first.c (init): Likewise.
9774         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9775         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9776         * sysdeps/sh/init-first.c (init): Likewise.
9777
9778 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9779
9780         * po/ru.po: Update from translation team.
9781         * po/vi.po: Likewise.
9782
9783 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9784
9785         * resolv/nss_dns/dns-host.c: Merge copyright years.
9786
9787 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9788
9789         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9790         Optimize memcpy with prefetch if
9791         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9792         src, dst pointers have unequal 16 byte alignments.
9793
9794 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9795
9796         [BZ #13928]
9797         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9798         from a CNAME entry and return the minimum ttl for the query.
9799         (gaih_getanswer_slice): Likewise.
9800
9801 2012-03-30  Jeff Law  <law@redhat.com>
9802
9803         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9804         due to long keys.
9805         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9806         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9807
9808         * resolv/nss_dns/dns-host.c: Update copyright year.
9809
9810 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9811
9812         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9813         requests to save a system call.  Fix check that all bytes are sent.
9814
9815         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9816         comments for sendmmsg.
9817
9818 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9819
9820         [BZ #13691]
9821         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9822         with only 1 character between 0x0041 and 0x01b0.
9823         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9824         * wcsmbs/tst-mbsnrtowcs.c: New file.
9825
9826 2012-03-29  David S. Miller  <davem@davemloft.net>
9827
9828         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9829         small copies by hand.
9830
9831 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9832
9833         [BZ #13761]
9834         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9835         _nss_compat_initgroups_dyn): Fall back to malloc/free
9836         for large group memberships.
9837
9838 2012-03-28  David S. Miller  <davem@davemloft.net>
9839
9840         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9841         that branches into memcpy.
9842         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9843         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9844         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9845         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9846         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9847         bits.
9848         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9849         implementation too.
9850         * sysdeps/sparc/mempcpy.S: New file.
9851
9852         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9853         the IFUNC routine in the libc case.
9854         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9855
9856         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9857         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9858         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9859         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9860         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9861         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9862         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9863         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9864
9865         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9866         loop to 256 bytes instead of 64 bytes and fix test signedness.
9867
9868         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9869         * sysdeps/sparc/sparc32/Makefile: rather than here...
9870         * sysdeps/sparc/sparc64/Makefile: and here.
9871
9872 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9873
9874         * malloc/mallocbug.c: Avoid warnings about unused variables.
9875
9876 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9877
9878         [BZ #13760]
9879         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9880         in the right place. Discard and retry query if response is
9881         larger than input buffer size.
9882
9883 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9884
9885         [BZ #369]
9886         [BZ #2678]
9887         [BZ #3866]
9888         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9889         x for large integer exponent.
9890         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9891         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9892         sign of result as needed afterwards.
9893         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9894         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9895         result for underflowing pow the same as for overflow.
9896         (__kernel_standard_l): Handle powl overflow and underflow here
9897         rather than calling __kernel_standard.
9898         * math/libm-test.inc (pow_test): Add more tests.
9899
9900         [BZ #3868]
9901         [BZ #13879]
9902         [BZ #13910]
9903         [BZ #13911]
9904         [BZ #13912]
9905         [BZ #13913]
9906         [BZ #13915]
9907         [BZ #13916]
9908         [BZ #13917]
9909         [BZ #13918]
9910         [BZ #13919]
9911         [BZ #13920]
9912         [BZ #13921]
9913         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9914         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9915         (__kernel_standard_l): New function.
9916         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9917         __kernel_standard.
9918         * math/w_acosl.c (__acosl): Likewise.
9919         * math/w_asinl.c (__asinl): Likewise.
9920         * math/w_atan2l.c (__atan2l): Likewise.
9921         * math/w_atanhl.c (__atanhl): Likewise.
9922         * math/w_coshl.c (__coshl): Likewise.
9923         * math/w_exp10l.c (__exp10l): Likewise.
9924         * math/w_exp2l.c (__exp2l): Likewise.
9925         * math/w_fmodl.c (__fmodl): Likewise.
9926         * math/w_hypotl.c (__hypotl): Likewise.
9927         * math/w_j0l.c (__j0l, __y0l): Likewise.
9928         * math/w_j1l.c (__j1l, __y1l): Likewise.
9929         * math/w_jnl.c (__jnl, __ynl): Likewise.
9930         * math/w_lgammal.c (__lgammal): Likewise.
9931         * math/w_log10l.c (__log10l): Likewise.
9932         * math/w_log2l.c (__log2l): Likewise.
9933         * math/w_logl.c (__logl): Likewise.
9934         * math/w_powl.c (__powl): Likewise.
9935         * math/w_remainderl.c (__remainderl): Likewise.
9936         * math/w_scalbl.c (sysv_scalbl): Likewise.
9937         * math/w_sinhl.c (__sinhl): Likewise.
9938         * math/w_sqrtl.c (__sqrtl): Likewise.
9939         * math/w_tgammal.c (__tgammal): Likewise.
9940         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9941         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9942         * math/libm-test.inc (acos_test): Add more tests.
9943         (acosh_test): Likewise.
9944         (asin_test): Likewise.
9945         (atanh_test): Likewise.
9946         (exp_test): Likewise.
9947         (exp10_test): Likewise.
9948         (exp2_test): Likewise.
9949         (expm1_test): Likewise.
9950         (lgamma_test): Likewise.
9951         (log_test): Likewise.
9952         (log10_test): Likewise.
9953         (log1p_test): Likewise.
9954         (log2_test): Likewise.
9955         (pow_test): Do not allow some spurious overflow exceptions.
9956         (sqrt_test): Add more tests.
9957         (tgamma_test): Likewise.
9958         (y0_test): Likewise.
9959         (y1_test): Likewise.
9960         (yn_test): Likewise.
9961
9962 2012-03-27  Anton Blanchard  <anton@samba.org>
9963
9964         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9965         MAP_HUGETLB.
9966         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9967         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9968         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9969
9970 2012-03-27  David S. Miller  <davem@davemloft.net>
9971
9972         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9973
9974         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9975         have-as-vis3 check.
9976
9977 2012-03-27  Andreas Jaeger  <aj@suse.de>
9978
9979         * sysdeps/x86_64/elf/configure.in: Moved to ...
9980         * sysdeps/x86_64/configure.in: ... here.
9981         * sysdeps/x86_64/elf/start.S: Moved to ...
9982         * sysdeps/x86_64/start.S: ... here.
9983         * sysdeps/x86_64/elf/configure: Delete.
9984
9985         * sysdeps/x86_64/configure.in: Merge contents from
9986         sysdeps/i386/configure.in (without i686 check).
9987
9988         * sysdeps/i386/elf/Versions: Merge into ...
9989         * sysdeps/i386/Versions: ... this.
9990         * sysdeps/i386/elf/Versions: Delete file.
9991         * sysdeps/i386/elf/start.S: Moved to ...
9992         * sysdeps/i386/start.S: ...here.
9993         * sysdeps/i386/elf/configure.in: Merge into...
9994         * sysdeps/i386/configure.in: ...here.
9995         * sysdeps/i386/elf/configure.in: Delete file.
9996         * sysdeps/i386/elf/configure: Delete file.
9997
9998         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9999         * debug/backtracesyms.c: ... here.
10000         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10001         * debug/backtracesymsfd.c: ... here.
10002         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10003         * sysdeps/generic/ifunc-sel.h: ... here.
10004
10005         * sysdeps/unix/i386/start.c: Delete file.
10006         * sysdeps/unix/sparc/start.c: Delete file.
10007         * sysdeps/unix/start.c: Delete file.
10008
10009         * sysdeps/sh/elf/configure.in: Moved to ...
10010         * sysdeps/sh/configure.in: ... here.
10011         * sysdeps/sh/elf/start.S: Moved to ...
10012         * sysdeps/sh/start.S: ... here.
10013         * sysdeps/sh/elf/configure: Delete file.
10014
10015         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10016         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10017         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10018         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10019         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10020         * sysdeps/powerpc/powerpc64/start.S: here.
10021         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10022         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10023         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10024         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10025         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10026
10027         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10028         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10029         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10030         * sysdeps/powerpc/powerpc32/start.S: ... here.
10031         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10032         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10033         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10034
10035         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10036         * sysdeps/powerpc/ifunc-sel.h: ... here.
10037         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10038         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10039
10040         * sysdeps/sparc/elf/configure.in: Moved to ...
10041         * sysdeps/sparc/configure.in: ... here.
10042         * sysdeps/sparc/elf/configure: Delete file.
10043         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10044         * sysdeps/sparc/sparc32/start.S: ... here.
10045         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10046         * sysdeps/sparc/sparc64/start.S: ... here.
10047         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10048         * sysdeps/sparc/sparc32/Makefile: ... this.
10049         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10050         * sysdeps/sparc/sparc64/Makefile: ... this.
10051
10052         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10053         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10054         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10055         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10056         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10057         * sysdeps/s390/s390-32/setjmp.S: ... here.
10058         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10059         * sysdeps/s390/s390-32/configure.in: ... here.
10060         * sysdeps/s390/s390-32/elf/configure: Delete file.
10061         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10062         * sysdeps/s390/s390-32/start.S: ... here.
10063
10064         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10065         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10066         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10067         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10068         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10069         * sysdeps/s390/s390-64/setjmp.S: ... here.
10070         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10071         * sysdeps/s390/s390-64/configure.in: ... here
10072         * sysdeps/s390/s390-64/elf/configure: Delete file.
10073         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10074         * sysdeps/s390/s390-64/start.S: ... here.
10075         * sysdeps/s390/s390-64/elf/configure: Delete.
10076
10077         * configure.in: Remove support for elf directories in sysdeps.
10078
10079         * configure: Regenerated.
10080         * sysdeps/i386/configure: Regenerated.
10081         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10082         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10083         * sysdeps/s390/s390-32/configure: Regenerated.
10084         * sysdeps/s390/s390-64/configure: Regenerated.
10085         * sysdeps/sh/configure: Regenerated.
10086         * sysdeps/sparc/configure: Regenerated.
10087         * sysdeps/x86_64/configure: Regenerated.
10088
10089 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10090
10091         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10092
10093         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10094         denormal result into account.
10095
10096 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10097
10098         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10099         Reported by Allan McRae <allan@archlinux.org>.
10100
10101 2012-03-23  Jeff Law  <law@redhat.com>
10102
10103         * nss/getnssent.c (__nss_getent): Fix typo.
10104
10105 2012-03-23  David S. Miller  <davem@davemloft.net>
10106
10107         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10108
10109 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10110
10111         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10112         to pad to uint64_t for each field.
10113         (dl_tls_index): Replace unsigned long with uint64_t.
10114
10115 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10116         Paul Pluzhnikov  <ppluzhnikov@google.com>
10117
10118         [BZ #6528]
10119         * grp/Makefile (otherlibs): Don't set it.
10120         * inet/Makefile (otherlibs): Likewise.
10121         * login/Makefile (otherlibs): Likewise.
10122         * nscd/Makefile (otherlibs): Likewise.
10123         * posix/Makefile (otherlibs): Likewise.
10124         * pwd/Makefile (otherlibs): Likewise.
10125         * rt/Makefile (otherlibs): Likewise.
10126         * sunrpc/Makefile (otherlibs): Likewise.
10127         * nss/Makefile (otherlibs): Likewise.
10128         Add libnss_files to routines and static-only-routines.
10129         ($(objpfx)getent): Remove rule.
10130         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10131         static-only-routines.
10132
10133 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10134
10135         [BZ #13892]
10136         * math/s_cexp.c: Include <float.h>.
10137         (__cexp): Handle exp result overflowing not necessarily
10138         overflowing both real and imaginary parts of result.
10139         * math/s_cexpf.c: Likewise.
10140         * math/s_cexpl.c: Likewise.
10141         * math/libm-test.inc (cexp_test): Add more tests.
10142         * sysdeps/i386/fpu/libm-test-ulps: Update.
10143         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10144
10145 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10146
10147         * include/link.h (ELFW): New macro.
10148         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10149         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10150
10151 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10152
10153         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10154         with uint64_t.
10155
10156 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10157
10158         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10159         declaration.
10160         (struct La_x32_retval): Likewise.
10161
10162 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10163
10164         * sysdeps/x86_64/preconfigure.in: New file.
10165         * sysdeps/x86_64/preconfigure: New generated file.
10166
10167 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10168
10169         [BZ #13824]
10170         * math/e_exp2l.c: Include <float.h>.
10171         (__ieee754_exp2l): Handle overflow and underflow cases
10172         separately.  Only pass fractional part of argument to
10173         __ieee754_expl.
10174         * math/libm-test.inc (exp2_test): Add more tests.
10175
10176         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10177         negating x to take absolute value.
10178         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10179         Likewise.
10180         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10181         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10182         Likewise.
10183         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10184         computing low part if x was negated.
10185         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10186
10187 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10188
10189         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10190         la_x32_gnu_pltexit.
10191         (pltexit): Cast int_retval to ptrdiff_t.
10192         * elf/tst-auditmod3b.c: Likewise.
10193         * elf/tst-auditmod4b.c: Likewise.
10194         * elf/tst-auditmod5b.c: Likewise.
10195         * elf/tst-auditmod6b.c: Likewise.
10196         * elf/tst-auditmod6c.c: Likewise.
10197         * elf/tst-auditmod7b.c: Likewise.
10198
10199         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10200         and x32_gnu_pltexit.
10201
10202         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10203         __ELF_NATIVE_CLASS.
10204         (La_x32_regs): New macro.
10205         (La_x32_retval): Likewise.
10206         (la_x32_gnu_pltenter): New function prototype.
10207         (la_x32_gnu_pltexit): Likewise.
10208
10209 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10210
10211         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10212         exponent.
10213
10214         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10215
10216         * configure.in (libc_cv_cc_nofma): Check for option to disable
10217         generation of FMA instructions.
10218         * configure: Regenerate.
10219         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10220         * sysdeps/ieee754/dbl-64/Makefile: New file.
10221         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10222         Remove brandred-fma4.
10223         (CFLAGS-brandred-fma4.c): Remove.
10224         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10225         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10226         define.
10227         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10228         define.
10229
10230 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10231
10232         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10233         LLONG_MAX != LONG_MAX.
10234         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10235         (_fitoa_word): Likewise.
10236         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10237         LLONG_MAX != LONG_MAX.
10238         * stdio-common/_itowa.h: Include <_itoa.h>.
10239         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10240         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10241         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10242         only if not defined.
10243         (_ITOA_WORD_TYPE): Likewise.
10244         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10245         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10246
10247 2012-03-21  David S. Miller  <davem@davemloft.net>
10248
10249         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10250
10251 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10252
10253         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10254         of x86_64 when setting libc_cv_slibdir, libdir and
10255         libc_cv_localedir.
10256         * sysdeps/unix/sysv/linux/configure: Regenerated.
10257
10258 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10259
10260         * manual/lang.texi (Old Varargs): Remove section.
10261         (How Variadic): Update menu.
10262         (va_start): Do not mention varargs.h.
10263
10264 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10265             Joseph Myers  <joseph@codesourcery.com>
10266
10267         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10268         link test.
10269         * configure: Regenerated.
10270
10271 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10272
10273         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10274         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10275         conformtest.pl
10276
10277 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10278
10279         * NOTES: Remove.
10280         * Makefile (files-for-dist): Remove NOTES.
10281         (NOTES): Remove rule.
10282         * README: Don't refer to NOTES.
10283         * manual/creature.texi: Don't include macros.texi.
10284         * manual/intro.texi (creature.texi): Remove comment referring to
10285         NOTES.
10286
10287         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10288         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10289         * configure: Regenerated.
10290         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10291         LIBC_TRY_CC_OPTION.
10292         (libc_cv_as_i686): Likewise.
10293         (libc_cv_cc_avx): Likewise.
10294         (libc_cv_cc_sse2avx): Likewise.
10295         (libc_cv_cc_fma4): Likewise.
10296         (libc_cv_cc_novzeroupper): Likewise.
10297         * sysdeps/i386/configure: Regenerated.
10298
10299         [BZ #13883]
10300         * sysdeps/i386/fpu/s_cexp.S: Remove.
10301         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10302         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10303         * math/libm-test.inc (cexp_test): Add more tests.
10304         * sysdeps/i386/fpu/libm-test-ulps: Update.
10305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10306
10307 2012-03-21  Allan McRae  <allan@archlinux.org>
10308
10309         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10310
10311 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10312
10313         [BZ #13871]
10314         * math/w_exp2.c: Do not include <float.h>.
10315         (o_threshold, u_threshold): Remove.
10316         (__exp2): Calculate result before checking finiteness and calling
10317         __kernel_standard.
10318         * math/w_exp2f.c: Likewise.
10319         * math/w_exp2l.c: Likewise.
10320         * math/libm-test.inc (exp2_test): Require overflow exception for
10321         1e6 input.
10322
10323         [BZ #3866]
10324         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10325         range of signed 64-bit integers before using fistpll.  Remove
10326         checks for whether integers fit in mantissa bits.
10327         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10328         the range of signed 32-bit integers before using fistpl.  Remove
10329         checks for whether integers fit in mantissa bits.
10330         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10331         (__ieee754_powl): Test for y outside the range of signed 64-bit
10332         integers before using fistpll.  Reduce 64-bit values to 63-bit
10333         ones as needed.
10334         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10335         divide-by-zero is raised for zero to large negative powers.
10336         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10337         (__ieee754_powl): Test for y outside the range of signed 64-bit
10338         integers before using fistpll.  Reduce 64-bit values to 63-bit
10339         ones as needed.
10340         * math/libm-test.inc (pow_test): Add more tests.
10341
10342 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10343
10344         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10345         <stdio-common/_itoa.h>.
10346         * debug/segfault.c: Likewise.
10347         * elf/dl-cache.c: Likewise.
10348         * elf/dl-minimal.c: Likewise.
10349         * elf/dl-misc.c: Likewise.
10350         * elf/dl-sysdep.c: Likewise.
10351         * elf/dl-version.c: Likewise.
10352         * elf/rtld.c: Likewise.
10353         * hurd/hurdsock.c: Likewise.
10354         * hurd/lookup-retry.c: Likewise.
10355         * malloc/malloc.c: Likewise.
10356         * malloc/mtrace.c: Likewise.
10357         * nscd/nscd_getgr_r.c: Likewise.
10358         * nscd/nscd_getpw_r.c: Likewise.
10359         * nscd/nscd_getserv_r.c: Likewise.
10360         * posix/getopt_init.c: Likewise.
10361         * posix/wordexp.c: Likewise.
10362         * stdio-common/_itoa.c: Likewise.
10363         * stdio-common/printf_fphex.c: Likewise.
10364         * stdio-common/vfprintf.c: Likewise.
10365         * string/_strerror.c: Likewise.
10366         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10367         * sysdeps/i386/i686/hp-timing.h: Likewise.
10368         * sysdeps/mach/_strerror.c: Likewise.
10369         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10370         * sysdeps/mach/hurd/sethostid.c: Likewise.
10371         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10372         * sysdeps/mach/xpg-strerror.c: Likewise.
10373         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10374         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10375         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10376         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10377         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10378         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10379         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10380         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10381         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10382         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10383         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10384         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10385         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10386         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10387         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10388         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10389         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10390         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10391         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10392         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10393         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10394
10395         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10396
10397         * stdio-common/_itoa.h: Moved to ...
10398         * sysdeps/generic/_itoa.h: Here.
10399
10400         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10401
10402         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10403         instead of "_itoa.h" and "_itowa.h".
10404         * stdio-common/vfprintf.: Likewise.
10405
10406 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10407
10408         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10409         <bits/wordsize.h>.
10410         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10411         (__signbit): Likwise.
10412         (llrintf): Likwise.
10413         (llrint): Likwise.
10414
10415 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10416
10417         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10418         __WORDSIZE != 64.
10419
10420 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10421
10422         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10423         OVERFLOW_EXCEPTION_OK.
10424         * math/libm-test.inc ("Philosophy"): Update comment about
10425         exception testing.
10426         (OVERFLOW_EXCEPTION): Define.
10427         (OVERFLOW_EXCEPTION_OK): Likewise.
10428         (INVALID_EXCEPTION_OK): Renumber.
10429         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10430         (IGNORE_ZERO_INF_SIGN): Likewise.
10431         (test_exceptions): Handle FE_OVERFLOW.
10432         (exp10_test): Expect overflow exceptions.
10433         (exp2_test): Likewise.
10434         (expm1_test): Likewise.
10435         (nextafter_test): Likewise.
10436         (pow_test): Likewise.
10437         (scalbn_test): Likewise.
10438         (scalbln_test): Likewise.
10439
10440 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10441
10442         * sysdeps/x86_64/bits/atomic.h
10443         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10444         64bit integer.
10445         (atomic_exchange_acq): Likewise.
10446         (__arch_exchange_and_add_body): Likewise.
10447         (__arch_add_body): Likewise.
10448         (atomic_add_negative): Likewise.
10449         (atomic_add_zero): Likewise.
10450
10451 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10452
10453         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10454         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10455
10456 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10457
10458         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10459         Check __x86_64__ instead of __WORDSIZE.
10460
10461 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10462
10463         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10464
10465 2012-03-19  David S. Miller  <davem@davemloft.net>
10466
10467         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10468
10469         * sysdeps/sparc/fpu/fenv_private.h: New file.
10470         * sysdeps/sparc/fpu/math_private.h: Use it.
10471         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10472         Remove.
10473         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10474         (libc_feholdexcept_setroundl): Remove.
10475         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10476         Remove.
10477         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10478         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10479
10480 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10481
10482         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10483         int64_t instead of long int.
10484         (INSERT_WORDS64): Likwise.
10485
10486 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10487
10488         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10489         _Unwind_GetCFA return to _Unwind_Ptr first.
10490
10491 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10492
10493         [BZ #13629]
10494         * math/s_clog.c: Include <float.h>.
10495         (__clog): Scale large or subnormal inputs.
10496         * math/s_clogf.c: Likewise.
10497         * math/s_clogl.c: Likewise.
10498         * math/s_clog10.c: Include <float.h>.
10499         (M_LOG10_2): Define.
10500         (__clog10): Scale large or subnormal inputs.
10501         * math/s_clog10f.c: Likewise.
10502         * math/s_clog10l.c: Likewise.
10503         * math/libm-test.inc (clog_test): Add more tests.
10504         (clog10_test): Likewise.
10505         * sysdeps/i386/fpu/libm-test-ulps: Update.
10506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10507
10508         [BZ #11451]
10509         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10510         x and y.
10511         * math/libm-test.inc (atan2_test): Add another test.
10512
10513         * Makerules (common-objdir-compile): Remove.
10514         * sysdeps/unix/Makefile (config-generated): Do not add
10515         $(unix-generated) to variable.
10516         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10517         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10518         Remove rule.
10519         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10520         Likewise.
10521         [generic bits/local_lim.h] (before-compile): Do not append to
10522         variable.
10523         [generic bits/local_lim.h] (common-generated): Likewise.
10524         [generic sys/param.h] (before-compile): Do not append to variable.
10525         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10526         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10527         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10528         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10529         include.
10530         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10531         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10532         [generic sys/param.h] ($(addprefix
10533         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10534         [generic sys/param.h] (common-generated): Do not append to
10535         variable.
10536         [generic sys/param.h] (sysdep_headers): Likewise.
10537         [generic bits/errno.h] (before-compile): Do not append to
10538         variable.
10539         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10540         rule.
10541         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10542         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10543         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10544         [generic bits/errno.h] (common-generated): Do not append to
10545         variable.
10546         [generic bits/ioctls.h] (before-compile): Do not append to
10547         variable.
10548         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10549         rule.
10550         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10551         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10552         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10553         rule.
10554         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10555         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10556         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10557         [generic bits/ioctls.h] (common-generated): Do not append to
10558         variable.
10559         [generic sys/syscall.h] (syscall.h): Remove variable.
10560         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10561         rule.
10562         [generic sys/syscall.h] (before-compile): Do not append to
10563         variable.
10564         [generic sys/syscall.h] (common-generated): Likewise.
10565         * sysdeps/unix/errnos-tmpl.c: Remove file.
10566         * sysdeps/unix/errnos.awk: Likewise.
10567         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10568         * sysdeps/unix/ioctls.awk: Likewise.
10569         * sysdeps/unix/mk-local_lim.c: Likewise.
10570         * sysdeps/unix/snarf-ioctls: Likewise.
10571
10572 2012-03-19  Richard Henderson  <rth@twiddle.net>
10573
10574         * sysdeps/i386/fpu/fenv_private.h: New file.
10575         * sysdeps/i386/fpu/math_private.h: Use it.
10576         (math_opt_barrier, math_force_eval): Remove.
10577         (libc_feholdexcept_setround_53bit): Remove.
10578         (libc_feupdateenv_53bit): Remove.
10579         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10580         (math_opt_barrier, math_force_eval): Remove.
10581         (libc_feholdexcept): Remove.
10582         (libc_feholdexcept_setround): Remove.
10583         (libc_fetestexcept, libc_fesetenv): Remove.
10584         (libc_feupdateenv_test): Remove.
10585         (libc_feupdateenv, libc_feholdsetround): Remove.
10586         (libc_feresetround): Remove.
10587
10588         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10589         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10590
10591         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10592         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10593         (libc_feupdateenv_testl): New.
10594         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10595         (libc_feupdateenv_testf): New.
10596         (libc_feupdateenv): Use libc_feupdateenv_test.
10597         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10598         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10599
10600         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10601         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10602         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10603         (libc_feresetround_noex): New.
10604         (libc_feresetround_noexf): New.
10605         (libc_feresetround_noexl): New.
10606         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10607         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10608         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10609         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10610         SET_RESTORE_ROUND.
10611         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10612         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10613         (__cos): Likewise.
10614         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10615         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10616         SET_RESTORE_ROUND_NOEX.
10617         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10618         SET_RESTORE_ROUND_NOEXF.
10619         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10620         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10621         (libc_feholdsetroundf): New.
10622         (libc_feresetround, libc_feresetroundf): New.
10623
10624         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10625         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10626         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10627
10628         * sysdeps/generic/math_private.h: Include <fenv.h>.
10629         (default_libc_feholdexcept): New.
10630         (default_libc_feholdexcept_setround): New.
10631         (default_libc_fesetenv, default_libc_feupdateenv): New.
10632         (libc_feholdexcept): Only define if undefined.
10633         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10634         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10635         (libc_feholdexcept_setroundl): Likewise.
10636         (libc_feholdexcept_setround_53bit): Likewise.
10637         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10638         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10639         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10640         (libc_feupdateenv_53bit): Likewise.
10641         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10642         (libc_feholdexcept): Convert from macro to inline function.
10643         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10644         (libc_fesetenv, libc_feupdateenv): Likewise.
10645
10646         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10647         not previously defined.
10648         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10649         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10650         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10651         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10652         * sysdeps/ieee754/flt-32/math_private.h: New file.
10653         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10654         math_private.h below SET_FLOAT_WORD.
10655         (__isnan, __isinf_ns, __finite): Remove.
10656         (__isnanf, __isinf_nsf, __finitef): Remove.
10657
10658 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10659
10660         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10661
10662 2012-03-17  David S. Miller  <davem@davemloft.net>
10663
10664         [BZ #6471]
10665         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10666         for 2.16.
10667
10668 2012-03-16  David S. Miller  <davem@davemloft.net>
10669
10670         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10671         warnings.
10672
10673         [BZ #6471]
10674         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10675         properly.
10676         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10677         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10678         sysdep_routines when subdir is sysvipc.
10679         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10680         __getshmlba helper.
10681
10682         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10683
10684 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10685
10686         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10687         [__LP64__].
10688
10689 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10690
10691         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10692         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10693         (__lround): Renamed to ...
10694         (__llround): This.  Replace long int with long long int.
10695         Define lround functions as aliases of llround functions.
10696         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10697
10698 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10699
10700         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10701         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10702         adresses to uintptr_t.  Replace "long int" and "unsigned long
10703         int" with "greg_t" on va_arg.
10704
10705 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10706
10707         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10708         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10709
10710         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10711         Move e_machine check before EI_CLASS check.  Handle x32
10712         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10713         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10714         SKIP_EM_IA_64 and include
10715         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10716
10717         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10718         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10719         (add_system_dir): New macro.
10720
10721         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10722         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10723
10724 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10725
10726         [BZ #2551]
10727         [BZ #2552]
10728         [BZ #2553]
10729         [BZ #2554]
10730         [BZ #2562]
10731         [BZ #2563]
10732         [BZ #2565]
10733         [BZ #2566]
10734         [BZ #2576]
10735         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10736         (y0): Likewise.
10737         * math/w_j0f.c (j0f): Likewise.
10738         (y0f): Likewise.
10739         * math/w_j0l.c (__j0l): Likewise.
10740         (__y0l): Likewise.
10741         * math/w_j1.c (j1): Likewise.
10742         (y1): Likewise.
10743         * math/w_j1f.c (j1f): Likewise.
10744         (y1f): Likewise.
10745         * math/w_j1l.c (__j1l): Likewise.
10746         (__y1l): Likewise.
10747         * math/w_jn.c (jn): Likewise.
10748         (yn): Likewise.
10749         * math/w_jnf.c (jnf): Likewise.
10750         (ynf): Likewise.
10751         * math/w_jnl.c (__jnl): Likewise.
10752         (__ynl): Likewise.
10753         * math/libm-test.inc (j0_test): Add more tests.
10754         (j1_test): Likewise.
10755         (jn_test): Likewise.  Add trailing semicolon to existing test.
10756         (y0_test): Likewise.
10757         (y1_test): Likewise.
10758         * sysdeps/i386/fpu/libm-test-ulps: Update.
10759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10760
10761         [BZ #13851]
10762         [BZ #13854]
10763         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10764         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10765         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10766         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10767         (__tanl): Set errno for infinite argument.
10768         * sysdeps/i386/fpu/mptan.c: Remove.
10769         * sysdeps/i386/fpu/s_tan.S: Likewise.
10770         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10771         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10772         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10773         * math/libm-test.inc (tan_test): Add more tests and enable more
10774         tests for double and long double.
10775         * sysdeps/i386/fpu/libm-test-ulps: Update.
10776         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10777
10778 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10779
10780         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10781         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10782
10783 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10784
10785         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10786         * configure.in: Use it for both main tree and add-ons.
10787         * configure: Regenerated.
10788
10789 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10790
10791         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10792
10793 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10794
10795         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10796         in comment.
10797
10798         [BZ #13851]
10799         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10800         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10801         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10802         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10803         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10804         infinite argument.
10805         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10806         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10807         != 0 for prec == 2.
10808         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10809         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10810         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10811         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10812         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10813         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10814         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10815         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10816         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10817         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10818         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10819         * math/libm-test.inc (cos_test): Add more tests and enable more
10820         tests for long double.
10821         (sin_test): Likewise.
10822         (sincos_test): Likewise.
10823         * sysdeps/i386/fpu/libm-test-ulps: Update.
10824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10825
10826 2012-03-16  David S. Miller  <davem@davemloft.net>
10827
10828         * sysdeps/sparc/fpu/math_private.h: New file.
10829
10830 2012-03-15  David S. Miller  <davem@davemloft.net>
10831
10832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10833         file.
10834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10836         file.
10837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10838         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10839         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10840         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10841         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10842         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10843         sysdep routines.
10844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10845
10846         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10847         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10848
10849         * sysdeps/sparc/sparc-ifunc.h: New file.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10851         sparc-ifunc.h
10852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10854         Likewise.
10855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10856         Likewise.
10857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10858         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10861         Likewise.
10862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10867         Likewise.
10868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10869         Likewise.
10870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10874         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10876         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10877         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10878         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10879         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10880         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10881         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10882         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10883         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10884         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10885         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10886         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10887         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10888         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10889         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10890         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10891         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10892         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10893         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10894
10895 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10896
10897         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10898         scaling.
10899         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10900
10901 2012-03-15  Andreas Jaeger  <aj@suse.de>
10902
10903         [BZ #13852]
10904         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10905         ieee754/flt-32 implementation for sin, cos and sincos.
10906         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10907         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10908         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10909         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10910         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10911         ieee754/flt-32 implementation for tan.
10912
10913         * math/libm-test.inc (cos_test): Enable some large input tests for
10914         float as well
10915         (sin_test): Likewise.
10916         (sincos_test): Likewise.
10917         (tan_test): Add tests for large input.
10918
10919         * sysdeps/i386/fpu/libm-test-ulps: Update.
10920
10921 2012-03-15  Andreas Jaeger  <aj@suse.de>
10922
10923         [BZ #13658]
10924         * math/libm-test.inc (cos_test): Add more test cases.
10925         (sin_test): Likewise.
10926         (sincos_test): Likewise.
10927
10928 2012-03-15  Andreas Jaeger  <aj@suse.de>
10929
10930         [BZ #13837]
10931         * math/libm-test.inc (cos_test): Add a test case for large input
10932         value.
10933         (sin_test): Likewise.
10934         (sincos_test): Likewise.
10935
10936 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10937         Joseph Myers  <joseph@codesourcery.com>
10938
10939         [BZ #13658]
10940         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10941         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10942         * sysdeps/i386/fpu/branred.c: Likewise.
10943         * sysdeps/i386/fpu/dosincos.c: Likewise.
10944         * sysdeps/i386/fpu/mpa.c: Likewise.
10945         * sysdeps/i386/fpu/s_cos.S: Likewise.
10946         * sysdeps/i386/fpu/s_sin.S: Likewise.
10947         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10948         * sysdeps/i386/fpu/sincos32.c: Likewise.
10949
10950         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10951         Define.
10952         (libc_feupdateenv_53bit): Define.
10953         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10954         Define.
10955         (libc_feupdateenv_53bit): Define.
10956
10957         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10958         53 bit (without extend i386 double precision).
10959
10960         * math/libm-test.inc (sincos_test): Add tests for large input.
10961         (sin): Likewise.
10962         (cos): Likewise.
10963
10964         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10965
10966 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10967
10968         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10969
10970 2012-03-15  David S. Miller  <davem@davemloft.net>
10971
10972         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10973         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10974         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10975         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10976         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10977         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10980         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10981         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10982         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10984         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10986         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10988         file.
10989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10991         file.
10992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10994         file.
10995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10997         file.
10998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11000         fmin/fmax sysdep routines.
11001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11002
11003 2012-03-14  David S. Miller  <davem@davemloft.net>
11004
11005         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11006         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11007         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11008         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11009         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11010         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11011         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11012         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11013         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11014         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11015         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11016         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11017         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11018         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11019         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11020         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11021         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11022         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11023         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11024         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11025         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11026         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11027         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11028         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11029         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11030         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11031         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11032         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11033         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11034         routines.
11035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11036         file.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11039         file.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11042         file.
11043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11045         file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11048         file.
11049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11051         file.
11052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11053         file.
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11055         file.
11056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11057         file.
11058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11059         New file.
11060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11061         file.
11062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11063         file.
11064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11066         file.
11067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11069         file.
11070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11072         file.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11075         VIS3 routines.
11076
11077         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11078         New file.
11079
11080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11081
11082         * sysdeps/sparc/configure.in: New file.
11083         * sysdeps/sparc/configure: Generate.
11084         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11085         * configure: Regenerate.
11086         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11087         * config.make.in (have-as-vis3): New.
11088         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11089         available use -Av9d instead of -Av9a.
11090         * sysdeps/sparc/sparc64/Makefile: Likewise.
11091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11093         New file.
11094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11095         file.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11097         New file.
11098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11099         file.
11100         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11101         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11102         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11103         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11104         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11105
11106         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11107         fzeros/fnegs to load 0x80000000 into a float register instead of
11108         using the stack.
11109         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11110
11111 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11112
11113         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11114         bits/syscall.h.
11115         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11116         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11117         ($(inst_includedir)/bits/syscall.h): Remove rule.
11118         ($(objpfx)bits/syscall.d): Include instead of
11119         $(objpfx)syscall-list.d.
11120         (generated): Change syscall-list.h and syscall-list.d to
11121         bits/syscall.h and bits/syscall.d.
11122
11123 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11124
11125         [BZ #13846]
11126         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11127
11128 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11129
11130         [BZ #13841]
11131         * math/s_csqrt.c: Include <float.h>.
11132         (__csqrt): Scale large or subnormal inputs.
11133         * math/s_csqrtf.c: Likewise.
11134         * math/s_csqrtl.c: Likewise.
11135         * math/libm-test.inc (csqrt_test): Add more tests.
11136         * sysdeps/i386/fpu/libm-test-ulps: Update.
11137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11138
11139         [BZ #13840]
11140         * math/libm-test.inc (hypot_test): Add more tests.
11141
11142 2012-03-13  David S. Miller  <davem@davemloft.net>
11143
11144         [BZ #13840]
11145         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11146         double-precision for the calculation instead of scaling.
11147
11148 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11149
11150         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11151         manipulate bits before adding and subtracting TWO52[sx].
11152         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11153         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11154         Likewise.
11155         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11156
11157 2012-03-13  David S. Miller  <davem@davemloft.net>
11158
11159         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11160         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11161         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11162         rtld-global-offsets.h
11163         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11164
11165         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11166         large parameters.
11167
11168         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11169
11170         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11171         'err' in the ifdef scope in which it is actually used.
11172
11173         * nss/nss_db/db-init.c: Include string.h
11174
11175 2012-03-12  David S. Miller  <davem@davemloft.net>
11176
11177         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11178         masking out of the most significant byte of random value used.
11179         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11180         Fix coding style in previous change.
11181
11182         * sysdeps/unix/sysv/linux/kernel-features.h
11183         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11184         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11185         expression.
11186         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11187         later.
11188
11189 2012-03-11  David S. Miller  <davem@davemloft.net>
11190
11191         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11192         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11193         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11194         for 'resultvar' otherwise things get truncated on 64-bit.
11195
11196         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11197         Fix masking out of the most significant byte of random value used.
11198
11199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11200
11201 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11202
11203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11204
11205 2012-03-09  David S. Miller  <davem@davemloft.net>
11206
11207         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11208         variables with appropriate CPP guards.
11209         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11210         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11211         on resulting framesize and the management of the outregs buffer for pltexit.
11212         Preserve floating point return values across _dl_call_pltexit call.
11213         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11214         framesize and the management of the outregs buffer for pltexit.
11215         Preserve floating point return values across _dl_call_pltexit
11216         call.
11217         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11218         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11219         (print_exit): Fix format string for return register value.
11220
11221 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11222
11223         * sunrpc/Makefile (others): Add rpcgen.
11224         ($(objpfx)rpcgen): Remove special build rule and dependency on
11225         libc.
11226         * sunrpc/rpcgen.c: New file.
11227
11228 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11229
11230         [BZ #13673]
11231         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11232         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11233         * sysdeps/i386/crti.S: Likewise.
11234         * sysdeps/i386/crtn.S: Likewise.
11235         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11236         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11237         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11238         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11239         * sysdeps/sh/crti.S: Likewise.
11240         * sysdeps/sh/crtn.S: Likewise.
11241         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11242
11243         [BZ #13673]
11244         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11245         with URL.
11246         * locale/programs/locfile-kw.gperf: Likewise.
11247         * locale/programs/charmap-kw.h: Regenerated.
11248         * locale/programs/locfile-kw.h: Likewise.
11249
11250         [BZ #13673]
11251         * intl/plural.y: Replace FSF snail mail address with URL.
11252         * intl/plural.c: Regenerated.
11253
11254 2012-03-09  Richard Henderson  <rth@twiddle.net>
11255
11256         * include/math_private.h: Remove file.
11257         * math/math_private.h: Move file ...
11258         * sysdeps/generic/math_private.h: ... here.
11259
11260         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11261         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11262         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11263
11264         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11265         and <math_private.h>.
11266         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11267         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11268         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11269         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11270         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11354         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11357         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11358         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11361         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11362         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11363         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11364         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11365         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11366         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11367         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11368         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11370         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11371         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11372         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11376         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11377         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11378         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11379         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11380         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11381         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11382         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11383         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11384         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11385         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11386         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11387         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11388         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11389         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11390         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11391         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11392         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11393         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11394         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11395         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11396         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11397         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11398         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11399         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11401         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11402         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11403         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11404         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11405         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11406         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11407         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11408         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11409         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11410         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11411         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11412         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11413         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11414         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11415         * sysdeps/ieee754/k_standard.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11531         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11535         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11536         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11538         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11543         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11548         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11564         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11565         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11566         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11576         * sysdeps/ieee754/s_lib_version.c: Likewise.
11577         * sysdeps/ieee754/s_matherr.c: Likewise.
11578         * sysdeps/ieee754/s_signgam.c: Likewise.
11579         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11580         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11581         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11582         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11583         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11584         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11585         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11586         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11587         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11588         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11589         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11590         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11591         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11592         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11593         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11594         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11595         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11596         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11597         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11598         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11599         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11600
11601 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11602
11603         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11604         * sunrpc/rpc_main.c: Likewise.
11605         * sunrpc/rpc_svcout.c: Likewise.
11606
11607 2012-03-09  David S. Miller  <davem@davemloft.net>
11608
11609         * include/math_private.h: New file.
11610
11611 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11612
11613         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11614         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11615         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11616         from <bits/socket_type.h>.
11617         (enum __socket_type): Don't define here.
11618         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11619         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11620         bits/socket_type.h.
11621
11622         [BZ #13566]
11623         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11624         checking __USE_GNU.
11625
11626         * Makerules ($(inst_includedir)/%.h): New rule.
11627         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11628         (install-others): Remove variable setting.
11629         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11630
11631 2012-03-08  Richard Henderson  <rth@twiddle.net>
11632
11633         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11634         from macro to inline function; merge with the
11635         !__LIBC_INTERNAL_MATH_INLINES version.
11636         (__ieee754_sqrtf): Likewise.
11637
11638         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11639         to inline function.
11640         (__rintf, __floor, __floorf): Likewise.
11641
11642         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11643         macro to inline function.
11644         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11645
11646         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11647         not <math/math_private.h>.
11648
11649 2012-03-08  David S. Miller  <davem@davemloft.net>
11650
11651         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11652         copyright year.
11653         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11654
11655 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11656
11657         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11658         normalization.
11659         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11660         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11661
11662 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11663
11664         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11665         be defined individually, they must be defined as a block.  Define
11666         S for printing a string instead of hidint the different by using a
11667         macro for adding the 'l'.
11668         * stdio-common/tst-fphex-wide.c: Adjust.
11669
11670 2012-03-07  Marek Polacek  <polacek@redhat.com>
11671
11672         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11673
11674 2012-03-08  Marek Polacek  <polacek@redhat.com>
11675
11676         [BZ #13806]
11677         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11678         * stdio-common/tst-fphex.c: Define a few macros to make the
11679         test reusable.  Use them.
11680         * stdio-common/tst-fphex-wide.c: New file.
11681
11682 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11683
11684         [BZ #6911]
11685         * manual/macros.texi (gnusystems): New macro.
11686         (nongnusystems): Likewise.
11687         (gnulinuxhurdsystems): Likewise.
11688         (gnuhurdsystems): Likewise..
11689         (gnulinuxsystems): Likewise.
11690         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11691         variants of the GNU system, not "GNU system".
11692         * manual/conf.texi: Likewise.
11693         * manual/errno.texi: Likewise.  Update example of errno macro
11694         expansion.
11695         * manual/filesys.texi: Likewise.
11696         (getumask): Document as specific to GNU/Hurd.
11697         * manual/install.texi: Likewise.  Reword some references to
11698         GNU/Linux.
11699         * manual/intro.texi: Likewise.
11700         * manual/io.texi: Likewise.
11701         (File Name Portability): Detail which constraints are inapplicable
11702         to all GNU systems and which are only inapplicable to GNU/Hurd.
11703         * manual/job.texi: Likewise.
11704         * manual/llio.texi: Likewise.
11705         (O_NOCTTY): Document as present on GNU/Linux.
11706         * manual/maint.texi: Likewise.
11707         * manual/memory.texi: Likewise.
11708         * manual/pattern.texi: Likewise.
11709         * manual/pipe.texi: Likewise.
11710         * manual/process.texi: Likewise.
11711         * manual/resource.texi: Likewise.
11712         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11713         child on GNU/Hurd.
11714         * manual/setjmp.texi: Likewise.
11715         * manual/signal.texi: Likewise.
11716         * manual/startup.texi: Likewise.
11717         * manual/stdio.texi: Likewise.
11718         * manual/terminal.texi: Likewise.
11719         (ONLCR): Document as POSIX.
11720         (OXTABS): Document availability on GNU/Linux as XTABS.
11721         (ONOEOT): Document availability separately from other bits.
11722         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11723         * manual/time.texi: Likewise.
11724         * manual/users.texi: Likewise.
11725         * INSTALL: Regenerated.
11726         * sysdeps/gnu/errlist.c: Regenerated.
11727
11728         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11729         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11730         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11731         puts.
11732         * configure: Regenerated.
11733
11734 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11735
11736         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11737         default includes instead of AC_HEADER_CHECK.
11738         * sysdeps/i386/configure: Regenerated.
11739
11740         [BZ #10716]
11741         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11742         * math/s_cacoshf.c (__cacoshf): Likewise.
11743         * math/s_cacoshl.c (__cacoshl): Likewise.
11744         * math/s_casinh.c (__casinh): Set signs of result from argument.
11745         * math/s_casinhf.c (__casinhf): Likewise.
11746         * math/s_casinhl.c (__casinhl): Likewise.
11747         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11748         (casinh_test): Add more tests.
11749         * sysdeps/i386/fpu/libm-test-ulps: Update.
11750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11751
11752 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11753
11754         * po/zh_TW.po: Update from translation team.
11755
11756         * login/Makefile (distribute): Remove variable.
11757         * catgets/Makefile: Likewise.
11758         * mach/Makefile: Likewise.
11759         * malloc/Makefile: Likewise.
11760         * misc/Makefile: Likewise.
11761         * iconv/Makefile: Likewise.
11762         * nscd/Makefile: Likewise.
11763         * hurd/Makefile: Likewise.
11764         * manual/Makefile: Likewise.
11765         * locale/Makefile: Likewise.
11766         * intl/Makefile: Likewise.
11767         * conform/Makefile: Likewise.
11768         * nss/Makefile: Likewise.
11769         * time/Makefile: Likewise.
11770         * soft-fp/Makefile: Likewise.
11771         * dirent/Makefile: Likewise.
11772         * gmon/Makefile: Likewise.
11773         * po/Makefile: Likewise.
11774         * rt/Makefile: Likewise.
11775         * socket/Makefile: Likewise.
11776         * math/Makefile: Likewise.
11777         * signal/Makefile: Likewise.
11778         * debug/Makefile: Likewise.
11779         * elf/Makefile: Likewise.
11780         * timezone/Makefile: Likewise.
11781         * stdlib/Makefile: Likewise.
11782         * iconvdata/Makefile: Likewise.
11783         * sunrpc/Makefile: Likewise.
11784         * io/Makefile: Likewise.
11785         * argp/Makefile: Likewise.
11786         * inet/Makefile: Likewise.
11787         * hesiod/Makefile: Likewise.
11788         * grp/Makefile: Likewise.
11789         * csu/Makefile: Likewise.
11790         * wctype/Makefile: Likewise.
11791         * crypt/Makefile: Likewise.
11792         * libio/Makefile: Likewise.
11793         * string/Makefile: Likewise.
11794         * nis/Makefile: Likewise.
11795         * resolv/Makefile: Likewise.
11796         * stdio-common/Makefile: Likewise.
11797         * wcsmbs/Makefile: Likewise.
11798         * dlfcn/Makefile: Likewise.
11799         * posix/Makefile: Likewise.
11800
11801         [BZ #6959]
11802         * timezone/Makefile: Don't install timezone files, just the programs
11803         and scripts.
11804
11805 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11806
11807         * nss/databases.def: Add missing gshadow entry.
11808
11809         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11810
11811 2012-03-06  Marek Polacek  <polacek@redhat.com>
11812
11813         [BZ #13726]
11814         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11815         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11816         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11817         * stdio-common/tst-long-dbl-fphex.c: New file.
11818
11819 2012-03-06  David S. Miller  <davem@davemloft.net>
11820
11821         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11822         (set_obp_int): New function.
11823         (get_obp_int): New function.
11824         (__get_clockfreq_via_dev_openprom): Likewise.
11825         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11826         Avoid unused variable warnings on 'val' and use builtin_expect.
11827         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11828         __builtin_expect.
11829         (INLINE_CLONE_SYSCALL): Likewise.
11830
11831 2012-03-05  David S. Miller  <davem@davemloft.net>
11832
11833         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11834
11835 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11836
11837         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11838
11839         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11840         only for |x| >= 40.
11841         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11842
11843 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11844
11845         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11846         Replace gettimeofday with __vdso_gettimeofday.
11847
11848         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11849         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11850         __vdso_clock_gettime and __vdso_getcpu.
11851
11852         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11853         time with __vdso_time.
11854
11855 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11856
11857         * manual/lang.texi (size_t): Note types to which size_t may be
11858         equivalent with the GNU C Library, but do not describe when
11859         differences between them are significant.
11860
11861 2012-03-05  Andreas Jaeger  <aj@suse.de>
11862
11863         * sysdeps/i386/fpu/libm-test-ulps: Update.
11864
11865 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11866
11867         [BZ #3976]
11868         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11869         (__ieee754_pow): Save and restore rounding mode and use
11870         round-to-nearest for main computations.
11871         * math/libm-test.inc (pow_test_tonearest): New function.
11872         (pow_test_towardzero): Likewise.
11873         (pow_test_downward): Likewise.
11874         (pow_test_upward): Likewise.
11875         (main): Call the new functions.
11876         * sysdeps/i386/fpu/libm-test-ulps: Update.
11877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11878
11879         [BZ #3976]
11880         * math/libm-test.inc (cosh_test_tonearest): New function.
11881         (cosh_test_towardzero): Likewise.
11882         (cosh_test_downward): Likewise.
11883         (cosh_test_upward): Likewise.
11884         (sinh_test_tonearest): Likewise.
11885         (sinh_test_towardzero): Likewise.
11886         (sinh_test_downward): Likewise.
11887         (sinh_test_upward): Likewise.
11888         (main): Call the new functions.
11889         * sysdeps/i386/fpu/libm-test-ulps: Update.
11890         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11891
11892 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11893
11894         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11895         default stack guard is set in last bytes.
11896         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11897
11898 2012-03-05  Kees Cook  <keescook@chromium.org>
11899
11900         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11901
11902         [BZ #13656]
11903         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11904         possibly allocate from heap instead of stack.
11905         * stdio-common/bug-vfprintf-nargs.c: New file.
11906         * stdio-common/Makefile (tests): Add nargs overflow test.
11907
11908 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11909
11910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11911
11912 2012-03-03  Marek Polacek  <polacek@redhat.com>
11913
11914         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11915         * math/math_private.h: Likewise.
11916         * stdlib/tst-strtod.c: Likewise.
11917         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11918         * sysdeps/x86_64/bits/atomic.h: Likewise.
11919
11920 2012-03-02  David S. Miller  <davem@davemloft.net>
11921
11922         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11923         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11924         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11925         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11926         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11927         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11928         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11929         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11930
11931 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11932
11933         [BZ #13792]
11934         * manual/examples/README: New file, says the example source files
11935         can be used under GPL>=2.
11936         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11937         line containing just "*/".
11938         * manual/examples/add.c: Add copyright header (GPL>=2).
11939         * manual/examples/argp-ex1.c: Likewise.
11940         * manual/examples/argp-ex2.c: Likewise.
11941         * manual/examples/argp-ex3.c: Likewise.
11942         * manual/examples/argp-ex4.c: Likewise.
11943         * manual/examples/atexit.c: Likewise.
11944         * manual/examples/db.c: Likewise.
11945         * manual/examples/dir.c: Likewise.
11946         * manual/examples/dir2.c: Likewise.
11947         * manual/examples/execinfo.c: Likewise.
11948         * manual/examples/filecli.c: Likewise.
11949         * manual/examples/filesrv.c: Likewise.
11950         * manual/examples/fmtmsgexpl.c: Likewise.
11951         * manual/examples/genpass.c: Likewise.
11952         * manual/examples/inetcli.c: Likewise.
11953         * manual/examples/inetsrv.c: Likewise.
11954         * manual/examples/isockad.c: Likewise.
11955         * manual/examples/longopt.c: Likewise.
11956         * manual/examples/memopen.c: Likewise.
11957         * manual/examples/memstrm.c: Likewise.
11958         * manual/examples/mkfsock.c: Likewise.
11959         * manual/examples/mkisock.c: Likewise.
11960         * manual/examples/mygetpass.c: Likewise.
11961         * manual/examples/pipe.c: Likewise.
11962         * manual/examples/popen.c: Likewise.
11963         * manual/examples/rprintf.c: Likewise.
11964         * manual/examples/search.c: Likewise.
11965         * manual/examples/select.c: Likewise.
11966         * manual/examples/setjmp.c: Likewise.
11967         * manual/examples/sigh1.c: Likewise.
11968         * manual/examples/sigusr.c: Likewise.
11969         * manual/examples/stpcpy.c: Likewise.
11970         * manual/examples/strdupa.c: Likewise.
11971         * manual/examples/strftim.c: Likewise.
11972         * manual/examples/strncat.c: Likewise.
11973         * manual/examples/subopt.c: Likewise.
11974         * manual/examples/swapcontext.c: Likewise.
11975         * manual/examples/termios.c: Likewise.
11976         * manual/examples/testopt.c: Likewise.
11977         * manual/examples/testpass.c: Likewise.
11978         * manual/examples/timeval_subtract.c: Likewise.
11979
11980         [BZ #13792]
11981         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11982         function to ...
11983         * manual/timeval_subtract.c.texi: ... here, new file.
11984
11985 2012-03-02  David S. Miller  <davem@davemloft.net>
11986
11987         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11988
11989 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11990
11991         [BZ #3976]
11992         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11993         (__sin): Save and restore rounding mode and use round-to-nearest
11994         for all computations.
11995         (__cos): Save and restore rounding mode and use round-to-nearest
11996         for all computations.
11997         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11998         <fenv.h>.
11999         (tan): Save and restore rounding mode and use round-to-nearest for
12000         all computations.
12001         * math/libm-test.inc (cos_test_tonearest): New function.
12002         (cos_test_towardzero): Likewise.
12003         (cos_test_downward): Likewise.
12004         (cos_test_upward): Likewise.
12005         (sin_test_tonearest): Likewise.
12006         (sin_test_towardzero): Likewise.
12007         (sin_test_downward): Likewise.
12008         (sin_test_upward): Likewise.
12009         (tan_test_tonearest): Likewise.
12010         (tan_test_towardzero): Likewise.
12011         (tan_test_downward): Likewise.
12012         (tan_test_upward): Likewise.
12013         (main): Call the new functions.
12014         * sysdeps/i386/fpu/libm-test-ulps: Update.
12015         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12016
12017         [BZ #10135]
12018         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12019         small n, then large n, before computing and testing k+n.
12020         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12021         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12022         Likewise.
12023         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12024         Likewise.
12025         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12026         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12027         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12028         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12029         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12030         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12031         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12032         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12033         * math/libm-test.inc (scalbn_test): Add more tests.
12034         (scalbln_test): Likewise.
12035
12036         * manual/filesys.texi (mode_t): Describe constraints on size and
12037         signedness, not exact equivalence to a particular type.
12038         (ino_t): Likewise.
12039         (ino64_t): Likewise.
12040         (dev_t): Likewise.
12041         (nlink_t): Likewise.
12042         (blkcnt_t): Likewise.
12043         (blkcnt64_t): Likewise.
12044         * manual/llio.texi (off_t): Likewise.
12045
12046         [BZ #3976]
12047         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12048         (__ieee754_exp): Save and restore rounding mode and use
12049         round-to-nearest for all computations.
12050         * math/libm-test.inc (exp_test_tonearest): New function.
12051         (exp_test_towardzero): Likewise.
12052         (exp_test_downward): Likewise.
12053         (exp_test_upward): Likewise.
12054         (main): Call the new functions.
12055         * sysdeps/i386/fpu/libm-test-ulps: Update.
12056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12057
12058 2012-03-01  Chris Demetriou  <cgd@google.com>
12059
12060         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12061         have predictable order.
12062
12063 2012-03-01  David S. Miller  <davem@davemloft.net>
12064
12065         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12066
12067         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12068         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12069         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12070         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12071
12072         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12073         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12074         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12075         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12076         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12077         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12078         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12079         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12080         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12081
12082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12083
12084         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12085         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12086         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12087
12088         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12089         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12090         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12091         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12092         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12093         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12094         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12095         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12096         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12097         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12098         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12099         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12100         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12101         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12102         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12103         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12104         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12105         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12106         * sysdeps/sparc/elf/configure: Regenerated.
12107
12108 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12109
12110         * configure.in (AS, LD): Require binutils 2.20 or later.
12111         * configure: Regenerated.
12112         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12113         as required minimum version.
12114         * INSTALL: Regenerated.
12115
12116         [BZ #2541]
12117         [BZ #4108]
12118         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12119         before squaring exponent.
12120         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12121         bottom long double and 27 bits of top long double before squaring
12122         exponent.
12123         * math/libm-test.inc (erfc_test): Add more tests.
12124         * sysdeps/i386/fpu/libm-test-ulps: Update.
12125         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12127
12128 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12129
12130         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12131         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12132         containing bit-fields.
12133         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12134         * soft-fp/single.h (_FP_UNION_S): Likewise.
12135         * soft-fp/double.h (_FP_UNION_D): Likewise.
12136
12137 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12138
12139         [BZ #13786]
12140         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12141         not include ../strcmp.S.
12142         [USE_AS_STRNCASECMP_L]: Likewise.
12143         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12144         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12145         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12146         (__strncasecmp_l_ia32): Define as alias to
12147         __strncasecmp_l_nonascii.
12148
12149         [BZ #5794]
12150         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12151         * sysdeps/i386/fpu/libm-test-ulps: Update.
12152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12153
12154         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12155         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12156
12157 2012-02-29  Jeff Law  <law@redhat.com>
12158
12159         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12160         out of bounds read.
12161
12162 2012-02-29  Marek Polacek  <polacek@redhat.com>
12163
12164         [BZ #13706]
12165         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12166         * elf/Makefile: Add rules to run tst-unused-dep.out.
12167
12168 2012-02-28  David S. Miller  <davem@davemloft.net>
12169
12170         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12171         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12172         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12173         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12174         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12175         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12176
12177 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12178
12179         * math/libm-test.inc (llround_test): Move one test from
12180         lround_test.  Use TEST_f_L in moved test.
12181         (lround_test): Move misplaced test to llround_test.  Add testcase
12182         from bug 2561.
12183
12184 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12185
12186         * sysdeps/x86_64/fpu/e_expf.S: New file.
12187         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12188
12189 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12190
12191         [BZ #13637]
12192         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12193         of remain_len that may cause incomplete multi-byte character and
12194         false match.
12195         * posix/bug-regex33.c: New file.
12196         * posix/Makefile (tests): Add bug-regex33.
12197
12198 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12199
12200         * manual/macros.texi: New file.
12201         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12202         * manual/libc.texinfo: Include macros.texi.
12203         * manual/creatute.texi: Likewise.
12204         * manual/install.texi: Likewise.
12205         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12206         @glibcadj{} in references to the GNU C Library.
12207         * manual/charset.texi: Likewise.
12208         * manual/conf.texi: Likewise.
12209         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12210         when not using those macros.
12211         * manual/creature.texi: Likewise.
12212         * manual/crypt.texi: Likewise.
12213         * manual/errno.texi: Likewise.
12214         * manual/filesys.texi: Likewise.
12215         * manual/header.texi: Likewise.
12216         * manual/install.texi: Likewise.
12217         * manual/intro.texi: Likewise.
12218         * manual/io.texi: Likewise.
12219         * manual/job.texi: Likewise.
12220         * manual/lang.texi: Likewise.
12221         * manual/libc.texiinfo: Likewise.
12222         * manual/llio.texi: Likewise.
12223         * manual/locale.texi: Likewise.
12224         * manual/maint.texi: Likewise.
12225         * manual/math.texi: Likewise.
12226         * manual/memory.texi: Likewise.
12227         * manual/message.texi: Likewise.
12228         * manual/nss.texi: Likewise.
12229         * manual/pattern.texi: Likewise.
12230         * manual/process.texi: Likewise.
12231         * manual/resource.texi: Likewise.
12232         * manual/search.texi: Likewise.
12233         * manual/setjmp.texi: Likewise.
12234         * manual/signal.texi: Likewise.
12235         * manual/socket.texi: Likewise.
12236         * manual/startup.texi: Likewise.
12237         * manual/stdio.texi: Likewise.
12238         * manual/string.texi: Likewise.
12239         * manual/sysinfo.texi: Likewise.
12240         * manual/syslog.texi: Likewise.
12241         * manual/terminal.texi: Likewise.
12242         * manual/time.texi: Likewise.
12243         * manual/users.texi: Likewise.
12244         * INSTALL: Regenerated.
12245         * NOTES: Regenerated.
12246         * sysdeps/gnu/errlist.c: Regenerated.
12247
12248 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12249
12250         * include/dirent.h: Include <dirstream.h> before
12251         <dirent/dirent.h>.
12252
12253 2012-02-28  David S. Miller  <davem@davemloft.net>
12254
12255         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12256         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12257         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12258         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12259
12260 2012-02-27  David S. Miller  <davem@davemloft.net>
12261
12262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12264         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12265         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12266
12267         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12268         frame pointer instead of stack pointer relative arg slot.
12269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12270         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12271         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12272
12273 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12274
12275         [BZ #3992]
12276         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12277
12278 2012-02-27  David S. Miller  <davem@davemloft.net>
12279
12280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12281         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12282         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12283         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12284         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12285         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12286         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12287         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12288
12289 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12290
12291         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12292         later.  Allow versions 5-9.
12293         * configure: Regenerated.
12294         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12295         required minimum version and 4.6 as recommended version.  Do not
12296         mention bugs in GCC 2.7 and 2.8.
12297         * INSTALL: Regenerated.
12298
12299 2012-02-27  David S. Miller  <davem@davemloft.net>
12300
12301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12305         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12306         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12307         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12308         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12309
12310         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12311         manipulate bits before adding and subtracting TWO112[sx].
12312         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12313
12314 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12315
12316         [BZ #13775]
12317         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12318         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12319         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12320         being in POSIX, because they are in 1003.1-2008.
12321
12322         * rt/tst-aio.c: Include <fcntl.h>.
12323         * rt/tst-aio7.c: Likewise.
12324         * rt/tst-aio64.c: Likewise.
12325
12326         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12327
12328 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12329
12330         * manual/install.texi (--with-headers): Describe headers as
12331         interface headers, not private headers.
12332         (Specific advice for GNU/Linux systems): Describe use of headers
12333         from "make headers_install", not private headers from older
12334         kernels.
12335         * INSTALL: Regenerated.
12336         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12337         Change to 2.6.19.
12338         * sysdeps/unix/sysv/linux/configure: Regenerated.
12339
12340         * manual/llio.texi (fclean): Remove documentation.
12341
12342         * manual/Makefile (libc-texi-generated): New variable.  Include
12343         version.texi.
12344         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12345         $(libc-texi-generated), not duplicated list of files.
12346         (version.texi, stamp-version): New rules.
12347         (realclean): Remove $(libc-texi-generated), not individual files
12348         from that list.  Do not remove dir-add.texinfo.
12349         * manual/libc.texinfo: Comment out uses of edition numbers and
12350         references to printed manual.  Remove last-updated dates.
12351         (EDITION): Comment out.
12352         (ISBN): Likewise.
12353         (VERSION, UPDATED): Remove.
12354         (version.texi): Include.
12355
12356 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12357
12358         * sysdeps/posix/spawni.c: Include <signal.h>.
12359         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12360         * sysdeps/pthread/aio_fsync.c: Likewise.
12361
12362 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12363
12364         * conform/Makefile (tests): Run only when not cross-compiling and
12365         when fast-check is not defined.
12366
12367         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12368         * conform/data/limits.h-data: Fixes for POSIX2008.
12369         * conform/run-conformtest.sh: Run all tests.
12370         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12371         headers.
12372         * include/bits/dlfcn.h: Likewise.
12373         * include/langinfo.h: Likewise.
12374         * include/monetary.h: Likewise.
12375         * include/sys/poll.h: Likewise.
12376
12377         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12378         for __USE_GNU.
12379         * posix/spawn.h: Define __need_sigset_t.
12380         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12381         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12382         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12383         to get sigevent_t only.
12384         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12385         only for __USE_GNU.
12386         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12387         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12388         process_vm_writev only for __USE_GNU.
12389         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12390
12391         * conform/Makefile: For now ignore errors from run-conformtest.
12392         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12393         POSIX to avoid namespace pollution.  Don't prepend headers.
12394         * conform/data/aio.h-data: Fixes for POSIX testing.
12395         * conform/data/fcntl.h-data: Likewise.
12396         * conform/data/glob.h-data: Likewise.
12397         * conform/data/grp.h-data: Likewise.
12398         * conform/data/pthread.h-data: Likewise.
12399         * conform/data/pwd.h-data: Likewise.
12400         * conform/data/signal.h-data: Likewise.
12401         * conform/data/spawn.h-data: Likewise.
12402         * conform/data/stdio.h-data: Likewise.
12403         * conform/data/stdlib.h-data: Likewise.
12404         * conform/data/stropts.h-data: Likewise.
12405         * conform/data/sys/mman.h-data: Likewise.
12406         * conform/data/sys/stat.h-data: Likewise.
12407         * conform/data/sys/types.h-data: Likewise.
12408         * conform/data/sys/wait.h-data: Likewise.
12409         * conform/data/time.h-data: Likewise.
12410         * conform/data/unistd.h-data: Likewise.
12411         * conform/data/utime.h-data: Likewise.
12412
12413         * io/sys/stat.h: fchmod was always in POSIX.
12414         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12415         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12416         * rt/aio.h: Define __need_timespec before including <time.h>.
12417         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12418         struct.  Add forward declaration of pthread_attr_t and use it in
12419         sigevent.
12420         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12421         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12422         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12423         always remove CLK_TCK definition.
12424
12425 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12426
12427         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12428
12429 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12430
12431         * conform/run-conformtest.sh: New file.
12432         * conform/Makefile: Run run-conformtest for tests.
12433         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12434         support.
12435
12436         * conform/data/uchar.h-data: New file.
12437         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12438         * conform/data/arpa/inet.h-data: Likewise.
12439         * conform/data/assert.h-data: Likewise.
12440         * conform/data/complex.h-data: Likewise.
12441         * conform/data/cpio.h-data: Likewise.
12442         * conform/data/ctype.h-data: Likewise.
12443         * conform/data/dirent.h-data: Likewise.
12444         * conform/data/dlfcn.h-data: Likewise.
12445         * conform/data/errno.h-data: Likewise.
12446         * conform/data/fcntl.h-data: Likewise.
12447         * conform/data/float.h-data: Likewise.
12448         * conform/data/fmtmsg.h-data: Likewise.
12449         * conform/data/fnmatch.h-data: Likewise.
12450         * conform/data/ftw.h-data: Likewise.
12451         * conform/data/glob.h-data: Likewise.
12452         * conform/data/grp.h-data: Likewise.
12453         * conform/data/iconv.h-data: Likewise.
12454         * conform/data/inttypes.h-data: Likewise.
12455         * conform/data/langinfo.h-data: Likewise.
12456         * conform/data/libgen.h-data: Likewise.
12457         * conform/data/limits.h-data: Likewise.
12458         * conform/data/locale.h-data: Likewise.
12459         * conform/data/math.h-data: Likewise.
12460         * conform/data/monetary.h-data: Likewise.
12461         * conform/data/mqueue.h-data: Likewise.
12462         * conform/data/ndbm.h-data: Likewise.
12463         * conform/data/net/if.h-data: Likewise.
12464         * conform/data/netdb.h-data: Likewise.
12465         * conform/data/netinet/in.h-data: Likewise.
12466         * conform/data/nl_types.h-data: Likewise.
12467         * conform/data/poll.h-data: Likewise.
12468         * conform/data/pthread.h-data: Likewise.
12469         * conform/data/pwd.h-data: Likewise.
12470         * conform/data/regex.h-data: Likewise.
12471         * conform/data/sched.h-data: Likewise.
12472         * conform/data/search.h-data: Likewise.
12473         * conform/data/semaphore.h-data: Likewise.
12474         * conform/data/setjmp.h-data: Likewise.
12475         * conform/data/signal.h-data: Likewise.
12476         * conform/data/spawn.h-data: Likewise.
12477         * conform/data/stdarg.h-data: Likewise.
12478         * conform/data/stdio.h-data: Likewise.
12479         * conform/data/stdlib.h-data: Likewise.
12480         * conform/data/string.h-data: Likewise.
12481         * conform/data/strings.h-data: Likewise.
12482         * conform/data/stropts.h-data: Likewise.
12483         * conform/data/sys/ipc.h-data: Likewise.
12484         * conform/data/sys/mman.h-data: Likewise.
12485         * conform/data/sys/msg.h-data: Likewise.
12486         * conform/data/sys/resource.h-data: Likewise.
12487         * conform/data/sys/select.h-data: Likewise.
12488         * conform/data/sys/sem.h-data: Likewise.
12489         * conform/data/sys/shm.h-data: Likewise.
12490         * conform/data/sys/socket.h-data: Likewise.
12491         * conform/data/sys/stat.h-data: Likewise.
12492         * conform/data/sys/statvfs.h-data: Likewise.
12493         * conform/data/sys/time.h-data: Likewise.
12494         * conform/data/sys/timeb.h-data: Likewise.
12495         * conform/data/sys/times.h-data: Likewise.
12496         * conform/data/sys/types.h-data: Likewise.
12497         * conform/data/sys/uio.h-data: Likewise.
12498         * conform/data/sys/un.h-data: Likewise.
12499         * conform/data/sys/utsname.h-data: Likewise.
12500         * conform/data/sys/wait.h-data: Likewise.
12501         * conform/data/syslog.h-data: Likewise.
12502         * conform/data/tar.h-data: Likewise.
12503         * conform/data/termios.h-data: Likewise.
12504         * conform/data/utime.h-data: Likewise.
12505         * conform/data/utmpx.h-data: Likewise.
12506         * conform/data/varargs.h-data: Likewise.
12507         * conform/data/wchar.h-data: Likewise.
12508         * conform/data/wctype.h-data: Likewise.
12509         * conform/data/wordexp.h-data: Likewise.
12510
12511         * include/stropts.h: New file.
12512         * include/uchar.h: New file.
12513         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12514         * include/assert.h: Likewise.
12515         * include/ctype.h: Likewise.
12516         * include/dirent.h: Likewise.
12517         * include/dlfcn.h: Likewise.
12518         * include/fcntl.h: Likewise.
12519         * include/fnmatch.h: Likewise.
12520         * include/glob.h: Likewise.
12521         * include/grp.h: Likewise.
12522         * include/libio.h: Likewise.
12523         * include/locale.h: Likewise.
12524         * include/math.h: Likewise.
12525         * include/net/if.h: Likewise.
12526         * include/netdb.h: Likewise.
12527         * include/netinet/in.h: Likewise.
12528         * include/pthread.h: Likewise.
12529         * include/pwd.h: Likewise.
12530         * include/regex.h: Likewise.
12531         * include/sched.h: Likewise.
12532         * include/search.h: Likewise.
12533         * include/setjmp.h: Likewise.
12534         * include/signal.h: Likewise.
12535         * include/stdio.h: Likewise.
12536         * include/stdlib.h: Likewise.
12537         * include/string.h: Likewise.
12538         * include/sys/cdefs.h: Likewise.
12539         * include/sys/mman.h: Likewise.
12540         * include/sys/msg.h: Likewise.
12541         * include/sys/resource.h: Likewise.
12542         * include/sys/select.h: Likewise.
12543         * include/sys/socket.h: Likewise.
12544         * include/sys/stat.h: Likewise.
12545         * include/sys/statvfs.h: Likewise.
12546         * include/sys/time.h: Likewise.
12547         * include/sys/times.h: Likewise.
12548         * include/sys/uio.h: Likewise.
12549         * include/sys/utsname.h: Likewise.
12550         * include/sys/wait.h: Likewise.
12551         * include/termios.h: Likewise.
12552         * include/time.h: Likewise.
12553         * include/ulimit.h: Likewise.
12554         * include/unistd.h: Likewise.
12555         * include/utime.h: Likewise.
12556         * include/wchar.h: Likewise.
12557         * include/wctype.h: Likewise.
12558         * include/wordexp.h: Likewise.
12559
12560         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12561
12562         * time/time.h: TIME_UTC must be a macro.
12563         Make timespec_get available for ISO C11 only as well.
12564
12565 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12566
12567         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12568         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12569
12570 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12571
12572         * configure.in: Use -o not -a in test for unsupported multi-arch.
12573
12574 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12575
12576         * manual/texinfo.tex: Update to version 2012-01-19.16.
12577
12578 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12579
12580         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12581
12582 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12583
12584         [BZ #13738]
12585         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12586         * manual/fdl-1.3.texi: New file.
12587         * manual/fdl-1.1.texi: File removed.
12588
12589         [BZ #13738]
12590         * manual/libc.texinfo (FDL_VERSION): New @set.
12591         Use it for mention of FDL in cover text.
12592         (Documentation License): Use it in @include file name.
12593
12594 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12595             Roland McGrath  <roland@hack.frob.com>
12596
12597         [BZ #5461]
12598         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12599         not LONG_LONG_MAX and LONG_LONG_MIN.
12600         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12601         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12602         name.
12603         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12604
12605 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12606
12607         [BZ #2547]
12608         [BZ #11365]
12609         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12610         manipulate bits before adding and subtracting TWO23[sx].
12611         * math/libm-test.inc (nearbyint_test): Add more tests.
12612
12613 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12614
12615         [BZ #2548]
12616         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12617         bits before adding and subtracting TWO23[sx].
12618         * math/libm-test.inc (rint_test): Add more tests.
12619         (rint_test_tonearest): Likewise.
12620         (rint_test_towardzero): Likewise.
12621         (rint_test_downward): Likewise.
12622         (rint_test_upward: Likewise.
12623
12624 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12625
12626         [BZ #10110]
12627         * include/stdc-predef.h: New file.  Extracted from features.h.
12628         * include/features.h: Include stdc-predef.h.
12629         * Makefile (headers): Add stdc-predef.h.
12630         * CONFORMANCE (Compiler limitations): Update.
12631
12632 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12633
12634         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12635
12636 2012-02-21  David S. Miller  <davem@davemloft.net>
12637
12638         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12639         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12640
12641 2012-02-20  David S. Miller  <davem@davemloft.net>
12642
12643         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12644         using a normal save/restore sequence, rather than allocating a
12645         dummy stack frame just to store a frame pointer and restore.
12646         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12647
12648 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12649
12650         * manual/install.texi: Fix stray word in line-wrapped comment.
12651
12652 2012-02-20  David S. Miller  <davem@davemloft.net>
12653
12654         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12655         both binutils and gcc support GOTDATA.
12656
12657         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12658         "rd %pc" in the PIC register setup sequences.
12659
12660         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12661         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12662         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12663         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12664         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12665         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12666         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12667         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12668         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12669         (SYSCALL_ERROR_HANDLER): Likewise.
12670         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12671         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12672         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12673         (SYSCALL_ERROR_HANDLER): Likewise.
12674
12675         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12676         (HAVE_GCC_GOTDATA): New.
12677         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12678         relocation support in both binutils and gcc.
12679         * sysdeps/sparc/elf/configure: Regenerate.
12680
12681         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12682         * sysdeps/sparc/sparc32/elf/configure: Delete.
12683         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12684         * sysdeps/sparc/sparc64/elf/configure: Delete.
12685         * sysdeps/sparc/elf/configure.in: New file.
12686         * sysdeps/sparc/elf/configure: Generate.
12687
12688         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12689         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12690         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12691         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12692         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12693
12694 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12695
12696         * manual/install.texi: Do not mention specific glibc version
12697         numbers.
12698         * manual/libc.texinfo (VERSION, UPDATED): Update.
12699         (@copying): Use @copyright{} and range of years.
12700
12701 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12702
12703         [BZ #13695]
12704         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12705         [crti.S not in sysdirs] (generated): Do not append.
12706         [crti.S not in sysdirs] (omit-deps): Likewise.
12707         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12708         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12709         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12710         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12711         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12712         Likewise.
12713         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12714         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12715         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12716         * csu/defs.awk: Remove file.
12717         * sysdeps/generic/initfini.c: Likewise.
12718         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12719         variable.
12720         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12721         Likewise.
12722
12723 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12724
12725         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12726         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12727         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12728         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12729         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12730         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12731         <bits/epoll.h>.
12732         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12733         (__EPOLL_PACKED): Define to empty if not defined by
12734         <bits/epoll.h>.
12735         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12736         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12737         bits/epoll.h.
12738
12739 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12740
12741         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12742         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12743         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12744         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12745         <bits/timerfd.h>.
12746         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12747         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12748         bits/timerfd.h.
12749
12750 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12751
12752         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12753         in C locale.
12754         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12755         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12756         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12758
12759 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12760
12761         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12762         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12763
12764 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12765
12766         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12767         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12768         defined.
12769         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12770         Likewise.
12771         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12772         entry for 2.16.
12773
12774 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12775
12776         * math/w_acos.c: Use non-signaling floating-point comparisons.
12777         * math/w_acosf.c: Likewise.
12778         * math/w_acosh.c: Likewise.
12779         * math/w_acoshf.c: Likewise.
12780         * math/w_acoshl.c: Likewise.
12781         * math/w_acosl.c: Likewise.
12782         * math/w_asin.c: Likewise.
12783         * math/w_asinf.c: Likewise.
12784         * math/w_asinl.c: Likewise.
12785         * math/w_atanh.c: Likewise.
12786         * math/w_atanhf.c: Likewise.
12787         * math/w_atanhl.c: Likewise.
12788         * math/w_exp2.c: Likewise.
12789         * math/w_exp2f.c: Likewise.
12790         * math/w_exp2l.c: Likewise.
12791         * math/w_j0.c: Likewise.
12792         * math/w_j0f.c: Likewise.
12793         * math/w_j0l.c: Likewise.
12794         * math/w_j1.c: Likewise.
12795         * math/w_j1f.c: Likewise.
12796         * math/w_j1l.c: Likewise.
12797         * math/w_jn.c: Likewise.
12798         * math/w_jnf.c: Likewise.
12799         * math/w_log.c: Likewise.
12800         * math/w_log10.c: Likewise.
12801         * math/w_log10f.c: Likewise.
12802         * math/w_log10l.c: Likewise.
12803         * math/w_log2.c: Likewise.
12804         * math/w_log2f.c: Likewise.
12805         * math/w_log2l.c: Likewise.
12806         * math/w_logf.c: Likewise.
12807         * math/w_logl.c: Likewise.
12808         * math/w_sqrt.c: Likewise.
12809         * math/w_sqrtf.c: Likewise.
12810         * math/w_sqrtl.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12813         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12814         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12815         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12816
12817 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12818
12819         [BZ #9739]
12820         * manual/string.texi (strnlen): Use correct parameter name in
12821         equivalent expression.
12822
12823 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12824
12825         [BZ #11174]
12826         * manual/users.texi (seteuid): Consistently use neweuid for
12827         argument name.
12828
12829 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12830
12831         [BZ #13704]
12832         * manual/nss.texi (Services in the NSS configuration): Correct
12833         list of services in example configuration file.
12834
12835 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12836
12837         [BZ #11322]
12838         * manual/arith.texi: Remove statements about negative zero
12839         behaving identically to zero.
12840
12841 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12842
12843         [BZ #5993]
12844         * manual/install.texi: Do not document upgrading from libc5.
12845
12846 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12847
12848         [BZ #4596]
12849         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12850
12851 2012-02-18  David S. Miller  <davem@davemloft.net>
12852
12853         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12854         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12855         %o7 across the call.
12856         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12857         instead.
12858         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12859         SETUP_PIC_REG_LEAF.
12860         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12861         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12862         * sysdeps/sparc/crtn.S: Likewise.
12863
12864 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12865
12866         * aout/Makefile: Remove.
12867
12868 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12869
12870         [BZ #13058]
12871         * manual/examples/argp-ex1.c (main): Format definition in GNU
12872         style.
12873         * manual/examples/argp-ex2.c (main): Likewise.
12874         * manual/examples/argp-ex3.c (main): Likewise.
12875         * manual/examples/argp-ex4.c (main): Likewise.
12876         * manual/examples/longopt.c (main): Use new-style prototype
12877         definition.
12878         * manual/examples/strncat.c (main): Specify return type and use
12879         (void) for arguments.
12880         * manual/examples/subopt.c (main): Use char **argv argument.
12881
12882 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12883
12884         [BZ #5077]
12885         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12886         rounding modes.
12887
12888 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12889
12890         [BZ #6907]
12891         * manual/string.texi (strchr): Change when strchrnul is
12892         recommended.
12893
12894 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12895
12896         [BZ #174]
12897         * manual/locale.texi (setlocale): Document LOCPATH.
12898
12899 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12900
12901         [BZ #10210]
12902         * manual/process.texi (execle): Move @dots{} before last argument.
12903
12904 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12905
12906         [BZ #12047]
12907         * manual/charset.texi (Generic Charset Conversion): Fix typo
12908         (LC_TYPE -> LC_CTYPE).
12909
12910 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12911
12912         [BZ #5805]
12913         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12914         (scalbnf): Likewise.
12915         (scalbnl): Likewise.
12916         (scalbln): Likewise.
12917         (scalblnf): Likewise.
12918         (scalblnl): Likewise.
12919         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12920         (vwarnx): Likewise.
12921         (verr): Likewise.
12922         (verrx): Likewise.
12923         * manual/filesys.texi (telldir): Use braces around return type.
12924         * manual/llio.texi (mmap): Add space after comma.
12925         (mmap64): Likewise.
12926         * manual/math.texi (jn): Use @var{} on parameter names.
12927         (jnf): Likewise.
12928         (jnl): Likewise.
12929         (yn): Likewise.
12930         (ynf): Likewise.
12931         (ynl): Likewise.
12932         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12933         line.
12934         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12935         "...".
12936         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12937         (sched_get_priority_max): Likewise.
12938         * manual/signal.texi (sigvec): Add space after comma.
12939         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12940         names.
12941         (if_indextoname): Likewise.
12942         (if_freenameindex): Likewise.
12943         (sendto): Use ',' instead of '.' in prototype.
12944         * manual/startup.texi (syscall): Use @dots{} instead of literal
12945         "...".
12946         * manual/stdio.texi (__fpending): Separate initial words of
12947         paragraph from @deftypefun line.
12948         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12949         "...".
12950         (vsyslog): Use @var{} on parameter names.
12951         * manual/terminal.texi (stty): Use @var{} on parameter names.
12952         * manual/users.texi (getutmp): Use @var{} on parameter names.
12953         (getutmpx): Likewise.
12954
12955 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12956
12957         [BZ #6884]
12958         * manual/stdio.texi (fopen): Fix typos in description of
12959         ",ccs=STRING".
12960
12961 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12962
12963         [BZ #4026]
12964         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12965         get clock_id definition.
12966
12967 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12968
12969         [BZ #4822]
12970         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12971         (madvise): Cast every argument to void on its own.
12972
12973 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12974
12975         [BZ #9902]
12976         * manual/startup.texi (Exit Status): Fix typo.
12977
12978 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12979
12980         [BZ #10140]
12981         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12982         * manual/examples/argp-ex2.c: Likewise.
12983         * manual/examples/argp-ex3.c: Likewise.
12984
12985 2012-02-16  Richard Henderson  <rth@redhat.com>
12986
12987         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12988         * sysdeps/s390/s390-32/initfini.c: Remove.
12989         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12990         * sysdeps/s390/s390-64/initfini.c: Remove.
12991
12992 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12993
12994         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12995         compiler output for sysdeps/generic/initfini.c.
12996         * sysdeps/sh/elf/initfini.c: Remove file.
12997
12998 2012-02-16  David S. Miller  <davem@davemloft.net>
12999
13000         [BZ #11494]
13001         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13002
13003         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13004         * sysdeps/sparc/crti.S: New file.
13005         * sysdeps/sparc/crtn.S: New file.
13006         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13007         * sysdeps/sparc/sparc64/Makefile: Likewise.
13008
13009 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13010
13011         [BZ #3335]
13012         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13013
13014 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13015
13016         [BZ #4822]
13017         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13018
13019         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13020         (write, read, close): Likewise.
13021         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13022
13023 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13024
13025         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13026         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13027         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13028         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13029         <bits/signalfd.h>.
13030         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13031         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13032         bits/signalfd.h.
13033
13034 2012-02-14  Marek Polacek  <polacek@redhat.com>
13035
13036         * sysdeps/x86_64/crti.S: New file.
13037         * sysdeps/x86_64/crtn.S: New file.
13038         * sysdeps/x86_64/elf/initfini.c: Remove file.
13039
13040 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13041
13042         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13043         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13044         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13045         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13046         <bits/inotify.h>.
13047         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13048         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13049         bits/inotify.h.
13050
13051 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13052
13053         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13054         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13055         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13056         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13057         <bits/eventfd.h>.
13058         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13059         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13060         bits/eventfd.h.
13061
13062 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13063
13064         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13065         __feraiseexcept instead of feraiseexcept.
13066
13067         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13068         nanosleep invocations.
13069         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13070         strings, and add error checking for a nanosleep invocations.
13071
13072 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13073
13074         Replace FSF snail mail address with URLs, as per GNU coding standards.
13075         Most of the snail mail addresses were wrong anyway, and omitting
13076         them makes the source code easier to maintain.  Almost all of the
13077         changes are to license notices and to locale LC_IDENTIFICATION
13078         addresses, except for this one:
13079         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13080         not its snail mail address.
13081
13082 2012-02-09  Richard Henderson  <rth@twiddle.net>
13083
13084         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13085         of kernel-features.h.
13086
13087         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13088
13089 2012-02-08  Marek Polacek  <polacek@redhat.com>
13090
13091         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13092         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13093         * sysdeps/gnu/_G_config.h: Likewise.
13094         * sysdeps/generic/_G_config.h: Likewise.
13095
13096 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13097
13098         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13099         tests.
13100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13101
13102         * sysdeps/powerpc/powerpc32/crti.S: New file.
13103         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13104         * sysdeps/powerpc/powerpc64/crti.S: New file.
13105         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13106
13107         * Makeconfig (have-initfini): Don't set.
13108         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13109         * configure.in (nopic_initfini): Don't substitute.
13110         * config.h.in (HAVE_INITFINI): Don't #undef.
13111         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13112         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13113
13114 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13115
13116         Support crti.S and crtn.S provided directly by architectures.
13117         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13118         [crti.S in sysdirs] (omit-deps): Likewise.
13119         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13120         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13121         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13122         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13123         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13124         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13125         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13126         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13127         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13128         compiler output for sysdeps/generic/initfini.c.
13129         * sysdeps/i386/elf/Makefile: Remove file.
13130         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13131
13132 2012-02-07  Marek Polacek  <polacek@redhat.com>
13133
13134         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13135         * sysdeps/gnu/_G_config.h: Likewise.
13136         * sysdeps/mach/hurd/_G_config.h: Likewise.
13137
13138 2012-02-07  Marek Polacek  <polacek@redhat.com>
13139
13140         * math/Makefile (tests): Add tst-CMPLX2.
13141         * math/tst-CMPLX2.c: New file.
13142
13143 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13144
13145         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13146
13147         * math/libm-test.inc (jn_test): Add missing L suffix.
13148
13149 2012-02-06  Marek Polacek  <polacek@redhat.com>
13150
13151         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13152         * sysdeps/i386/fpu/e_powf.S: Likewise.
13153         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13154         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13155         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13156         * sysdeps/i386/fpu/e_pow.S: Likewise.
13157         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13158         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13159         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13160         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13161         * sysdeps/i386/fpu/e_log2.S: Likewise.
13162         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13163         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13164         * sysdeps/i386/fpu/e_powl.S: Likewise.
13165         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13166         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13167         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13168         * sysdeps/i386/fpu/e_logl.S: Likewise.
13169         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13170         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13171         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13172         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13173         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13174         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13175         * sysdeps/i386/fpu/e_log.S: Likewise.
13176         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13177         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13178         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13179         * sysdeps/i386/fpu/e_logf.S: Likewise.
13180         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13181         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13182         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13183         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13184         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13185         * sysdeps/i386/fpu/e_log10.S: Likewise.
13186         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13187         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13188         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13189         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13190         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13191         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13192         * sysdeps/i386/asm-syntax.h: Likewise.
13193         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13194         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13195         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13196         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13197         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13198         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13199         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13200         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13201         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13202         * sysdeps/powerpc/sysdep.h: Likewise.
13203         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13204         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13205
13206 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13207
13208         [BZ #411]
13209         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13210
13211 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13212
13213         * sysdeps/i386/sysdep.h: Include <features.h>.
13214         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13215         version.
13216
13217 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13218
13219         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13220         Define.
13221         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13222         LOAD_PIC_REG_STR.
13223
13224 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13225
13226         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13227         (SETUP_PIC_REG): Use GET_PC_THUNK.
13228         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13229         macro.
13230
13231 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13232
13233         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13234         for non-PIC compilation.
13235         (SETUP_PIC_REG): Add .p2align directive.
13236         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13237         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13241         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13242         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13243         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13244         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13245         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13246         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13247         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13248         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13249         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13250         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13251         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13252         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13253         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13254         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13255         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13256         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13257         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13258         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13259         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13260         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13261         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13262         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13263         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13264         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13265         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13266         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13267         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13268         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13269         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13270         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13271         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13272         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13273         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13274         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13275         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13276         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13277
13278 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13279
13280         * math/tst-CMPLX.c: Include <stdio.h>.
13281
13282 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13283
13284         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13285         float.
13286         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13287         * sysdeps/sparc/bits/mathdef.h: Likewise.
13288
13289 2012-01-31  Marek Polacek  <polacek@redhat.com>
13290
13291         * libio/libio.h: Don't define _PARAMS.
13292         * locale/programs/config.h: Don't define PARAMS.
13293         * stdlib/strtol_l.c: Likewise.
13294         (__strtol_l): Remove PARAMS from the prototype.
13295
13296 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13297
13298         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13299         names.  Just use the correct names.  Remove unnecessary wrapper
13300         functions.
13301         * malloc/arena.c: Likewise.
13302         * malloc/hooks.c: Likewise.
13303
13304         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13305         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13306         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13307
13308 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13309
13310         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13311         into tail calls.
13312         (update_get_addr): New function.
13313         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13314         GET_ADDR_MODULE parameter.
13315
13316 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13317
13318         * crypt/cert.c: Remove __STDC__ conditionals.
13319         * crypt/crypt-entry.c: Likewise.
13320         * crypt/crypt_util.c: Likewise.
13321         * libio/filedoalloc.c: Likewise.
13322         * libio/fileops.c: Likewise.
13323         * libio/genops.c: Likewise.
13324         * libio/iofclose.c: Likewise.
13325         * libio/iofdopen.c: Likewise.
13326         * libio/iofopen.c: Likewise.
13327         * libio/iofopen64.c: Likewise.
13328         * libio/iogetdelim.c: Likewise.
13329         * libio/iopopen.c: Likewise.
13330         * libio/obprintf.c: Likewise.
13331         * libio/oldfileops.c: Likewise.
13332         * libio/oldiofclose.c: Likewise.
13333         * libio/oldiofdopen.c: Likewise.
13334         * libio/oldiofopen.c: Likewise.
13335         * libio/oldiopopen.c: Likewise.
13336         * libio/wfiledoalloc.c: Likewise.
13337         * libio/wgenops.c: Likewise.
13338         * locale/programs/xmalloc.c: Likewise.
13339         * misc/syslog.c: Likewise.
13340         * stdio-common/xbug.c: Likewise.
13341         * string/memchr.c: Likewise.
13342         * string/memcmp.c: Likewise.
13343         * string/memrchr.c: Likewise.
13344         * string/rawmemchr.c: Likewise.
13345         * sysdeps/posix/getcwd.c: Likewise.
13346         * time/strftime_l.c: Likewise.
13347
13348 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13349
13350         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13351         * config.make.in (config-cflags-sse2avx): Define.
13352         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13353         Fix typo.
13354
13355 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13356
13357         * scripts/config.guess: Update from upstream config git repository.
13358         * scripts/config.sub: Likewise.
13359
13360 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13361
13362         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13363         (EM_NUM): Update.
13364         (R_TILEPRO_*, R_TILEGX_*): New macros.
13365
13366         * scripts/firstversions.awk: Fix bug in version range handling.
13367
13368         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13369
13370         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13371
13372         * include/sys/epoll.h: New file.
13373         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13374         libc_hidden_def.
13375
13376 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13377
13378         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13379         Avoid unnecessary __WORDSIZE == 64 test.
13380         (fmaxf): Use VEX format if possible.
13381         (fmax): Likewise.
13382         (fminf): Likewise.
13383         (fmin): Likewise.
13384
13385         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13386         * math/math_private.h: Remove libc_fegetround* and
13387         libc_fesetround*.
13388         * sysdeps/i386/configure.in: Check for -msse2avx.
13389         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13390         also if SSE2AVX is defined.
13391         Remove libc_fegetround* and libc_fesetround*.
13392         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13393         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13394         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13395         of HAS_YMM_USABLE.
13396         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13397         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13398         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13399         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13400         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13401
13402         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13403
13404 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13405
13406         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13407         size is not set.
13408         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13409
13410 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13411
13412         [BZ #13618]
13413         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13414         relocation.
13415         * Makeconfig (libm): Define.
13416         * elf/Makefile: Add rules to build and run tst-relsort1.
13417         * elf/tst-relsort1.c: New file.
13418         * elf/tst-relsort1mod1.c: New file.
13419         * elf/tst-relsort1mod2.c: New file.
13420
13421 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * math/s_ldexp.c: Remove __STDC__ conditionals.
13424         * math/s_ldexpf.c: Likewise.
13425         * math/s_ldexpl.c: Likewise.
13426         * math/s_nextafter.c: Likewise.
13427         * math/s_nexttowardf.c: Likewise.
13428         * math/s_significand.c: Likewise.
13429         * math/s_significandf.c: Likewise.
13430         * math/s_significandl.c: Likewise.
13431         * math/w_jnl.c: Likewise.
13432         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13433         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13434         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13435         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13436         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13437         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13438         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13439         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13440         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13441         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13442         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13443         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13444         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13445         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13446         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13447         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13448         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13449         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13450         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13451         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13452         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13453         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13454         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13455         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13456         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13457         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13458         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13459         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13460         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13461         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13462         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13463         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13464         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13465         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13466         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13467         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13468         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13469         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13470         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13471         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13472         * sysdeps/ieee754/k_standard.c: Likewise.
13473         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13474         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13477         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13478         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13479         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13480         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13481         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13482         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13483         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13484         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13485         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13486         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13490         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13491         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13492         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13494         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13495         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13498         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13499         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13500         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13504         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13505         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13506         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13507         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13508         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13511         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13512         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13516         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13517         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13521         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13522         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13525         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13527         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13529         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13530         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13531         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13532         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13533         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13534         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13535         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13536         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13538         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13539         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13540         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13541         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13542         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13543         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13545         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13546         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13547         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13548         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13550         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13551         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13552         * sysdeps/ieee754/s_matherr.c: Likewise.
13553         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13554         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13555         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13556         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13557
13558 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13559
13560         * crypt/md5.h: Remove __STDC__ conditionals.
13561         * libio/libioP.h: Likewise.
13562         * locale/programs/config.h: Likewise.
13563         * sysdeps/generic/sysdep.h: Likewise.
13564         * sysdeps/i386/asm-syntax.h: Likewise.
13565         * sysdeps/s390/asm-syntax.h: Likewise.
13566         * sysdeps/unix/sysdep.h: Likewise.
13567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13569
13570 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13571
13572         * libio/libio.h: Remove __STDC__ conditionals.
13573         * malloc/obstack.h: Likewise.
13574         * math/complex.h: Likewise.
13575         * math/math.h: Likewise.
13576         * sysdeps/generic/_G_config.h: Likewise.
13577         * sysdeps/gnu/_G_config.h: Likewise.
13578         * sysdeps/mach/hurd/_G_config.h: Likewise.
13579         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13580         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13581         * sysdeps/sparc/bits/mathdef.h: Likewise.
13582
13583 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13584
13585         [BZ #13583]
13586         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13587         Clean up HAS_* macros.
13588         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13589         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13590         possible.
13591         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13592         HAS_AVX.
13593         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13594         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13595         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13596         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13597         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13598
13599 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13600
13601         * elf/tst-unique3.cc (gets): Remove declaration.
13602         * elf/tst-unique3lib.cc (gets): Likewise.
13603         * elf/tst-unique3lib2.cc (gets): Likewise.
13604         * elf/tst-unique4.cc (gets): Likewise.
13605
13606 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13607
13608         * include/stdio.h: Add C++ protection.  Add gets declarations and
13609         definitions.
13610         * debug/tst-chk1.c: Don't declare gets here.
13611         * stdio-common/tst-gets.c: Likewise.
13612
13613 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13614
13615         * posix/glob: Remove directory.
13616
13617 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13618
13619         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13620
13621 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13622
13623         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13624         of the non-standard EPFNOSUPPORT.
13625
13626 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13627
13628         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13629         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13630         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13631
13632 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13633
13634         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13635
13636 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13637
13638         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13639         transient errors.
13640         * nscd/grpcache.c (cache_addgr): Likewise.
13641         * nscd/hstcache.c (cache_addhst): Likewise.
13642         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13643         * nscd/pwdcache.c (cache_addpw): Likewise.
13644         * nscd/servicescache.c (cache_addserv): Likewise.
13645
13646 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13647
13648         * malloc/malloc.c: Various cleanups.
13649         * malloc/hooks.c: Likewise.
13650
13651         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13652         * stdlib/bug-fmtmsg1.c: New file.
13653
13654         * stdlib/fmtmsg.c (init): Add missing unlock.
13655         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13656
13657 2012-01-12  Marek Polacek  <polacek@redhat.com>
13658
13659         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13660         and _GNU_SOURCE.
13661
13662 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13663
13664         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13665         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13666         macro to ensure uniqueness of label name.
13667         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13668         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13669
13670 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13671
13672         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13673
13674         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13675         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13676         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13677         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13678
13679 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13680
13681         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13682
13683         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13684         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13685         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13686
13687         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13688
13689         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13690         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13691         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13692         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13693
13694         * math/bits/math-finite.h: Add ldexp support.
13695
13696 2012-01-10  Marek Polacek  <polacek@redhat.com>
13697
13698         * locale/programs/localedef.h (show_archive_content): Add noreturn
13699         attribute.
13700
13701 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13702
13703         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13704
13705 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13706
13707         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13708
13709         * io/Makefile (headers): Add bits/poll2.h.
13710
13711 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13712
13713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13714         typo #include statement.
13715
13716 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13717
13718         * include/sys/cdefs.h: Define __attribute_alloc_size.
13719         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13720         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13721         * elf/pldd.c: Likewise.
13722         * iconv/iconv_charmap.c: Likewise.
13723         * iconv/iconvconfig.c: Likewise.
13724         * iconv/strtab.c: Likewise.
13725         * locale/programs/locale.c: Likewise.
13726         * locale/programs/localedef.h: Likewise.
13727         * locale/programs/simple-hash.c: Likewise.
13728         * nscd/nscd.h: Likewise.
13729         * nss/makedb.c: Likewise.
13730         * sysdeps/generic/ldconfig.h: Likewise.
13731         * locale/programs/localedef.c: Remove xmalloc prototype.
13732         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13733
13734 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13735
13736         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13737         appropriate.
13738
13739 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13740
13741         * math/Makefile (tests): Add tst-CMPLX.
13742         * math/tst-CMPLX.c: New file.
13743
13744         * math/complex.h (CMPLXL): Fix typo.
13745
13746         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13747         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13748         GLIBC_2.16.
13749         * debug/tst-chk1.c: Add poll and ppoll tests.
13750         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13751         * include/sys/poll.h: Add hidden proto for ppoll.
13752         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13753         * sysdeps/mach/hurd/ppoll.c: Likewise.
13754         * io/ppoll.c: Likewise.
13755         * debug/poll_chk.c: New file.
13756         * debug/ppoll_chk.c: New file.
13757         * include/bits/poll2.h: New file.
13758         * io/bits/poll2.h: New file.
13759
13760         [BZ #1350]
13761         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13762
13763         * configure.in: static is always set to yes.  Remove.
13764         * config.make.in: Don't set build-static.
13765         * Makeconfig: Remove use of build-static.
13766         * dlfcn/Makefile: Likewise.
13767         * elf/Makefile: Likewise.
13768         * math/Makefile: Likewise.
13769         * misc/Makefile: Likewise.
13770         * nptl/Makefile: Likewise.
13771         * sysdeps/mach/hurd/Makefile: Likewise.
13772
13773         * configure.in: PWD_P is not used anymore.
13774         * config.make.in: Remove PWD_P entry.
13775
13776         * configure.in: Remove last remnants of RANLIB.
13777         No need to check for signed size_t anymore.
13778         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13779         and IA-64.
13780         Remove __builtin_expect test because we require at least gcc 3.4.
13781         * aclocal.m4: Likewise.
13782
13783         * wcsmbs/mbrtoc16.c: Implement using towc function.
13784         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13785         * wcsmbs/wcsmbsload.c: Likewise.
13786         * iconv/gconv_simple.c: Likewise.
13787         * iconv/gconv_int.h: Likewise.
13788         * iconv/gconv_builtin.h: Likewise.
13789         * iconv/iconv_prog.c: Remove CHAR16 handling.
13790
13791         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13792
13793         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13794
13795         * configure.in: Remove --with-elf and --enable-bounded options.
13796         Dont set base_machine for ia64.  More non-ELF conditions removed.
13797         Remove testing and setting of leading underscore information.
13798         * config.make.in (build-bounded): Set to no.
13799         * config.h.in: Remove NO_UNDERSCORES entry.
13800         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13801         them.
13802         * csu/start.c: Remove !NO_UNDERSCORE code.
13803         * locale/localeinfo.h: Likewise.
13804         * sysdeps/generic/machine-gmon.h: Likewise.
13805         * sysdeps/generic/sysdep.h: Likewise.
13806         * sysdeps/i386/sysdep.h: Likewise.
13807         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13808         * sysdeps/mach/sysdep.h: Likewise.
13809         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13810         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13811         * sysdeps/sh/sysdep.h: Likewise.
13812         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13813         * sysdeps/unix/i386/sysdep.S: Likewise.
13814         * sysdeps/unix/sparc/start.c: Likewise.
13815         * sysdeps/unix/sparc/sysdep.S: Likewise.
13816         * sysdeps/unix/sparc/sysdep.h: Likewise.
13817         * sysdeps/unix/start.c: Likewise.
13818         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13819         * sysdeps/x86_64/sysdep.h: Likewise.
13820
13821 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13822
13823         [BZ #13553]
13824         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13825         for non-gcc.
13826         * argp/argp-fmtstream.h: Use const instead __const.
13827         * argp/argp.h: Likewise.
13828         * assert/assert.h: Likewise.
13829         * bits/fenv.h: Likewise.
13830         * bits/sched.h: Likewise.
13831         * bits/sigset.h: Likewise.
13832         * bits/sigthread.h: Likewise.
13833         * catgets/nl_types.h: Likewise.
13834         * conform/data/pthread.h-data: Likewise.
13835         * crypt/crypt-private.h: Likewise.
13836         * crypt/crypt.h: Likewise.
13837         * crypt/crypt_util.c: Likewise.
13838         * ctype/ctype.h: Likewise.
13839         * debug/execinfo.h: Likewise.
13840         * debug/mbsnrtowcs_chk.c: Likewise.
13841         * debug/mbsrtowcs_chk.c: Likewise.
13842         * debug/wcsnrtombs_chk.c: Likewise.
13843         * debug/wcsrtombs_chk.c: Likewise.
13844         * debug/wcstombs_chk.c: Likewise.
13845         * dirent/dirent.h: Likewise.
13846         * dlfcn/dlfcn.h: Likewise.
13847         * elf/neededtest4.c: Likewise.
13848         * grp/grp.h: Likewise.
13849         * gshadow/gshadow.h: Likewise.
13850         * iconv/gconv.h: Likewise.
13851         * iconv/gconv_int.h: Likewise.
13852         * iconv/gconv_simple.c: Likewise.
13853         * iconv/iconv.h: Likewise.
13854         * iconv/loop.c: Likewise.
13855         * iconv/skeleton.c: Likewise.
13856         * include/aio.h: Likewise.
13857         * include/aliases.h: Likewise.
13858         * include/argz.h: Likewise.
13859         * include/arpa/inet.h: Likewise.
13860         * include/assert.h: Likewise.
13861         * include/dirent.h: Likewise.
13862         * include/dlfcn.h: Likewise.
13863         * include/execinfo.h: Likewise.
13864         * include/fcntl.h: Likewise.
13865         * include/fenv.h: Likewise.
13866         * include/glob.h: Likewise.
13867         * include/grp.h: Likewise.
13868         * include/libintl.h: Likewise.
13869         * include/mntent.h: Likewise.
13870         * include/netdb.h: Likewise.
13871         * include/pwd.h: Likewise.
13872         * include/rpc/netdb.h: Likewise.
13873         * include/sched.h: Likewise.
13874         * include/search.h: Likewise.
13875         * include/shadow.h: Likewise.
13876         * include/signal.h: Likewise.
13877         * include/stdio.h: Likewise.
13878         * include/stdlib.h: Likewise.
13879         * include/string.h: Likewise.
13880         * include/sys/socket.h: Likewise.
13881         * include/sys/stat.h: Likewise.
13882         * include/sys/statfs.h: Likewise.
13883         * include/sys/statvfs.h: Likewise.
13884         * include/sys/syslog.h: Likewise.
13885         * include/sys/time.h: Likewise.
13886         * include/sys/uio.h: Likewise.
13887         * include/time.h: Likewise.
13888         * include/unistd.h: Likewise.
13889         * include/utmp.h: Likewise.
13890         * include/wchar.h: Likewise.
13891         * include/wctype.h: Likewise.
13892         * inet/aliases.h: Likewise.
13893         * inet/arpa/inet.h: Likewise.
13894         * inet/netinet/ether.h: Likewise.
13895         * inet/netinet/in.h: Likewise.
13896         * intl/libintl.h: Likewise.
13897         * io/bits/fcntl2.h: Likewise.
13898         * io/fcntl.h: Likewise.
13899         * io/ftw.h: Likewise.
13900         * io/sys/poll.h: Likewise.
13901         * io/sys/stat.h: Likewise.
13902         * io/sys/statfs.h: Likewise.
13903         * io/sys/statvfs.h: Likewise.
13904         * io/utime.h: Likewise.
13905         * libio/bits/stdio.h: Likewise.
13906         * libio/bits/stdio2.h: Likewise.
13907         * libio/libio.h: Likewise.
13908         * libio/libioP.h: Likewise.
13909         * libio/stdio.h: Likewise.
13910         * locale/lc-ctype.c: Likewise.
13911         * locale/locale.h: Likewise.
13912         * login/utmp.h: Likewise.
13913         * malloc/arena.c: Likewise.
13914         * malloc/malloc.c: Likewise.
13915         * malloc/malloc.h: Likewise.
13916         * malloc/mcheck.c: Likewise.
13917         * malloc/mtrace.c: Likewise.
13918         * math/bits/mathcalls.h: Likewise.
13919         * math/fenv.h: Likewise.
13920         * math/math_private.h: Likewise.
13921         * misc/bits/error.h: Likewise.
13922         * misc/bits/syslog.h: Likewise.
13923         * misc/err.h: Likewise.
13924         * misc/error.h: Likewise.
13925         * misc/fstab.h: Likewise.
13926         * misc/mntent.h: Likewise.
13927         * misc/regexp.h: Likewise.
13928         * misc/search.h: Likewise.
13929         * misc/sgtty.h: Likewise.
13930         * misc/sys/mman.h: Likewise.
13931         * misc/sys/syslog.h: Likewise.
13932         * misc/sys/uio.h: Likewise.
13933         * misc/sys/xattr.h: Likewise.
13934         * misc/ttyent.h: Likewise.
13935         * nis/rpcsvc/ypclnt.h: Likewise.
13936         * nss/nss.h: Likewise.
13937         * posix/bits/unistd.h: Likewise.
13938         * posix/fnmatch.h: Likewise.
13939         * posix/glob.h: Likewise.
13940         * posix/sched.h: Likewise.
13941         * posix/spawn.h: Likewise.
13942         * posix/sys/wait.h: Likewise.
13943         * posix/unistd.h: Likewise.
13944         * posix/wordexp.h: Likewise.
13945         * pwd/pwd.h: Likewise.
13946         * resolv/netdb.h: Likewise.
13947         * resource/sys/resource.h: Likewise.
13948         * rt/aio.h: Likewise.
13949         * rt/bits/mqueue2.h: Likewise.
13950         * rt/mqueue.h: Likewise.
13951         * shadow/shadow.h: Likewise.
13952         * signal/signal.h: Likewise.
13953         * socket/send.c: Likewise.
13954         * socket/sendto.c: Likewise.
13955         * socket/sys/socket.h: Likewise.
13956         * stdio-common/printf.h: Likewise.
13957         * stdlib/bits/stdlib.h: Likewise.
13958         * stdlib/fmtmsg.h: Likewise.
13959         * stdlib/monetary.h: Likewise.
13960         * stdlib/stdlib.h: Likewise.
13961         * stdlib/ucontext.h: Likewise.
13962         * streams/stropts.h: Likewise.
13963         * string/argz.h: Likewise.
13964         * string/bits/string2.h: Likewise.
13965         * string/string.h: Likewise.
13966         * string/strings.h: Likewise.
13967         * sunrpc/rpc/auth.h: Likewise.
13968         * sunrpc/rpc/auth_des.h: Likewise.
13969         * sunrpc/rpc/clnt.h: Likewise.
13970         * sunrpc/rpc/netdb.h: Likewise.
13971         * sunrpc/rpc/pmap_clnt.h: Likewise.
13972         * sunrpc/rpc/xdr.h: Likewise.
13973         * sysdeps/generic/inttypes.h: Likewise.
13974         * sysdeps/generic/net/if.h: Likewise.
13975         * sysdeps/generic/sys/swap.h: Likewise.
13976         * sysdeps/gnu/net/if.h: Likewise.
13977         * sysdeps/gnu/utmpx.h: Likewise.
13978         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13979         * sysdeps/i386/i486/bits/string.h: Likewise.
13980         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13981         * sysdeps/s390/bits/string.h: Likewise.
13982         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13983         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13984         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13985         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13986         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13987         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13988         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13989         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13990         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13991         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13992         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13993         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13994         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13995         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13996         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13997         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13998         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13999         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14000         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14001         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14002         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14003         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14004         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14005         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14006         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14007         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14008         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14009         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14010         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14011         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14012         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14013         * sysvipc/sys/ipc.h: Likewise.
14014         * sysvipc/sys/msg.h: Likewise.
14015         * sysvipc/sys/sem.h: Likewise.
14016         * sysvipc/sys/shm.h: Likewise.
14017         * termios/termios.h: Likewise.
14018         * time/sys/time.h: Likewise.
14019         * time/time.h: Likewise.
14020         * wcsmbs/bits/wchar2.h: Likewise.
14021         * wcsmbs/uchar.h: Likewise.
14022         * wcsmbs/wchar.h: Likewise.
14023         * wctype/wctype.h: Likewise.
14024
14025         [BZ #13551]
14026         * Makeconfig: Remove all but ELF support including AIX support.
14027         * Makerules: Likewise.
14028         * config.h.in: Likewise.
14029         * config.make.in: Likewise.
14030         * configure: Likewise.
14031         * configure.in: Likewise.
14032         * csu/Makefile: Likewise.
14033         * csu/version.c: Likewise.
14034         * debug/Makefile: Likewise.
14035         * dlfcn/Makefile: Likewise.
14036         * elf/Makefile: Likewise.
14037         * extra-lib.mk: Likewise.
14038         * iconv/Makefile: Likewise.
14039         * include/libc-symbols.h: Likewise.
14040         * include/shlib-compat.h: Likewise.
14041         * resolv/Makefile: Likewise.
14042         * resolv/res_libc.c: Likewise.
14043         * rt/Makefile: Likewise.
14044         * sysdeps/i386/asm-syntax.h: Likewise.
14045         * sysdeps/i386/sysdep.h: Likewise.
14046         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14047         * sysdeps/mach/sysdep.h: Likewise.
14048         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14049         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14050         * sysdeps/s390/asm-syntax.h: Likewise.
14051         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14052         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14053         * sysdeps/sh/sysdep.h: Likewise.
14054         * sysdeps/unix/sparc/sysdep.h: Likewise.
14055         * sysdeps/wordsize-32/divdi3.c: Likewise.
14056         * sysdeps/x86_64/sysdep.h: Likewise.
14057
14058         * argp/Versions: Remove _argp_unlock_xxx.
14059
14060         [BZ #13559]
14061         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14062         * abilist/libBrokenLocale.abilist: Likewise.
14063         * abilist/libanl.abilist: Likewise.
14064         * abilist/libc.abilist: Likewise.
14065         * abilist/libcrypt.abilist: Likewise.
14066         * abilist/libdl.abilist: Likewise.
14067         * abilist/libm.abilist: Likewise.
14068         * abilist/libnsl.abilist: Likewise.
14069         * abilist/libpthread.abilist: Likewise.
14070         * abilist/libresolv.abilist: Likewise.
14071         * abilist/librt.abilist: Likewise.
14072         * abilist/libthread_db.abilist: Likewise.
14073         * abilist/libutil.abilist: Likewise.
14074         * abilist/libnss_db.abilist: New file.
14075
14076         * scripts/abilist.awk: Add support for indirect functions.
14077
14078         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14079
14080         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14081
14082         * shlib-versions: Remove entries for ports architectures.
14083
14084         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14085         files in ports.
14086         * elf/stackguard-macros.h: Remove support for IA-64.
14087         * elf/tst-auditmod1.c: Likewise.
14088         * sysdeps/generic/ldsodefs.h: Likewise.
14089
14090         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14091         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14092         configure files.
14093
14094         [BZ #13552]
14095         * configure.in: Remove --enable-omitfp support.
14096         * FAQ.in: Adjust.
14097         * config.make.in: Likewise.
14098         * Makeconfig: Likewise.
14099         * manual/install.texi: Likewise.
14100
14101         In case anyone cares, the IA-64 architecture could move to ports.
14102         * sysdeps/ia64/*: Removed.
14103         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14104         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14105
14106         [BZ #13555]
14107         * configure.in: Remove entries for unsupported architectures.
14108
14109         [BZ #13533]
14110         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14111         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14112         routines.
14113         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14114         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14115         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14116         fall back to using wcrtomb.
14117         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14118         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14119         renaming.
14120         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14121         * wcsmbs/tst-c16c32-1.c: New file.
14122
14123         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14124         local variable.
14125
14126         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14127
14128         * elf/tst-unique3.cc: Add explicit declaration of gets.
14129         * elf/tst-unique3lib.cc: Likewise.
14130         * elf/tst-unique3lib2.cc: Likewise.
14131         * elf/tst-unique4.cc: Likewise.
14132
14133         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14134
14135 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14136
14137         [BZ #13566]
14138         * assert/assert.h (static_assert): Don't define for C++.
14139         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14140         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14141
14142 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14143
14144         * iconv/loop.c (single loop): Fix assertion in storing of
14145         remaining bytes.
14146
14147         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14148
14149 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14150
14151         * posix/getconf.c: Update copyright year.
14152         * nss/getent.c: Likewise.
14153         * nss/makedb.c: Likewise.
14154         * iconv/iconvconfig.c: Likewise.
14155         * iconv/iconv_prog.c: Likewise.
14156         * elf/ldconfig.c: Likewise.
14157         * elf/pldd.c: Likewise.
14158         * elf/sotruss.ksh: Likewise.
14159         * catgets/gencat.c: Likewise.
14160         * csu/version.c: Likewise.
14161         * elf/ldd.bash.in: Likewise.
14162         * elf/sprof.c (print_version): Likewise.
14163         * locale/programs/locale.c: Likewise.
14164         * locale/programs/localedef.c: Likewise.
14165         * login/programs/pt_chown.c: Likewise.
14166         * nscd/nscd.c (print_version): Likewise.
14167         * debug/xtrace.sh: Likewise.
14168         * malloc/memusage.sh: Likewise.
14169         * malloc/mtrace.pl: Likewise.
14170         * debug/catchsegv.sh: Likewise.
14171
14172 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14173
14174         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14175         pure attribute.
14176
14177 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14178
14179         [BZ #13533]
14180         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14181         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14182         transformations.
14183         * iconv/gconv_int.h: Likewise.
14184         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14185         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14186         from libc for GLIBC_2.16.
14187         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14188         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14189         * wcsmbs/uchar.h: Really define mbstate_t.
14190         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14191         * wcsmbs/c16rtomb.c: New file.
14192         * wcsmbs/mbrtoc16.c: New file.
14193         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14194         for C/POSIX locale.
14195         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14196         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14197
14198         * wcsmbs/wchar.h: Add missing __restrict.
14199
14200 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14201
14202         [BZ #13532]
14203         * time/Makefile (routines): Add timespec_get.
14204         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14205         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14206         timespec for ISO C11.
14207         * time/timespec_get.c: New file.
14208         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14209         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14210
14211         [BZ #13531]
14212         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14213         * stdlib/stdlib.h: Declare aligned_alloc.
14214         * Versions.def: Add GLIBC_2.16 for libc.
14215         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14216
14217         [BZ 13527]
14218         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14219         ISO C11.
14220
14221         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14222         code.
14223
14224         [BZ #13528]
14225         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14226
14227         [BZ #13529]
14228         * assert/assert.h (static_assert): Define.
14229
14230         * version.h: Update for 2.16 development version.
14231
14232         [BZ #13526]
14233         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14234         _ISOC11_SOURCE.
14235
14236         * version.h (RELEASE): Bump for 2.15 release.
14237         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14238
14239         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14240         Patch by Marek Polacek <mpolacek@redhat.com>.
14241
14242         * bits/byteswap.h: Protect long long constants with __extension__.
14243         * sysdeps/i386/bits/byteswap.h: Likewise.
14244         * sysdeps/ia64/bits/byteswap.h: Likewise.
14245         * sysdeps/s390/bits/byteswap.h: Likewise.
14246         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14247
14248 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14249
14250         [BZ #13540]
14251         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14252         destination buffer.
14253         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14254
14255 2011-12-23  Marek Polacek  <polacek@redhat.com>
14256
14257         * elf/dl-addr.c (determine_info): Add inline keyword.
14258         * elf/tst-auditmod4b.c (check_avx): Likewise.
14259         * elf/tst-auditmod6b.c (check_avx): Likewise.
14260         * elf/tst-auditmod6c.c (check_avx): Likewise.
14261         * elf/tst-auditmod7b.c (check_avx): Likewise.
14262
14263 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14264
14265         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14266         !__SSE_MATH__.
14267
14268 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14269
14270         [BZ #13540]
14271         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14272         processing for last bytes.
14273
14274 2011-08-06  Bruno Haible  <bruno@clisp.org>
14275
14276         [BZ #13061]
14277         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14278         U+0385, not to U+1FEE.
14279
14280         [BZ #13062]
14281         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14282         entry for U+00A5 U+0301.
14283
14284 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14285
14286         [BZ #13166]
14287         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14288         buffer for the output is too small.
14289
14290         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14291         optimization.
14292
14293         [BZ #13185]
14294         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14295         SSE flags if possible.
14296
14297 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14298
14299         [BZ #13540]
14300         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14301         processing for last bytes.
14302
14303 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14304
14305         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14306         (syscall-list-default-options, syscall-list-default-condition)
14307         (syscall-list-includes): Define.
14308         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14309         list of ABIs and options and #if conditions for each ABI.  Do not
14310         handle common syscalls between ABIs specially.
14311         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14312         Remove.
14313         (syscall-list-variants, syscall-list-32bit-options)
14314         (syscall-list-32bit-condition, syscall-list-64bit-options)
14315         (syscall-list-64bit-condition): Define.
14316         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14317         (syscall-list-variants, syscall-list-32bit-options)
14318         (syscall-list-32bit-condition, syscall-list-64bit-options)
14319         (syscall-list-64bit-condition): Define.
14320         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14321         Remove.
14322         (syscall-list-variants, syscall-list-32bit-options)
14323         (syscall-list-32bit-condition, syscall-list-64bit-options)
14324         (syscall-list-64bit-condition): Define.
14325         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14326         Remove.
14327         (syscall-list-variants, syscall-list-32bit-options)
14328         (syscall-list-32bit-condition, syscall-list-64bit-options)
14329         (syscall-list-64bit-condition): Define.
14330
14331 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14332
14333         * locale/iso-639.def: Add brx entry.
14334
14335         [BZ #13328]
14336         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14337         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14338
14339         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14340         __feraiseexcept_renamed.
14341
14342 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14343
14344         [BZ #13538]
14345         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14346         EPOLLET with unsigned values.
14347         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14348         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14349
14350         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14351         to large cancellation.
14352         * math/s_cacoshf.c: Likewise.
14353         * math/s_cacoshl.c: Likewise.
14354
14355 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14356
14357         [BZ #13305]
14358         [BZ #12786]
14359         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14360         * math/s_cacoshf.c: Likewise.
14361         * math/s_cacoshl.c: Likewise.
14362
14363 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14364
14365         [BZ #13439]
14366         * iconv/gconv.h: Define __GCONV_SWAP.
14367         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14368         * iconvdata/utf-16.c: Likewise.
14369         * iconvdata/utf-32.c: Likewise.
14370
14371 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14372
14373         [BZ #13524]
14374         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14375         numerator after shifting it by one limb.
14376
14377 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14378
14379         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14380         under [__USE_EXTERN_INLINES].
14381
14382 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14383
14384         [BZ #13446]
14385         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14386
14387 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14388
14389         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14390         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14391         optimized code.
14392         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14393         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14394         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14395         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14396         for strncasecmp/strncasecmp_l compilation.
14397         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14398         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14399
14400 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14401
14402         [BZ #13484]
14403         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14404         of __asm__.
14405
14406 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14407
14408         [BZ #13506]
14409         * time/tzfile.c (__tzfile_read): Check values from file header.
14410
14411 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14412
14413         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14414         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14415         * powerpc/powerpc32/dl-start.S: Likewise.
14416         * powerpc/powerpc32/elf/start.S: Likewise.
14417         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14418         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14419         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14420         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14421         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14422         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14423         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14424         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14425         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14426         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14427         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14428         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14429         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14430         * powerpc/powerpc32/memset.S: Likewise.
14431         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14432         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14433         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14434         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14435         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14436         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14437         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14438         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14439         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14440         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14441         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14442         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14443         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14444
14445 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14446
14447         * math/libm-test.inc: Added more nearbyint tests.
14448         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14449         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14450         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14451         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14452
14453 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14454
14455         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14456         FD_CLOEXEC.
14457
14458 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14459
14460         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14461         Add wcscpy-ssse3 wcscpy-c.
14462         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14463         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14464         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14465         * sysdeps/x86_64/wcschr.S: New file.
14466         * sysdeps/x86_64/wcsrchr.S: New file.
14467         * string/test-strcmp.c: Remove checking of wcscmp function for
14468         wrong alignments.
14469         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14470         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14471         wcsrchr-sse2 wcsrchr-c.
14472         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14473         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14474         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14475         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14476         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14477         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14478         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14479         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14480         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14481         * wcsmbc/wcschr.c (WCSCHR): New macro.
14482
14483 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14484
14485         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14486         * wcsmbs/test-wcsrchr.c: New file.
14487         * string/test-strrchr.c: Add wcsrchr support.
14488         (WIDE): New macro.
14489         * wcsmbs/test-wcscpy.c: New file.
14490         * string/test-strcpy.c: Add wcscpy support.
14491         (WIDE): New macro.
14492
14493 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14494
14495         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14496         the inner loop.
14497
14498 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14499
14500         [BZ #13472]
14501         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14502
14503 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14504
14505         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14506         Minor optimizations.
14507
14508         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14509         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14510         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14511
14512 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14513
14514         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14515         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14516         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14517         for gcc to avoid warnings.
14518         * inet/Makefile (tests): Add tst-checks.
14519         * inet/tst-checks.c: New file.
14520
14521         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14522         warning.
14523
14524         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14525         __wmemcmp_sse2.
14526
14527         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14528         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14529
14530         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14531
14532 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14533
14534         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14535         problem.
14536
14537         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14538
14539 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14540
14541         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14542         conditional on GCC version.
14543         (__arch_compare_and_exchange_val_8_acq)
14544         (__arch_compare_and_exchange_val_16_acq)
14545         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14546         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14547         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14548
14549 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14550
14551         * sysdeps/sh/backtrace.c: New file.
14552
14553 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14554
14555         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14556         parenthesis.
14557
14558 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14559
14560         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14561         falling back to utime.
14562
14563 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14564
14565         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14566         expectations for float.
14567
14568 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14569
14570         * locale/weight.h (findidx): Add parameter len.
14571         * locale/weightwc.h (findidx): Likewise.
14572         * posix/fnmatch_loop.c (FCT): Adjust caller.
14573         * posix/regcomp.c (build_equiv_class): Likewise.
14574         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14575         * posix/regexec.c (check_node_accept_bytes): Likewise.
14576         * string/strcoll_l.c (STRCOLL): Likewise.
14577         * string/strxfrm_l.c (STRXFRM): Likewise.
14578
14579 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14580
14581         * Makefile.in: Remove CVSOPT handling.
14582         * configure.in: Remove use of AC_REVISION.
14583         * iconvdata/Makefile (distribute): No need to filter out CVS.
14584         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14585         handling.
14586
14587 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14588
14589         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14590         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14591         [USE_AS_STRNCASECMP_L]: Likewise.
14592         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14593         NO_TLS_DIRECT_SEG_REFS.
14594         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14595         Fix argument offsets for non-PIC.
14596         [USE_AS_STRNCASECMP_L]: Likewise.
14597         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14598         NO_TLS_DIRECT_SEG_REFS.
14599
14600 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14601
14602         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14603         O_CLOEXEC.
14604         * locale/loadlocale.c (_nl_load_locale): Likewise.
14605
14606 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14607
14608         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14609         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14610         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14611         (SYSCALL_GETTIME): Set errno on error.
14612
14613         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14614         count references to noai6ai_cached.
14615
14616 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14617
14618         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14619
14620         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14621         FD_CLOEXEC for /proc/self/maps.
14622
14623         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14624         FD_CLOEXEC for /proc/meminfo.
14625
14626         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14627         gai.conf.
14628
14629         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14630         FD_CLOEXEC for given file.
14631
14632         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14633
14634         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14635         FD_CLOEXEC for /etc/hosts.
14636         (_gethtent): Likewise.
14637
14638         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14639
14640         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14641         cancellation and set FD_CLOEXEC for /etc/netgroup.
14642
14643         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14644         reading /etc/publickey.
14645
14646         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14647         allow cancellation when reading /etc/group.
14648
14649         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14650         cancellation.
14651         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14652
14653         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14654         when using data file.
14655
14656         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14657
14658         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14659         (write_nis_obj): Use "c" and "e" in fopen.
14660
14661         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14662
14663         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14664
14665         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14666
14667         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14668
14669         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14670         locale.alias.
14671
14672         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14673
14674         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14675
14676         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14677
14678         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14679         file parsing and set FD_CLOEXEC.
14680
14681 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14682
14683         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14684
14685 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14686
14687         * malloc/arena.c (arena_get2): Don't call reused_arena when
14688         _int_new_arena failed.
14689
14690 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14691
14692         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14693         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14694         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14695         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14696         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14697         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14698         to compile strcasecmp and strncasecmp.
14699         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14700         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14701
14702         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14703
14704 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14705
14706         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14707         locale-defines.sym to gen-as-const-headers.
14708         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14709         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14710         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14711         to compile strcasecmp and strncasecmp.
14712         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14713         strcasecmp_l and strncasecmp_l.
14714         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14715         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14716         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14717         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14718         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14719         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14720         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14721         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14722         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14723         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14724         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14725
14726 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14727
14728         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14729         result of SYSDEP_GETTIME_CPU to retval.
14730         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14731         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14732
14733         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14734         variable.
14735
14736         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14737         mantissa words.
14738         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14739
14740         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14741         from unused variable.
14742
14743         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14744         DWARF definitions.
14745         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14746         for assembling.
14747
14748         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14749         over namespaces.
14750
14751         * sunrpc/rpc_prot.c (rejected): Fix case value.
14752
14753         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14754         unsigned long long int to avoid warnings in shift.
14755
14756         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14757         of use of trans.
14758         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14759         variable tmp.
14760
14761         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14762         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14763         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14764
14765         * nis/nis_table.c (nis_list): Use variable of correct type for
14766         result of __follow_path call.
14767
14768 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14769
14770         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14771         of math functions ceil, trunc, floor, round, and sqrt, when
14772         avaliable on the platform.
14773         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14774         name clash.
14775         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14776         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14777         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14778
14779 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14780
14781         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14782         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14783
14784 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14785
14786         * include/unistd.h: Fix __readlink return type.
14787         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14788
14789 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14790
14791         * stdlib/ucontext.h: Undo last change for makecontext.
14792
14793 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14794
14795         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14796
14797         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14798         * setjmp/setjmp.h: Mark functions as non-leaf.
14799         * setjmp/bits/setjmp2.h: Likewise.
14800         * stdlib/ucontext.h: Likewise.
14801
14802 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14803
14804         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14805         (reused_arena): Don't check arena limit.
14806         (arena_get2): Atomically check arena limit.
14807
14808 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14809
14810         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14811         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14812
14813         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14814         instructions.
14815
14816 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14817
14818         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14819         handler when locking.
14820
14821         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14822         Fix size of allocated buffer.
14823
14824 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14825
14826         [BZ #10103]
14827         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14828         declarations for long double functions.
14829         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14830
14831         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14832
14833 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14834
14835         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14836         installed.
14837
14838         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14839         is disabled.
14840
14841 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14842
14843         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14844
14845 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14846
14847         * include/alloca.h (stackinfo_alloca_round): Define.
14848         (extend_alloca): Use it.
14849         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14850         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14851         here.
14852
14853         * scripts/check-local-headers.sh: Ignore libaudit.h.
14854
14855         * nscd/Makefile (extra-objs): Make recursively expanded.
14856
14857 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14858
14859         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14860         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14861
14862         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14863         * posix/tst-rfc3484-2.c: Likewise.
14864         * posix/tst-rfc3484-3.c: Likewise.
14865
14866         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14867         process_vm_writev.
14868         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14869         process_vm_writev.
14870         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14871         process_vm_writev from libc using GLIBC_2.15 version.
14872
14873         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14874
14875 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14876
14877         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14878         stack usage.
14879
14880 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14881
14882         [BZ #13367]
14883         * nss/getent.c (initgroups_keys): Show error message in case no group
14884         names are given.
14885
14886         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14887         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14888         __bump_nl_timestamp.
14889         * nscd/connections (nscd_init): When host database is served open
14890         netlink socket and request notification about configuration changes.
14891         (main_loop_poll): Track netlink file descriptor and bump timestamp
14892         in case data becomes available.
14893         (main_loop_epoll): Likewise.
14894         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14895         (database_pers_head): Add extra_data fileds.
14896         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14897         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14898         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14899         Adjust caller.
14900         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14901         in6ai data, call __free_in6ai.
14902         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14903         Add -DHAVE_NETLINK.
14904         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14905         interface information.  Reuse previous data if netlink timestamp
14906         is not changed.
14907         (__bump_nl_timestamp): New function.
14908         (__free_in6ai): New function.
14909
14910 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14911
14912         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14913         close_not_cancel_no_status here.
14914         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14915
14916 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14917
14918         [BZ #13276]
14919         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14920         return value.
14921
14922         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14923         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14924         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14925
14926 2011-07-03  Andreas Jaeger  <aj@suse.de>
14927
14928         [BZ #10709]
14929         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14930         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14931         * math/libm-test.inc (sin_test): Add test case.
14932
14933 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14934
14935         [BZ #13337]
14936         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14937         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14938
14939         * elf/chroot_canon.c (chroot_canon): Cleanups.
14940
14941         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14942
14943         [BZ #13335]
14944         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14945         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14946
14947         * string/test-strchr.c: Make usable for strchrnul testing.
14948         * string/test-strchrnul.c: New file.
14949         * string/Makefile (strop-tests): Add strchrnul.
14950
14951         * po/it.po: Update from translation team.
14952         * po/es.po: Likewise.
14953
14954 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14955
14956         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14957         the three constants needed as parameters.  Drop the others.
14958         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14959         __m128i_strloadu_tolower.
14960         Create and initialize variable zero and use it in all the places
14961         where _mm_setzero_si128 was used.
14962
14963         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14964         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14965         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14966         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14967         anymore.
14968         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14969         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14970         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14971         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14972         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14973         __mpranred, __mptan.
14974         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14975         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14976         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14977         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14978         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14979         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14980         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14981         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14982         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14983
14984 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14985
14986         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14987         redefine if SHARED.
14988         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14989
14990         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14991         wide char related routines to wcsmbs subdir.
14992
14993 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14994
14995         [BZ #13344]
14996         * misc/sys/cdefs.h (__THROWNL): Define.
14997         * posix/unistd.h: Use __THREADNL instead of __THREAD
14998         for memory synchronization functions.
14999
15000 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15001
15002         [BZ #13349]
15003         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15004         doesn't exist.
15005         * manual/stdio.texi (Obstack Streams): Node removed.
15006
15007 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15008
15009         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15010         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15011         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15012
15013         * math/math_private.h (math_force_eval): Allow non-addressable
15014         arguments.
15015         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15016
15017 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15018
15019         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15020         file is not needed.
15021
15022         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15023         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15024         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15025         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15026         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15027         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15028         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15029         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15030         Add AVX variants.
15031         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15032         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15033         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15034         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15035         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15036         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15037         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15038         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15039         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15040         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15041         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15042         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15043         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15044         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15045         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15046         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15047         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15048         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15049         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15050
15051         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15052         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15053
15054         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15055         place.  Use VEX encoding when compiling for AVX.
15056
15057 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15058
15059         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15060         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15061
15062         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15063
15064 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15065
15066         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15067         useless if() expression.
15068         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15069         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15070         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15071         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15072         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15073         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15074         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15075         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15076         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15077         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15078         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15079         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15080         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15081         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15082         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15083         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15084         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15085         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15086         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15087
15088         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15089
15090 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15091
15092         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15093         condition.
15094         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15095
15096 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15097
15098         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15099         .text section.  Avoid duplicate constants.
15100         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15101         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15102         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15103         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15104         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15105         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15106         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15107         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15108         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15109         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15110         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15111         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15112         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15113         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15114         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15115         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15116         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15117         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15118         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15119         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15120         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15121         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15122         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15123         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15124         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15125         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15126         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15127         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15128         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15129         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15130         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15131         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15132         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15133         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15134         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15135         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15136         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15137         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15138         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15139         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15140         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15141         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15142         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15143         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15144         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15145
15146 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15147
15148         * sysdeps/x86_64/dla.h: Move to ...
15149         * sysdeps/x86_64/fpu/dla.h: ...here.
15150         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15151         situations.  Use __builtin_fma only for gcc 4.6 and up.
15152
15153         * config.make.in: Add have-mfma4 entry.
15154         * configure.in: Substitute libc_cv_cc_fma4.
15155         * math/Makefile (dbl-only-routines): Add sincostab.
15156         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15157         Use __sincostab not sincos.
15158         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15159         name is a macro.
15160         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15163         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15164         using __copysign.
15165         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15166         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15167         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15168         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15169         and __inv.
15170         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15171         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15172         __copysign.
15173         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15174         define aliases when function name is a macro.
15175         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15176         sysdeps/ieee754/dbl-64/sincos.tbl.
15177         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15178         fma4-enabled routines.
15179         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15180         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15181         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15182         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15183         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15184         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15185         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15186         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15187         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15188         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15189         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15190         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15191         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15192         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15193         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15194         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15195         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15196         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15197         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15198         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15199         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15200         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15201         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15202         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15203         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15204         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15205         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15206         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15207         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15208         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15209
15210         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15211         rename.
15212         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15213         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15214         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15215         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15216         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15217         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15218         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15219         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15220
15221 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15222
15223         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15224
15225 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15226
15227         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15228
15229         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15230         prediction.
15231         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15232
15233         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15234         Remove unused variable magic_bits.
15235         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15236
15237         * string/strnlen.c: Define and use STRNLEN macro.
15238         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15239         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15240         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15241         * wcsmbs/wcslen.c: Define and use WCSLEN.
15242         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15243         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15244         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15245         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15246         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15247         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15248         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15249
15250 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15251
15252         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15253         strnlen-sse2-no-bsf.
15254         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15255         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15256         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15257         Add strnlen support.
15258         (USE_AS_STRNLEN): New macro.
15259         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15260         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15261         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15262         * sysdeps/x86_64/wcslen.S: New file.
15263
15264 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15265
15266         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15267         XMM-moves are used for copying on small sizes.
15268
15269 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15270
15271         * wcsmbs/Makefile (strop-tests): Add wcschr.
15272         * wcsmbs/test-wcschr.c: New file.
15273         * string/test-strchr.c: Update.
15274         Add wcschr support.
15275         (WIDE): New macro.
15276
15277 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15278
15279         * wcsmbs/Makefile (strop-tests): Add wcslen.
15280         * wcsmbs/test-wcslen.c: New file.
15281         * string/test-strlen.c: Update.
15282         Add wcslen support.
15283         (WIDE): New macro.
15284
15285 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15286
15287         * po/it.po: Update from translation team.
15288
15289 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15290
15291         * sysdeps/x86_64/wcscmp.S: Update.
15292         Fix wrong comparison semantics.
15293         wcscmp shall use signed comparison not unsigned.
15294         Don't use substraction to avoid overflow bug.
15295         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15296         * wcsmbc/wcscmp.c: Likewise.
15297         * string/test-strcmp.c: Likewise.
15298         Add new tests to check cases with negative values.
15299
15300 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15301
15302         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15303         * sysdeps/x86_64/dla.h: ...here.  New file.
15304         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15305         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15306         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15307         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15308         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15309         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15310         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15311         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15312         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15313
15314 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15315
15316         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15317         __ynl_finite aliases.
15318
15319 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15320
15321         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15322
15323         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15324         define DLA_FMA.
15325         [DLA_FMA] (EMULV): Use DLA_FMA.
15326         [DLA_FMA] (MUL12): Use EMULV.
15327         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15328         that are not needed.
15329         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15330         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15331         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15332         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15333         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15334         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15335         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15336
15337 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15338
15339         * math/s_nan.c: Undef __nan.
15340         * math/s_nanf.c: Undef __nanf.
15341         * math/s_nanl.c: Undef __nanl.
15342         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15343         "math_private.h".
15344
15345 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15346
15347         * math/s_catan.c: Add branch predictions.
15348         * math/s_catanf.c: Likewise.
15349         * math/s_catanh.c: Likewise.
15350         * math/s_catanhf.c: Likewise.
15351         * math/s_catanhl.c: Likewise.
15352         * math/s_catanl.c: Likewise.
15353         * math/s_cexp.c: Likewise.
15354         * math/s_cexpf.c: Likewise.
15355         * math/s_cexpl.c: Likewise.
15356         * math/s_clog.c: Likewise.
15357         * math/s_clog10.c: Likewise.
15358         * math/s_clog10f.c: Likewise.
15359         * math/s_clog10l.c: Likewise.
15360         * math/s_clogf.c: Likewise.
15361         * math/s_clogl.c: Likewise.
15362         * math/s_csqrt.c: Likewise.
15363         * math/s_csqrtf.c: Likewise.
15364         * math/s_csqrtl.c: Likewise.
15365         * math/s_ctanf.c: Likewise.
15366         * math/s_ctanh.c: Likewise.
15367         * math/s_ctanhf.c: Likewise.
15368         * math/s_ctanhl.c: Likewise.
15369         * math/s_ctanl.c: Likewise.
15370
15371         * math/math_private.h: Define __nan, __nanf, __nanl.
15372         * math/s_cacosh.c: Include <math_private.h>.
15373         * math/s_cacoshl.c: Likewise.
15374         * math/s_casinh.c: Likewise.
15375         * math/s_casinhf.c: Likewise.
15376         * math/s_casinhl.c: Likewise.
15377         * math/s_ccos.c: Rely entire on ccosh.
15378         * math/s_ccosf.c: Rely entire on ccoshf.
15379         * math/s_ccosl.c: Rely entirely on ccoshl.
15380         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15381         Remove tests for FE_INVALID.
15382         * math/s_ccoshf.c: Likewise.
15383         * math/s_ccoshl.c: Likewise.
15384         * math/s_csin.c: Likewise.
15385         * math/s_csinf.c: Likewise.
15386         * math/s_csinh.c Likewise.
15387         * math/s_csinhf.c: Likewise.
15388         * math/s_csinhl.c: Likewise.
15389         * math/s_csinl.c: Likewise.
15390         * math/s_ctan.c: Likewise.
15391         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15392         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15393         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15394
15395 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15396
15397         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15398         compilation problems.
15399
15400         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15401         __builtin_expect.
15402
15403 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15404
15405         * sysdeps/i386/configure.in: Test for -mfma4 option.
15406         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15407         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15408         COMMON_CPUID_INDEX_80000001.
15409         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15410         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15411         use it if FMA3 is not supported.
15412         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15413
15414         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15415         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15416
15417 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15418
15419         [BZ #12892]
15420         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15421         it would create a cycle with a link time dependency.
15422
15423 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15424
15425         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15426         instruction.
15427         * string/Makefile (strop-tests): Add rawmemchr.
15428         * string/test-rawmemchr.c: New file.
15429
15430         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15431         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15432         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15433         when compiling str{,n}casecmp and when AVX is available.  Hook up
15434         new optimized code in initializers.
15435
15436 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15437
15438         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15439         __feraiseexcept instead of feraiseexcept.
15440
15441 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15442
15443         * math/math_private.h: Define defaults for libc_fetestexcept and
15444         libc_feupdateenv.
15445         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15446         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15447         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15448         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15449         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15450         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15451         libc_fetestexcept and libc_feupdateenv.
15452
15453         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15454         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15455         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15456         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15457         libc_feholdexcept_setround.
15458
15459         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15460         Add s_nearbyint-c and s_nearbyintf-c.
15461         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15462         nearbyintf inlines.
15463         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15464         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15465         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15466         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15467
15468         * math/math_private.h: Define defaults for libc_fegetround,
15469         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15470         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15471         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15472         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15473         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15474         standard functions.
15475         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15476         Remove comments and hacks for old compiler versions.
15477         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15478         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15479         libc_feholdexceptl.
15480
15481 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15482
15483         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15484         (__feraiseexcept_renamed): Add __NTH.
15485         (feraiseexcept): Add __NTH.  Rename local variables to fix
15486         namespace violations.
15487
15488 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15489
15490         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15491
15492         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15493
15494         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15495         recently added interfaces.
15496         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15497
15498         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15499         about macro parameter expansion.
15500
15501         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15502         __NO_MATH_INLINES is defined.  Cleanups.
15503
15504         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15505         and __floorf is target has SSE4.1.
15506         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15507         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15508         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15509         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15510
15511         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15512         name.
15513         (floorf): Likewise.
15514
15515         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15516
15517 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15518
15519         * misc/sys/cdefs.h: Fix last change.
15520
15521         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15522         database lookup.
15523
15524 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15525
15526         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15527
15528         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15529         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15530         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15531         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15532         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15533         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15534         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15535         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15536         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15537         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15538         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15539         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15540         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15541         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15542         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15543         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15544         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15545         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15546         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15547         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15548         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15549         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15550
15551         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15552         ceil, ceilf, floor, floorf.
15553
15554         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15555         Perform IRELATIVE relocations last.
15556
15557         * elf/do-rel.h: Add another parameter nrelative, replacing the
15558         local variable with the same name.  Change name of the function
15559         to end in Rel or Rela (uppercase).
15560         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15561         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15562         elf_dynamic_do_##reloc function.
15563
15564 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15565
15566         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15567         is sufficient, at least on modern CPUs.
15568
15569         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15570
15571         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15572         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15573
15574         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15575         __expl_finite.
15576         * math/bits/math-finite.h: Add entries for exp.
15577         * math/e_expl.c: Add __*_finite alias.
15578         * sysdeps/i386/fpu/e_exp.S: Likewise.
15579         * sysdeps/i386/fpu/e_expf.S: Likewise.
15580         * sysdeps/i386/fpu/e_expl.c: Likewise.
15581         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15582         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15583         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15584         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15585         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15586         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15587         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15588
15589         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15590         is sufficient, at least on modern CPUs.
15591
15592         * ctype/ctype-info.c (__ctype_init): Define.
15593         * include/ctype.h (__ctype_init): Declare.
15594         (__ctype_b_loc): The variable is always initialized.
15595         (__ctype_toupper_loc): Likewise.
15596         (__ctype_tolower_loc): Likewise.
15597         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15598         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15599
15600 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15601
15602         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15603
15604         * configure.in: Also look in $cxxmachine/include for C++ system
15605         headers.
15606
15607 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15608
15609         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15610         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15611         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15612         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15613         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15614         (USE_AS_WMEMCMP): New macro.
15615         Fixing indents.
15616         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15617         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15618         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15619         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15620         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15621         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15622         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15623         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15624         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15625         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15626         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15627         (USE_AS_WMEMCMP): New macro.
15628         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15629         * sysdeps/string/test-memcmp.c: Update.
15630         Fix simple_wmemcmp.
15631         Add new tests.
15632         * wcsmbs/wmemcmp.c: Update.
15633         (WMEMCMP): New macro.
15634         Fix overflow bug.
15635
15636 2011-10-12  Andreas Jaeger  <aj@suse.de>
15637
15638         [BZ #13268]
15639         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15640
15641 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15642
15643         * libio/iofwide.c (do_length): Avoid warning.
15644
15645         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15646
15647 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15648
15649         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15650
15651         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15652         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15653         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15654         * sysdeps/i386/i686/fpu/e_log.S: New file.
15655         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15656         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15657
15658         * ctype/ctype.h: Add support for inlined isXXX functions when
15659         compiling C++ code.
15660
15661 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15662
15663         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15664
15665         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15666
15667 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15668
15669         [BZ #13291]
15670         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15671
15672 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15673
15674         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15675         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15676         feraiseexcept.
15677
15678         * sysdeps/x86_64/memrchr.S: Check for zero size.
15679
15680         * string/stratcliff.c: Add memrchr tests.
15681
15682 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15683
15684         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15685         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15686         rawmemchr-sse2 rawmemchr-sse2-bsf.
15687         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15688         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15689         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15690         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15691         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15692         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15693         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15694         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15695         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15696         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15697         * string/memrchr.c (MEMRCHR): New macro.
15698
15699 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15700
15701         Add integration with gcc's -ffinite-math-only and optimize wrapper
15702         functions in libm.
15703         * Versions.def: Define GLIBC_2.15 version for libm.
15704         * math/Makefile (headers): Add bits/math-finite.h.
15705         * math/bits/math-finite.h: New file.
15706         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15707         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15708         * math/e_acoshl.c: Add __*_finite alias.
15709         * math/e_acosl.c: Likewise.
15710         * math/e_asinl.c: Likewise.
15711         * math/e_atan2l.c: Likewise.
15712         * math/e_atanhl.c: Likewise.
15713         * math/e_coshl.c: Likewise.
15714         * math/e_exp10.c: Likewise.
15715         * math/e_exp10f.c: Likewise.
15716         * math/e_exp10l.c: Likewise.
15717         * math/e_exp2l.c: Likewise.
15718         * math/e_fmodl.c: Likewise.
15719         * math/e_gammal_r.c: Likewise.
15720         * math/e_hypotl.c: Likewise.
15721         * math/e_j0l.c: Likewise.
15722         * math/e_j1l.c: Likewise.
15723         * math/e_jnl.c: Likewise.
15724         * math/e_lgammal_r.c: Likewise.
15725         * math/e_log10l.c: Likewise.
15726         * math/e_log2l.c: Likewise.
15727         * math/e_logl.c: Likewise.
15728         * math/e_powl.c: Likewise.
15729         * math/e_sinhl.c: Likewise.
15730         * math/e_sqrtl.c: Likewise.
15731         * math/e_scalb.c: Completely rewritten and optimized.
15732         * math/e_scalbf.c: Likewise.
15733         * math/e_scalbl.c: Likewise.
15734         * math/w_acos.c: Likewise.
15735         * math/w_acosf.c: Likewise.
15736         * math/w_acosl.c: Likewise.
15737         * math/w_acosh.c: Likewise.
15738         * math/w_acoshf.c: Likewise.
15739         * math/w_acoshl.c: Likewise.
15740         * math/w_asin.c: Likewise.
15741         * math/w_asinf.c: Likewise.
15742         * math/w_asinl.c: Likewise.
15743         * math/w_atan2.c: Likewise.
15744         * math/w_atan2f.c: Likewise.
15745         * math/w_atan2l.c: Likewise.
15746         * math/w_atanh.c: Likewise.
15747         * math/w_atanhf.c: Likewise.
15748         * math/w_atanhl.c: Likewise.
15749         * math/w_exp10.c: Likewise.
15750         * math/w_exp10f.c: Likewise.
15751         * math/w_exp10l.c: Likewise.
15752         * math/w_fmod.c: Likewise.
15753         * math/w_fmodf.c: Likewise.
15754         * math/w_fmodl.c: Likewise.
15755         * math/w_j0.c: Likewise.
15756         * math/w_j0f.c: Likewise.
15757         * math/w_j0l.c: Likewise.
15758         * math/w_j1.c: Likewise.
15759         * math/w_j1f.c: Likewise.
15760         * math/w_j1l.c: Likewise.
15761         * math/w_jn.c: Likewise.
15762         * math/w_jnf.c: Likewise.
15763         * math/w_log.c: Likewise.
15764         * math/w_logf.c: Likewise.
15765         * math/w_logl.c: Likewise.
15766         * math/w_log10.c: Likewise.
15767         * math/w_log10f.c: Likewise.
15768         * math/w_log10l.c: Likewise.
15769         * math/w_log2.c: Likewise.
15770         * math/w_log2f.c: Likewise.
15771         * math/w_log2l.c: Likewise.
15772         * math/w_pow.c: Likewise.
15773         * math/w_powf.c: Likewise.
15774         * math/w_powl.c: Likewise.
15775         * math/w_remainder.c: Likewise.
15776         * math/w_remainderf.c: Likewise.
15777         * math/w_remainderl.c: Likewise.
15778         * math/w_scalb.c: Likewise.
15779         * math/w_scalbf.c: Likewise.
15780         * math/w_scalbl.c: Likewise.
15781         * math/w_sqrt.c: Likewise.
15782         * math/w_sqrtf.c: Likewise.
15783         * math/w_sqrtl.c: Likewise.
15784         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15785         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15786         used.
15787         * math/math_private.h: Declare __kernel_standard_f.
15788         * math/w_cosh.c: Remove cruft and optimize a bit.
15789         * math/w_coshf.c: Likewise.
15790         * math/w_coshl.c: Likewise.
15791         * math/w_exp2.c: Likewise.
15792         * math/w_exp2f.c: Likewise.
15793         * math/w_exp2l.c: Likewise.
15794         * math/w_hypot.c: Likewise.
15795         * math/w_hypotf.c: Likewise.
15796         * math/w_hypotl.c: Likewise.
15797         * math/w_lgamma.c: Likewise.
15798         * math/w_lgamma_r.c: Likewise.
15799         * math/w_lgammaf.c: Likewise.
15800         * math/w_lgammaf_r.c: Likewise.
15801         * math/w_lgammal.c: Likewise.
15802         * math/w_lgammal_r.c: Likewise.
15803         * math/w_sinh.c: Likewise.
15804         * math/w_sinhf.c: Likewise.
15805         * math/w_sinhl.c: Likewise.
15806         * math/w_tgamma.c: Likewise.
15807         * math/w_tgammaf.c: Likewise.
15808         * math/w_tgammal.c: Likewise.
15809         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15810         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15811         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15812         Minor optimizations.  Pretty printing.  Remove cruft.
15813         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15814         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15815         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15816         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15817         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15818         * sysdeps/i386/fpu/e_asin.S: Likewise.
15819         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15820         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15821         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15822         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15823         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15824         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15825         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15826         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15827         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15828         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15829         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15830         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15831         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15832         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15833         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15834         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15835         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15836         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15837         * sysdeps/i386/fpu/e_log.S: Likewise.
15838         * sysdeps/i386/fpu/e_log10.S: Likewise.
15839         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15840         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15841         * sysdeps/i386/fpu/e_log2.S: Likewise.
15842         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15843         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15844         * sysdeps/i386/fpu/e_logf.S: Likewise.
15845         * sysdeps/i386/fpu/e_logl.S: Likewise.
15846         * sysdeps/i386/fpu/e_pow.S: Likewise.
15847         * sysdeps/i386/fpu/e_powf.S: Likewise.
15848         * sysdeps/i386/fpu/e_powl.S: Likewise.
15849         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15850         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15851         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15852         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15853         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15854         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15855         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15856         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15857         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15858         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15859         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15860         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15861         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15862         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15863         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15864         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15865         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15866         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15867         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15868         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15869         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15870         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15871         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15872         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15873         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15874         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15875         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15876         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15877         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15878         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15879         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15880         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15881         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15882         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15883         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15884         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15885         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15886         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15887         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15888         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15889         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15890         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15891         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15892         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15893         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15894         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15895         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15896         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15897         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15898         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15899         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15900         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15901         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15904         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15905         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15906         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15907         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15908         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15909         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15910         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15911         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15912         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15913         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15914         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15915         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15916         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15917         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15920         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15921         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15922         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15923         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15924         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15925         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15926         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15927         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15928         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15929         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15930         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15931         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15932         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15933         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15934         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15935         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15936         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15937         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15938         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15939         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15940         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15941         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15942         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15943         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15944         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15945         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15946         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15947         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15948         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15949         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15950         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15951         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15952         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15953         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15954         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15955         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15956         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15957         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15958         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15959         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15960         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15961         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15962         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15963         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15964         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15965         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15966         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15967         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15968         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15969         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15970         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15971         (__isnanf): Likewise.
15972         (__isinf_ns): Likewise.
15973         (__isinf_nsf): Likewise.
15974         (__finite): Likewise.
15975         (__finitef): Likewise.
15976         (__ieee754_sqrt): Define as macro.
15977         (__ieee754_sqrtf): Define as macro.
15978         (__ieee754_sqrtl): Define as macro.
15979         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15980         inlined copy.
15981         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15982         __FINITE_MATH_ONLY__ consistent.
15983         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15984
15985 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15986
15987         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15988         of rawmemchr.
15989
15990         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15991
15992 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15993
15994         * po/ja.po: Update from translation team.
15995
15996 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15997
15998         * locale/programs/locarchive.c (prepare_address_space): New function.
15999         (create_archive, enlarge_archive, open_archive): Use it.
16000
16001         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16002         inside [SHARED], where it is used.
16003
16004         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16005
16006         * nss/getent.c (netgroup_keys): Remove unused variable.
16007         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16008
16009 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16010
16011         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16012         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16013         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16014         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16015         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16016         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16017         * math/Makefile (libm-calls): Add s_isinf_ns.
16018         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16019         * math/multc3.c: Likewise.
16020         * math/s_casin.c: Likewise.
16021         * math/s_casinf.c: Likewise.
16022         * math/s_casinl.c: Likewise.
16023         * math/s_ccos.c: Likewise.
16024         * math/s_ccosf.c: Likewise.
16025         * math/s_ccosl.c: Likewise.
16026         * math/s_ctan.c: Likewise.
16027         * math/s_ctanf.c: Likewise.
16028         * math/s_ctanh.c: Likewise.
16029         * math/s_ctanhf.c: Likewise.
16030         * math/s_ctanhl.c: Likewise.
16031         * math/s_ctanl.c: Likewise.
16032         * math/w_fmod.c: Likewise.
16033         * math/w_fmodf.c: Likewise.
16034         * math/w_fmodl.c: Likewise.
16035         * math/w_remainder.c: Likewise.
16036         * math/w_remainderf.c: Likewise.
16037         * math/w_remainderl.c: Likewise.
16038         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16039         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16040         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16041         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16042         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16043         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16044         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16045         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16046
16047         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16048         of the number.
16049         * stdio-common/printf_fphex.c: Likewise.
16050         * stdio-common/printf_size.c: Likewise.
16051
16052         * math/e_exp10.c: Include math_private.h using <...> not "...".
16053         * math/e_exp10f.c: Likewise.
16054         * math/e_exp10l.c: Likewise.
16055         * math/e_exp2l.c: Likewise.
16056         * math/e_j0l.c: Likewise.
16057         * math/e_j1l.c: Likewise.
16058         * math/e_jnl.c: Likewise.
16059         * math/e_lgammal_r.c: Likewise.
16060         * math/e_rem_pio2l.c: Likewise.
16061         * math/e_scalb.c: Likewise.
16062         * math/e_scalbf.c: Likewise.
16063         * math/e_scalbl.c: Likewise.
16064         * math/k_cosl.c: Likewise.
16065         * math/k_sinl.c: Likewise.
16066         * math/k_tanl.c: Likewise.
16067         * math/s_cacoshf.c: Likewise.
16068         * math/s_catan.c: Likewise.
16069         * math/s_catanf.c: Likewise.
16070         * math/s_catanh.c: Likewise.
16071         * math/s_catanhf.c: Likewise.
16072         * math/s_catanhl.c: Likewise.
16073         * math/s_catanl.c: Likewise.
16074         * math/s_ccosh.c: Likewise.
16075         * math/s_ccoshf.c: Likewise.
16076         * math/s_ccoshl.c: Likewise.
16077         * math/s_cexp.c: Likewise.
16078         * math/s_cexpf.c: Likewise.
16079         * math/s_cexpl.c: Likewise.
16080         * math/s_clog.c: Likewise.
16081         * math/s_clog10.c: Likewise.
16082         * math/s_clog10f.c: Likewise.
16083         * math/s_clog10l.c: Likewise.
16084         * math/s_clogf.c: Likewise.
16085         * math/s_clogl.c: Likewise.
16086         * math/s_csin.c: Likewise.
16087         * math/s_csinf.c: Likewise.
16088         * math/s_csinh.c: Likewise.
16089         * math/s_csinhf.c: Likewise.
16090         * math/s_csinhl.c: Likewise.
16091         * math/s_csinl.c: Likewise.
16092         * math/s_csqrt.c: Likewise.
16093         * math/s_csqrtf.c: Likewise.
16094         * math/s_csqrtl.c: Likewise.
16095         * math/s_ctan.c: Likewise.
16096         * math/s_ctanf.c: Likewise.
16097         * math/s_ctanh.c: Likewise.
16098         * math/s_ctanhf.c: Likewise.
16099         * math/s_ctanhl.c: Likewise.
16100         * math/s_ctanl.c: Likewise.
16101         * math/s_ldexp.c: Likewise.
16102         * math/s_ldexpf.c: Likewise.
16103         * math/s_ldexpl.c: Likewise.
16104         * math/s_significand.c: Likewise.
16105         * math/s_significandf.c: Likewise.
16106         * math/s_significandl.c: Likewise.
16107         * math/w_acos.c: Likewise.
16108         * math/w_acosf.c: Likewise.
16109         * math/w_acosh.c: Likewise.
16110         * math/w_acoshf.c: Likewise.
16111         * math/w_acoshl.c: Likewise.
16112         * math/w_acosl.c: Likewise.
16113         * math/w_asin.c: Likewise.
16114         * math/w_asinf.c: Likewise.
16115         * math/w_asinl.c: Likewise.
16116         * math/w_atan2.c: Likewise.
16117         * math/w_atan2f.c: Likewise.
16118         * math/w_atan2l.c: Likewise.
16119         * math/w_atanh.c: Likewise.
16120         * math/w_atanhf.c: Likewise.
16121         * math/w_atanhl.c: Likewise.
16122         * math/w_cosh.c: Likewise.
16123         * math/w_coshf.c: Likewise.
16124         * math/w_coshl.c: Likewise.
16125         * math/w_dremf.c: Likewise.
16126         * math/w_exp10.c: Likewise.
16127         * math/w_exp10f.c: Likewise.
16128         * math/w_exp10l.c: Likewise.
16129         * math/w_exp2.c: Likewise.
16130         * math/w_exp2f.c: Likewise.
16131         * math/w_fmod.c: Likewise.
16132         * math/w_fmodf.c: Likewise.
16133         * math/w_fmodl.c: Likewise.
16134         * math/w_hypot.c: Likewise.
16135         * math/w_hypotf.c: Likewise.
16136         * math/w_hypotl.c: Likewise.
16137         * math/w_j0.c: Likewise.
16138         * math/w_j0f.c: Likewise.
16139         * math/w_j0l.c: Likewise.
16140         * math/w_j1.c: Likewise.
16141         * math/w_j1f.c: Likewise.
16142         * math/w_j1l.c: Likewise.
16143         * math/w_jn.c: Likewise.
16144         * math/w_jnf.c: Likewise.
16145         * math/w_jnl.c: Likewise.
16146         * math/w_lgamma.c: Likewise.
16147         * math/w_lgamma_r.c: Likewise.
16148         * math/w_lgammaf.c: Likewise.
16149         * math/w_lgammaf_r.c: Likewise.
16150         * math/w_lgammal.c: Likewise.
16151         * math/w_lgammal_r.c: Likewise.
16152         * math/w_log.c: Likewise.
16153         * math/w_log10.c: Likewise.
16154         * math/w_log10f.c: Likewise.
16155         * math/w_log10l.c: Likewise.
16156         * math/w_log2.c: Likewise.
16157         * math/w_log2f.c: Likewise.
16158         * math/w_log2l.c: Likewise.
16159         * math/w_logf.c: Likewise.
16160         * math/w_logl.c: Likewise.
16161         * math/w_pow.c: Likewise.
16162         * math/w_powf.c: Likewise.
16163         * math/w_powl.c: Likewise.
16164         * math/w_remainder.c: Likewise.
16165         * math/w_remainderf.c: Likewise.
16166         * math/w_remainderl.c: Likewise.
16167         * math/w_scalb.c: Likewise.
16168         * math/w_scalbf.c: Likewise.
16169         * math/w_scalbl.c: Likewise.
16170         * math/w_sinh.c: Likewise.
16171         * math/w_sinhf.c: Likewise.
16172         * math/w_sinhl.c: Likewise.
16173         * math/w_sqrt.c: Likewise.
16174         * math/w_sqrtf.c: Likewise.
16175         * math/w_sqrtl.c: Likewise.
16176         * math/w_tgamma.c: Likewise.
16177         * math/w_tgammaf.c: Likewise.
16178         * math/w_tgammal.c: Likewise.
16179
16180         * po/ja.po: Update from translation team.
16181
16182 2011-09-29  Andreas Jaeger  <aj@suse.de>
16183
16184         [BZ #13179]
16185         * sunrpc/netname.c (netname2host): Fix logic.
16186
16187         [BZ #6779]
16188         [BZ #6783]
16189         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16190         correctly.
16191         * math/w_remainder.c (__remainder): Likewise.
16192         * math/w_remainderf.c (__remainderf): Likewise.
16193         * math/libm-test.inc (remainder_test): Add test cases.
16194
16195 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16196
16197         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16198         sdiv_qrnnd.
16199
16200 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16201
16202         * string/test-memcmp.c: Avoid unncessary #defines.
16203         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16204
16205 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16206
16207         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16208         Use new sse2 version for core i3 - i7 as it's faster
16209         than sse42 version.
16210         (bit_Prefer_PMINUB_for_stringop): New.
16211         * sysdeps/x86_64/rawmemchr.S: Update.
16212         Replace with faster SSE2 version.
16213         * sysdeps/x86_64/memrchr.S: New file.
16214         * sysdeps/x86_64/memchr.S: Update.
16215         Replace with faster SSE2 version.
16216
16217 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16218
16219         * elf/dl-load.c (lose): Add cast to avoid warning.
16220
16221 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16222
16223         * po/ca.po: Update from translation team.
16224
16225         * inet/getnetgrent_r.c: Hook up nscd.
16226         * nscd/Makefile (routines): Add nscd_netgroup.
16227         (nscd-modules): Add netgroupcache.
16228         (CFLAGS-netgroupcache.c): Define.
16229         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16230         (cache_search): Add const to second parameter.
16231         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16232         INNETGR.
16233         (dbs): Add netgrdb entry.
16234         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16235         (verify_persistent_db): Handle netgrdb.
16236         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16237         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16238         GETFDNETGR.
16239         (netgroup_response_header): Define.
16240         (innetgroup_response_header): Define.
16241         (datahead): Add netgroup_response_header and innetgroup_response_header
16242         elements.
16243         * nscd/nscd.conf: Add entries for netgroup cache.
16244         * nscd/nscd.h (dbtype): Add netgrdb.
16245         (_PATH_NSCD_NETGROUP_DB): Define.
16246         (netgroup_iov_disabled): Declare.
16247         (xmalloc, xcalloc, xrealloc): Move declarations here.
16248         (cache_search): Adjust prototype.
16249         Add netgroup-related prototypes.
16250         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16251         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16252         (__nscd_innetgr): Declare.
16253         * nscd/selinux.c (perms): Use access_vector_t as element type and
16254         add netgroup-related initializers.
16255         * nscd/netgroupcache.c: New file.
16256         * nscd/nscd_netgroup.c: New file.
16257         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16258         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16259         For four parameters use innetgr.
16260         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16261         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16262         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16263         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16264
16265         * nscd/connections.c (register_traced_file): Don't register file
16266         for disabled databases.
16267
16268 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16269
16270         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16271
16272         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16273         from tree and freeing node.
16274
16275 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16276
16277         * nss/nsswitch.c (__nss_database_lookup): Handle
16278         nss_parse_service_list out of memory case.
16279
16280 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16281
16282         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16283         out of memory case.
16284
16285 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16286
16287         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16288         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16289         pass it down.
16290         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16291         elf_machine_rela, elf_machine_lazy_rel.
16292         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16293         (ELF_DYNAMIC_DO_REL): Likewise.
16294         (ELF_DYNAMIC_DO_RELA): Likewise.
16295         (ELF_DYNAMIC_RELOCATE): Likewise.
16296         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16297         to ELF_DYNAMIC_DO_REL.
16298         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16299         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16300         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16301         elf_machine_rela.
16302         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16303         skip_ifunc, don't call ifunc function if non-zero.
16304         (elf_machine_rela): Likewise.
16305         (elf_machine_lazy_rel): Likewise.
16306         (elf_machine_lazy_rela): Likewise.
16307         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16308         (elf_machine_lazy_rel): Likewise.
16309         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16310         Likewise.
16311         (elf_machine_lazy_rel): Likewise.
16312         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16313         Likewise.
16314         (elf_machine_lazy_rel): Likewise.
16315         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16316         (elf_machine_lazy_rel): Likewise.
16317         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16318         (elf_machine_lazy_rel): Likewise.
16319         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16320         (elf_machine_lazy_rel): Likewise.
16321         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16322         (elf_machine_lazy_rel): Likewise.
16323         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16324         (elf_machine_lazy_rel): Likewise.
16325         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16326         (elf_machine_lazy_rel): Likewise.
16327
16328 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16329
16330         * nss/nss_files/files-init.c (_nss_files_init): Use static
16331         initialization for all the *_traced_file variables.
16332
16333 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16334
16335         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16336
16337 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16338
16339         [BZ #13226]
16340         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16341
16342 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16343
16344         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16345         Reread the line before reparsing it.
16346
16347 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16348
16349         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16350
16351 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16352             Maxim Kuvyrkov  <maxim@codesourcery.com>
16353             Joseph Myers  <joseph@codesourcery.com>
16354
16355         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16356         if needed for __stack_chk_guard.
16357
16358 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16359
16360         * sysdeps/posix/spawni.c (script_execute): Always define it.
16361         It will be optimized away if unused.
16362         (maybe_script_execute): New function.
16363         (__spawni): Call it.
16364
16365         * Makerules: Don't include tls.make.
16366         (config-tls): Always set to thread.
16367         * tls.make.c: File removed.
16368
16369 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16370
16371         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16372         * config.make.in (CPPFLAGS-config): New substituted variable.
16373
16374 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16377
16378         [BZ #13192]
16379         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16380         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16381
16382 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16383
16384         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16385         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16386         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16387         (CALL_FAIL): Likewise.
16388         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16389         (CALL_FAIL): Macro removed.
16390         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16391
16392 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16393
16394         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16395         for __FINITE_MATH_ONLY__ == 1.
16396
16397 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16398
16399         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16400         __ieee754_sqrt instead of sqrt.
16401         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16402         __ieee754_sqrtf instead of sqrtf.
16403         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16404         __floorf instead of floorf.
16405         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16406         __floorf, __truncf instead of floorf, truncf.
16407
16408 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16409
16410         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16411
16412         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16413         __extern_always_inline.
16414         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16415         32-bit.
16416
16417 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16418
16419         * elf/rtld.c (dl_main): Also relocate in dependency order when
16420         doing symbol dependency testing.
16421
16422 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16423
16424         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16425         Always define `refsym'.
16426
16427 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16428
16429         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16430         (__FD_ELT): Renamed from __FDELT.
16431         * misc/bits/select2.h (__FD_ELT): Likewise.
16432         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16433         __FD_MASK instead of __FDELT, __FDMASK.
16434         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16435         Likewise.
16436         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16437         Likewise.
16438
16439         * elf/Makefile (gen-ldd): Fix pattern.
16440
16441         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16442         (init_tls): Likewise.
16443
16444 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16445
16446         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16447
16448 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16449
16450         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16451         `struct cmsghdr *' instead of `void *'.
16452         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16453         Likewise.
16454
16455 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16456
16457         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16458         if non-absolute.
16459         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16460         ldd_rewrite_script.
16461
16462 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16463
16464         * configure.in: Remove --with-tls option.
16465         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16466         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16467         out in case it is missing.
16468         * sysdeps/ia64/elf/configure.in: Likewise.
16469         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16470         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16471         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16472         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16473         * sysdeps/sh/elf/configure.in: Likewise.
16474         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16475         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16476         * sysdeps/x86_64/elf/configure.in: Likewise.
16477         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16478         * sysdeps/mach/hurd/tls.h: Likewise.
16479
16480         [BZ #13067]
16481         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16482
16483         [BZ #13090]
16484         * configure.in: Fix use of AC_INIT.
16485
16486         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16487
16488 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16489
16490         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16491         __set_errno.
16492         * malloc/hooks.c: Likewise.
16493
16494         [BZ #11929]
16495         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16496         variables statically.
16497         (narenas): Initialize.
16498         (list_lock): Initialize.
16499         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16500         initializtion of main_arena and list_lock.  Small cleanups.
16501         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16502         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16503         Add initializers to main_arena and mp_.
16504         (malloc_state): Remove pagesize member.  Change all users to use
16505         GLRO(dl_pagesize).
16506
16507         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16508         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16509         is always initialized.
16510
16511         * malloc/malloc.c: Removed unused configurations and dead code.
16512         * malloc/arena.c: Likewise.
16513         * malloc/hooks.c: Likewise.
16514         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16515
16516         * include/tls.h: Removed.  USE___THREAD must always be defined.
16517         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16518         * elf/dl-libc.c: Likewise.
16519         * elf/dl-tsd.c: Likewise.
16520         * include/errno.h: Likewise.
16521         * include/netdb.h: Likewise.
16522         * include/resolv.h: Likewise.
16523         * inet/herrno-loc.c: Likewise.
16524         * inet/herrno.c: Likewise.
16525         * malloc/arena.c: Likewise.
16526         * malloc/hooks.c: Likewise.
16527         * malloc/malloc.c: Likewise.
16528         * resolv/res-state.c: Likewise.
16529         * resolv/res_libc.c: Likewise.
16530         * sysdeps/i386/dl-machine.h: Likewise.
16531         * sysdeps/ia64/dl-machine.h: Likewise.
16532         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16533         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16534         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16535         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16536         * sysdeps/sh/dl-machine.h: Likewise.
16537         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16538         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16539         * sysdeps/unix/i386/sysdep.S: Likewise.
16540         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16541         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16542         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16543         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16544         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16545         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16546         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16547         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16548         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16549         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16550         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16551         * sysdeps/x86_64/dl-machine.h: Likewise.
16552         * tls.make.c: Likewise.
16553
16554         * configure.in: Remove --with-__thread option.  Make tests for
16555         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16556         tls_model attribute fail if no support is available.  Remove
16557         USE_IN_LIBIO.
16558         * Makeconfig: Adjust for dropped configure option.  All features are
16559         now mandatory.
16560         * Makerules: Likewise.
16561         * Versions.def: Likewise.
16562         * argp/argp-fmtstream.c: Likewise.
16563         * argp/argp-fmtstream.h: Likewise.
16564         * argp/argp-help.c: Likewise.
16565         * assert/assert.c: Likewise.
16566         * config.h.in: Likewise.
16567         * config.make.in: Likewise.
16568         * configure: Likewise.
16569         * configure.in: Likewise.
16570         * csu/Versions: Likewise.
16571         * csu/init.c: Likewise.
16572         * elf/tst-audit2.c: Likewise.
16573         * elf/tst-tls10.c: Likewise.
16574         * elf/tst-tls10.h: Likewise.
16575         * elf/tst-tls11.c: Likewise.
16576         * elf/tst-tls12.c: Likewise.
16577         * elf/tst-tls14.c: Likewise.
16578         * elf/tst-tlsmod11.c: Likewise.
16579         * elf/tst-tlsmod12.c: Likewise.
16580         * elf/tst-tlsmod13.c: Likewise.
16581         * elf/tst-tlsmod13a.c: Likewise.
16582         * elf/tst-tlsmod14a.c: Likewise.
16583         * elf/tst-tlsmod15b.c: Likewise.
16584         * elf/tst-tlsmod16a.c: Likewise.
16585         * elf/tst-tlsmod16b.c: Likewise.
16586         * elf/tst-tlsmod7.c: Likewise.
16587         * elf/tst-tlsmod8.c: Likewise.
16588         * elf/tst-tlsmod9.c: Likewise.
16589         * gmon/gmon.c: Likewise.
16590         * grp/fgetgrent_r.c: Likewise.
16591         * grp/putgrent.c: Likewise.
16592         * hurd/fopenport.c: Likewise.
16593         * include/libc-symbols.h: Likewise.
16594         * include/tls.h: Likewise.
16595         * intl/gettextP.h: Likewise.
16596         * intl/loadinfo.h: Likewise.
16597         * locale/global-locale.c: Likewise.
16598         * locale/localeinfo.h: Likewise.
16599         * mach/devstream.c: Likewise.
16600         * malloc/arena.c: Likewise.
16601         * malloc/set-freeres.c: Likewise.
16602         * misc/err.c: Likewise.
16603         * misc/getttyent.c: Likewise.
16604         * misc/mntent_r.c: Likewise.
16605         * posix/getopt.c: Likewise.
16606         * posix/wordexp.c: Likewise.
16607         * pwd/fgetpwent_r.c: Likewise.
16608         * resolv/Versions: Likewise.
16609         * resolv/res_hconf.c: Likewise.
16610         * shadow/fgetspent_r.c: Likewise.
16611         * shadow/putspent.c: Likewise.
16612         * stdio-common/printf_fphex.c: Likewise.
16613         * stdio-common/tmpfile.c: Likewise.
16614         * stdlib/abort.c: Likewise.
16615         * stdlib/fmtmsg.c: Likewise.
16616         * sunrpc/auth_unix.c: Likewise.
16617         * sunrpc/clnt_perr.c: Likewise.
16618         * sunrpc/clnt_tcp.c: Likewise.
16619         * sunrpc/clnt_udp.c: Likewise.
16620         * sunrpc/clnt_unix.c: Likewise.
16621         * sunrpc/openchild.c: Likewise.
16622         * sunrpc/svc_simple.c: Likewise.
16623         * sunrpc/svc_tcp.c: Likewise.
16624         * sunrpc/svc_udp.c: Likewise.
16625         * sunrpc/svc_unix.c: Likewise.
16626         * sunrpc/xdr.c: Likewise.
16627         * sunrpc/xdr_array.c: Likewise.
16628         * sunrpc/xdr_rec.c: Likewise.
16629         * sunrpc/xdr_ref.c: Likewise.
16630         * sunrpc/xdr_stdio.c: Likewise.
16631
16632 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16633
16634         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16635
16636 2011-07-03  Andreas Jaeger  <aj@suse.de>
16637
16638         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16639         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16640         regenerate with gen-libm-tests.pl.
16641
16642 2010-05-12  Petr Baudis  <pasky@suse.cz>
16643
16644         [BZ #11589]
16645         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16646         around j0() zero points by switching to j1().
16647         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16648         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16649         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16650         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16651
16652 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16653
16654         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16655         instead of 0.
16656         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16657         instead of 0.                              .
16658         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16659         Patch in part by Pavel Roskin <proski@gnu.org>.
16660
16661         [BZ #13138]
16662         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16663         realloc.
16664         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16665         Free memory block if necessary.
16666
16667         [BZ #12847]
16668         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16669         be NULL.  Don't lock in this case.
16670
16671 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16672
16673         * elf/elf.h (ELFOSABI_GNU): New macro.
16674         (ELFOSABI_LINUX): Define to that.
16675
16676 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16677
16678         * string/strncat.c (strncat): Undef the symbol in case it has been
16679         defined in bits/string.h.
16680
16681 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16682
16683         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16684
16685         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16686         link map.
16687
16688 2011-08-17  Andreas Jaeger  <aj@suse.de>
16689
16690         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16691
16692 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16693             Ian Lance Taylor  <iant@google.com>
16694
16695         * math/libm-test.inc (lround_test): New testcase.
16696         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16697
16698 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16699
16700         * Makefile: Remove support for automatic cvs check-ins.
16701         * Makerules: Likewise.
16702         * config.make.in: Likewise.
16703         * configure.in: Likewise.
16704         * intl/Makefile: Likewise.
16705         * locale/Makefile: Likewise.
16706         * po/Makefile: Likewise.
16707         * posix/Makefile: Likewise.
16708         * sysdeps/gnu/Makefile: Likewise.
16709         * sysdeps/mach/hurd/Makefile: Likewise.
16710         * sysdeps/sparc/sparc32/Makefile: Likewise.
16711
16712         [BZ #13118]
16713         * posix/Makefile (bug-regex32-ENV): Define.
16714         Patch by John Stanley <jpsinthemix@verizon.net>.
16715
16716         * misc/Makefile (headers): Add bits/select2.h.
16717         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16718         * misc/bits/select2.h: New file.
16719         * include/bits/select2.h: New file.
16720         * debug/Makefile (routines): Add fdelt_chk.
16721         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16722         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16723         FD_ISSET.
16724         * debug/fdelt_chk.c: New file.
16725
16726         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16727         * wcsmbs/test-wmemcmp.c: Likewise.
16728         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16729         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16730
16731 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16732
16733         * string/Makefile (strop-tests): Add memcmp.
16734         * string/test-wmemcmp.c: New file.
16735         * string/test-memcmp.c: Add wmemcmp support.
16736
16737 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16738
16739         [BZ #13153]
16740         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16741         2011-07-19 change.
16742
16743         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16744         garbage value in a __mach_port_mod_refs call in the cases of the
16745         task-self and thread-self ports.
16746
16747 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16748
16749         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16750
16751 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16752
16753         * elf/dl-load.c (lose): Check for non-null L.
16754
16755 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16756
16757         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16758
16759         * elf/dl-libc.c (dlerror_run): Pass back error code from
16760         dl_catch_error.
16761
16762         [BZ #13123]
16763         * elf/dl-load.c (lose): Free l_origin if it is valid.
16764
16765         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16766         names.
16767         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16768         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16769         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16770         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16771         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16772         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16773
16774 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16775
16776         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16777         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16778         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16779         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16780         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16781         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16782         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16783         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16784         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16785         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16786
16787 2011-08-15  Alan Modra  <amodra@gmail.com>
16788
16789         [BZ #13092]
16790         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16791         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16792         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16793         ppc_mcount to static-only-routines.
16794         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16795         __mcount_internal.
16796         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16797         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16798
16799 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16800
16801         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16802         for finite and infinity parameters.
16803
16804 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16805
16806         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16807         and add nop instructions for throughput optimization.
16808         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16809
16810 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16811
16812         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16813         aligned copy for power7 with vector-scalar instructions.
16814         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16815
16816 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16817
16818         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16819         AVX check.
16820
16821 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16822
16823         [BZ #13144]
16824         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16825         last change.
16826
16827 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16828
16829         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16830         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16831         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16832         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16833         clock_gettime.
16834
16835 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16836
16837         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16838         Forgot to demangle the pointer.
16839
16840         * sysdeps/i386/sysdep.h: Define atom_text_section.
16841         * sysdeps/x86_64/sysdep.h: Likewise.
16842         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16843         section with atom_text_section.
16844         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16845         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16846         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16847         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16848         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16849
16850         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16851         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16852         already be defined.  Change to take two parameters and don't assign
16853         result to variable.  Adjust all users.
16854         Define INTERNAL_GETTIME if not already defined.
16855         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16856         call.
16857         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16858         HAVE_CLOCK_GETTIME_VSYSCALL.
16859         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16860
16861         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16862         gettimeofday vsyscall, just use time.
16863
16864 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16865
16866         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16867         <errno.h>.
16868
16869 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16870
16871         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16872         syscall on x86-64.
16873         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16874         syscall.
16875         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16876         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16877         syscall if possible.
16878
16879 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16880
16881         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16882         e_ident.  Don't pass to find_mapsXX.
16883         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16884
16885 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16886
16887         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16888         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16889         * sysdeps/x86_64/multiarch/strchr.S: Update.
16890         Check bit_slow_BSF bit.
16891         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16892         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16893         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16894
16895 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16896
16897         [BZ #13134]
16898         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16899         before glibc 2.15.
16900         (tryshell): Define.
16901         (__spawni): Change last parameter to be flag.  Test
16902         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16903         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16904         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16905         * posix/spawni.c: Likewise.
16906         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16907         * posix/spawnp.c: Likewise.  Change normal version to use
16908         SPAWN_XFLAGS_USE_PATH.
16909         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16910         SPAWN_XFLAGS_TRY_SHELL.
16911
16912         [BZ #13150]
16913         * posix/glob.h: Remove gcc 1.x support.
16914
16915         [BZ #13068]
16916         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16917
16918 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16919
16920         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16921         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16922         strrchr-sse2-bsf
16923         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16924         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16925         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16926         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16927         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16928         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16929
16930 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16931
16932         * sysdeps/x86_64/wcscmp.S: New file.
16933
16934         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16935         wcscmp-c wcscmp-sse2
16936         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16937         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16938         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16939         * wcsmbs/wcscmp.c: Allow renaming.
16940
16941 2011-09-05  David S. Miller  <davem@davemloft.net>
16942
16943         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16944         stack slot, rather than the struct return pointer slot.
16945         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16946         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16948         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16949
16950 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16951
16952         * po/ja.po: Update from translation team.
16953
16954         [BZ #13144]
16955         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16956         kernel in 64-bit binaries.
16957
16958 2011-09-01  David S. Miller  <davem@davemloft.net>
16959
16960         * elf/elf.h (HWCAP_SPARC_*): Move to..
16961         * sysdeps/sparc/sysdep.h: this new file and add new values.
16962         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16963         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16964         _DL_HWCAP_COUNT to 24.
16965         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16966         entries.
16967         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16968         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16969         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16970         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16971         instead of magic constants.
16972         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16973
16974 2011-08-31  David S. Miller  <davem@davemloft.net>
16975
16976         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16977         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16978         Reimplement to do errno handling inline.
16979         (SYSCALL_ERROR_HANDLER): New macro.
16980         (__SYSCALL_STRING): Do not do errno handling in asm.
16981         (__CLONE_SYSCALL_STRING): Delete.
16982         (__INTERNAL_SYSCALL_STRING): Delete.
16983         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16984         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16985         (PSEUDO): Reimplement to do errno handling inline.
16986         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16987         (SYSCALL_ERROR_HANDLER): New macro.
16988         (__SYSCALL_STRING): Do not do errno handling in asm.
16989         (__CLONE_SYSCALL_STRING): Delete.
16990         (__INTERNAL_SYSCALL_STRING): Delete.
16991         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16992         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16993         i386.
16994         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16995         (inline_syscall*): Add 'err' argument.
16996         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16997         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16998         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16999         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17000
17001         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17002         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17003
17004 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17005
17006         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17007
17008 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17009
17010         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17011         directive.
17012
17013 2011-08-24  David S. Miller  <davem@davemloft.net>
17014
17015         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17016
17017 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17018
17019         * elf/Makefile: Add rules to build and run unload8 test.
17020         * elf/unload8.c: New file.
17021         * elf/unload8mod1.c: New file.
17022         * elf/unload8mod1x.c: New file.
17023         * elf/unload8mod2.c: New file.
17024         * elf/unload8mod3.c: New file.
17025
17026         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17027         it wasn't used.
17028
17029 2011-08-23  David S. Miller  <davem@davemloft.net>
17030
17031         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17032         subtract stack bias.
17033         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17034         %sp not %fp in calculations.
17035         (_JMPBUF_UNWINDS_ADJ): Likewise.
17036
17037         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17038         (aio_suspend): Call it to force an exception region around the
17039         AIO_MISC_WAIT() invocation.
17040
17041 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17042
17043         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17044         backslash.
17045
17046 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17047
17048         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17049         protection macro.
17050         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17051         and <dl-machine.h>.
17052         (Elf64_FuncDesc): Remove.
17053
17054 2011-08-22  David S. Miller  <davem@davemloft.net>
17055
17056         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17057         sigaltstack check, add missing cfi directives.
17058         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17059         missing cfi directives, and sigaltstack handling.
17060
17061 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17062
17063         [BZ #11724]
17064         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17065         object is seen twice.
17066         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17067
17068         * elf/Makefile (distribute): Add tst-initorder2.c.
17069         (tests): Add tst-initorder2.
17070         (modules-names): Add tst-initorder2a tst-initorder2b
17071         tst-initorder2c tst-initorder2d.  Add rules to build them.
17072         ($(objpfx)tst-initorder2.out): New rule.
17073         * elf/tst-initorder2.c: New file.
17074         * elf/tst-initorder2.exp: New file.
17075
17076 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17077
17078         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17079
17080         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17081         dependencies back to end of function.
17082
17083         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17084         $(elfobjdir)/ld.so.
17085
17086 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17087
17088         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17089         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17090         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17091         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17092         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17093         of __vdso_gettimeofday.
17094         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17095         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17096         attribute_hidden.
17097         (_libc_vdso_platform_setup): Remove initialization of
17098         __vdso_gettimeofday and __vdso_time.
17099
17100 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17101
17102         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17103         and fgetc_unlocked.
17104         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17105         getc_unlocked.
17106
17107         * elf/dl-open.c (add_to_global): Report additions to the global scope
17108         for LD_DEBUG=scopes.
17109         (dl_open_worker): Also print scope of newly loaded dependencies.
17110         (_dl_show_scope): Indicate if there is no scope.
17111
17112         [BZ #13114]
17113         * stdio-common/Makefile (tests): Add bug24.
17114         * stdio-common/bug24.c: New file.
17115
17116 2011-08-19  Andreas Jaeger  <aj@suse.de>
17117
17118         [BZ #13114]
17119         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17120         non-existant file when using close-on-exec mode.
17121
17122 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17123
17124         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17125         the very first instruction.
17126
17127         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17128         the CFI state in the end.
17129         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17130         inclusion of dl-trampoline.h.
17131         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17132
17133 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17134
17135         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17136         expectations for long double.
17137
17138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17139         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17140
17141 2011-08-14  David S. Miller  <davem@davemloft.net>
17142
17143         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17144         artificual limit depends upon the system page size.
17145
17146 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17147
17148         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17149         * resolv/Makefile: Define CFLAGS-libresolv.
17150
17151 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17152
17153         * nss/makedb.c (compute_tables): Make variables used in nested
17154         function static.
17155
17156 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17157
17158         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17159         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17160         if buffer was too small.
17161
17162         * elf/pldd.c (main): Attach to all threads in the process.
17163         Rewrite /proc handling to use *at functions.
17164
17165 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17166
17167         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17168         specifies first scope to show.
17169         (dl_open_worker): Update callers.  Move printing scope of new
17170         object to before the relocation.
17171         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17172         * sysdeps/generic/ldsodefs.h: Update declaration.
17173
17174         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17175         string for the scope number.
17176
17177 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17178
17179         * nscd/servicescache.c (cache_addserv): Make sure written is always
17180         initialized.
17181
17182 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17183
17184         * sysdeps/i386/i486/bits/atomic.h
17185         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17186         statement expression, so as to suppress "set but not used" warning.
17187         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17188
17189         * string/strncat.c (STRNCAT): Use prototype definition.
17190
17191         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17192         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17193         -Iprograms here.
17194         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17195         (localedef-modules): Add localedef.
17196         (locale-modules): Add locale.
17197
17198         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17199         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17200         to avoid a warning.
17201
17202 2011-08-14  David S. Miller  <davem@davemloft.net>
17203
17204         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17205         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17206
17207 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17208
17209         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17210         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17211         * elf/rtld.c (dl_main): Set l_name of vDSO.
17212         Call _dl_show_scope when DL_DEBUG_SCOPES.
17213         (process_dl_debug): Recognize scopes flag and also set it for all.
17214         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17215         Declare _dl_show_scope.
17216
17217         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17218         (do_dlopen): Pass caller_dlopen to dl_open.
17219         (__libc_dlopen_mode): Initialize caller_dlopen.
17220
17221         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17222         of libc.  Make tolower call locale-independent.  Optimize a bit by
17223         using isdigit instead of isalnum.
17224         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17225
17226 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17227
17228         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17229         was a dependency or dynamically loaded.
17230
17231 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17232
17233         * intl/l10nflist.c: Allow architecture-specific pop function.
17234         * sysdeps/x86_64/l10nflist.c: New file.
17235
17236         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17237         classification.
17238
17239 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17240
17241         * include/dirent.h: Add libc_hidden_proto for scandirat and
17242         scandirat64.  Don't declare __scandirat64.
17243         * dirent/scandirat.c: Add libc_hidden_def.
17244         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17245         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17246
17247 2011-08-10  David S. Miller  <davem@davemloft.net>
17248
17249         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17250         enum.
17251         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17252         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17253         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17254
17255 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17256
17257         * Versions.def [libc]: Add GLIBC_2.15.
17258         * dirent/Makefile (routines): Add scandirat and scandirat64.
17259         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17260         GLIBC_2.15.
17261         * dirent/dirent.h: Declare scandirat and scandirat64.
17262         * dirent/scandirat.c: New file.
17263         * dirent/scandirat64.c: New file.
17264         * sysdeps/wordsize-64/scandirat.c: New file.
17265         * sysdeps/wordsize-64/scandirat64.c: New file.
17266         * dirent/opendir.c: Define opendirat.
17267         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17268         using scandirat.
17269         * dirent/scandir64.c: Adjust for scandir.c change.
17270         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17271         __scandirat64, and __scandir_cancel_handler.
17272         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17273         additional parameter and use openat instead of open (outside of ld.so).
17274         Add new __opendir as wrapper around __opendirat.
17275         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17276         here without requiring old scandirat implementation.
17277
17278 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17279
17280         * dirent/scandir.c (cancel_handler): Renamed to
17281         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17282         defined.  Adjust users.
17283         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17284         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17285
17286 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17287
17288         * string/test-string.h (IMPL): Use __STRING to expand name and then
17289         stringify it.
17290
17291         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17292         of cleanups.
17293
17294 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17295
17296         * string/Makefile: Update.
17297         (strop-tests): Append strncat.
17298         * string/test-wcscmp.c: New file.
17299         New comprehensive test for wcscmp.
17300         * string/test-strcmp.c: Update.
17301         (WIDE): New define.
17302
17303 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17304
17305         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17306         line.
17307
17308 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17309
17310         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17311         encoding to ACE if AI_IDN.
17312
17313 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17314
17315         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17316         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17317
17318 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17319
17320         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17321         Fix overflow bug in strncat.
17322         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17323
17324         * string/test-strncat.c: Update.
17325         Add new tests for checking overflow bugs.
17326
17327 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17328
17329         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17330         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17331         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17332         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17333         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17334         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17335         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17336         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17337         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17338
17339         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17340         (USE_AS_STRCAT): Define.
17341         Add strcat and strncat support.
17342         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17343
17344 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17345
17346         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17347         __n bigger than INT_MAX+1.
17348         (__strncmp_g): Likewise.
17349
17350 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17351
17352         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17353         * libio/stido.h: Likewise.
17354
17355         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17356         (AF_NFC): Define.
17357         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17358         (AF_NFC): Define.
17359
17360         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17361         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17362         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17363         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17364         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17365
17366         [BZ #13021]
17367         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17368         installed.
17369
17370         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17371         typo.
17372         (_dl_x86_64_save_sse): Likewise.
17373
17374 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17375
17376         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17377         OSXSAVE.
17378         (_dl_x86_64_save_sse): Likewise.
17379
17380         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17381
17382         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17383
17384 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17385
17386         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17387         change.
17388         (_dl_x86_64_save_sse): Use correct AVX check.
17389
17390 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17391
17392         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17393         bug in strncpy/strncat.
17394         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17395
17396 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17397
17398         * string/tester.c (test_strcat): Add tests for different alignments
17399         of source and destination.
17400         (test_strncat): Likewise.
17401
17402 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17403
17404         [BZ #12852]
17405         * posix/glob.c (glob): Check passed in values before using them in
17406         expressions to avoid some overflows.
17407         (glob_in_dir): Likewise.
17408
17409         [BZ #13007]
17410         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17411         check for AVX enablement so that we don't crash with old kernels and
17412         new hardware.
17413         * elf/tst-audit4.c: Add same checks here.
17414         * elf/tst-audit6.c: Likewise.
17415
17416         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17417
17418 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17419
17420         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17421
17422 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17423
17424         * po/cs.po: Update from translation team.
17425         * po/bg.po: Likewise.
17426
17427 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17428
17429         * misc/sys/cdefs.h: Add support for const attribute.
17430         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17431         to gnu_dev_{major,minor,makedev} functions.
17432
17433 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17434
17435         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17436
17437 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17438
17439         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17440         strlen results.
17441
17442 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17443
17444         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17445         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17446         register in order to avoid conflicts with the soft frame pointer
17447         being held in r11 when necessary.
17448         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17449         (INTERNAL_VSYSCALL_NCS): Likewise.
17450
17451 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17452
17453         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17454         * elf/dl-fini.c (_dl_fini): Adjust caller.
17455         * elf/dl-close.c (_dl_close_worker): Likewise.
17456         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17457
17458 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17459
17460         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17461         "aux_cache->nlibs < 0".
17462
17463         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17464         in the reload-count case.
17465
17466 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17467
17468         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17469         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17470         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17471         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17472         * sysdeps/x86_64/multiarch/strcat.S: New file.
17473         * sysdeps/x86_64/multiarch/strncat.S: New file.
17474         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17475         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17476         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17477         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17478         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17479         (USE_AS_STRCAT): Define.
17480         Add strcat and strncat support.
17481         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17482         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17483         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17484         * string/strncat.c: Update.
17485         (USE_AS_STRNCAT): Define.
17486         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17487         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17488         and i7.
17489         * sysdeps/x86_64/multiarch/init-arch.h
17490         (bit_Prefer_PMINUB_for_stringop): New.
17491         (index_Prefer_PMINUB_for_stringop): Likewise.
17492         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17493         bit_Prefer_PMINUB_for_stringop.
17494
17495 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17496
17497         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17498         buffer64.
17499         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17500         of casting of buffer.
17501         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17502         buffer32 and buffer64.
17503         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17504         writes instead of casting of buffer.
17505         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17506         buffer32.
17507         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17508         casting of buffer.
17509
17510 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17511
17512         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17513
17514 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17515
17516         * nscd/nscd.c (termination_handler): Don't do anything for a database
17517         if it has not yet been initialized.
17518
17519 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17520
17521         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17522
17523 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17524
17525         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17526
17527 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17528
17529         * po/nl.po: Update from translation team.
17530         * po/sv.po: Likewise.
17531
17532 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17533
17534         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17535         now disallowed by GCC.
17536
17537         * configure.in (use-default-link): Default to yes if a test -shared
17538         link meets our qualifications.
17539         * configure: Regenerated.
17540
17541         * config.make.in (output-format): New variable.
17542         * configure.in: Check for ld --print-output-format support.
17543         * configure: Regenerated.
17544         * Makerules ($(common-objpfx)format.lds)
17545         [$(output-format) != unknown]: Just use $(output-format),
17546         instead of the linker-script munging.
17547
17548 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17549
17550         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17551         of $(common-objpfx)shlib.lds.
17552         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17553
17554         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17555         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17556
17557         * configure.in (-z relro check): Adjust test code to add a large
17558         writable data section after it.
17559         * configure: Regenerated.
17560
17561 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17562
17563         * configure.in (-z relro check): Fix test code to make the variable
17564         truly const.
17565         * configure: Regenerated.
17566
17567 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17568
17569         * nscd/nscd.h (struct traced_file): Define.
17570         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17571         elements.  Add traced_files.
17572         (inotify_fd): Declare.
17573         (register_traced_file): Declare.
17574         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17575         (inotify_fd): Export.
17576         (resolv_conf_descr): Remove.
17577         (nscd_init): Move inotify descriptor creation to main.
17578         Don't register files for notification here.
17579         (register_traced_file): New function.
17580         (invalidate_cache): Don't use reset_res to determine whether to call
17581         res_init, go through the list of registered files.
17582         (main_loop_poll): The inotify descriptors are now stored in the
17583         structures for the traced files.
17584         (main_loop_epoll): Likewise
17585         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17586         to __nss_disable_nscd.
17587         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17588         for a database anymore.  Check the records for all the registered
17589         files instead.
17590         * nss/Makefile (libnss_files-routines): Add files-init.
17591         (libnss_db-routines): Add db-init.
17592         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17593         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17594         * nss/nss_db/db-init.c: New file.
17595         * nss/nss_files/files-init.c: New file.
17596         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17597         __nss_lookup_function.
17598         (__nss_lookup_function): Call nss_load_library.
17599         (nss_load_all_libraries): New function.
17600         (__nss_disable_nscd): Take parameter with callback function for files
17601         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17602         used for the cached services.
17603         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17604         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17605         options for features to all the files in nscd.
17606
17607         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17608
17609 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17610
17611         * csu/elf-init.c (__libc_csu_init): Comment typo.
17612
17613 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17614
17615         * po/pl.po: Update from translation team.
17616         * po/ja.po: Likewise.
17617         * po/ru.po: Likewise.
17618         * po/ko.po: Likewise.
17619         * po/fr.po: Likewise.
17620
17621 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17622
17623         * configure.in (.ctors/.dtors header and trailer check):
17624         Use an empirical test on a built program.
17625         * configure: Regenerated.
17626
17627         * configure.in (-z relro check): Use an empirical test on a built DSO.
17628         Detect, but do not require, on ia64.
17629         * configure: Regenerated.
17630
17631         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17632         Update tests that use readelf to use $READELF instead.
17633         * configure: Regenerated.
17634
17635 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17636
17637         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17638         if the result is not used.
17639
17640 2011-07-05  Andreas Jaeger  <aj@suse.de>
17641
17642         [BZ#9696]
17643         * stdlib/tst-strtod.c: Add testcase.
17644
17645 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17646
17647         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17648         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17649         The latter has a higher limit.  Take additional parameter to pass to
17650         the new function.
17651         (__pathconf): Pass file to __statfs_link_max.
17652         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17653         __statfs_link_max.
17654         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17655         __statfs_link_max.
17656
17657         [BZ #12868]
17658         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17659         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17660         Handle Lustre.
17661         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17662         (__statfs_filesize_max): Likewise.
17663         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17664
17665 2011-07-05  Andreas Jaeger  <aj@suse.de>
17666
17667         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17668
17669 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17670
17671         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17672         `status' variable.
17673         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17674         Likewise.
17675
17676 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17677
17678         * Makefile (strop-tests): Add strncat.
17679         * string/test-strncat.c: New file.
17680
17681 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17682
17683         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17684
17685 2011-06-21  Andreas Jaeger  <aj@suse.de>
17686
17687         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17688         Copy rule from iconvdata/Makefile.
17689
17690 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17691
17692         [BZ #12922]
17693         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17694         but no long options are defined, just return 'W'.
17695
17696 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17697
17698         [BZ #9696]
17699         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17700
17701 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17702
17703         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17704         netgroups to read.
17705         (innetgr): Likewise.
17706
17707 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17708
17709         * config.make.in (install_root): Default to $(DESTDIR).
17710
17711 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17712
17713         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17714
17715 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17716
17717         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17718
17719         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17720         containing directory rather than embedding absolute directory names.
17721
17722         * scripts/check-local-headers.sh: Rewritten using awk.
17723         Match by word, not by line.  Print error messages for matches.
17724         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17725
17726         * Makerules [shlib-lds-flags empty]:
17727         ($(common-objpfx)libc_pic.opts): New target.
17728         ($(common-objpfx)libc_pic.os.clean): New target.
17729         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17730
17731         * config.make.in (OBJCOPY): New variable.
17732         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17733         * configure: Regenerated.
17734
17735         * config.make.in (use-default-link): New variable.
17736         * configure.in (use_default_link): Grok --with-default-link to set it.
17737         * configure: Regenerated.
17738         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17739         (shlib-lds, shlib-lds-flags): Define to empty.
17740
17741         * Makerules (shlib-lds): New variable.
17742         (shlib-lds-flags): New variable.
17743         (build-shlib, build-moduile, build-module-asneeded): Use it.
17744         ($(common-objpfx)libc.so): Use $(shlib-lds).
17745         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17746         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17747
17748         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17749         DT_FLAGS/DT_FLAGS_1 with zero flags.
17750
17751         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17752         linker script munging.
17753
17754 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17755
17756         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17757         as 128-bit value.
17758         * crypt/sha512.c (sha512_process_block): Perform total addition using
17759         128-bit if possible.
17760         (__sha512_finish_ctx): Likewise.
17761         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17762         as 64-bit value.
17763         * crypt/sha256.c (SWAP64): Define.
17764         (sha256_process_block): Perform total addition using 64-bit if
17765         possible.
17766         (__sha256_finish_ctx): Likewise.
17767
17768 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17769
17770         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17771         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17772         * nscd/hstcache.c (cache_addhst): Likewise.
17773         * nscd/grpcache.c (cache_addgr): Likewise.
17774         * nscd/aicache.c (addhstaiX): Likewise
17775         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17776
17777 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17778
17779         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17780         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17781         * nscd/hstcache.c (cache_addhst): Likewise.
17782         * nscd/grpcache.c (cache_addgr): Likewise.
17783         * nscd/aicache.c (addhstaiX): Likewise
17784
17785 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17786
17787         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17788         domain only when needed.
17789
17790 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17791
17792         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17793         is always restored.
17794
17795 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17796
17797         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17798         are re-adding the entry.
17799         * nscd/servicescache.c (cache_addserv): Likewise.
17800
17801 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17802
17803         * sysdeps/generic/dl-irel.h: fix protection against multiple
17804         inclusions.
17805         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17806
17807 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17808
17809         [BZ #12935]
17810         * malloc/memusage.sh: Fix quoting in message.
17811         * debug/xtrace.sh: Likewise.
17812
17813         * configure.in: Remove support for --experimental-malloc option, make
17814         it the default.
17815         * config.make.in: Likewise.
17816         * malloc/Makefile: Likewise.
17817
17818 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17819
17820         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17821         two-byte characters.
17822
17823 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17824
17825         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17826         AC_CACHE_CHECK invocation.
17827         * configure: Regenerated.
17828
17829         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17830
17831 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17832
17833         [BZ #12350]
17834         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17835         bit from old_res_options.
17836
17837         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17838
17839         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17840         value type for setfct.
17841
17842 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17843
17844         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17845         __gettimeofday instead of gettimeofday.
17846
17847 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17848
17849         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17850
17851 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17852
17853         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17854
17855         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17856         info.
17857
17858 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17859
17860         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17861         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17862         strcpy-sse2-unaligned strncpy-sse2-unaligned
17863         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17864         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17865         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17866         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17867         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17868         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17869         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17870         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17871         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17872         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17873         (STRCPY): Support SSE2 and SSSE3 versions.
17874
17875 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17876
17877         [BZ #12874]
17878         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17879         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17880         kernels which artificially limit size of requests.
17881
17882 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17883
17884         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17885         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17886         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17887         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17888         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17889         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17890         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17891         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17892         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17893         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17894         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17895         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17896         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17897         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17898         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17899         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17900         Enable unaligned load optimization for Intel Core i3, i5 and i7
17901         processors.
17902         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17903         Define.
17904         (index_Fast_Unaligned_Load): Define.
17905         (HAS_FAST_UNALIGNED_LOAD): Define.
17906
17907 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17908
17909         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17910
17911 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17912
17913         [BZ #12907]
17914         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17915         until it is clear that the information is realy needed.
17916         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17917
17918 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17919
17920         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17921
17922 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17923
17924         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17925         /sys/devices/system/cpu/online if it is usable.
17926
17927         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17928         reading the information from the /proc filesystem to once a second.
17929
17930 2011-06-21  Andreas Jaeger  <aj@suse.de>
17931
17932         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17933         NULL after inclusion of kernel headers.
17934
17935 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17936
17937         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17938         calls to internal_setent.
17939
17940         [BZ #12885]
17941         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17942         addresses using gethostbyname4_r ignore IPv4 addresses.
17943
17944         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17945         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17946
17947         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17948
17949 2011-06-20  David S. Miller  <davem@davemloft.net>
17950
17951         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17952         inclusions.
17953         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17954
17955         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17956         (elf_irel): Use it.
17957         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17958         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17959         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17960         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17961         * sysdeps/x86_64/dl-irel.h: Likewise.
17962
17963         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17964         * elf/dl-sym.c: Likewise.
17965
17966 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17967
17968         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17969         need to dereference resplen2.
17970
17971 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17972
17973         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17974
17975 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17976
17977         * Makeconfig: Define vardbdir and inst_vardbdir.
17978         * nss/Makefile: Add rules to install db-Makefile.
17979
17980         * nss/nss_db/db-XXX.c: Cleanup.
17981
17982         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17983         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17984         GLIBC_PRIVATE.
17985         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17986         * nss/makedb.c: Implement -g option to specify that value strings
17987         are generated and should not be added to table iterated over for
17988         get*ent calls.
17989         * nss/nss_db/db-initgroups.c: New file.
17990
17991         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17992         interface.
17993
17994         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17995         (internal_getgrouplist): Adjust to name change.
17996         Update use_initgroups_entry if this is not the first call.
17997         * nss/databases.def: Add initgroups entry.
17998
17999         * nss/makedb.c (compute_tables): Check result of multiple hash table
18000         sizes to minimize maximum chain length.
18001
18002 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18003
18004         * Versions.def: Add entry for libnss_db.
18005         * shlib-versions: Likewise.
18006         * nss/Makefile: Add rules to build libnss_db.
18007         * nss/Versions: Add libnss_db information.  Organize libnss_files
18008         entries better.
18009         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18010         makedb progra.  Some minor improvements to generate smaller files.
18011         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18012         here from...
18013         * nss/makedb.c: ...here.
18014         Improve database format to be smaller and require less memory at
18015         runtime.
18016         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18017         db anymore.
18018         * nss/nss_db/db-netgrp.c: Likewise.
18019         * nss/nss_db/db-open.c: Likewise.
18020         * nss/nss_files/flies-XXX.x: Adjust comments.
18021         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18022         * nss/nss_files/files-grp.c: Likewise.
18023         * nss/nss_files/files-hosts.c: Likewise.
18024         * nss/nss_files/files-network.c: Likewise.
18025         * nss/nss_files/files-proto.c: Likewise.
18026         * nss/nss_files/files-pwd.c: Likewise.
18027         * nss/nss_files/files-rpc.c: Likewise.
18028         * nss/nss_files/files-service.c: Likewise.
18029         * nss/nss_files/files-sgrp.c: Likewise.
18030         * nss/nss_files/files-spwd.c: Likewise.
18031         * nss/nss_db/db-alias.c: Removed.
18032         * nss/nss_db/dummy-db.h: Removed.
18033
18034 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18035
18036         * nss/makedb.c: Rewritten to not use database library.
18037         * nss/Makefile: Update to build new makedb program.
18038
18039 2011-06-14  Andreas Jaeger  <aj@suse.de>
18040
18041         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18042         memset declaration.
18043
18044 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18045
18046         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18047         tmpbuf.
18048
18049 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18050
18051         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18052         * elf/Makefile ($(objpfx)ld.so): Likewise.
18053
18054         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18055         Don't list ld.so twice in dependencies.
18056
18057         * posix/bug-regex31.c: Include <stdlib.h>.
18058
18059         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18060
18061         * nis/nss_compat/compat-spwd.c
18062         (getspent_next_nss_netgr): Remove unused variable.
18063         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18064
18065         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18066         nonmembers" output to use the right array.
18067
18068         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18069
18070         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18071
18072         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18073         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18074         * catgets/gencat.c (read_input_file): Likewise.
18075         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18076
18077         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18078         variable definition inside #if's controlling its use.
18079
18080         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18081
18082         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18083
18084         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18085
18086         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18087         unreachable code.
18088
18089         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18090
18091         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18092         * configure: Regenerated.
18093
18094         * Makerules: Revert last change.
18095         * elf/Makefile: Likewise.
18096
18097 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18098
18099         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18100         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18101         (reloc-link): Likewise.
18102
18103 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18104
18105         * elf/Makefile: Add rules to build pldd.
18106         * elf/pldd.c: New file.
18107         * elf/pldd-xx.c: New file.
18108
18109 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18110
18111         * version.h: Update for 2.15 development version.
18112
18113 2011-06-07  David S. Miller  <davem@davemloft.net>
18114
18115         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18116         ifuncs.
18117         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18118         elf_machine_lazy_rel): Likewise.
18119         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18120         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18121         elf_machine_lazy_rel): Likewise.
18122         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18123         dl_hwcap via passed in argument.
18124         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18125         Likewise.
18126
18127 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18128
18129         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18130
18131 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18132
18133         [BZ #12849]
18134         * manual/fdl-1.1.texi: New file, verbatim from:
18135         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18136         * manual/lgpl-2.1.texi: New file, verbatim from:
18137         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18138         * manual/Makefile (licenses): New variable, list those new file names.
18139         (texis): Use it.
18140         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18141
18142         * manual/fdl.texi: File removed.
18143         * manual/lesser.texi: File removed.
18144         * manual/libc.texinfo (Copying, Documentation License):
18145         Use new @include file names, put @appendix directive before @include.
18146
18147 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18148
18149         [BZ #12841]
18150         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18151         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18152         (mq_open): Add __NTH.
18153
18154 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18155
18156         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18157         Assume Intel Core i3/i5/i7 processor if AVX is available.
18158
18159 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18160
18161         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18162         typo.
18163
18164 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18165
18166         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18167         memory.  Use alloca_account.  Fix memory leak when retrying.
18168
18169 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18170
18171         * version.h (RELEASE): Bump for 2.14 release.
18172         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18173
18174         * config.make.in (RANLIB): Remove entry.
18175
18176 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18177
18178         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18179         (libc.pot): Work around missing support for .ksh extension in xgettext.
18180
18181         [BZ #12684]
18182         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18183         if both request failed.
18184         (send_dg): In case of server errors clear resplen or *resplen2.
18185
18186         [BZ #12454]
18187         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18188         when there are multiple maps.
18189         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18190         (_dl_fini): Remove test here.
18191
18192         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18193
18194 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18195
18196         [BZ #12350]
18197         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18198         bit from old_res_options.
18199         (gaih_inet): Likewise.
18200
18201         [BZ #11099]
18202         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18203         as signed.
18204
18205         * resolv/res_init.c (res_setoptions): Make the code more compact.
18206
18207         [BZ #11558]
18208         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18209         set RES_USEVC.
18210
18211         [BZ #11634]
18212         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18213
18214         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18215
18216         [BZ #11781]
18217         * malloc/malloc.h: Declare malloc hook variables as volatile.
18218
18219         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18220         in last patch.
18221
18222         [BZ #11799]
18223         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18224         raise in the comment.
18225         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18226         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18227         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18228
18229 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18230
18231         [BZ #12811]
18232         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18233         grow the buffers more if it already has to be sufficient.
18234         (build_wcs_upper_buffer): Likewise.
18235         * posix/regexec.c (check_matching): Likewise.
18236         (clean_state_log_if_needed): Likewise.
18237         (extend_buffers): Don't enlarge buffers beyond size of the input
18238         buffer.
18239         Patches mostly by Emil Wojak <emil@wojak.eu>.
18240         * posix/bug-regex32.c: New file.
18241         * posix/Makefile (tests): Add bug-regex32.
18242
18243         * locale/findlocale.c (_nl_find_locale): Return right away if
18244         _nl_explode_name failed.
18245         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18246
18247         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18248
18249         * debug/xtrace.sh: Unify messages.
18250         * malloc/memusage.sh: Likewise.
18251
18252         [BZ #12813]
18253         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18254         time symbol from vDSO.  Substitute with vsyscall if not available.
18255         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18256         __vdso_time.
18257
18258         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18259         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18260         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18261         Add sendmmsg and internal_sendmmsg.
18262         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18263         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18264         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18265
18266         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18267         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18268         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18269
18270 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18271
18272         [BZ #12813]
18273         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18274         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18275         available.
18276         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18277         __vdso_getcpu.
18278
18279         [BZ #12814]
18280         * iconvdata/Makefile (tests): Add bug-iconv9.
18281         * iconvdata/bug-iconv9.c: New file.
18282
18283 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18284
18285         [BZ #12814]
18286         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18287
18288 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18289
18290         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18291         (struct user_regs_struct): Change intcs field back to cs.
18292
18293 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18294
18295         * po/ja.po: Update from translation team.
18296
18297 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18298
18299         [BZ #12795]
18300         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18301         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18302
18303 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18304
18305         * stdlib/longlong.h: Update from GCC.
18306
18307 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18308
18309         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18310         parameter name.
18311         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18312         Add parameter name.
18313         (__sysconf): Pass it down.
18314
18315 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18316
18317         [BZ #12671]
18318         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18319         some situations.
18320         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18321         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18322         add in in __libc_use_alloca calls.  Adjust callers.
18323         (glob): Use malloc in some situations.
18324
18325         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18326         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18327         pltexit.
18328
18329 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18330
18331         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18332         and CLOCK_BOOTTIME_ALARM.
18333
18334         [BZ #12782]
18335         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18336         is returned.
18337
18338         * string/_strerror.c (__strerror_r): Print negative errors as signed
18339         numbers.
18340
18341         [BZ #12777]
18342         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18343         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18344         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18345
18346         * configure.in: Fix typo in redirection and correct removal of test
18347         files in two cases.
18348
18349         [BZ #12788]
18350         * locale/setlocale.c (new_composite_name): Fix test to check for
18351         identical name of all categories.
18352
18353         [BZ #12792]
18354         * libio/filedoalloc.c (local_isatty): New function.
18355         (_IO_file_doallocate): Use local_isatty.
18356         * stdio-common/perror.c (perror): In case a new stream is used
18357         forward the stream error.
18358         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18359         error flag.
18360
18361 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18362
18363         [BZ #11869]
18364         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18365         alloca.
18366         * include/alloca.h (extend_alloca_account): Define.
18367
18368         [BZ #11857]
18369         * posix/regex.h: Fix comments with documentation of user-accessible
18370         fields after compilation and describe correct free'ing of pattern
18371         after re_compile_pattern.
18372         Patch by Reuben Thomas <rrt@sc3d.org>.
18373
18374 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18375
18376         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18377         and -mno-altivec to prevent the compiler from using Altivec and/or
18378         VSX instructions when the corresponding registers are not available.
18379
18380 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18381
18382         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18383
18384 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18385
18386         * libio/freopen.c (freopen): Use __dup2, not dup2.
18387         * libio/freopen64.c (freopen64): Likewise.
18388
18389 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18390
18391         [BZ #12775]
18392         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18393         * math/Makefile (tests): Add test-powl.
18394         (CFLAGS-test-powl.c): Define.
18395         * math/test-powl.c: New file.
18396
18397 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18398
18399         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18400
18401 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18402
18403         [BZ #11837]
18404         * iconvdata/gb18030.c: Update to GB18020-2005.
18405
18406 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18407
18408         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18409         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18410         Patch by Aharon Robbins <arnold@skeeve.com>.
18411
18412         [BZ #11892]
18413         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18414         on the stack.
18415
18416         [BZ #11895]
18417         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18418         through underflows.
18419
18420         [BZ #12766]
18421         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18422         point to strings before performing equality test for error_one_per_line
18423         mode.
18424
18425         [BZ #11697]
18426         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18427
18428         [BZ #11820]
18429         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18430         (struct user_fpregs_struct): Avoid __uint*_t types.
18431
18432         [BZ #6420]
18433         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18434         symbol info.  Use it instead of calling _dl_addr locally.
18435         (lock_and_info): New function.
18436         (tr_freehook): Call lock_and_info and pass symbol info as additional
18437         parameter to tr_where.
18438         (tr_mallochook): Likewise.
18439         (tr_reallochook): Likewise.
18440         (tr_memalignhook): Likewise.
18441
18442         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18443         used and couldn't be at all thread-safe.
18444
18445 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18446
18447         * libio/freopen.c (freopen): Don't close old file descriptor
18448         before the new one is opened.  Instead dup the new file descriptor
18449         to the old one after the new stream is created.
18450         * libio/freopen64.c (freopen64): Likewise.
18451         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18452         * libio/fileops.c (_IO_new_file_close_it): Handle new
18453         _IO_FLAGS2_NOCLOSE flag.
18454         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18455         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18456         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18457         _IO_FLAGS2_NOCLOSE flag.
18458         * include/unistd.h: Add hidden_proto for dup3.
18459         Define __have_dup3.
18460         * io/dup3.c: Define hidden symbol.
18461         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18462
18463         [BZ #7101]
18464         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18465         when an incomplete long option is used.
18466         * posix/tst-getopt_long1.c: New file.
18467         * posix/Makefile (tests): Add tst-getopt_long1.
18468
18469         [BZ #10138]
18470         * scripts/config.guess: Update from autoconf-2.68.
18471         * scripts/config.sub: Likewise.
18472
18473         [BZ #10157]
18474         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18475         tests into ...
18476         (has_cpuclock): ...this.  New function.
18477         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18478         macro here based on has_cpuclock code.
18479
18480         [BZ #10149]
18481         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18482         First byte (not low byte) is now always NUL.
18483         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18484
18485         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18486         Use non-cancelable interfaces.
18487
18488         [BZ #9809]
18489         * locale/iso-639.def: Add entry for Sorani.
18490
18491         [BZ #11901]
18492         * include/stdlib.h: Move include protection to the right place.
18493         Define abort_msg_s.  Declare __abort_msg with it.
18494         * stdlib/abort.c (__abort_msg): Adjust type.
18495         * assert/assert.c (__assert_fail_base): New function.  Majority
18496         of code from __assert_fail.  Allocate memory for __abort_msg with
18497         mmap.
18498         (__assert_fail): Now call __assert_fail_base.
18499         * assert/assert-perr.c: Remove bulk of implementation.  Use
18500         __assert_fail_base.
18501         * include/assert.hL Declare __assert_fail_base.
18502         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18503         mmap.
18504         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18505
18506 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18507
18508         [BZ #11952]
18509         [BZ #12453]
18510         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18511         until all modules are registered in the DTV.
18512         * elf/Makefile: Add rules to build and run tst-tls19.
18513         * elf/tst-tls19.c: New file.
18514         * elf/tst-tls19mod1.c: New file.
18515         * elf/tst-tls19mod2.c: New file.
18516         * elf/tst-tls19mod3.c: New file.
18517         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18518
18519         [BZ #12083]
18520         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18521         correctly.
18522
18523         [BZ #12601]
18524         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18525         two-byte sequence errors.
18526         * iconvdata/Makefile (tests): Add bug-iconv8.
18527         * iconvdata/bug-iconv8.c: New file.
18528
18529         [BZ #12626]
18530         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18531         buf2 definition.
18532
18533         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18534
18535         [BZ #12432]
18536         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18537         (dummy_getcfa): New function.
18538         (init): Get _Unwind_GetCFA address, use dummy if not found.
18539         (backtrace_helper): In recursion check, also check whether CFA changes.
18540         (__backtrace): Completely initialize arg.
18541
18542         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18543         storing incomplete byte sequence in state object.  Avoid testing for
18544         guaranteed too small input if we know there is enough data available.
18545
18546 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18547
18548         * Makeconfig (+link-pie): Indent.
18549         * Rules (binaries-pie): Define if $(have-fpie) and
18550         $(build-shared).
18551         (binaries-shared): Also filter out $(binaries-pie).
18552         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18553         * nscd/Makefile (others-pie): Add nscd.
18554         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18555         ($(objpfx)nscd): Remove command override.
18556         * login/Makefile (others-pie): Add pt_chown.
18557         ($(objpfx)pt_chown): Remove command override.
18558         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18559         remove command overrides.
18560
18561 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18562
18563         * libio/tst_putwc.c: Fix error messages.
18564
18565         [BZ #12724]
18566         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18567         currently writing and seek to current position when not.
18568         * libio/Makefile (tests): Add bug-fclose1.
18569         * libio/bug-fclose1.c: New file.
18570
18571 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18572
18573         [BZ #12511]
18574         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18575         don't set DF_1_NODELETE here.
18576         (do_lookup_x): When entering new entry test for copy relocation
18577         and if necessary set DF_1_NODELETE flag.
18578         * elf/tst-unique4.cc: New file.
18579         * elf/tst-unique4.h: New file.
18580         * elf/tst-unique4lib.cc: New file.
18581         * elf/Makefile: Add rules to build and run tst-unique4.
18582         Patch by Piotr Bury <pbury@goahead.com>.
18583
18584 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18585
18586         [BZ #12052]
18587         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18588
18589         [BZ #12625]
18590         * misc/mntent_r.c (addmntent): Flush the stream after the output
18591
18592         [BZ #12393]
18593         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18594         (is_trusted_path_normalize): Skip initial colon.  Append slash
18595         to empty buffer.  Duplicate is_trusted_path code but allow
18596         constructed patch to be prefix.
18597         (is_dst): Allow $ORIGIN followed by /.
18598         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18599         Correct testing of result of is_trusted_path_normalize
18600         (decompose_rpath): Fix warning.
18601
18602 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18603
18604         [BZ #11257]
18605         * grp/initgroups.c (internal_getgrouplist): When we found the service
18606         list through the initgroups entry in nsswitch.conf do not always
18607         continue on a successful lookup.  Don't always use the
18608         __nss_group_database value if it is set.
18609         * nss/nsswitch.conf (initgroups): Change action for successful db
18610         lookup to continue for compatibility.
18611
18612 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18613
18614         [BZ #11532]
18615         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18616         and CP774 modules.
18617         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18618         and CP774 modules.
18619         * iconvdata/tst-tables.sh: Likewise.
18620         * iconvdata/cp770.c: New file.
18621         * iconvdata/cp771.c: New file.
18622         * iconvdata/cp772.c: New file.
18623         * iconvdata/cp773.c: New file.
18624         * iconvdata/cp774.c: New file.
18625         * iconvdata/testdata/CP770: New file.
18626         * iconvdata/testdata/CP770..UTF8: New file.
18627         * iconvdata/testdata/CP771: New file.
18628         * iconvdata/testdata/CP771..UTF8: New file.
18629         * iconvdata/testdata/CP772: New file.
18630         * iconvdata/testdata/CP772..UTF8: New file.
18631         * iconvdata/testdata/CP773: New file.
18632         * iconvdata/testdata/CP773..UTF8: New file.
18633         * iconvdata/testdata/CP774: New file.
18634         * iconvdata/testdata/CP774..UTF8: New file.
18635
18636         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18637         END CHARMAP line.
18638         * iconvdata/gen-8bit-gap.sh: Likewise.
18639         * iconvdata/gen-8bit.sh: Likewise.
18640
18641         * locale/iso-639.def: Add ary entry.
18642
18643         [BZ #11258]
18644         * locale/C-translit.h.in: Add U20A1 transliteration.
18645
18646         [BZ #12178]
18647         * locale/iso-639.def: Add wae entry.
18648         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18649
18650         [BZ #12545]
18651         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18652         for n.
18653
18654         [BZ #12711]
18655         * locale/C-translit.h.in: Add entry for U20B9.
18656         Patch by pravin.d.s@gmail.com.
18657
18658 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18659
18660         [BZ #12713]
18661         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18662         ENAMETOOLONG use generic getcwd.
18663         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18664         in rtld.  Use *stat64.
18665         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18666         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18667         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18668         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18669         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18670         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18671         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18672         __fstatat64 macros.
18673         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18674         * dirent/rewinddir.c: Add libc_hidden_def.
18675         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18676         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18677
18678         * include/dirent.h (__alloc_dir): Add flags parameter.
18679         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18680         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18681         __alloc_dir.
18682         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18683         from fdopendir if O_CLOEXEC is already set.
18684
18685 2011-03-15  Alan Modra  <amodra@gmail.com>
18686
18687         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18688         l_tls_firstbyte_offset non-zero.  Save padding offset in
18689         l_tls_firstbyte_offset for later use.
18690         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18691         freeing static tls block.
18692
18693 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18694
18695         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18696         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18697         being defined by the kernel headers.
18698
18699 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18700
18701         [BZ #12734]
18702         * resolv/resolv.h: Define RES_NOTLDQUERY.
18703         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18704         no-tld-query and set RES_NOTLDQUERY.
18705         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18706         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18707         modern BIND to search name as TLD unless forbidden.
18708
18709 2011-05-07  Petr Baudis  <pasky@suse.cz>
18710             Ulrich Drepper  <drepper@gmail.com>
18711
18712         [BZ #12393]
18713         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18714         (is_trusted_path): ...to here.
18715         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18716         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18717         using is_trusted_path_normalize() in setuid scripts.
18718
18719 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18720
18721         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18722         __BEGIN/__END_DECLS.
18723
18724 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18725
18726         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18727         NSS_STATUS_NOTFOUND if no record was found.
18728
18729 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18730
18731         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18732         (headers-not-in-tirpc): Remove rpc/netdb.h
18733         * resolv/netdb.h: Revert last change.
18734
18735 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18736
18737         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18738         circular dependency between libgcc.a and libc.a.
18739
18740 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18741
18742         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18743         * nis/Makefile: Don't install rpcsvc/*.
18744         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18745         instead of <rpc/types.h>.
18746         (MAXHOSTNAMELEN): Define.
18747
18748 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18749
18750         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18751
18752 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18753
18754         [BZ #12714]
18755         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18756         gethostbyname4_r when IPv6 results are possible.
18757
18758 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18759
18760         [BZ #12723]
18761         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18762         _PC_PIPE_BUF handling.
18763
18764 2011-04-30  Bruno Haible  <bruno@clisp.org>
18765
18766         [BZ #12717]
18767         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18768         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18769         to 'int'.
18770         * inet/getnameinfo.c (getnameinfo): Likewise.
18771
18772 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18773
18774         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18775         to groups setting in database lookup.
18776         * nss/nsswitch.conf: Add initgroups entry.
18777
18778 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18779
18780         [BZ #12685]
18781         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18782         mode string.
18783         Patch by Eric Blake <eblake@redhat.com>.
18784
18785 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18786
18787         * sunrpc/Makefile (need-export-routines): Add svc_run.
18788         (routines): Remove svc_run.
18789         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18790         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18791         * sunrpc/svc_run.c (svc_run): Likewise.
18792         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18793
18794 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18795
18796         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18797         problem in reallocation in last patch.
18798
18799 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18800
18801         * sunrpc/Makefile: Move inclusion of Rules.
18802
18803 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18804
18805         * nss/nss_files/files-initgroups.c: New file.
18806         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18807         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18808         _nss_files_initgroups_dyn.
18809
18810 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18811
18812         * elf/elf.h (R_ARM_IRELATIVE): Define.
18813
18814 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18815
18816         * po/ru.po: Update from translation team.
18817
18818 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18819
18820         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18821         dependencies.
18822
18823 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18824
18825         [BZ #12653]
18826         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18827         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18828         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18829         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18830         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18831
18832 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18833
18834         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18835         differing bytes.
18836         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18837         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18838         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18839
18840 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18841
18842         [BZ #12420]
18843         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18844         storing it.
18845         * stdlib/bug-getcontext.c: New file.
18846         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18847
18848 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18849
18850         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18851         instructions into .machine "z9-109".
18852         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18853         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18854
18855 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18856
18857         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18858         between environment variables and auxiliary vector.
18859
18860 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18861
18862         * Makefile: Add rules to build linkobj/libc.so.
18863         * include/libc-symbols.h: Define libc_hidden_nolink.
18864         * include/rpc/auth.h: Mark functions which are to be hidden.
18865         * include/rpc/auth_des.h: Likewise.
18866         * include/rpc/auth_unix.h: Likewise.
18867         * include/rpc/clnt.h: Likewise.
18868         * include/rpc/des_crypt.h: Likewise.
18869         * include/rpc/key_prot.h: Likewise.
18870         * include/rpc/pmap_clnt.h: Likewise.
18871         * include/rpc/pmap_prot.h: Likewise.
18872         * include/rpc/pmap_rmt.h: Likewise.
18873         * include/rpc/rpc_msg.h: Likewise.
18874         * include/rpc/svc.h: Likewise.
18875         * include/rpc/svc_auth.h: Likewise.
18876         * include/rpc/xdr.h: Likewise.
18877         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18878         * nss/Makefile: Likewise.
18879         * sunrpc/Makefile: Don't install headers.  Build library with normal
18880         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18881         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18882         for the compat linking library.  Remove use of INTDEF/INTUSE.
18883         * sunrpc/auth_none.c: Likewise.
18884         * sunrpc/auth_unix.c: Likewise.
18885         * sunrpc/authdes_prot.c: Likewise.
18886         * sunrpc/authuxprot.c: Likewise.
18887         * sunrpc/clnt_gen.c: Likewise.
18888         * sunrpc/clnt_perr.c: Likewise.
18889         * sunrpc/clnt_raw.c: Likewise.
18890         * sunrpc/clnt_simp.c: Likewise.
18891         * sunrpc/clnt_tcp.c: Likewise.
18892         * sunrpc/clnt_udp.c: Likewise.
18893         * sunrpc/clnt_unix.c: Likewise.
18894         * sunrpc/des_crypt.c: Likewise.
18895         * sunrpc/des_soft.c: Likewise.
18896         * sunrpc/get_myaddr.c: Likewise.
18897         * sunrpc/key_call.c: Likewise.
18898         * sunrpc/key_prot.c: Likewise.
18899         * sunrpc/netname.c: Likewise.
18900         * sunrpc/pm_getmaps.c: Likewise.
18901         * sunrpc/pm_getport.c: Likewise.
18902         * sunrpc/pmap_clnt.c: Likewise.
18903         * sunrpc/pmap_prot.c: Likewise.
18904         * sunrpc/pmap_prot2.c: Likewise.
18905         * sunrpc/pmap_rmt.c: Likewise.
18906         * sunrpc/publickey.c: Likewise.
18907         * sunrpc/rpc_cmsg.c: Likewise.
18908         * sunrpc/rpc_common.c: Likewise.
18909         * sunrpc/rpc_dtable.c: Likewise.
18910         * sunrpc/rpc_prot.c: Likewise.
18911         * sunrpc/rpc_thread.c: Likewise.
18912         * sunrpc/rtime.c: Likewise.
18913         * sunrpc/svc.c: Likewise.
18914         * sunrpc/svc_auth.c: Likewise.
18915         * sunrpc/svc_authux.c: Likewise.
18916         * sunrpc/svc_raw.c: Likewise.
18917         * sunrpc/svc_run.c: Likewise.
18918         * sunrpc/svc_simple.c: Likewise.
18919         * sunrpc/svc_tcp.c: Likewise.
18920         * sunrpc/svc_udp.c: Likewise.
18921         * sunrpc/svc_unix.c: Likewise.
18922         * sunrpc/svcauth_des.c: Likewise.
18923         * sunrpc/xcrypt.c: Likewise.
18924         * sunrpc/xdr.c: Likewise.
18925         * sunrpc/xdr_array.c: Likewise.
18926         * sunrpc/xdr_float.c: Likewise.
18927         * sunrpc/xdr_intXX_t.c: Likewise.
18928         * sunrpc/xdr_mem.c: Likewise.
18929         * sunrpc/xdr_rec.c: Likewise.
18930         * sunrpc/xdr_ref.c: Likewise.
18931         * sunrpc/xdr_sizeof.c: Likewise.
18932         * sunrpc/xdr_stdio.c: Likewise.
18933
18934 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18935
18936         [BZ #12650]
18937         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18938         * sysdeps/ia64/dl-tls.h: Likewise.
18939         * sysdeps/powerpc/dl-tls.h: Likewise.
18940         * sysdeps/s390/dl-tls.h: Likewise.
18941         * sysdeps/sh/dl-tls.h: Likewise.
18942         * sysdeps/sparc/dl-tls.h: Likewise.
18943         * sysdeps/x86_64/dl-tls.h: Likewise.
18944         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18945
18946 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18947
18948         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18949         rpath element also skip the following colon.
18950         (expand_dynamic_string_token): Add is_path parameter and pass
18951         down to DL_DST_REQUIRED and _dl_dst_substitute.
18952         (decompose_rpath): Call expand_dynamic_string_token with
18953         non-zero is_path.  Ignore empty rpaths.
18954         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18955         with zero is_path.
18956
18957 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18958
18959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18960         Make cancelable.
18961
18962 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18963
18964         [BZ #12655]
18965         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18966         Patch by Filipe David Manana <fdmanana@apache.org>.
18967
18968 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18969
18970         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18971         Maintain aligned stack.
18972         (CHECK_RSP): Remove unused macro.
18973
18974 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18975
18976         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18977         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18978
18979 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18980
18981         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18982
18983         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18984
18985 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18986
18987         [BZ #12518]
18988         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18989         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18990         * sysdeps/x86_64/memmove.c: New file.
18991         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18992         (memcpy): Renamed to ...
18993         (__new_memcpy): This.
18994         (memcpy): Provide GLIBC_2_14 memcpy.
18995         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18996         (memcpy): Provide GLIBC_2_2_5 memcpy.
18997
18998 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18999
19000         [BZ #12631]
19001         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19002
19003 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19004
19005         * misc/syncfs.c: New file.
19006         * misc/Makefile (routines): Add syncfs.
19007         * posix/unistd.h: Declare syncfs.
19008         * sysdeps/unix/syscalls.list: Add syncfs.
19009
19010 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19011
19012         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19013         open_by_handle_at.
19014         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19015         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19016         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19017         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19018         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19019         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19020         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19021
19022 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19023
19024         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19025         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19026         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19027         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19028         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19029         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19030         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19031
19032         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19033         sync_file_range.c with -fexceptions.
19034         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19035         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19036         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19037         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19038         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19039         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19040         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19041         sync_file_range as cancellation point
19042         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19043         now a wrapper around __call_sync_file_range with cancellation handling.
19044         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19045         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19046         function name to __call_sync_file_range.
19047         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19048         Add call_sync_file_range.
19049
19050 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19051
19052         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19053         bits/timex.h.
19054
19055 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19056
19057         * iconv/iconv.h: Fix typo in comment.
19058         * io/fcntl.h: Likewise.
19059         * libio/stdio.h: Likewise.
19060         * posix/spawn.h: Likewise.
19061         * posix/unistd.h: Likewise.
19062         * stdlib/stdlib.h: Likewise.
19063         * time/time.h: Likewise.
19064         * wcsmbs/wchar.h: Likewise.
19065
19066         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19067         open_by_handle): Add.
19068         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19069         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19070         Augment a few comments.
19071         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19072         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19073         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19074         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19075         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19076         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19077         open_by_handle.
19078
19079         * io/fcntl.h (AT_EMPTY_PATH): Define.
19080
19081 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19082
19083         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19084         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19085         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19086         to...
19087         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19088         * Versions.def: Add GLIBC_2.14.
19089         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19090         Export.
19091
19092 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19093
19094         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19095         round counter.
19096         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19097
19098 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19099
19100         [BZ #12597]
19101         * string/test-strncmp.c (do_page_test): New function.
19102         (check2): Likewise.
19103         (test_main): Call check2.
19104         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19105
19106 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19107
19108         [BZ #12587]
19109         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19110         Handle cache information in CPU leaf 4.
19111         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19112
19113 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19114
19115         [BZ #12583]
19116         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19117         character representation.
19118         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19119
19120 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19121
19122         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19123         END(__isnan) to END(__isnanf) to match function entry point/label
19124         EALIGN(__isnanf,...).
19125
19126 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19127
19128         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19129
19130 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19131
19132         [BZ #12510]
19133         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19134         copy from the symbol referenced in the relocation to initialize the
19135         used variable.
19136         Patch by Piotr Bury <pbury@goahead.com>.
19137         * elf/Makefile: Add rules to build and tst-unique3.
19138         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19139         * elf/tst-unique3.cc: New file.
19140         * elf/tst-unique3.h: New file.
19141         * elf/tst-unique3lib.cc: New file.
19142         * elf/tst-unique3lib2.cc: New file.
19143
19144         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19145
19146 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19147
19148         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19149         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19150         to _start.
19151
19152 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19153
19154         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19155         to-be-loaded object along a path to loader is ld.so.
19156
19157 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19158             Ulrich Drepper  <drepper@gmail.com>
19159
19160         * sysdeps/x86_64/memset.S: After aligning destination, code
19161         branches to different locations depending on the value of
19162         misalignment, when multiarch is enabled. Fix this.
19163
19164 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19165
19166         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19167         Set _x86_64_preferred_memory_instruction for AMD processsors.
19168         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19169         Set bit_Prefer_SSE_for_memop for AMD processors.
19170
19171 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19172
19173         * libio/fmemopen.c (fmemopen): Optimize a bit.
19174
19175 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19176
19177         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19178
19179 2011-03-03  Roland McGrath  <roland@redhat.com>
19180
19181         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19182
19183 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19184
19185         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19186         __bzero_ultra1 instead of __memset_ultra1.
19187
19188 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19189             Ulrich Drepper  <drepper@gmail.com>
19190
19191         [BZ #12509]
19192         * include/link.h (struct link_map): Add l_orig_initfini.
19193         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19194         returning unsuccessfully.
19195         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19196         close of a file loaded at startup, restore the original l_initfini
19197         list.
19198         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19199         list, store the pointer.
19200         * elf/Makefile ($(objpfx)noload-mem): New rule.
19201         (noload-ENV): Define.
19202         (tests): Add $(objpfx)noload-mem.
19203         * elf/noload.c: Include <memcheck.h>.
19204         (main): Call mtrace.  Close all opened handles.
19205
19206 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19207
19208         [BZ #12454]
19209         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19210         dependencies are missing.
19211
19212 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19213
19214         Fix __if_freereq crash: Unlike the generic version which uses free,
19215         Hurd needs munmap.
19216         * sysdeps/mach/hurd/ifreq.h: New file.
19217
19218 2011-01-27  Petr Baudis  <pasky@suse.cz>
19219             Ulrich Drepper  <drepper@gmail.com>
19220
19221         [BZ 12445]#
19222         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19223         to extend_alloca().
19224         * stdio-common/bug23.c: New file.
19225         * stdio-common/Makefile (tests): Add bug23.
19226
19227 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19228             Ulrich Drepper  <drepper@gmail.com>
19229
19230         [BZ #12489]
19231         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19232         before performing relro protection.  At old place add assertion
19233         to make sure nothing changed.
19234
19235 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19236             Glauber de Oliveira Costa  <glommer@gmail.com>
19237
19238         * elf/elf.h: Add new ARM TLS relocs.
19239
19240 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19241
19242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19243         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19244         cast from r3.
19245         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19246         'tests' variable.
19247         * sysdeps/wordsize-64/tst-writev.c: New file.
19248
19249 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19250
19251         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19252         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19253         insns in _dl_start to prevent a TOC reference before relocs are
19254         resolved.
19255
19256 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19257
19258         [BZ #12469]
19259         * Makeconfig: Remove RANLIB definition.
19260         * Makerules: Don't use RANLIB.
19261         * aclocal.m4: Remove ranlib test.
19262         * configure.in: No need to check for ranlib.
19263         * elf/rtld-Rules: Don't use RANLIB.
19264
19265 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19266
19267         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19268         protection macro.
19269         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19270         inclusion protection macro.
19271
19272         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19273         SIGRTMIN and SIGRTMAX and print information in that case only when
19274         SIGRTMIN is defined.
19275
19276 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19277
19278         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19279         arginfo fn returning -1.
19280
19281         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19282         and thousands string is zero terminated.
19283
19284 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19285
19286         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19287         sysdeps/unix/sysv/linux/bits/socket.h.
19288
19289 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19290
19291         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19292         (__CPU_COUNT): Remove old macros.
19293         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19294         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19295         (__CPU_ALLOC, __CPU_FREE): Add macros.
19296         (__sched_cpualloc, __sched_cpufree): Add declarations.
19297
19298 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19299
19300         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19301         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19302         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19303         (readdhstai): Return value of addhstaiX call.
19304         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19305         (addgrbyX): Return value returned by cache_addgr.
19306         (readdgrbyname): Return value returned by addgrbyX.
19307         (readdgrbygid): Likewise.
19308         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19309         (addpwbyX): Return value returned by cache_addpw.
19310         (readdpwbyname): Return value returned by addhstbyX.
19311         (readdpwbyuid): Likewise.
19312         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19313         (addservbyX): Return value returned by cache_addserv.
19314         (readdservbyname): Return value returned by addservbyX:
19315         (readdservbyport): Likewise.
19316         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19317         (addhstbyX): Return value returned by cache_addhst.
19318         (readdhstbyname): Return value returned by addhstbyX.
19319         (readdhstbyaddr): Likewise.
19320         (readdhstbynamev6): Likewise.
19321         (readdhstbyaddrv6): Likewise.
19322         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19323         (readdinitgroups): Return value returned by addinitgroupsX.
19324         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19325         (prune_cache): Keep track of timeout value of re-added entries.
19326         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19327         * nscd/nscd.h: Adjust prototypes of readd* functions.
19328
19329 2011-02-04  Roland McGrath  <roland@redhat.com>
19330
19331         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19332         (nis_stats): Likewise.
19333         * nis/nis_modify.c (nis_modify): Likewise.
19334         * nis/nis_remove.c (nis_remove): Likewise.
19335         * nis/nis_add.c (nis_add): Likewise.
19336
19337         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19338
19339         * posix/fnmatch_loop.c: Add some consts.
19340
19341         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19342
19343 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19344
19345         [BZ #12460]
19346         * config.make.in (config-cflags-novzeroupper): Define.
19347         * configure.in: Substitute libc_cv_cc_novzeroupper.
19348         * elf/Makefile (AVX-CFLAGS): Define.
19349         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19350         (CFLAGS-tst-auditmod4a.c): Likewise.
19351         (CFLAGS-tst-auditmod4b.c): Likewise.
19352         (CFLAGS-tst-auditmod6b.c): Likewise.
19353         (CFLAGS-tst-auditmod6c.c): Likewise.
19354         (CFLAGS-tst-auditmod7b.c): Likewise.
19355         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19356
19357 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19358
19359         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19360         function to the callback.
19361         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19362
19363 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19364
19365         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19366         of errno.
19367
19368 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19369
19370         [BZ #11724]
19371         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19372         of constructors.
19373         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19374         of destructors.
19375         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19376
19377         [BZ #11724]
19378         * elf/Makefile: Add rules to build and run new test.
19379         * elf/tst-initorder.c: New file.
19380         * elf/tst-initorder.exp: New file.
19381         * elf/tst-initordera1.c: New file.
19382         * elf/tst-initordera2.c: New file.
19383         * elf/tst-initordera3.c: New file.
19384         * elf/tst-initordera4.c: New file.
19385         * elf/tst-initorderb1.c: New file.
19386         * elf/tst-initorderb2.c: New file.
19387         * elf/tst-order-a1.c: New file.
19388         * elf/tst-order-a2.c: New file.
19389         * elf/tst-order-a3.c: New file.
19390         * elf/tst-order-a4.c: New file.
19391         * elf/tst-order-b1.c: New file.
19392         * elf/tst-order-b2.c: New file.
19393         * elf/tst-order-main.c: New file.
19394         New test case by George Gensure <werkt0@gmail.com>.
19395
19396 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19397
19398         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19399         decoding ACE if AI_CANONIDN.
19400
19401 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19402
19403         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19404
19405 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19406
19407         * version.h (RELEASE): Bump for 2.13 release.
19408         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19409
19410         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19411
19412         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19413         MADV_NOHUGEPAGE.
19414         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19415         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19416         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19417         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19418         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19419         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19420
19421         * posix/getconf.c: Update copyright year.
19422         * catgets/gencat.c: Likewise.
19423         * csu/version.c: Likewise.
19424         * debug/catchsegv.sh: Likewise.
19425         * debug/xtrace.sh: Likewise.
19426         * elf/ldconfig.c: Likewise.
19427         * elf/ldd.bash.in: Likewise.
19428         * elf/sprof.c (print_version): Likewise.
19429         * iconv/iconv_prog.c: Likewise.
19430         * iconv/iconvconfig.c: Likewise.
19431         * locale/programs/locale.c: Likewise.
19432         * locale/programs/localedef.c: Likewise.
19433         * malloc/memusage.sh: Likewise.
19434         * malloc/mtrace.pl: Likewise.
19435         * nscd/nscd.c (print_version): Likewise.
19436         * nss/getent.c: Likewise.
19437
19438         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19439         PF_CAIF, and PF_ALG.
19440         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19441
19442 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19443
19444         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19445         (modules-names): Use them.
19446         (ifunc-test-modules, ifunc-pie-tests): Define.
19447         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19448         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19449         (test-extras): Likewise.
19450         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19451         $(compile-command.c).
19452         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19453         (all-built-dso): Define.
19454         (check-textrel.out, check-execstack.out): Depend on it.
19455
19456         * configure.in: Don't override --enable-multi-arch.
19457
19458 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19459
19460         [BZ #6812]
19461         * nscd/hstcache.c (tryagain): Define.
19462         (cache_addhst): Return tryagain not notfound for temporary errors.
19463         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19464         failed.
19465
19466 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19467
19468         [BZ #10563]
19469         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19470         to make the syscall.
19471         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19472
19473         [BZ #12378]
19474         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19475         and fall back to matching as normal character if the string ends before
19476         the matching ']' is found.  This is what POSIX requires.
19477         * posix/testfnm.c: Adjust test result.
19478         * posix/globtest.sh: Adjust test result.  Add new test.
19479         * posix/tst-fnmatch.input: Likewise.
19480         * posix/tst-fnmatch2.c: Add new test.
19481
19482 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19483
19484         * elf/Makefile (check-execstack): Revert last change.  Depend on
19485         check-execstack.h.
19486         (check-execstack.h): New target.
19487         (generated): Add check-execstack.h.
19488         * elf/check-execstack.c: Include "check-execstack.h".
19489         (main): Revert last change.
19490         (handle_file): Return zero if GNU_STACK is absent and
19491         DEFAULT_STACK_PERMS doesn't include PF_X.
19492
19493 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19494
19495         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19496         in child fails because the descriptor is already closed.
19497         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19498         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19499         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19500
19501         [BZ #12397]
19502         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19503         syscall.
19504
19505         [BZ #10484]
19506         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19507         temporary buffer used to handle multi lookups locally.
19508         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19509
19510 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19511
19512         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19513         loader is ld.so.
19514
19515 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19516
19517         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19518         alignment for SSE2.
19519
19520 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19521
19522         [BZ #12394]
19523         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19524         characters.  When rounding increased number of integer digits recompute
19525         number of groups.
19526         * stdio-common/tst-grouping.c: New file.
19527         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19528
19529 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19530
19531         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19532         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19533
19534         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19535         void.
19536         * bits/select.h: Likewise.
19537
19538 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19539
19540         * po/ja.po: Update from translation team.
19541
19542 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19543
19544         [BZ #11155]
19545         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19546         implementation just like for lxstat, fxstatat, et al.
19547
19548 2010-12-27  Jim Meyering  <meyering@redhat.com>
19549
19550         [BZ #12348]
19551         * posix/regexec.c (build_trtable): Return failure indication upon
19552         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19553
19554 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19555
19556         [BZ #12201]
19557         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19558         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19559         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19560         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19561
19562         [BZ #12207]
19563         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19564
19565         [BZ #12204]
19566         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19567         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19568
19569 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19570
19571         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19572         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19573         script has SORT_BY_INIT_PRIORITY.
19574         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19575         NO_CTORS_DTORS_SECTIONS is defined.
19576         * elf/soinit.c: Likewise.
19577         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19578         NO_CTORS_DTORS_SECTIONS is defined.
19579         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19580         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19581         * sysdeps/sh/init-first.c: Likewise.
19582         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19583
19584 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19585
19586         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19587         always use the slow path.
19588
19589 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19590
19591         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19592         similar rule which adds the sysdep directories to the header search in
19593         order to pick up the correct platform stackinfo.h.
19594         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19595         perform test if it is, otherwise return successfully without testing.
19596         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19597         DEFAULT_STACK_PERMS define in stackinfo.h.
19598         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19599         defined in stackinfo.h.
19600         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19601         DEFAULT_STACK_PERMS defined in stackinfo.h.
19602         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19603         * sysdeps/ia64/stackinfo.h: Likewise.
19604         * sysdeps/s390/stackinfo.h: Likewise.
19605         * sysdeps/sh/stackinfo.h: Likewise.
19606         * sysdeps/sparc/stackinfo.h: Likewise.
19607         * sysdeps/x86_64/stackinfo.h: Likewise.
19608         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19609         PF_X for powerpc64.  Retain PF_X for powerpc32.
19610
19611 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19612
19613         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19614         accurately.
19615         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19616         GETDENTS_64BIT_ALIGNED.
19617
19618 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19619
19620         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19621
19622 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19623
19624         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19625         _GNU_SOURCE.
19626
19627         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19628         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19629         Remove __restrict.
19630         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19631         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19632
19633 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19634
19635         [BZ #11655]
19636         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19637         are initialized.
19638
19639 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19640
19641         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19642
19643 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19644
19645         * po/it.po: Update from translation team.
19646
19647 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19648
19649         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19650         unused codes.
19651
19652 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19653
19654         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19655
19656 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19657
19658         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19659         specially.
19660         (gaih_getanswer_slice): Likewise.
19661
19662 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19663
19664         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19665
19666 2010-05-31  Petr Baudis  <pasky@suse.cz>
19667
19668         [BZ #11149]
19669         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19670         silently even in the chroot mode.
19671
19672 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19673
19674         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19675         last patch a bit.  Pretty printing
19676
19677 2010-05-31  Petr Baudis <pasky@suse.cz>
19678
19679         [BZ #10085]
19680         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19681         initialization of skip_initgroups_dyn.
19682
19683 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19684
19685         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19686         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19687
19688 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19689
19690         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19691
19692 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19693
19694         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19695         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19696         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19697         ($(objpfx)tst-fnmatch-mem): New rule.
19698         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19699         * posix/tst-fnmatch.c (main): Call mtrace.
19700
19701 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19702
19703         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19704         Support Intel processor model 6 and model 0x2c.
19705
19706 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19707
19708         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19709           signed comparison.
19710
19711 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19712
19713         [BZ #12205]
19714         * string/test-strncasecmp.c (check_result): New function.
19715         (do_one_test): Use it.
19716         (check1): New function.
19717         (test_main): Use it.
19718         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19719         Support strcasecmp and strncasecmp.
19720
19721 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19722
19723         [BZ #12194]
19724         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19725         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19726
19727 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19728
19729         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19730         IFUNC support.
19731         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19732         memset-x86-64.
19733         * sysdeps/x86_64/multiarch/bzero.S: New file.
19734         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19735         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19736         * sysdeps/x86_64/multiarch/memset.S: New file.
19737         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19738         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19739         Set bit_Prefer_SSE_for_memop for Intel processors.
19740         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19741         Define.
19742         (index_Prefer_SSE_for_memop): Define.
19743         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19744
19745 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19746
19747         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19748         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19749
19750 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19751
19752         [BZ #12191]
19753         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19754         (__x86_64_raw_data_cache_size_half): Likewise.
19755         (__x86_64_raw_shared_cache_size): Likewise.
19756         (__x86_64_raw_shared_cache_size_half): Likewise.
19757
19758         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19759         (__x86_64_raw_data_cache_size_half): Likewise.
19760         (__x86_64_raw_shared_cache_size): Likewise.
19761         (__x86_64_raw_shared_cache_size_half): Likewise.
19762         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19763         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19764         and __x86_64_raw_shared_cache_size_half.  Round
19765         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19766         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19767         to multiple of 256 bytes.
19768
19769 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19770
19771         [BZ #12167]
19772         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19773         of inacessible symlinks.  Verify result of symlink before returning it.
19774         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19775         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19776
19777 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19778
19779         * math/math.h (isinf): Fix typo in comment.
19780
19781 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19782
19783         * po/da.po: Update from translation team.
19784
19785 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19786
19787         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19788         is added to the list.
19789
19790 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19791             Ulrich Drepper  <drepper@gmail.com>
19792
19793         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19794         the global list here.  Move code to...
19795         (_dl_add_to_namespace_list): ...here.  New function.
19796         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19797         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19798         * elf/dl-load.c (lose): Don't remove the element from the list.
19799         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19800         (_dl_map_object): Likewise.
19801
19802 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19803
19804         [BZ #12159]
19805         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19806         into all bytes of SSE register.
19807         Patch by Richard Li <richardpku@gmail.com>.
19808
19809 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19810
19811         [BZ #12140]
19812         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19813         perturbing.
19814
19815 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19816
19817         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19818         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19819         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19820         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19822         submachine.
19823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19824
19825 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19826
19827         * include/dlfcn.h (__RTLD_SECURE): Define.
19828         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19829         mode & __RTLD_SECURE instead.
19830         (open_path): Rename preloaded parameter to secure.
19831         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19832         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19833         * elf/dl-deps.c (openaux): Likewise.
19834         * elf/rtld.c (struct map_args): Remove is_preloaded.
19835         (map_doit): Don't use it.
19836         (dl_main): Likewise.
19837         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19838         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19839
19840 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19841
19842         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19843         (sysd-rules-targets): Remove duplicates.
19844         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19845         rtld-%.$o dependency.
19846
19847 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19848
19849         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19850         _dl_map_object do it.
19851
19852 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19853
19854         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19855         fast fma builtins, define the macros in the C99 standard.
19856         (FP_FAST_FMAF): Likewise.
19857         (FP_FAST_FMAL): Likewise.
19858         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19859
19860         * bits/mathdef.h: Update copyright year.
19861         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19862
19863 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19864
19865         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19866         builtins, define the macros in the C99 standard.
19867         (FP_FAST_FMAF): Likewise.
19868         (FP_FAST_FMAL): Likewise.
19869         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19870         multiply/add.
19871         (FP_FAST_FMAF): Likewise.
19872
19873 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19874
19875         [BZ #3268]
19876         * math/libm-test.inc (fma_test): Some new testcases.
19877         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19878         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19879         y and infinite z.  Do multiplication by C already in long double.
19880         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19881         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19882         y and infinite z.  Do bitwise or of inexact bit into u.d.
19883         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19884         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19885         * sysdeps/i386/fpu/s_fma.S: Removed.
19886         * sysdeps/i386/fpu/s_fmal.S: Removed.
19887
19888 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19889
19890         [BZ #3268]
19891         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19892         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19893         computation is not scheduled after fetestexcept.  Fix value
19894         of minimum denormal long double.
19895
19896 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19897
19898         [BZ #3268]
19899         * math/libm-test.inc (fma_test): Add some more tests.
19900         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19901         correctly.
19902
19903 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19904
19905         * scripts/data/localplt-s390-linux-gnu.data: New file.
19906         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19907
19908 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19909
19910         [BZ #3268]
19911         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19912         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19913         instead of dbl-64.
19914         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19915         inlines.
19916         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19917         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19918         if one of x and y is very large and the other is subnormal.
19919         * sysdeps/s390/fpu/s_fmaf.c: New file.
19920         * sysdeps/s390/fpu/s_fma.c: New file.
19921         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19922         * sysdeps/powerpc/fpu/s_fma.S: New file.
19923         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19924         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19925         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19926
19927 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19928
19929         [BZ #3268]
19930         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19931         fma tests.
19932         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19933         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19934         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19935         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19936         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19937         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19938         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19939
19940 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19941
19942         [BZ #12078]
19943         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19944         * posix/bug-regex31.input: Add test case.
19945
19946 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19947
19948         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19949         * posix/bug-regex31.input: New file.
19950
19951         [BZ #12078]
19952         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19953         (parse_sub_exp): Fix last change, use postorder.
19954
19955         * posix/bug-regex31.c: New file.
19956         * posix/Makefile: Add rules to build and run bug-regex31.
19957
19958         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19959
19960         [BZ #12078]
19961         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19962
19963         [BZ #12108]
19964         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19965         to have entries in sys_siglist.
19966
19967         [BZ #12093]
19968         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19969         be NULL.
19970
19971 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19972
19973         [BZ #3268]
19974         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19975         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19976         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19977         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19978         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19979         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19980         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19981         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19982         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19983         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19984         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19985         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19986         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19987         * math/ftestexcept.c (fetestexcept): Likewise.
19988         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19989         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19990         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19991         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19992         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19993         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19994         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19995
19996 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19997
19998         [BZ #12107]
19999         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20000         newline.
20001
20002 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20003
20004         * string/bug-strstr1.c: New file.
20005         * string/Makefile: Add rules to build and run bug-strstr1.
20006
20007 2010-10-05  Eric Blake  <eblake@redhat.com>
20008
20009         [BZ #12092]
20010         * string/str-two-way.h (two_way_long_needle): Always clear memory
20011         when skipping input due to the shift table.
20012
20013 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20014
20015         [BZ #12005]
20016         * malloc/mcheck.c: Handle large requests.
20017
20018         [BZ #12077]
20019         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20020         for strncmp and strncasecmp.
20021         * string/stratcliff.c: Add tests for strcmp and strncmp.
20022         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20023
20024 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20025
20026         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20027         __set_fpscr.
20028
20029 2010-09-30  Andreas Jaeger  <aj@suse.de>
20030
20031         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20032         (CGROUP_SUPER_MAGIC): Define.
20033         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20034         Handle btrfs and cgroup file systems.
20035         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20036         Likewise.
20037
20038 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20039
20040         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20041         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20042
20043 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20044
20045         [BZ #12067]
20046         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20047         trying to locate the ELF header.
20048
20049 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20050
20051         [BZ #11611]
20052         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20053         Mask out sign-bit copies when constructing f_fsid.
20054
20055 2010-09-24  Petr Baudis <pasky@suse.cz>
20056
20057         * debug/stack_chk_fail_local.c: Add missing licence exception.
20058         * debug/warning-nop.c: Likewise.
20059
20060 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20061
20062         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20063         implementing getdents64 using getdents syscall, set d_type if
20064         __ASSUME_GETDENTS32_D_TYPE.
20065
20066 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20067
20068         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20069         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20070
20071 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20072
20073         [BZ #12037]
20074         * posix/unistd.h: Undo change of feature selection for ftruncate from
20075         2010-01-11.
20076
20077 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20078
20079         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20080         detection.
20081
20082 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20083
20084         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20085         fanotify_mark.
20086         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20087
20088 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20089
20090         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20091         variables after CHECK_SP call.
20092         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20093
20094 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20095             Ulrich Drepper  <drepper@redhat.com>
20096
20097         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20098         re-relocationg ld.so.
20099         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20100         _dl_init_paths call.
20101         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20102         here anymore.
20103
20104 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20105
20106         * resolv/res_init.c (__res_vinit): Count the default server we added.
20107
20108 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20109             Ulrich Drepper  <drepper@redhat.com>
20110
20111         [BZ #11968]
20112         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20113         (____longjmp_chk): Use %ebx for saving value across system call.
20114         Add unwind info.
20115
20116 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20117
20118         * manual/Makefile: Don't mix pattern rules with normal rules.
20119
20120 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20121
20122         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20123         operation.
20124         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20125         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20126         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20127         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20128         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20129         Likewise.
20130
20131 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20132
20133         [BZ #11979]
20134         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20135         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20136
20137 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20138
20139         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20140         * sysdeps/x86_64/addmul_1.S: Likewise.
20141         * sysdeps/x86_64/lshift.S: Likewise.
20142         * sysdeps/x86_64/mul_1.S: Likewise.
20143         * sysdeps/x86_64/rshift.S: Likewise.
20144         * sysdeps/x86_64/sub_n.S: Likewise.
20145         * sysdeps/x86_64/submul_1.S: Likewise.
20146
20147 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20148
20149         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20150         Define __sched_param instead of SCHED_* and sched_param when
20151         <bits/sched.h> is included with __need_schedparam defined.
20152         * bits/sched.h [__need_schedparam]
20153         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20154         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20155         (__defined_schedparam): Define to 1.
20156         (__sched_param): New structure, identical to sched_param.
20157         (__need_schedparam): Undefine.
20158
20159 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20160
20161         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20162         (epoll_create1): Declare.
20163
20164         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20165
20166 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20167
20168         [BZ #7066]
20169         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20170         shifting retval into place.
20171
20172 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20173
20174         * nis/rpcsvc/nis.h: Update copyright notice.
20175         * nis/rpcsvc/nis.x: Likewise.
20176         * nis/rpcsvc/nis_callback.h: Likewise.
20177         * nis/rpcsvc/nis_callback.x: Likewise.
20178         * nis/rpcsvc/nis_object.x: Likewise.
20179         * nis/rpcsvc/nis_tags.h: Likewise.
20180         * nis/rpcsvc/yp.h: Likewise.
20181         * nis/rpcsvc/yp.x: Likewise.
20182         * nis/rpcsvc/ypupd.h: Likewise.
20183         * nis/yp_xdr.c: Likewise.
20184         * nis/ypupdate_xdr.c: Likewise.
20185
20186         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20187         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20188         (pmap_getport): Use __libc_rpc_getport.
20189         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20190         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20191         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20192
20193 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20194
20195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20196         fanotify_mark.
20197
20198 2010-08-27  Roland McGrath  <roland@redhat.com>
20199
20200         * sysdeps/i386/i686/multiarch/Makefile
20201         (CFLAGS-varshift.c): New variable.
20202
20203 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20204
20205         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20206         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20207
20208         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20209
20210         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20211
20212 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20213
20214         * sysdeps/x86_64/strlen.S: Unroll the loop.
20215         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20216         strlen-sse2 strlen-sse2-bsf.
20217         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20218         __strlen_no_bsf if bit_Slow_BSF is set.
20219         (__strlen_sse42): Removed.
20220         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20221         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20222
20223 2010-08-25  Roland McGrath  <roland@redhat.com>
20224
20225         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20226         * sysdeps/x86_64/multiarch/varshift.c: New file.
20227         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20228         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20229         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20230         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20231
20232 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20233
20234         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20235         strlen-sse2 strlen-sse2-bsf.
20236         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20237         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20238         (__strlen_sse2): Removed.
20239         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20240         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20242         bit_Slow_BSF for Atom.
20243         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20244         (index_Slow_BSF): Define.
20245         (HAS_SLOW_BSF): Define.
20246
20247 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20248
20249         [BZ #10851]
20250         * resolv/res_init.c (__res_vinit): When no server address at all
20251         is given default to loopback.
20252
20253 2010-08-24  Roland McGrath  <roland@redhat.com>
20254
20255         * configure.in: Remove config-name.h generation.
20256         * configure: Regenerated.
20257         * config-name.in: File removed.
20258         * scripts/config-uname.sh: New file.
20259         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20260         ($(objdir)config-name.h): New target.
20261
20262         * sunrpc/rpc_parse.h: Avoid nested comment.
20263
20264 2010-08-24  Richard Henderson  <rth@redhat.com>
20265             Ulrich Drepper  <drepper@redhat.com>
20266             H.J. Lu  <hongjiu.lu@intel.com>
20267
20268         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20269         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20270         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20271         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20272         _mm_alignr_epi8 with _mm_loadu_si128.
20273         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20274         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20275         (__m128i_shift_right): Removed.
20276         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20277         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20278         * sysdeps/x86_64/multiarch/varshift.h: New file.
20279         * sysdeps/x86_64/multiarch/varshift.S: New file.
20280
20281 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20282
20283         * configure.in: Move assembler checks to before sysdep dir checking.
20284
20285 2010-08-20  Petr Baudis  <pasky@suse.cz>
20286
20287         * LICENSES: Sync the sunrpc license.
20288
20289 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20290
20291         * sunrpc/auth_des.c: Update copyright notice once again.
20292         * sunrpc/auth_none.c: Likewise.
20293         * sunrpc/auth_unix.c: Likewise.
20294         * sunrpc/authdes_prot.c: Likewise.
20295         * sunrpc/authuxprot.c: Likewise.
20296         * sunrpc/bindrsvprt.c: Likewise.
20297         * sunrpc/clnt_gen.c: Likewise.
20298         * sunrpc/clnt_perr.c: Likewise.
20299         * sunrpc/clnt_raw.c: Likewise.
20300         * sunrpc/clnt_simp.c: Likewise.
20301         * sunrpc/clnt_tcp.c: Likewise.
20302         * sunrpc/clnt_udp.c: Likewise.
20303         * sunrpc/clnt_unix.c: Likewise.
20304         * sunrpc/des_crypt.c: Likewise.
20305         * sunrpc/des_soft.c: Likewise.
20306         * sunrpc/get_myaddr.c: Likewise.
20307         * sunrpc/getrpcport.c: Likewise.
20308         * sunrpc/key_call.c: Likewise.
20309         * sunrpc/key_prot.c: Likewise.
20310         * sunrpc/openchild.c: Likewise.
20311         * sunrpc/pm_getmaps.c: Likewise.
20312         * sunrpc/pm_getport.c: Likewise.
20313         * sunrpc/pmap_clnt.c: Likewise.
20314         * sunrpc/pmap_prot.c: Likewise.
20315         * sunrpc/pmap_prot2.c: Likewise.
20316         * sunrpc/pmap_rmt.c: Likewise.
20317         * sunrpc/rpc/auth.h: Likewise.
20318         * sunrpc/rpc/auth_unix.h: Likewise.
20319         * sunrpc/rpc/clnt.h: Likewise.
20320         * sunrpc/rpc/des_crypt.h: Likewise.
20321         * sunrpc/rpc/key_prot.h: Likewise.
20322         * sunrpc/rpc/netdb.h: Likewise.
20323         * sunrpc/rpc/pmap_clnt.h: Likewise.
20324         * sunrpc/rpc/pmap_prot.h: Likewise.
20325         * sunrpc/rpc/pmap_rmt.h: Likewise.
20326         * sunrpc/rpc/rpc.h: Likewise.
20327         * sunrpc/rpc/rpc_des.h: Likewise.
20328         * sunrpc/rpc/rpc_msg.h: Likewise.
20329         * sunrpc/rpc/svc.h: Likewise.
20330         * sunrpc/rpc/svc_auth.h: Likewise.
20331         * sunrpc/rpc/types.h: Likewise.
20332         * sunrpc/rpc/xdr.h: Likewise.
20333         * sunrpc/rpc_clntout.c: Likewise.
20334         * sunrpc/rpc_cmsg.c: Likewise.
20335         * sunrpc/rpc_common.c: Likewise.
20336         * sunrpc/rpc_cout.c: Likewise.
20337         * sunrpc/rpc_dtable.c: Likewise.
20338         * sunrpc/rpc_hout.c: Likewise.
20339         * sunrpc/rpc_main.c: Likewise.
20340         * sunrpc/rpc_parse.c: Likewise.
20341         * sunrpc/rpc_parse.h: Likewise.
20342         * sunrpc/rpc_prot.c: Likewise.
20343         * sunrpc/rpc_sample.c: Likewise.
20344         * sunrpc/rpc_scan.c: Likewise.
20345         * sunrpc/rpc_scan.h: Likewise.
20346         * sunrpc/rpc_svcout.c: Likewise.
20347         * sunrpc/rpc_tblout.c: Likewise.
20348         * sunrpc/rpc_util.c: Likewise.
20349         * sunrpc/rpc_util.h: Likewise.
20350         * sunrpc/rpcinfo.c: Likewise.
20351         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20352         * sunrpc/rpcsvc/key_prot.x: Likewise.
20353         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20354         * sunrpc/rpcsvc/mount.x: Likewise.
20355         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20356         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20357         * sunrpc/rpcsvc/rex.x: Likewise.
20358         * sunrpc/rpcsvc/rstat.x: Likewise.
20359         * sunrpc/rpcsvc/rusers.x: Likewise.
20360         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20361         * sunrpc/rpcsvc/spray.x: Likewise.
20362         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20363         * sunrpc/rtime.c: Likewise.
20364         * sunrpc/svc.c: Likewise.
20365         * sunrpc/svc_auth.c: Likewise.
20366         * sunrpc/svc_authux.c: Likewise.
20367         * sunrpc/svc_raw.c: Likewise.
20368         * sunrpc/svc_run.c: Likewise.
20369         * sunrpc/svc_simple.c: Likewise.
20370         * sunrpc/svc_tcp.c: Likewise.
20371         * sunrpc/svc_udp.c: Likewise.
20372         * sunrpc/svc_unix.c: Likewise.
20373         * sunrpc/svcauth_des.c: Likewise.
20374         * sunrpc/xcrypt.c: Likewise.
20375         * sunrpc/xdr.c: Likewise.
20376         * sunrpc/xdr_array.c: Likewise.
20377         * sunrpc/xdr_float.c: Likewise.
20378         * sunrpc/xdr_mem.c: Likewise.
20379         * sunrpc/xdr_rec.c: Likewise.
20380         * sunrpc/xdr_ref.c: Likewise.
20381         * sunrpc/xdr_sizeof.c: Likewise.
20382         * sunrpc/xdr_stdio.c: Likewise.
20383
20384         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20385         handling.
20386
20387 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20388
20389         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20390
20391 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20392
20393         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20394         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20395         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20396         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20397         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20398         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20399         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20400         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20401         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20402         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20403         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20404         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20405         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20406         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20407
20408 2010-07-26  Anton Blanchard  <anton@samba.org>
20409
20410         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20411         * malloc/arena.c (heap_trim): Likewise.
20412
20413 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20414
20415         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20416         here.  Not...
20417         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20418         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20419
20420 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20421
20422         * sysdeps/i386/elf/Makefile: New file.
20423
20424 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20425
20426         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20427         from fanotify_init.
20428         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20429         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20430
20431 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20432
20433         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20434         of strncasecmp_l.
20435         * sysdeps/multiarch/strcmp.S: Likewise.
20436
20437 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20438
20439         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20440         strncase_l-nonascii.
20441         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20442         Add strncase_l-ssse3.
20443         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20444         * sysdeps/x86_64/strcmp.S: Likewise.
20445         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20446         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20447         * sysdeps/x86_64/strncase.S: New file.
20448         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20449         * sysdeps/x86_64/strncase_l.S: New file.
20450         * string/Makefile (strop-tests): Add strncasecmp.
20451         * string/test-strncasecmp.c: New file.
20452
20453         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20454         warning.
20455
20456         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20457         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20458
20459 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20460
20461         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20462
20463 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20464
20465         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20466         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20467         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20468
20469 2010-05-01  Alan Modra  <amodra@gmail.com>
20470
20471         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20472         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20473         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20474         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20475         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20476         tidying.  Don't tail-call __sigjmp_save for static lib.
20477         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20478         save location.
20479         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20480         (CALL_MCOUNT): Add eh info, and nop after bl.
20481         (TAIL_CALL_SYSCALL_ERROR): New macro.
20482         (PSEUDO_RET): Use it.
20483         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20484         Correct save location of integer regs and cr.
20485         (_dl_profile_resolve): Correct cr save location.  Delete nops
20486         after bl when SHARED.  Reduce cfi size a little by better
20487         placement of cfi directives.
20488         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20489         make a stack frame.  Instead use parm save area as a temp.
20490         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20491         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20493         Don't make a stack frame for parent, use parm save area.
20494         Increase child stack frame to 112 bytes.  Don't save unused reg,
20495         and adjust reg usage.  Set up cfi on error recovery and
20496         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20498         (__makecontext): Add dummy nop after jump to exit.
20499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20500         Use correct parm save area and cr save, reduce stack frame.
20501         Correct cfi for possible PSEUDO_RET frame setup.
20502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20503         Branch to local label emitted by PSEUDO_RET rather than
20504         __syscall_error.
20505
20506 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20507
20508         [BZ #11904]
20509         * locale/programs/locale.c (print_assignment): New function.
20510         (show_locale_vars): Use it.
20511
20512 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20513
20514         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20515         field.
20516         (struct statfs64): Likewise.
20517         (_STATFS_F_FLAGS): Define.
20518         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20519         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20520         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20521         (ST_VALID): Define locally.
20522         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20523         __statvfs_getflags, use the provided value.
20524         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20525         __ASSUME_STATFS_F_FLAGS.
20526
20527         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20528
20529         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20530         Add sys/fanotify.h.
20531         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20532         fanotify_mask for GLIBC_2.13.
20533         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20534         fanotify_init and fanotify_mark.
20535         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20536         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20537
20538         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20539         Add prlimit.
20540         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20541         prlimit64 for GLIBC_2.13.
20542         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20543         prlimit64.
20544         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20545         syscall.
20546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20547         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20548         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20549         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20550         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20551         add prlimit alias.
20552         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20553
20554         [BZ #11903]
20555         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20556         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20557
20558         * nss/Makefile: Add rules to build and run tst-nss-test1.
20559         * shlib-versions: Add entry for libnss_test1.
20560         * nss/nss_test1.c: New file.
20561         * nss/tst-nss-test1.c: New file.
20562
20563         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20564         (__nss_configure_lookup): Set appropriate entry in
20565         __nss_configure_lookup to true.
20566         * nss/nsswitch.h: Define enum with indeces of databases in
20567         databases and __nss_database_custom arrays.  Declare
20568         __nss_database_custom.
20569         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20570         to avoid using nscd when custom rules are installed.
20571         * nss/getXXbyYY_r.c: Likewise.
20572         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20573
20574         * nss/nss_files/files-parse.c: Whitespace fixes.
20575
20576 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20577
20578         [BZ #11883]
20579         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20580         * posix/fnmatch_loop.c: Likewise.
20581
20582 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20583
20584         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20585         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20586         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20587         * Versions.def [GLIBC_2.13]: Add.
20588
20589 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20590
20591         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20592         Also fail if tpwd after pwuid call is NULL.
20593
20594 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20595
20596         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20597         when converting to ms.
20598
20599 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20600
20601         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20602         EOPNOTSUPP errors with ENOTTY.
20603         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20604         EOPNOTSUPP errors with ENOTTY.
20605
20606 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20607
20608         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20609         Add strcasecmp_l-ssse3.
20610         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20611         strcasecmp.
20612         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20613         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20614         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20615
20616 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20617
20618         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20619
20620         * string/Makefile (strop-tests): Add strcasecmp.
20621         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20622         strcasecmp_l-nonascii.
20623         (gen-as-const-headers): Add locale-defines.sym.
20624         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20625         * sysdeps/x86_64/strcasecmp.S: New file.
20626         * sysdeps/x86_64/strcasecmp_l.S: New file.
20627         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20628         * sysdeps/x86_64/locale-defines.sym: New file.
20629         * string/test-strcasecmp.c: New file.
20630
20631         * string/test-strcasestr.c: Test both ends of the range of characters.
20632         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20633
20634 2010-07-29  Roland McGrath  <roland@redhat.com>
20635
20636         [BZ #11856]
20637         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20638
20639 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20640
20641         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20642         for ld.so.
20643
20644 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20645
20646         * manual/memory.texi (Malloc Tunable Parameters): Document
20647         M_PERTURB.
20648
20649 2010-07-26  Roland McGrath  <roland@redhat.com>
20650
20651         [BZ #11840]
20652         * configure.in (-fgnu89-inline check): Set and substitute
20653         gnu89_inline, not libc_cv_gnu89_inline.
20654         * configure: Regenerated.
20655         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20656
20657 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20658
20659         * string/test-strnlen.c: New file.
20660         * string/Makefile (strop-tests): Add strnlen.
20661         * string/tester.c (test_strnlen): Add a few more test cases.
20662         * string/tst-strlen.c: Better error reporting.
20663
20664         * sysdeps/x86_64/strnlen.S: New file.
20665
20666 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20667
20668         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20669         lower-latency instructions.
20670
20671 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20672
20673         * string/test-strcasestr.c: New file.
20674         * string/test-strstr.c: New file.
20675         * string/Makefile (strop-tests): Add strstr and strcasestr.
20676         * string/str-two-way.h: Don't undefine MAX.
20677         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20678
20679 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20680
20681         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20682         strcasestr-nonascii.
20683         (CFLAGS-strcasestr-nonascii.c): Define.
20684         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20685         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20686         Remove unused attribute.
20687
20688 2010-07-20  Roland McGrath  <roland@redhat.com>
20689
20690         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20691         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20692         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20693         like LD_HWCAP_MASK can disable hwcaps.
20694
20695 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20696
20697         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20698
20699 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20700
20701         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20702         call in strcasestr.
20703         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20704         __strcasestr_sse42_nonascii.
20705         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20706         strcasestr-nonascii.c.
20707         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20708
20709 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20710
20711         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20712         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20713         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20714         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20715
20716 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20717
20718         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20719         fcntl.
20720
20721 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20722
20723         [BZ #11577]
20724         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20725         dl_signal_cerror.
20726
20727 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20728
20729         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20730         _PC_PIPE_BUF using F_GETPIPE_SZ.
20731
20732 2010-07-05  Roland McGrath  <roland@redhat.com>
20733
20734         * manual/arith.texi (Rounding Functions): Fix rint description
20735         implicit in round description.
20736
20737 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20738
20739         * elf/Makefile: Fix linking for a few tests to make recent linker
20740         happy.
20741
20742 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20743
20744         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20745         $(common-objpfx)libc_nonshared.a.
20746
20747 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20748
20749         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20750         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20751         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20752         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20753         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20754         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20755         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20756         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20771         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20772         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20773         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20774         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20775         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20776         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20777         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20778         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20779         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20780         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20781         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20782         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20797
20798 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20799
20800         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20801         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20802         * string/memmove.c (memmove): Renamed to ...
20803         (MEMMOVE): ...this.  Default to memmove.
20804         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20805         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20806         (END_CHK): Define.
20807         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20808         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20809         mempcpy-ssse3-back memmove-ssse3-back.
20810         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20811         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20812         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20813         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20814         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20815         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20816         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20817         * sysdeps/x86_64/multiarch/memmove.c: New file.
20818         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20819         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20820         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20821         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20822         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20823         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20824         Define.
20825         (index_Fast_Copy_Backward): Define.
20826         (HAS_ARCH_FEATURE): Define.
20827         (HAS_FAST_REP_STRING): Define.
20828         (HAS_FAST_COPY_BACKWARD): Define.
20829
20830 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20831
20832         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20833         Restore proper fallback handling.
20834
20835 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20836
20837         [BZ #11701]
20838         * posix/group_member.c (__group_member): Correct checking loop.
20839
20840         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20841         OOM in getpwuid_r correctly.  Return error number when the caller
20842         should return, otherwise -1.
20843         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20844         call returning > 0 value.
20845         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20846
20847 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20848
20849         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20850         libc_nonshared.a from targets in modules-names.
20851
20852 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20853
20854         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20855         requires it.
20856
20857 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20858
20859         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20860         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20861         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20862         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20863
20864 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20865
20866         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20867
20868 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20869
20870         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20871         and F_GETPIPE_SZ.
20872         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20873         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20874         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20875         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20876         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20877         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20878
20879 2010-06-14  Roland McGrath  <roland@redhat.com>
20880
20881         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20882
20883 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20884
20885         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20886         __REDIRECT followed by __THROW.
20887         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20888         * posix/getopt.h (getopt): Likewise.
20889
20890 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20891
20892         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20893         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20894         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20895         in AT_FLAGS.
20896         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20897         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20898
20899 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20900
20901         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20902
20903 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20904
20905         [BZ #11640]
20906         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20907         Properly check family and model.
20908
20909 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20910
20911         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20912
20913 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20914
20915         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20916
20917 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20918
20919         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20920         symbol reference.
20921
20922 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20923
20924         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20925         symbol reference.
20926
20927 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20928
20929         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20930         and internal_recvmmsg.
20931         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20932         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20933         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20934         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20935
20936         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20937         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20938         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20939
20940 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20941
20942         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20943
20944 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20945
20946         POWER7 optimizations.
20947         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20948         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20949
20950 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20951
20952         * version.h: Update for 2.13 development version.
20953
20954 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20955
20956         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20957         exceptions.  Return 0.
20958
20959 2010-05-07  Roland McGrath  <roland@redhat.com>
20960
20961         * elf/ldconfig.c (main): Add a const.
20962
20963 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20964
20965         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20966         (args_options): Add no-idn option.
20967         (ahosts_keys_int): Add idn_flags to ai_flags.
20968         (parse_option): Handle 'i' option to clear idn_flags.
20969
20970         * malloc/malloc.c (_int_free): Possible race in the most recently
20971         added check.  Only act on the data if no current modification
20972         happened.
20973
20974 See ChangeLog.17 for earlier changes.