Fix a compilation error in the Hurd's bits/param.h.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2
3         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
4
5 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
6
7         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
8         New variable.
9
10 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
11
12         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13
14 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
15
16         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17         Fix sort order.
18         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
19         Likewise.
20
21 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22
23         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
24         Fix the order of the list for glibc 2.17.
25         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26         Likewise.
27
28 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
29
30         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31
32 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
33
34         [BZ #14610]
35         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
36         for low part of x being zero before using __atanl (y).
37         * math/libm-test.inc (atan2_test): Add another test.
38
39         * manual/install.texi (Configuring and compiling): Document
40         general use of test-wrapper and test-wrapper-env.
41         * INSTALL: Regenerated.
42
43         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
44         (__fma): Do not extract and scale down low bits on after-rounding
45         systems when result rounded to normal precision would have normal
46         exponent.
47         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
48         (__fmal): Do not extract and scale down low bits on after-rounding
49         systems when result rounded to normal precision would have normal
50         exponent.
51         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
52         (__fmal): Do not extract and scale down low bits on after-rounding
53         systems when result rounded to normal precision would have normal
54         exponent.
55         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56         macro.
57         (fma_test): Add more tests.
58         (fma_test_towardzero): Likewise.
59         (fma_test_downward): Likewise.
60         (fma_test_upward): Likewise.
61
62 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
63
64         * sysdeps/i386/tininess.h: Renamed to ...
65         * sysdeps/x86/tininess.h: This.
66         * sysdeps/x86_64/tininess.h: Removed.
67
68 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
69
70         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
71         input.  Use $(build-program-cmd).
72         ($(objpfx)tst-array1-static.out): Likewise.
73         ($(objpfx)tst-array2.out): Likewise.
74         ($(objpfx)tst-array3.out): Likewise.
75         ($(objpfx)tst-array4.out): Likewise.
76         ($(objpfx)tst-array5.out): Likewise.
77         ($(objpfx)tst-array5-static.out): Likewise.
78
79 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
80
81         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
82         if defined.
83
84         * nss/nsswitch.h (nss_interface_function): Provide new
85         macro for use with NSS functions.
86         * grp/initgroups.c: Use new macro.
87         * nss/getXXbyYY.c: Likewise.
88         * nss/getXXbyYY_r.c: Likewise.
89         * nss/getXXent.c: Likewise.
90         * nss/getXXent_r.c: Likewise.
91         * sysdeps/posix/getaddrinfo.c: Likewise.
92
93 2012-10-30  Andreas Jaeger  <aj@suse.de>
94
95         * po/ru.po: Update Russion translation from translation project.
96
97 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
98
99         [BZ #14152]
100         [BZ #14783]
101         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
102         result and shift together with sticky bit instead of replicating
103         round-to-nearest rounding.
104         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
105         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
106         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
107         missing underflow exceptions.
108         (fma_test_towardzero): Add more tests.
109         (fma_test_downward): Likewise.
110         (fma_test_upward): Likewise.
111
112         [BZ #14047]
113         * sysdeps/generic/tininess.h: New file.
114         * sysdeps/i386/tininess.h: Likewise.
115         * sysdeps/sh/tininess.h: Likewise.
116         * sysdeps/x86_64/tininess.h: Likewise.
117         * stdlib/tst-strtod-underflow.c: Likewise.
118         * stdlib/tst-tininess.c: Likewise.
119         * stdlib/strtod_l.c: Include <tininess.h>.
120         (round_and_return): Do not set errno for exact underflow cases.
121         Force an underflow exception when setting errno for underflow.
122         Determine underflow based on rounding to normal precision if
123         TININESS_AFTER_ROUNDING.
124         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
125         ERANGE for exact underflow cases.
126         * stdlib/Makefile (tests): Add tst-tininess and
127         tst-strtod-underflow.
128         ($(objpfx)tst-tininess): Use $(link-libm).
129         ($(objpfx)tst-strtod-underflow): Likewise.
130
131 2012-10-30  Andreas Jaeger  <aj@suse.de>
132
133         [BZ#14767]
134         * elf/Makefile (tests): Remove conditional for have-initfini-array
135         since this is now always required and the variable does not exist
136         anymore.
137         (tests-static): Likewise.
138         (modules-names): Likewise.
139
140         * po/eo.po: Add Esperanto translation from translation project.
141
142         * elf/tst-array1.c (fini_array): Make writeable so that it can be
143         merged with constructor/destructor.
144         (init_array): Likewise.
145         * elf/tst-array2dep.c (fini_array): Likewise.
146         (init_array): Likewise.
147
148 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
149
150         * manual/message.texi: Delete @cartouche tags.
151
152 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
153
154         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
155         EOPNOTSUPP.
156         * sysdeps/mach/hurd/fsync.c: Likewise.
157
158         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
159         [_POSIX_REALTIME_SIGNALS]: Change condition to
160         [_POSIX_REALTIME_SIGNALS > 0].
161
162 2012-10-27  Andreas Jaeger  <aj@suse.de>
163
164         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
165         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
166         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
167         [__WORDSIZE != 64]: Likewise.
168
169 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
170
171         *  iconvdata/tst-table.sh: Remove ${SHELL}.
172         *  iconvdata/tst-tables.sh: Likewise.
173
174 2012-10-25  David S. Miller  <davem@davemloft.net>
175
176         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
177         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
178         of strtoull.
179
180         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
181         ifunc-impl-list.c
182         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
183         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
184         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
185         file.
186
187 2012-10-25  Roland McGrath  <roland@hack.frob.com>
188
189         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
190         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
191         __getdirentries.
192
193 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
194             Jim Blandy  <jimb@codesourcery.com>
195
196         * scripts/cross-test-ssh.sh: New file.
197         * manual/install.texi (Configuring and compiling): Document use of
198         cross-test-ssh.sh.
199         * INSTALL: Regenerated.
200
201 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
202
203         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
204         EOPNOTSUPP.
205
206 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
207
208         * Makeconfig (run-program-prefix): Fix comment.
209
210 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
211             Jim Blandy  <jimb@codesourcery.com>
212
213         * Makeconfig (test-wrapper): New variable,
214         (test-wrapper-env): Likewise.
215         [$(cross-compiling) = yes && $(test-wrapper) != ""]
216         (run-built-tests): Define to yes.
217         (run-program-prefix): Use $(test-wrapper).
218         (built-program-cmd): Likewise.
219         * Rules (make-test-out): Use $(test-wrapper-env) and
220         $(host-built-program-cmd).
221         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
222         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
223         tst-pathopt.sh.
224         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
225         $(test-wrapper-env) to tst-rtld-load-self.sh.
226         ($(objpfx)order2.out): Use $(test-wrapper).
227         ($(objpfx)tst-initorder.out): Likewise.
228         ($(objpfx)tst-initorder2.out): Likewise.
229         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
230         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
231         (test_wrapper_env): New variable.  Use it to run ld.so.
232         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
233         Use it to run ld.so.
234         (test_wrapper_env): Likewise.
235         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
236         $(test-wrapper) to run-iconv-test.sh.
237         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
238         (ICONV): Use $test_wrapper.
239         * posix/Makefile ($(objpfx)globtest.out): Pass
240         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
241         globtest.sh, not $(run-program-prefix).
242         * posix/globtest.sh (run_via_rtld_prefix): New variable.
243         (test_wrapper): Likewise.
244         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
245         set together with run_via_rtld_prefix.
246         (run_program_prefix): Define in terms of test_wrapper and
247         run_via_rtld_prefix.
248
249 2012-10-24  Roland McGrath  <roland@hack.frob.com>
250
251         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
252         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
253         Targets removed.
254
255         [BZ #14743]
256         * include/time.h: Remove librt_hidden_proto (clock_gettime).
257         Declare __clock_getres, __clock_gettime, __clock_settime,
258         __clock_nanosleep, and __clock_getcpuclockid.
259         * rt/clock_gettime.c: Define __clock_gettime as an alias.
260         Remove librt_hidden_def (clock_gettime).
261         * sysdeps/unix/clock_gettime.c: Likewise.
262         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
263         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
264         * rt/clock_getres.c: Define __clock_getres as an alias.
265         * sysdeps/posix/clock_getres.c: Likewise.
266         * rt/clock_settime.c: Define __clock_settime as an alias.
267         * sysdeps/unix/clock_settime.c: Likewise.
268         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
269         * sysdeps/unix/clock_nanosleep.c: Likewise.
270         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
271         * rt/clock-compat.c: New file.
272         * rt/Makefile (librt-routines): Add clock-compat and move
273         $(clock-routines) to ...
274         (routines): ... here, new variable.
275         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
276         Don't add get_clockfreq here.
277         * rt/Versions (libc: GLIBC_2.17): New version set.
278         Add clock_* symbols here.
279         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
280         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
281         (GLIBC_2.17): Add clock_* symbols.
282         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
283         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
284         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
286         Likewise.
287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
288         Likewise.
289         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
291         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
293         * NEWS: Mention the move.
294
295         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
296         Use __open, __read, __close rather than their public counterparts.
297         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
298         (__get_clockfreq_via_cpuinfo): Likewise.
299         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
300         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
301
302         * config.h.in (HAVE_IFUNC): New #undef.
303         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
304         was successful.
305         * configure: Regenerated.
306
307 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
308
309         * configure.in: Move READELF check to start of file.
310         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
311         libc_cv_asm_gnu_indirect_function in the process.
312         * configure: Regenerated.
313
314 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
315
316         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
317         send the output to /dev/null.
318         (libc_cv_cc_with_libunwind): Likewise.
319         (libc_cv_as_noexecstack): Likewise.
320         * configure: Regenerate.
321
322 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
323
324         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
325
326         * posix/globtest.sh (TMPDIR): Do not set.
327         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
328         (testout): Likewise.
329
330 2012-10-24  Andreas Jaeger  <aj@suse.de>
331
332         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
333         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
334         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
335         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
336         posix_fadvise64, posix_fallocate64.
337
338         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
339         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
340         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
341         Likewise.
342         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
343         Likewise.
344         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
345
346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
347         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
348         <bits/fcntl-linux.h>.
349         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
350
351         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
352         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
353         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
354         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
355         [__WORDSIZE != 64]: Likewise.
356
357 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
358
359         * Makeconfig (run-built-tests): New variable.
360         * Rules [$(cross-compiling) = yes]: Change condition to
361         [$(run-built-tests) = no].
362         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
363         to [$(run-built-tests) = yes].
364         * elf/Makefile [$(cross-compiling) = no]: Likewise
365         * grp/Makefile [$(cross-compiling) = no]: Likewise.
366         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
367         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
368         * intl/Makefile [$(cross-compiling) = no]: Likewise.
369         * io/Makefile [$(cross-compiling) = no]: Likewise.
370         * libio/Makefile [$(cross-compiling) = no]: Likewise.
371         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
372         * misc/Makefile [$(cross-compiling) = no]: Likewise.
373         * posix/Makefile [$(cross-compiling) = no]: Likewise.
374         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
375         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
376         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
377         * string/Makefile [$(cross-compiling) = no]: Likewise.
378
379         * posix/Makefile ($(objpfx)globtest.out): Pass
380         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
381         $(rtld-installed-name).
382         * posix/globtest.sh (elf_objpfx): Remove variable.
383         (rtld_installed_name): Likewise.
384         (library_path): Likewise.
385         (run_program_prefix): New variable.  Use for running globtest
386         binary.
387
388 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
389             Joseph Myers  <joseph@codesourcery.com>
390
391         * Makeconfig (host-built-program-cmd): New variable.
392         * elf/Makefile (tst-stackguard1-ARGS): Use
393         $(host-built-program-cmd).
394         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
395         (tst-spawn-ARGS): Likewise.
396         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
397
398 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
399             Jim Blandy  <jimb@codesourcery.com>
400
401         * Makeconfig (run-via-rtld-prefix): New variable.
402         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
403         (built-program-cmd): Likewise.
404
405 2012-10-22  Andreas Jaeger  <aj@suse.de>
406
407         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
408         __O_RSYNC if it exists, otherwise to O_SYNC.
409
410 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
411             Joseph Myers  <joseph@codesourcery.com>
412
413         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
414         /dev/null.
415         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
416         from /dev/null
417         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
418         /dev/null.
419
420 2012-10-22  Andreas Jaeger  <aj@suse.de>
421
422         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
423         Define always.
424         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
425
426         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
427         bits/fcntl-linux.h.
428
429         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
430         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
431
432         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
433         to __O_LARGEFILE.
434         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
435         to __O_LARGEFILE.
436
437 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
438             Joseph Myers  <joseph@codesourcery.com>
439
440         * config.make.in (NM): New variable.
441
442 2012-10-21  Andreas Jaeger  <aj@suse.de>
443
444         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
445         definitions and declarations that are provided by
446         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
447
448 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
449
450         [BZ #14683]
451         * elf/Makefile (tests-static): Add tst-leaks1-static.
452         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
453         ($(objpfx)tst-leaks1-static): New rule.
454         ($(objpfx)tst-leaks1-static-mem): Likewise.
455         (tst-leaks1-static-ENV): New macro.
456         * elf/dl-open.c (dl_open_worker): Check the main application
457         only if SHARED is defined.
458         * elf/tst-leaks1-static.c: New file.
459
460 2012-10-20  Andreas Jaeger  <aj@suse.de>
461
462         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
463         generic values for Linux.
464         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
465         and declarations that are provided by <bits/fcntl-linux.h> and
466         include <bits/fcntl-linux.h>.
467         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
468         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
469
470 2012-10-20  Roland McGrath  <roland@hack.frob.com>
471
472         * io/fcntl.h: Move include of <bits/types.h> to the top and
473         include it unconditionally.
474
475 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
476
477         * wcsmbs/Makefile (tests-ifunc): New variable.
478         (tests): Add $(tests-ifunc).
479         * wcsmbs/test-wcschr-ifunc.c: New file.
480         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
481         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
482         * wcsmbs/test-wcslen-ifunc.c: Likewise.
483         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
484         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
485
486         * string/Makefile (tests-ifunc): New variable.
487         (tests): Add $(tests-ifunc).
488         * string/test-memccpy.c (TEST_NAME): New macro.
489         * string/test-memchr.c (TEST_NAME): Likewise.
490         * string/test-memcmp.c (TEST_NAME): Likewise.
491         * string/test-memcpy.c (TEST_NAME): Likewise.
492         * string/test-memmem.c (TEST_NAME): Likewise.
493         * string/test-memmove.c (TEST_NAME): Likewise.
494         * string/test-memset.c (TEST_NAME): Likewise.
495         * string/test-rawmemchr.c (TEST_NAME): Likewise.
496         * string/test-stpcpy.c (TEST_NAME): Likewise.
497         * string/test-stpncpy.c (TEST_NAME): Likewise.
498         * string/test-strcasecmp.c (TEST_NAME): Likewise.
499         * string/test-strcasestr.c (TEST_NAME): Likewise.
500         * string/test-strcat.c (TEST_NAME): Likewise.
501         * string/test-strchr.c (TEST_NAME): Likewise.
502         * string/test-strcmp.c(TEST_NAME): Likewise.
503         * string/test-strcpy.c (TEST_NAME): Likewise.
504         * string/test-strcspn.c (TEST_NAME): Likewise.
505         * string/test-strlen.c (TEST_NAME): Likewise.
506         * string/test-strncasecmp.c (TEST_NAME): Likewise.
507         * string/test-strncmp.c (TEST_NAME): Likewise.
508         * string/test-strncpy.c (TEST_NAME): Likewise.
509         * string/test-strnlen.c (TEST_NAME): Likewise.
510         * string/test-strpbrk.c (TEST_NAME): Likewise.
511         * string/test-strrchr.c (TEST_NAME): Likewise.
512         * string/test-strspn.c (TEST_NAME): Likewise.
513         * string/test-strstr.c (TEST_NAME): Likewise.
514         * string/test-bcopy-ifunc.c: New file.
515         * string/test-bzero-ifunc.c: Likewise.
516         * string/test-memccpy-ifunc.c: Likewise.
517         * string/test-memchr-ifunc.c: Likewise.
518         * string/test-memcmp-ifunc.c: Likewise.
519         * string/test-memcpy-ifunc.c: Likewise.
520         * string/test-memmem-ifunc.c: Likewise.
521         * string/test-memmove-ifunc.c: Likewise.
522         * string/test-mempcpy-ifunc.c: Likewise.
523         * string/test-memset-ifunc.c: Likewise.
524         * string/test-rawmemchr-ifunc.c: Likewise.
525         * string/test-stpcpy-ifunc.c: Likewise.
526         * string/test-stpncpy-ifunc.c: Likewise.
527         * string/test-strcasecmp-ifunc.c: Likewise.
528         * string/test-strcasestr-ifunc.c: Likewise.
529         * string/test-strcat-ifunc.c: Likewise.
530         * string/test-strchr-ifunc.c: Likewise.
531         * string/test-strchrnul-ifunc.c: Likewise.
532         * string/test-strcmp-ifunc.c: Likewise.
533         * string/test-strcpy-ifunc.c: Likewise.
534         * string/test-strcspn-ifunc.c: Likewise.
535         * string/test-strlen-ifunc.c: Likewise.
536         * string/test-strncasecmp-ifunc.c: Likewise.
537         * string/test-strncat-ifunc.c: Likewise.
538         * string/test-strncmp-ifunc.c: Likewise.
539         * string/test-strncpy-ifunc.c: Likewise.
540         * string/test-strnlen-ifunc.c: Likewise.
541         * string/test-strpbrk-ifunc.c: Likewise.
542         * string/test-strrchr-ifunc.c: Likewise.
543         * string/test-strspn-ifunc.c: Likewise.
544         * string/test-strstr-ifunc.c: Likewise.
545
546         * debug/Makefile (tests-ifunc): New variable.
547         (tests): Add $(tests-ifunc).
548         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
549         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
550         * debug/test-stpcpy_chk-ifunc.c: New file.
551         * debug/test-strcpy_chk-ifunc.c: Likewise.
552
553 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
554
555         [BZ #13601]
556         * elf/dl-load.c (open_verify): Retry read if the entire ELF
557         header is not read in.
558
559 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
560
561         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
562         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
563         directly.  Pass built executable to script as
564         $(built-program-cmd).
565         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
566         $testprogram without using LD_LIBRARY_PATH and $ldso.
567
568         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
569         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
570         $(rtld-installed-name).
571         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
572         (rtld_installed_name): Likewise.
573         (library_path): Likewise.
574         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
575         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
576         $(run-program-prefix) to tst-tables.sh.
577         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
578         it to run tst-table-from and tst-table-to.
579         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
580         Pass it to tst-table.sh.
581         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
582         $(run-program-prefix) to tst-gettext.sh.
583         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
584         tst-translit.sh.
585         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
586         tst-gettext2.sh.
587         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
588         to run tst-gettext.
589         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
590         to run tst-gettext2.
591         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
592         to run tst-translit.
593         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
594         $(run-program-prefix) to tst-mtrace.sh.
595         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
596         to run tst-mtrace.
597         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
598         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
599         $(rtld-installed-name).
600         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
601         (rtld_installed_name): Likewise.
602         (run_program_prefix): New variable.  Use it to run wordexp-test.
603
604         * Makeconfig (ARCH): Remove all definitions.
605         (machine): Likewise.
606         [ARCH]: Remove conditional code.
607         [!objdir]: Give error.
608         [!objdir] (objpfx): Remove.
609         [!objdir] (common-objpfx): Likewise.
610         [!objdir] (common-objdir): Likewise.
611         * configure.in (config_makefile): Remove.  Hardcode Makefile in
612         AC_CONFIG_FILES call.
613         * configure: Regenerated.
614
615         [BZ #13888]
616         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
617         or TMPDIR.
618         (testout): Likewise.
619
620         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
621         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
622         $(rtld-installed-name).
623         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
624         (rtld_installed_name): Likwise.
625         (runit): Remove function.
626         (run_getconf): New variable,  Use it for running getconf binary.
627
628 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
629
630         [BZ #14716]
631         * string/test-memmem.c (check_result): New function.
632         (do_one_test): Use it.
633         (check1): New function.
634         (test_main): Use it.
635
636 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
637
638         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
639
640 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
641
642         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
643         (_G_LSEEK64): Likewise.
644         (_G_MMAP64): Likewise.
645         (_G_FSTAT64): Likewise.
646         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
647         (_G_LSEEK64): Likewise.
648         (_G_MMAP64): Likewise.
649         (_G_FSTAT64): Likewise.
650         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
651         unconditional.  Call __mmap64 directly.
652         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
653         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
654         __lseek64 directly.
655         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
656         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
657         __mmap64 directly.
658         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
659         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
660         __lseek64 directly.
661         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
662         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
663         __lseek64 directly.
664         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
665         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
666         __lseek64 directly.
667         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
668         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
669         __fxstat64 directly.
670         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
671         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
672         unconditional.
673         (freopen64) [!_G_OPEN64]: Remove conditional code.
674         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
675         unconditional.
676         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
677         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
678         unconditional.
679         (ftello64) [!_G_LSEEK64]: Remove conditional code.
680         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
681         unconditional.
682         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
683         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
684         unconditional.
685         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
686         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
687         unconditional.
688         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
689         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
690         unconditional.
691         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
692         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
693         unconditional.
694         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
695
696 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
697
698         [BZ #12140]
699         * manual/memory.texi (Malloc Tunable Parameters): Add note
700         about free list pointers overwriting some perturb bytes.
701         Wording suggested by Roland McGrath.
702
703 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
704
705         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
706         (lgamma_test): Likewise.
707         (tgamma_test): Likewise.
708
709 2012-10-16  Florian Weimer  <fweimer@redhat.com>
710
711         [BZ #14700]
712         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
713         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
714
715 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
716
717         * NEWS: Mention BZ #14716.
718         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
719         when removing AVAILABLE1_USES_J macro.
720
721 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
722
723         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
724         (__bswap_64): __uint64_t for unsigned 64-bit int.
725
726 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
727
728         * include/string.h (memmem): Declare libc hidden alias.
729         * string/memmem.c (memmem): Define libc hidden alias.
730         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
731         __read, __close instead of open, read, close.
732
733 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
734
735         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
736         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
737         global and hidden.
738         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
739         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
740         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
741         Likewise.
742         (__rawmemchr_sse2): Likewise.
743         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
744         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
745         (__strchr_sse2): Likewise.
746         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
747         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
748         (__strcasecmp_sse2): Likewise.
749         (__strncasecmp_sse2): Likewise.
750         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
751         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
752         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
753         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
754         (__strrchr_sse2): Likewise.
755         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
756         ifunc-impl-list.c.
757         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
758         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
759         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
760         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
761         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
762         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
763         * sysdeps/x86_64/multiarch/memset.S: Likewise.
764         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
765         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
766         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
767         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
768         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
769         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
770         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
771         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
772         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
773         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
774         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
775         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
776         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
777         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
778         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
779         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
780         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
781         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
782         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
783         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
784         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
785         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
786         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
787
788         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
789         global and hidden.
790         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
791         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
792         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
793         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
794         Likewise.
795         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
796         Likewise.
797         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
798         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
799         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
800         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
801         ifunc-impl-list.c.
802         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
803         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
804         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
805         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
806         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
807         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
808         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
809         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
810         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
811         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
812         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
813         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
814         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
815         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
816         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
817         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
818         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
819         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
820         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
821         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
822         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
823         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
824         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
825         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
826         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
827         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
828         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
829         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
830         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
831         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
832         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
833         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
834         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
835         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
836         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
837         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
838         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
839         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
840         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
841         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
842         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
843
844         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
845         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
846         * include/ifunc-impl-list.h: New file.
847         * misc/ifunc-impl-list.c: Likewise.
848         * misc/Makefile (routines): Add ifunc-impl-list.
849         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
850         * string/test-string.h: Include <ifunc-impl-list.h>.
851         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
852         impl_array): New variables.
853         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
854         are defined.
855         (test_init): Call __libc_ifunc_impl_list to initialize
856         func_list if TEST_IFUNC and TEST_NAME are defined.
857
858         * string/Makefile (strop-tests): Add bcopy and bzero.
859         * string/test-bcopy.c: New file.
860         * string/test-bzero.c: Likewise.
861         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
862         defined.
863         * string/test-memset.c: Support bzero test if TEST_BZERO is
864         defined.
865         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
866         __libc_memmove.
867         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
868         __libc_memset.
869         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
870         of memset.
871
872 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
873
874         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
875         * configure: Regenerated.
876
877         * Makeconfig (+link-static-before-libc): Don't include
878         $(link-static-libc).
879
880         * libio/libio.h (_IO_pos_t): Remove.
881
882 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
883
884         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
885         McGrath.
886
887 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
888
889         * crypt/crypt-entry.c: Include fips-private.h.
890         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
891         * crypt/md5c-test.c (main): Tolerate disabled MD5.
892         * sysdeps/unix/sysv/linux/fips-private.h: New file.
893         * sysdeps/generic/fips-private.h: New file, dummy fallback.
894
895 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
896
897         * crypt/crypt-private.h: Include stdbool.h.
898         (_ufc_setup_salt_r): Return bool.
899         * crypt/crypt-entry.c: Include errno.h.
900         (__crypt_r): Return NULL with EINVAL for bad salt.
901         * crypt/crypt_util.c (bad_for_salt): New.
902         (_ufc_setup_salt_r): Check that salt is long enough and within
903         the specified alphabet.
904         * crypt/badsalttest.c: New file.
905         * crypt/Makefile (tests): Add it.
906         ($(objpfx)badsalttest): New.
907
908 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
909
910         * NEWS: Add entry for BZ #14602.
911
912 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
913
914         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
915         type-generic.
916         * math/libm-test.inc: Update comment listing what functions and
917         macros are tested.
918         (isgreater_test): New function.
919         (isgreaterequal_test): Likewise.
920         (isless_test): Likewise.
921         (islessequal_test): Likewise.
922         (islessgreater_test): Likewise.
923         (isunordered_test): Likewise.
924         (main): Call the new functions.
925
926 2012-10-09  Roland McGrath  <roland@hack.frob.com>
927
928         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
929         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
930         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
931         * sysdeps/i386/configure: Regenerated.
932         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
933         * sysdeps/mach/configure: Regenerated.
934         * sysdeps/mach/hurd/configure: Regenerated.
935         * sysdeps/powerpc/configure: Regenerated.
936         * sysdeps/powerpc/powerpc32/configure: Regenerated.
937         * sysdeps/powerpc/powerpc64/configure: Regenerated.
938         * sysdeps/s390/s390-32/configure: Regenerated.
939         * sysdeps/s390/s390-64/configure: Regenerated.
940         * sysdeps/sh/configure: Regenerated.
941         * sysdeps/sparc/configure: Regenerated.
942         * sysdeps/unix/sysv/linux/configure: Regenerated.
943         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
944         * sysdeps/x86_64/configure: Regenerated.
945
946         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
947         defined.  Don't check if MAP is NULL.
948
949 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
950
951         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
952         (_G_stat64): Likewise.
953         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
954         (_G_stat64): Likewise.
955         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
956         instead of struct _G_stat64.
957         * libio/fileops.c (mmap_remap_check): Likewise.
958         (decide_maybe_mmap): Likewise.
959         (_IO_new_file_seekoff): Likewise.
960         (_IO_file_stat): Likewise.
961         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
962         _G_off64_t.
963         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
964         instead of struct _G_stat64.
965         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
966
967 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
968
969         [BZ #14602]
970         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
971         Replace with ...
972         (CHECK_EOL): New macro.
973         (two_way_short_needle): Check beginning of haystack for EOL.  Use
974         CHECK_EOL.
975         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
976         Replace with CHECK_EOL.
977         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
978         Replace with CHECK_EOL.
979
980 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
981
982         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
983         type-generic.
984         * math/libm-test.inc: Update comment listing what functions and
985         macros are tested.
986         (finite_test): New function.
987         (isinf_test): Likewise.
988         (isnan_test): Likewise.
989         (fpclassify_test): Test subnormal input.
990         (isfinite_test): Likewise.
991         (isnormal_test): Likewise.
992         (main): Call the new functions.
993
994 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
995
996         [BZ #14660]
997         * Makerules (%.dynsym): Force C locale when running
998         $(OBJDUMP) --dynamic-syms.
999
1000 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1001
1002         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1003         <stdint.h>.
1004
1005 2012-10-06  David S. Miller  <davem@davemloft.net>
1006
1007         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1008         upper 32-bits of the length value in %o2 since we use branch-on-register
1009         tests which consider the entire 64-bit register.
1010
1011 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1012
1013         * string/test-strstr.c (check2): Add a test for page boundary.
1014
1015 2012-10-05  David S. Miller  <davem@davemloft.net>
1016
1017         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1018         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1019         file.
1020         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1021         sysdep_routines.
1022         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1023         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1024         and bzero when HWCAP_SPARC_CRYPTO is present.
1025
1026 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1027
1028         [BZ #14602]
1029         * string/test-strstr.c (check2): New function.
1030         (test_main): Call check2.
1031
1032         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1033         and bug-strchr1.
1034         * string/bug-strcasestr1.c (do_test): Moved to ...
1035         * string/test-strcasestr.c (check1): Here.  New function.
1036         (do_one_test): Break out result checking code into ...
1037         (check_result): This.  New function.
1038         (do_one_test): Call check_result.
1039         (test_main): Call check1.
1040         * string/bug-strchr1.c (do_test): Moved to ...
1041         * string/test-strchr.c (check1): Here.  New function.
1042         (do_one_test): Break out result checking code into ...
1043         (check_result): This.  New function.
1044         (do_one_test): Call check_result.
1045         (test_main): Call check1.
1046         * string/bug-strstr1.c (main): Moved to ...
1047         * string/test-strchr.c (check1): Here.  New function.
1048         (do_one_test): Break out result checking code into ...
1049         (check_result): This.  New function.
1050         (do_one_test): Call check_result.
1051         (test_main): Call check1.
1052         * string/bug-strcasestr1.c: Removed.
1053         * string/bug-strchr1.c: Likewise.
1054         * string/bug-strstr1.c: Likewise.
1055
1056         * elf/Makefile (dl-routines): Add hwcaps.
1057         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1058         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1059         (_dl_important_hwcaps): Moved to ...
1060         * elf/dl-hwcaps.c: Here.  New file.
1061         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1062
1063         [BZ #14557]
1064         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1065         if IS_IN_rtld isn't defined.
1066
1067         * elf/dl-support.c (_dl_sysinfo_map): New.
1068         Include "get-dynamic-info.h" and "setup-vdso.h".
1069         (_dl_non_dynamic_init): Call setup_vdso.
1070         * elf/dynamic-link.h: Don't include <assert.h>.
1071         (elf_get_dynamic_info): Moved to ...
1072         * elf/get-dynamic-info.h: Here.  New file.
1073         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1074         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1075         * elf/setup-vdso.h: Here.  New file.
1076         * elf/rtld.c: Include "setup-vdso.h".
1077         (dl_main): Call setup_vdso.
1078
1079 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1080
1081         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1082         creal in comment listing functions tested.  List finite, isinf,
1083         isnan, isless, islessequal, isgreater, isgreaterequal,
1084         islessgreater, isunordered, lgamma_r and pow10 as functions and
1085         macros not tested.  Mention which functions not tested are aliases
1086         for other functions.  Fix typo.  Note that signs of NaNs are not
1087         tested.
1088
1089         * scripts/config.guess: Update from config.git.
1090         * scripts/config.sub: Likewise.
1091
1092 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1093
1094         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1095         * misc/madvise.c (madvise): Renamed to __madvise.
1096         Make madvise a weak alias.
1097         * include/sys/mman.h: Declare __madvise.
1098         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1099         * sysdeps/unix/syscalls.list
1100         (madvise): Make __madvise the strong name, and madvise a weak alias.
1101         * sysdeps/unix/sysv/linux/syscalls.list
1102         (madvise, mmap): Remove redundant entries.
1103         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1104         * malloc/malloc.c (mtrim): Likewise.
1105         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1106
1107 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1108
1109         * sysdeps/mach/hurd/dl-cache.c: File removed.
1110         * config.h.in (USE_LDCONFIG): New #undef.
1111         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1112         * configure: Regenerated.
1113         * elf/Makefile (dl-routines): Add dl-cache only under
1114         [$(use-ldconfig) = yes].
1115         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1116         cache on [USE_LDCONFIG].
1117         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1118         [USE_LDCONFIG].
1119         * elf/rtld.c (dl_main): Likewise.
1120
1121 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1122
1123         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1124         _SC_LEVEL4_CACHE_LINESIZE.
1125
1126 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1127
1128         * sysdeps/unix/bsd/confstr.h: File removed.
1129
1130 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1131
1132         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1133         sys/sdt-config.h.
1134
1135 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1136
1137         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1138         Make 'mapoff' field ElfW(Off) rather than off_t.
1139
1140 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1141
1142         * nscd/Makefile: Remove nscd-cflags and all its users.
1143         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1144         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1145
1146         [BZ #10631]
1147         * malloc.c (malloc_printerr): Clarify error message.
1148
1149 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         [BZ #14648]
1152         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1153         Set bit_FMA_Usable if FMA is supported.
1154         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1155         macro.
1156         (bit_FMA4_Usable): Updated.
1157         (index_FMA_Usable): New macro.
1158         (CPUID_FMA): Likewise
1159         (HAS_FMA): Defined with bit_FMA_Usable.
1160
1161 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1162
1163         * bits/types.h (__swblk_t): Type removed.
1164         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1165         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1166         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1167         (__SWBLK_T_TYPE): Likewise.
1168         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1169         (__SWBLK_T_TYPE): Likewise.
1170         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1171         (__SWBLK_T_TYPE): Likewise.
1172         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1173         (__SWBLK_T_TYPE): Likewise.
1174
1175 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1176             Honza Horak <hhorak@redhat.com>
1177
1178         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1179         (xdr_mapname): Use YPMAXMAP as maxsize.
1180         (xdr_peername): Use YPMAXPEER as maxsize.
1181         (xdr_keydat): Use YPAXRECORD as maxsize.
1182         (xdr_valdat): Use YPMAXRECORD as maxsize.
1183
1184 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1185
1186         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1187
1188         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1189         * csu/init-first.c: ... here.
1190         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1191         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1192         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1193         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1194         * sysdeps/i386/init-first.c: File removed.
1195         * sysdeps/sh/init-first.c: File removed.
1196
1197 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1198
1199         [BZ #14645]
1200         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1201         if x * y might underflow to zero and z is zero.
1202         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1203         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1204         * math/libm-test.inc (min_subnorm_value): New variable.
1205         (fma_test): Add more tests.
1206         (fma_test_towardzero): Likewise.
1207         (fma_test_downward): Likewise
1208         (fma_test_upward): Likewise.
1209         (initialize): Set min_subnorm_value.
1210
1211 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1212
1213         [BZ #14638]
1214         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1215         0 + 0.
1216         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1217         mode for addition resulting in exact zero.
1218         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1219         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1220         exact 0 + 0.
1221         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1222         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1223         * math/libm-test.inc (fma_test): Add more tests.
1224         (fma_test_towardzero): New function.
1225         (fma_test_downward): Likewise.
1226         (fma_test_upward): Likewise.
1227         (main): Call the new functions.
1228
1229 2012-09-28  David S. Miller  <davem@davemloft.net>
1230
1231         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1232
1233 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1234
1235         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1236         instead of SIGALRM.
1237
1238         * sysdeps/gnu/_G_config.h: Moved to ...
1239         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1240         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1241         * sysdeps/generic/_G_config.h: ... here.
1242
1243         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1244
1245         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1246
1247         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1248         Conditionalize target on [libnss_test1.so-version].
1249
1250         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1251
1252         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1253         (elfobjdir): Move out of conditionals.
1254
1255         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1256         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1257         (__nss_lookup_function): Conditionalize label remove_from_tree on
1258         [!DO_STATIC_NSS || SHARED], matching its only use.
1259
1260 2012-09-28  David S. Miller  <davem@davemloft.net>
1261
1262         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1263         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1264         file.
1265         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1266         sysdep_routines.
1267         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1268         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1269         when HWCAP_SPARC_CRYPTO is present.
1270
1271 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1272
1273         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1274
1275 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1276
1277         [BZ #6530]
1278         * stdio-common/vfprintf.c (process_string_arg): Revert
1279         2000-07-22 change.
1280
1281 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1282
1283         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1284         for testcase.
1285         * stdio-common/tst-sprintf.c: Include <locale.h>
1286         (main): Test sprintf's handling of incomplete multibyte
1287         characters.
1288
1289 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1290
1291         * elf/dl-runtime.c (VERSYMIDX): Removed.
1292         * elf/dl-version.c (VERSYMIDX): Likewise.
1293         * elf/do-rel.h (VERSYMIDX): Likewise.
1294         (VALIDX): Likewise.
1295         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1296         * elf/rtld.c (VALIDX): Likewise.
1297         (ADDRIDX): Likewise.
1298         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1299         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1300         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1301         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1302         (VALIDX): Likewise.
1303         (ADDRIDX): Likewise.
1304
1305 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1306
1307         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1308
1309 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1310
1311         [BZ #11438]
1312         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1313         to global scope.
1314         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1315         addresses are in the same scope as 192.0.2/24.
1316         * posix/gai.conf: Document new scope table defaults.
1317
1318 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1319
1320         [BZ #5298]
1321         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1322         for ftell.  Compute offsets from write pointers instead.
1323         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1324
1325 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1326
1327         [BZ #14543]
1328         * libio/Makefile (tests): New test case tst-fseek.
1329         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1330         combination works in wide mode.
1331         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1332         state when the external buffer state changes.
1333
1334 2012-09-27  David S. Miller  <davem@davemloft.net>
1335
1336         [BZ #14376]
1337         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1338         pass reloc->r_addend in as the 'high' argument to
1339         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1340
1341         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1342
1343 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1344
1345         * rt/tst-aio2.c: Include <pthread.h>.
1346         * rt/tst-aio3.c: Likewise.
1347
1348 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1349
1350         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1351
1352 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1353
1354         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1355         contents on [SHARED].
1356
1357 2012-09-26  Marek Polacek  <polacek@redhat.com>
1358
1359         [BZ #14530]
1360         [BZ #13741]
1361         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1362         for C++ and GCC <4.3 as well as for non GCC compilers.
1363
1364 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1365
1366         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1367
1368 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1369
1370         * Makefile.in (all, install): Declare with .PHONY.
1371         Reported by Michael Hope <michael.hope@linaro.org>.
1372
1373 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1374
1375         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1376         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1377         system header.
1378         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1379         Likewise.
1380         (sydep_routines): Add the new and the internal functions.
1381         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1382         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1384         (GLIBC_2.17): Add the new function.
1385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1386         (GLIBC_2.17): Likewise.
1387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1388         (GLIBC_2.17): Likewise.
1389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1390         (GLIBC_2.17): Likewise.
1391         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1392
1393 2012-09-25  Alan Modra  <amodra@gmail.com>
1394
1395         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1396         Add release barrier before setting once_control to say
1397         initialisation is done.  Add hints on lwarx.  Use macro in
1398         place of isync.
1399         (clear_once_control): Add release barrier.
1400
1401 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1402
1403         [BZ #13629]
1404         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1405         specially.
1406         * math/s_clog10.c (__clog10): Likewise.
1407         * math/s_clog10f.c (__clog10f): Likewise.
1408         * math/s_clog10l.c (__clog10l): Likewise.
1409         * math/s_clogf.c (__clogf): Likewise.
1410         * math/s_clogl.c (__clogl): Likewise.
1411         * math/Makefile (libm-calls): Add x2y2m1.
1412         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1413         (__x2y2m1): Likewise.
1414         (__x2y2m1l): Likewise.
1415         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1416         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1417         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1418         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1419         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1420         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1421         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1422         * sysdeps/i386/fpu/libm-test-ulps: Update.
1423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1424
1425         [BZ #14621]
1426         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1427         int as type of variable DEPTH.
1428         (glob): Use size_t instead of int as type of variables NEWCOUNT
1429         and OLD_PATHC.
1430
1431 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1432
1433         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1434         Add s_sincosf-sse2.
1435         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1436         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1437         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1438         macros for using routine as __sincosf_ia32.
1439         Use macro for function declaration and weak_alias.
1440         * sysdeps/i386/fpu/libm-test-ulps: Update.
1441
1442         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1443         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1444
1445         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1446         subnormal argument.
1447         * math/s_cexpf.c (__cexpf): Likewise.
1448         * math/s_csinf.c (__csinf): Likewise.
1449         * math/s_csinhf.c (__csinhf): Likewise.
1450         * math/s_ctanf.c (__ctanf): Likewise.
1451         * math/s_ctanhf.c (__ctanhf): Likewise.
1452         * math/s_ccosh.c (__ccoshf): Likewise.
1453         * math/s_cexp.c (__cexpl): Likewise.
1454         * math/s_csin.c (__csin): Likewise.
1455         * math/s_csinh.c (__csinh): Likewise.
1456         * math/s_ctan.c (__ctan): Likewise.
1457         * math/s_ctanh.c (ctanh): Likewise.
1458         * math/s_ccoshl.c (__ccoshl): Likewise.
1459         * math/s_cexpl.c (__cexpl): Likewise.
1460         * math/s_csinl.c (__csinl): Likewise.
1461         * math/s_csinhl.c (__csinhl): Likewise.
1462         * math/s_ctanl.c (__ctanl): Likewise.
1463         * math/s_ctanhl.c (__ctanhl): Likewise.
1464
1465 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1466
1467         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1468         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1469         (_IO_off_t): Define to __off_t, not _G_off_t.
1470         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1471         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1472         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1473         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1474         type of __dummy and __dummy2 fields.
1475         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1476         (_G_ssize_t): Likewise.
1477         (_G_off_t): Likewise.
1478         (_G_pid_t): Likewise.
1479         (_G_uid_t): Likewise.
1480         (_G_wchar_t): Likewise.
1481         (_G_wint_t): Likewise.
1482         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1483         (_G_ssize_t): Likewise.
1484         (_G_off_t): Likewise.
1485         (_G_pid_t): Likewise.
1486         (_G_uid_t): Likewise.
1487         (_G_wchar_t): Likewise.
1488         (_G_wint_t): Likewise.
1489         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1490         (_G_ssize_t): Likewise.
1491         (_G_off_t): Likewise.
1492         (_G_pid_t): Likewise.
1493         (_G_uid_t): Likewise.
1494         (_G_wchar_t): Likewise.
1495         (_G_wint_t): Likewise.
1496
1497 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1498
1499         * malloc/arena.c: Include malloc-sysdep.h.
1500         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1501         is sufficient to shrink the heap or an unmap is needed.
1502         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1503         new function check_may_shrink_heap.
1504         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1505         new function check_may_shrink_heap.
1506
1507 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1508
1509         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1510         comments.
1511
1512 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1513
1514         * catgets/test-gencat.sh: Add "set -e".
1515         * elf/tst-pathopt.sh: Likewise.
1516         * grp/tst_fgetgrent.sh: Likewise.
1517         * iconvdata/run-iconv-test.sh: Likewise.
1518         * intl/tst-gettext.sh: Likewise.
1519         * intl/tst-gettext2.sh: Likewise.
1520         * intl/tst-gettext4.sh: Likewise.
1521         * intl/tst-gettext6.sh: Likewise.
1522         * intl/tst-translit.sh: Likewise.
1523         * io/ftwtest-sh: Likewise.
1524         * libio/test-freopen.sh: Likewise.
1525         * malloc/tst-mtrace.sh: Likewise.
1526         * posix/globtest.sh: Likewise.
1527         * posix/tst-getconf.sh: Likewise.
1528         * posix/wordexp-tst.sh: Likewise.
1529         * stdio-common/tst-printf.sh: Likewise.
1530         * stdio-common/tst-unbputc.sh: Likewise.
1531         * stdlib/tst-fmtmsg.sh: Likewise.
1532         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1533         * catgets/Makefile: Do not specify -e option when running
1534         testsuite shell scripts.
1535         * elf/Makefile: Likewise.
1536         * grp/Makefile: Likewise.
1537         * iconvdata/Makefile: Likewise.
1538         * intl/Makefile: Likewise.
1539         * io/Makefile: Likewise.
1540         * libio/Makefile: Likewise.
1541         * malloc/Makefile: Likewise.
1542         * posix/Makefile: Likewise.
1543         * stdio-common/Makefile: Likewise.
1544         * stdlib/Makefile: Likewise.
1545         * sysdeps/x86_64/Makefile: Likewise.
1546
1547         * io/ftwtest-sh: Add copyright header.
1548         * posix/globtest.sh: Likewise.
1549         * posix/tst-getconf.sh: Likewise.
1550         * posix/wordexp-tst.sh: Likewise.
1551         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1552
1553 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1554
1555         [BZ #13679]
1556         * Makeconfig (+link): Defined as $(+link-static) if
1557         $(build-shared) isn't yes.
1558         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1559         isn't yes.
1560         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1561
1562         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1563
1564         [BZ #14562]
1565         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1566         new chunk size with MALLOC_ALIGN_MASK.
1567
1568 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1569
1570         [BZ #5044]
1571         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1572         <rounding-mode.h>.
1573         (__printf_fphex): Determine rounding using get_rounding_mode and
1574         round_away.
1575         * stdio-common/tst-printf-round.c (struct hex_test): New
1576         structure.
1577         (hex_tests): New variable.
1578         (test_hex_in_one_mode): New function.
1579         (do_test): Also run tests for hex float output.
1580
1581 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1582
1583         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1584         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1585         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1586         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1587         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1588         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1589         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1590         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1591
1592 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1593
1594         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1595         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1596         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1597         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1598
1599 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1600
1601         [BZ #14579]
1602         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1603         mode only.
1604         * elf/tst-rtld-load-self.sh: New test.
1605         * elf/Makefile: Run it.
1606
1607 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1608
1609         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1610         (tst-writev-ENV): Remove.
1611         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1612
1613 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1614
1615         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1616
1617 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1618
1619         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1620         unconditional.
1621         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1622         Likewise.
1623         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1624         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1625         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1626         Likewise.
1627
1628 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1629
1630         [BZ #14587]
1631         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1632         * config.make.in (have-cpp-asm-debuginfo): Removed.
1633         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1634         * configure: Regenerated.
1635
1636 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1637
1638         [BZ #5044]
1639         * stdio-common/printf_fp.c: Include <stdbool.h> and
1640         <rounding-mode.h>.
1641         (___printf_fp): Determine rounding using get_rounding_mode and
1642         round_away.
1643         * stdio-common/tst-printf-round.c: New file.
1644         * stdio-common/Makefile (tests): Add tst-printf-round.
1645         (link-libm): New variable.
1646         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1647
1648 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1649
1650         [BZ #14576]
1651         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1652         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1653         Likewise.
1654         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1655         Likewise.
1656
1657 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1658
1659         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1660         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1661         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1662         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1663
1664 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1665
1666         [BZ #14518]
1667         * include/rounding-mode.h: New file.
1668         * sysdeps/generic/get-rounding-mode.h: Likewise.
1669         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1670         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1671         (MAX_VALUE): New macro.
1672         (MIN_VALUE): Likewise.
1673         (overflow_value): New function.
1674         (underflow_value): Likewise.
1675         (round_and_return): Use overflow_value and underflow_value to
1676         determine return values in overflow and underflow cases.  Use
1677         round_away to determine rounding depending on rounding mode.
1678         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1679         determine return values in overflow and underflow cases.
1680         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1681         (struct test_results): New structure.
1682         (struct test): Use struct test_results to store expected results
1683         for all rounding modes.
1684         (TEST): Include expected results for all rounding modes.
1685         (test_in_one_mode): New function.
1686         (do_test): Use test_in_one_mode to compute and check results.
1687         Check results for all rounding modes.
1688         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1689         $(link-libm).
1690
1691 2012-12-09  Allan McRae  <allan@archlinux.org>
1692
1693         * sysdeps/i386/fpu/libm-test-ulps: Update
1694
1695 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1696
1697         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1698         (_G_int32_t): Likewise.
1699         (_G_uint16_t): Likewise.
1700         (_G_uint32_t): Likewise.
1701         (_G_HAVE_BOOL): Likewise.
1702         (_G_HAVE_ATEXIT): Likewise.
1703         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1704         (_G_HAVE_IO_FILE_OPEN): Likewise.
1705         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1706         (_G_int32_t): Likewise.
1707         (_G_uint16_t): Likewise.
1708         (_G_uint32_t): Likewise.
1709         (_G_HAVE_BOOL): Likewise.
1710         (_G_HAVE_ATEXIT): Likewise.
1711         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1712         (_G_HAVE_IO_FILE_OPEN): Likewise.
1713         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1714         (_G_int32_t): Likewise.
1715         (_G_uint16_t): Likewise.
1716         (_G_uint32_t): Likewise.
1717         (_G_HAVE_BOOL): Likewise.
1718         (_G_HAVE_ATEXIT): Likewise.
1719         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1720         (_G_HAVE_IO_FILE_OPEN): Likewise.
1721
1722 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1723
1724         * csu/libc-tls.c: Update copyright years.
1725
1726 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1727
1728         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1729         [!_G_USING_THUNKS]: Remove conditional code.
1730         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1731         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1732
1733         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1734         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1735         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1736         (_G_VTABLE_LABEL_PREFIX): Likewise.
1737         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1738         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1739         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1740         (_G_VTABLE_LABEL_PREFIX): Likewise.
1741         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1742         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1743         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1744         (_G_VTABLE_LABEL_PREFIX): Likewise.
1745         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1746
1747 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1748
1749         * libio/Makefile: Include ../Makeconfig before tests.
1750         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1751         only if $(build-shared) is yes.
1752
1753         * iconv/gconv_db.c: Update copyright years.
1754
1755 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1756
1757         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1758         unwind info if defined PIC. Fix special cases description.
1759         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1760
1761         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1762         DP_HI_MASK entry.
1763         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1764
1765 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1766
1767         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1768
1769         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1770         is NULL.
1771
1772         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1773         (LDLIBS-tst-chk4): This.
1774         (LDFLAGS-tst-chk5): Renamed to ...
1775         (LDLIBS-tst-chk5): This.
1776         (LDFLAGS-tst-chk6): Renamed to ...
1777         (LDLIBS-tst-chk6): This.
1778         (LDFLAGS-tst-lfschk4): Renamed to ...
1779         (LDLIBS-tst-lfschk4): This.
1780         (LDFLAGS-tst-lfschk5): Renamed to ...
1781         (LDLIBS-tst-lfschk5): This.
1782         (LDFLAGS-tst-lfschk6): Renamed to ...
1783         (LDLIBS-tst-lfschk6): This.
1784
1785         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1786         on $(common-objpfx)soversions.mk.
1787
1788 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1789
1790         [BZ #10014]
1791         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1792         example host name.
1793
1794 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1795
1796         * malloc/arena.c (arena_get_retry): New function that gets
1797         another arena for the caller to try its request on.
1798         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1799         current arena cannot fulfill the request.
1800         (__libc_memalign): Likewise.
1801         (__libc_memalign): Likewise.
1802         (__libc_pvalloc): Likewise.
1803         (__libc_calloc): Likewise.
1804
1805 2012-09-05  John Tobey  <john.tobey@gmail.com>
1806
1807         [BZ #13542]
1808         * manual/arith.texi (Operations on Complex): Fix description
1809         of carg branch cut.
1810
1811 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1812
1813         [BZ #10014]
1814         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1815         host name.
1816
1817         [BZ #10038]
1818         * manual/memory.texi (Memory): Make order of menu items match
1819         order of sections.
1820
1821 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1822
1823         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1824         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1825         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1826
1827 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1828
1829         * csu/libc-tls.c (static_dtv): Renamed to ...
1830         (_dl_static_dtv): This.  Make it global.
1831         (_dl_initial_dtv): Removed.
1832         (__libc_setup_tls): Updated.
1833         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1834         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1835         DL_INITIAL_DTV.
1836
1837 2012-09-06  Petr Machata  <pmachata@redhat.com>
1838
1839         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1840         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1841         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1842         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1843
1844 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1845
1846         [BZ #14545]
1847         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1848         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1849         freeing dtv[-1].
1850
1851 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1852
1853         [BZ #14544]
1854         * Makeconfig (link-static-before-libc): Replace $(+prector)
1855         with $(+prectorT).
1856         (link-static-after-libc): Replace $(+postctor) with
1857         $(+postctorT).
1858         (link-bounded): Replace $(+prector)/$(+postctor) with
1859         $(+prectorT)/$(+postctorT).
1860         (+prectorT): New macro.
1861         (+postctorT): Likewise.
1862
1863 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1864
1865         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1866         (round_str): Handle values above the maximum for IBM long double
1867         as inexact.
1868         * stdlib/tst-strtod-round.c (tests): Regenerated.
1869
1870 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1871
1872         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1873         assembler flag.
1874         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1875         zarch_nohighgprs around the zarch optimized routines.
1876         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1877         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1878         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1879         for zarch.
1880
1881 2012-09-05  David S. Miller  <davem@davemloft.net>
1882
1883         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1884
1885         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1886         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1887         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1888         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1889         entries.
1890
1891 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1892
1893         * malloc/arena.c: Fold copyright years.
1894         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1895
1896 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1897
1898         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1899
1900 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1901
1902         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1903
1904 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1905
1906         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1907         change internal state upon failure.
1908
1909 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1910
1911         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1912         * malloc/memusage.c (mmap): Likewise.
1913         (mmap64, mremap): Likewise.  Adjust name in comment.
1914
1915 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1916
1917         * libio/fileops.c: Fix typos in comments.
1918         * libio/oldfileops.c: Likewise.
1919         * libio/wfileops.c: Likewise.
1920
1921 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1922
1923         [BZ #1349]
1924         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1925         (tst-malloc-usable-ENV): Set environment for test case.
1926         * malloc/hooks.c (malloc_check_get_size): New function to get
1927         requested size.
1928         * malloc/malloc.c (musable): Use malloc_check_get_size.
1929         * malloc/tst-malloc-usable.c: New test case.
1930
1931 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1932
1933         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1934
1935 2012-09-05  Allan McRae  <allan@archlinux.org>
1936
1937         [BZ #13966]
1938         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1939         determine header location.
1940         * configure: Regenerated.
1941
1942 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1943
1944         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1945         float format.
1946         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1947         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1948         format.
1949         (test): Regenerate.
1950
1951 2012-09-04  David S. Miller  <davem@davemloft.net>
1952
1953         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1954         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1955         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1956
1957 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1958
1959         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1960         failures.
1961
1962         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1963
1964 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1965
1966         [BZ #9914]
1967         * libio/iogetdelim.c: Include <limits.h>.
1968         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1969         + len + 1 would overflow.
1970
1971 2012-09-03  Andreas Jaeger  <aj@suse.de>
1972
1973         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1974         * sysdeps/i386/fpu/libm-test-ulps: Update.
1975
1976 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1977
1978         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1979         Add s_sinf-sse2, s_conf-sse2.
1980
1981         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1982         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1983         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1984         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1985
1986         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1987         for using routine as __sinf_ia32.
1988         Use macro for function declaration and weak_alias.
1989         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1990         for using routine as __cosf_ia32.
1991         Use macro for function declaration and weak_alias.
1992
1993         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1994         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1995
1996         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1997         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1998         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1999
2000         * math/libm-test.inc (cos_test): Add more test cases.
2001         (sin_test): Likewise.
2002         (sincos_test): Likewise.
2003
2004 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2005
2006         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2007         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2008         hidden.
2009         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2010
2011 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2012
2013         [BZ #14538]
2014         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2015         first element of the GOT.
2016         (elf_machine_load_address): Return the difference between
2017         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2018
2019 2012-09-01  Allan McRae  <allan@archlinux.org>
2020
2021         [BZ #13412]
2022         * configure.in (AWK): Require gawk version 3.0 or later.
2023         * configure: Regenerated.
2024
2025 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2026
2027         * sysdeps/unix/sysv/linux/kernel-features.h
2028         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2029         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2030         [__NR_clock_getres]: Make code unconditional.
2031         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2032         (clock_getcpuclockid): Remove code left unreachable by removal of
2033         conditionals.
2034         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2035         code unconditional.
2036         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2037         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2038         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2039         Make code unconditional.
2040         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2041         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2042         * sysdeps/unix/sysv/linux/clock_settime.c
2043         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2044         conditional code.
2045         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2046         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2047
2048 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2049
2050         [BZ #14476]
2051         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2052         scripts/test-installation.pl.
2053
2054         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2055         and $ld_so_version if it is set.
2056
2057 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2058
2059         [BZ #14516]
2060         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2061         failure if reading from procfs failed.
2062         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2063
2064 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2065
2066         * sysdeps/unix/sysv/linux/kernel-features.h
2067         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2068         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2069         Remove conditional code.
2070         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2071         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2072         Remove conditional code.
2073         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2074         * sysdeps/unix/sysv/linux/i386/fxstat.c
2075         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2076         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2077         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2078         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2079         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2080         * sysdeps/unix/sysv/linux/i386/lxstat.c
2081         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2082         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2083         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2084         Remove conditional code.
2085         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2086         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2087         Remove conditional code.
2088         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2089         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2090         <kernel-features.h>.
2091         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2092         Remove.
2093         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2094         Remove conditional code.
2095         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2096         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2097         Remove conditional.
2098
2099 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2100
2101         [BZ #5400]
2102         * NEWS: Add fixed bug number.
2103
2104 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2105
2106         [BZ #14519]
2107         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2108         underflowing exponent in case of negative sign.
2109         * stdlib/tst-strtod-round-data: Add more tests.
2110         * stdlib/tst-strtod-round.c (tests): Regenerated.
2111
2112         [BZ #3479]
2113         * stdlib/strtod_l.c (NDIG): Remove.
2114         (HEXNDIG): Likewise.
2115         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2116         smallest representable value.
2117         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2118         lie within an exact representation of 1/2 ulp of the result.
2119         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2120         unconditionally.
2121         (TENS_P9_IDX): Define unconditionally.
2122         (TENS_P9_SIZE): Likewise.
2123         (TENS_P10_IDX): Likewise.
2124         (TENS_P10_SIZE): Likewise.
2125         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2126         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2127         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2128         entries for 10^2^13 and 10^2^14.
2129         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2130         (TENS_P13_IDX): Define.
2131         (TENS_P13_SIZE): Likewise.
2132         (TENS_P14_IDX): Likewise.
2133         (TENS_P14_SIZE): Likewise.
2134         (_fpioconst_pow10): Change array size to
2135         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2136         unconditional.
2137         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2138         1024]: Add entries for 10^2^13 and 10^2^14.
2139         [LAST_POW10 > _LAST_POW10]: Remove #error.
2140         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2141         (_fpioconst_pow10): Change array size to
2142         FPIOCONST_POW10_ARRAY_SIZE.
2143         * stdlib/gen-fpioconst.c: New file.
2144         * stdlib/gen-tst-strtod-round.c: Likewise.
2145         * stdlib/tst-strtod-round-data: Likewise.
2146         * stdlib/tst-strtod-round.c: Likewise.
2147         * stdlib/Makefile (tests): Add tst-strtod-round.
2148
2149         [BZ #14459]
2150         * stdlib/strtod_l.c: Include <stdint.h>.
2151         (NDEBUG): Do not define.
2152         (round_and_return): Change EXPONENT parameter to type intmax_t.
2153         Rearrange calculations to avoid internal overflow possibilities.
2154         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2155         Rearrange calculations to avoid internal overflow possibilities.
2156         Assert that number fits inside MPNSIZE limbs.
2157         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2158         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2159         calculations and add assertions to avoid internal overflow
2160         possibilities.  Add casts to avoid signed/unsigned operations.
2161         * stdlib/tst-strtod-overflow.c: New file.
2162         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2163
2164 2012-08-25  Marek Polacek  <polacek@redhat.com>
2165
2166         * time/time.h: Fix some typos in comments.
2167
2168 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2169
2170         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2171         * posix/tst-rfc3484-2.c: Likewise.
2172         * posix/tst-rfc3484-3.c: Likewise.
2173
2174 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2175
2176         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2177         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2178
2179 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2182         #include of fxstatat64.c.
2183
2184 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2185
2186         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2187         * shadow/getspent_r.c: Likewise.
2188         * shadow/getspnam.c: Likewise.
2189         * shadow/getspnam_r.c: Likewise.
2190         * gshadow/getsgent.c: Likewise.
2191         * gshadow/getsgent_r.c: Likewise.
2192         * gshadow/getsgnam.c: Likewise.
2193         * gshadow/getsgnam_r.c: Likewise.
2194         * inet/getnetbyad.c: Likewise.
2195         * inet/getnetbyad_r.c: Likewise.
2196         * inet/getnetbynm.c: Likewise.
2197         * inet/getnetbynm_r.c: Likewise.
2198         * inet/getnetent.c: Likewise.
2199         * inet/getnetent_r.c: Likewise.
2200         * inet/getproto.c: Likewise.
2201         * inet/getproto_r.c: Likewise.
2202         * inet/getprtent.c: Likewise.
2203         * inet/getprtent_r.c: Likewise.
2204         * inet/getprtname.c: Likewise.
2205         * inet/getprtname_r.c: Likewise.
2206         * inet/getrpcbyname.c: Likewise.
2207         * inet/getrpcbyname_r.c: Likewise.
2208         * inet/getrpcbynumber.c: Likewise.
2209         * inet/getrpcbynumber_r.c: Likewise.
2210         * inet/getrpcent.c: Likewise.
2211         * inet/getrpcent_r.c: Likewise.
2212         * inet/getaliasent.c: Likewise.
2213         * inet/getaliasent_r.c: Likewise.
2214         * inet/getaliasname.c: Likewise.
2215         * inet/getaliasname_r.c: Likewise.
2216         * nscd/getgrgid_r.c: Likewise.
2217         * nscd/getgrnam_r.c: Likewise.
2218         * nscd/gethstbyad_r.c: Likewise.
2219         * nscd/gethstbynm3_r.c: Likewise.
2220         * nscd/getpwnam_r.c: Likewise.
2221         * nscd/getpwuid_r.c: Likewise.
2222         * nscd/getsrvbynm_r.c: Likewise.
2223         * nscd/getsrvbypt_r.c: Likewise.
2224         * nscd/gai.c: Likewise.
2225
2226         * configure.in (build_nscd): New substituted variable, set
2227         by --disable-build-nscd and defaults to $use_nscd.
2228         * configure: Regenerated.
2229         * config.make.in (build-nscd): New substituted variable.
2230         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2231         Change conditional to require [$(build-nscd) = yes] as well.
2232         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2233
2234         [BZ# 13696]
2235         * configure.in (use_nscd): New substituted variable, set by
2236         --disable-nscd.  If enabled, define USE_NSCD.
2237         * configure: Regenerated.
2238         * config.h.in: Add USE_NSCD.
2239         * config.make.in (use-nscd): New substituted variable.
2240         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2241         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2242         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2243         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2244         (CFLAGS-getgrnam_r.c): Likewise.
2245         (CFLAGS-initgroups.c): Likewise.
2246         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2247         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2248         Variables removed.
2249         * inet/getnetgrent_r.c
2250         (nscd_setnetgrent): New function, broken out of ...
2251         (setnetgrent): ... here.  Call it.
2252         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2253         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2254         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2255         * nscd/Makefile (routines, aux): Move definitions after include of
2256         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2257         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2258         Conditionalize on [USE_NSCD].
2259         (is_nscd, nscd_init_cb): Likewise.
2260         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2261         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2262         * nss/nss_db/db-init.c: Likewise.
2263         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2264         [USE_NSCD].
2265         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2266         (make_request): Use it.
2267         (cache_valid_p): New function.
2268         (__check_pf): Use it.
2269         * NEWS: Add item for --disable-nscd.
2270
2271 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2272
2273         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2274         to support sed >= 4.2.1-20-ga9bf076.
2275         * configure: Regenerated.
2276
2277 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2278
2279         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2280         Conditionalize whole body on [IREL].
2281
2282 2012-08-22  Jeff Law <law@redhat.com>
2283
2284         [BZ #14505]
2285         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2286         if the family is PF_UNSPEC.
2287
2288 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2289
2290         * Makerules (lib-version): Rename from V.
2291         (install-lib-nosubdir): Change V to lib-version.
2292
2293 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2294
2295         [BZ #14252]
2296         * powerpc32/power6/wcschr.c: New file.
2297         * powerpc32/power6/wcscpy.c: New file.
2298         * powerpc32/power6/wcsrchr.c: New file.
2299         * powerpc64/power6/wcschr.c: New file.
2300         * powerpc64/power6/wcscpy.c: New file.
2301         * powerpc64/power6/wcsrchr.c: New file.
2302
2303 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2304
2305         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2306         (two_way_short_needle): Use it.
2307         * string/strstr.c (AVAILABLE1_USES_J): Define.
2308         * string/strcasestr.c: Likewise.
2309
2310         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2311         array references.
2312         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2313
2314         [BZ #11607]
2315         * NEWS: Add an entry.
2316         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2317         define their defaults.
2318         (two_way_short_needle): Detect end-of-string on-the-fly.
2319         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2320         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2321         * string/bug-strcasestr1.c: New test.
2322         * string/Makefile: Run it.
2323
2324 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2325
2326         [BZ #11607]
2327         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2328         the first character.
2329
2330 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2331
2332         * csu/elf-init.c (__libc_csu_irel): Function removed.
2333         * csu/libc-start.c (apply_irel): New function.
2334         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2335
2336 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2337
2338         * sysdeps/unix/sysv/linux/kernel-features.h
2339         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2340         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2341         <kernel-features.h>.
2342         [__NR_fadvise64_64]: Make code unconditional.
2343         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2344         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2345         !__NR_fadvise64_64)]: Likewise.
2346         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2347         !__NR_fadvise64_64))]: Likewise.
2348         [__NR_fadvise64]: Make code unconditional.
2349         [!__NR_fadvise64]: Remove conditional code.
2350         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2351         <kernel-features.h>.
2352         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2353         unconditional.
2354         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2355         conditional code.
2356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2357         not include <kernel-features.h>.
2358         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2359         unconditional.
2360         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2361         conditional code.
2362         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2363         include <kernel-features.h>.
2364         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2365         unconditional.
2366         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2367         conditional code.
2368
2369 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2370
2371         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2372         slight instruction rearrangements per scrollpipe analysis.
2373         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2374
2375 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2376
2377         * manual/syslog.texi (syslog; vsyslog, closelog):
2378         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2379         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2380
2381         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2382         DSOCAPS to match condition on defining it.
2383
2384 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2385
2386         * sysdeps/unix/sysv/linux/kernel-features.h
2387         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2389         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2390         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2392         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2393         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2395         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2396         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2397
2398         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2399         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2400
2401         * sysdeps/unix/sysv/linux/kernel-features.h
2402         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2403         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2404         unconditional.
2405         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2406         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2407         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2408         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2409         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2410         Make code unconditional.
2411         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2412         (__mmap64) [!__NR_mmap2]: Likewise.
2413         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2414         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2415         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2416         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2417         [__NR_mmap2]: Make code unconditional.
2418         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2419         (__mmap64) [!__NR_mmap2]: Likewise.
2420
2421 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2422
2423         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2424
2425 2012-08-18  Andreas Jaeger  <aj@suse.de>
2426
2427         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2428
2429 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2430
2431         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2432         * include/unistd.h (__have_sock_cloexec): Likewise.
2433         (__have_pipe2): Likewise.
2434         (__have_dup3): Likewise.
2435
2436 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2437
2438         [BZ #9685]
2439         * include/unistd.h (__have_pipe2): Change define into an extern int.
2440         (__have_dup3): Likewise.
2441         * socket/have_sock_cloexec.c: Include fcntl.h.
2442         (__have_pipe2): New variable.
2443         (__have_dup3): Likewise.
2444
2445 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2446
2447         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2448
2449 2012-08-17  Marek Polacek  <polacek@redhat.com>
2450
2451         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2452         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2453
2454 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2455
2456         * configure.in: Add AC_SUBST for sysheaders.
2457         * configure: Regenerated.
2458         * config.make.in (sysheaders): New substituted variable.
2459
2460         * sysdeps/unix/mkfifo.c: Moved ...
2461         * sysdeps/posix/mkfifo.c: ... here.
2462         * sysdeps/unix/mkfifoat.c: Moved ...
2463         * sysdeps/posix/mkfifoat.c: ... here.
2464
2465         * sysdeps/unix/utime.c: Moved ...
2466         * sysdeps/posix/utime.c: ... here.
2467
2468         * sysdeps/unix/time.c: Moved ...
2469         * sysdeps/posix/time.c: ... here.
2470         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2471         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2472
2473         * sysdeps/unix/nice.c: Moved ...
2474         * sysdeps/posix/nice.c: ... here.
2475
2476         * sysdeps/unix/alarm.c: Moved ...
2477         * sysdeps/posix/alarm.c: ... here.
2478
2479         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2480
2481 2012-08-17  Jeff Law <law@redhat.com>
2482
2483         * intl/Makefile (codeset_mo): New variable.
2484         ($(codeset_mo)): New target.
2485         (tst-codeset.out): Depend on that.  Remove explicit rule.
2486         (tst-gettext3.out, tst-gettext5.out): Likewise.
2487         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2488         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2489         * intl/tst-codeset.sh: Remove.
2490         * intl/tst-gettext3.sh: Likewise.
2491         * intl/tst-gettext5.sh: Likewise.
2492
2493 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2494
2495         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2496         * sysdeps/unix/syscalls.list: ... here.
2497
2498         * sysdeps/posix/getaddrinfo.c
2499         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2500         (gaiconf_init, gaiconf_reload): Use them.
2501         [!_STATBUF_ST_NSEC]
2502         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2503         Define using time_t rather than struct timespec.
2504
2505         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2506         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2507         Macros removed.
2508         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2509         [!NO_THREADS].
2510         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2511         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2512         Likewise.
2513
2514         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2515         __libc_cleanup_push argument.
2516
2517         * bits/param.h: New file.
2518         * misc/sys/param.h: New file.
2519         * include/sys/param.h: New file.
2520         * misc/Makefile (headers): Add bits/param.h.
2521         * sysdeps/generic/sys/param.h: File removed.
2522         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2523         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2524         * sysdeps/mach/hurd/bits/param.h: New file.
2525         * sysdeps/mach/hurd/sys/param.h: File removed.
2526
2527         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2528         last change.
2529
2530         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2531         [_IO_MTSAFE_IO].
2532         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2533         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2534         New macros.
2535
2536         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2537         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2538         rather than -D_IO_MTSAFE_IO conditionally.
2539         * stdio-common/Makefile (CPPFLAGS): Likewise.
2540         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2541         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2542         Use $(libio-mtsafe).
2543         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2544         of -D_IO_MTSAFE_IO.
2545         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2546         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2547         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2548         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2549         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2550         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2551         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2552         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2553         (CFLAGS-fread_u_chk.c): Likewise.
2554         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2555         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2556         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2557         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2558         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2559         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2560         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2561         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2562         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2563
2564         * libio/Makefile: Test [$(libc-reentrant) = yes]
2565         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2566
2567         * Makeconfig
2568         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2569         * sysdeps/pthread/configure: File removed.
2570         * sysdeps/pthread/Makeconfig: New file.
2571         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2572         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2573
2574 2012-08-16  Gary Benson  <gbenson@redhat.com>
2575
2576         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2577         unmapping the first object in a namespace.
2578
2579 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2580
2581         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2582         (__internal_setnetgrent): ... this.  Add internal_function to
2583         definition.  Add libc_hidden_def.
2584         (setnetgrent): Update caller.
2585         (internal_endnetgrent): Renamed to ...
2586         (__internal_endnetgrent): ... this.  Add internal_function to
2587         definition.  Add libc_hidden_def.
2588         (endnetgrent): Update caller.
2589         (internal_getnetgrent_r): Renamed to ...
2590         (__internal_getnetgrent_r): ... this.  Add internal_function to
2591         definition.  Add libc_hidden_def.
2592         (__getnetgrent_r): Update caller.
2593         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2594
2595 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2596
2597         * stdlib/longlong.h: Update from GCC.
2598
2599 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2600
2601         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2602         on _QL, which is set by umul_ppmm but never used.
2603         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2604         variables, which are set by GMP macros but never used.
2605         * stdio-common/_itowa.c (_itowa): Likewise.
2606         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2607         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2608
2609 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2610
2611         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2612         struct La_sh_regs is not constant.
2613         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2614         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2615         and struct La_sparc64_regs are not constant.
2616
2617 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2618
2619         * sysdeps/unix/sysv/linux/kernel-features.h
2620         (__ASSUME_POSIX_TIMERS): Remove.
2621         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2622         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2623         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2624         Make code unconditional.
2625         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2626         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2627         Make code unconditional.
2628         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2629         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2630         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2631         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2632         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2633         Make code unconditional.
2634         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2635         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2636         (__libc_missing_posix_timers): Remove.
2637
2638 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2639
2640         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2641         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2642
2643         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2644
2645         * elf/dl-sym.c: Include <stdlib.h>.
2646
2647         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2648         constants, which avoids warnings in 32-bit builds.
2649
2650         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2651         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2652
2653         * misc/lseek.c: File moved to ...
2654         * io/lseek.c: ... here.
2655
2656         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2657
2658         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2659         shifting LEN more than 31 bits at once.
2660
2661 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2662
2663         [BZ #14195]
2664         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2665         segmentation fault for a case of two empty input strings.
2666         * string/test-strncasecmp.c (check1): Renamed to...
2667         (bz12205): ...this.
2668         (bz14195): Add new testcase for two empty input strings and N > 0.
2669         (test_main): Call new testcase, adapt for renamed function.
2670
2671 2012-08-15  Andreas Jaeger  <aj@suse.de>
2672
2673         [BZ #14090]
2674         * crypt/md5test2.c: New test, based on test supplied by Serge
2675         Belyshev <belyshev@depni.sinp.msu.ru>.
2676         * crypt/Makefile (xtests): Add md5test-giant..
2677         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2678
2679 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2680
2681         [BZ #14090]
2682         * crypt/md5.c (md5_process_block): Don't assume the buffer
2683         length is less than 2**32.
2684         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2685         length is less than 2**64.
2686
2687 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2688
2689         * string/str-two-way.h: Include <sys/param.h>.
2690         (MAX): Macro removed.
2691
2692         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2693         Move #define and #undef of memmove to just before and after
2694         including <string.h>.
2695
2696         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2697         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2698         and after including <string.h>.  Move declarations of
2699         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2700         to before #include "string/memmove.c".
2701
2702         * include/dirent.h: Declare __getdirentries.
2703
2704         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2705         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2706
2707 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2708
2709         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2710         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2711         * sysdeps/i386/configure: Regenerated.
2712         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2713         STABS_CURRENT_FILE, and STABS_FUN.
2714         (END): Remove call to STABS_FUN_END.
2715         (STABS_CURRENT_FILE1): Delete.
2716         (STABS_CURRENT_FILE): Likewise.
2717         (STABS_FUN): Likewise.
2718         (STABS_FUN_END): Likewise.
2719         (STABS_FUN2): Likewise.
2720         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2721         * sysdeps/x86_64/configure: Regenerated.
2722
2723 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2724
2725         * elf/dl-open.c: Include <atomic.h>.
2726         * elf/dl-lookup.c: Likewise.
2727
2728 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2729
2730         * sysdeps/unix/sysv/linux/kernel-features.h
2731         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2732         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2733         unconditionally.
2734         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2735         unconditionally.
2736         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2737         condition on __ASSUME_CLONE_THREAD_FLAGS.
2738
2739 2012-08-14  Andreas Jaeger  <aj@suse.de>
2740
2741         * sysdeps/i386/fpu/libm-test-ulps: Update.
2742
2743 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2744
2745         * include/atomic.h (atomic_exchange_and_add): Split into ...
2746         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2747         New atomic macros.
2748
2749 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2750
2751         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2752
2753 2012-08-13  Jeff Law <law@redhat.com>
2754
2755         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2756         null byte in the output string.
2757
2758 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2759
2760         * sysdeps/unix/sysv/linux/kernel-features.h
2761         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2762         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2763         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2764         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2765         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2766         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2767         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2768
2769 2012-08-09  Jeff Law <law@redhat.com>
2770
2771         [BZ #13939]
2772         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2773         When avoid_arena is set, don't retry in the that arena.  Pick the
2774         next one, whatever it might be.
2775         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2776         (arena_lock): Pass in new parameter to arena_get2.
2777         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2778         arena_get2.
2779         (__libc_malloc): Unify retrying after main arena failure with
2780         __libc_memalign version.
2781         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2782
2783 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2784
2785         [BZ #14166]
2786         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2787         to __redirect_strstr.
2788         (__strstr_sse42): Use typeof __redirect_strstr.
2789         (__strstr_ia32): Likewise.
2790         (__libc_strstr): New prototype.
2791         (strstr): Renamed to ...
2792         (__libc_strstr): This.
2793         (strstr): New strong alias of __libc_strstr.
2794         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2795         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2796         __redirect_time.
2797         Include <time.h>.
2798         (__libc_time): New prototype.
2799         (time_ifunc): Replace time with __libc_time.
2800         (time): New strong alias and hidden definition of __libc_time.
2801         (__GI_time): Remove strong alias.
2802         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2803         Include <stddef.h>.
2804         (memmove): Redefined to __redirect_memmove.
2805         (__memmove_sse2): Use typeof __redirect_memmove.
2806         (__memmove_ssse3): Likewise.
2807         (__memmove_ssse3_back): Likewise.
2808         (__libc_memmove): New prototype.
2809         (memmove): Renamed to ...
2810         (__libc_memmove): This.
2811         (memmove): New strong alias of __libc_memmove.
2812
2813 2012-08-08  Mark Salter  <msalter@redhat.com>
2814
2815         * elf/elf.h
2816         (R_MN10300_TLS_GD): Define.
2817         (R_MN10300_TLS_LD): Likewise.
2818         (R_MN10300_TLS_LDO): Likewise.
2819         (R_MN10300_TLS_GOTIE): Likewise.
2820         (R_MN10300_TLS_IE): Likewise.
2821         (R_MN10300_TLS_LE): Likewise.
2822         (R_MN10300_TLS_DTPMOD): Likewise.
2823         (R_MN10300_TLS_DTPOFF): Likewise.
2824         (R_MN10300_TLS_TPOFF): Likewise.
2825         (R_MN10300_SYM_DIFF): Likewise.
2826         (R_MN10300_ALIGN): Likewise.
2827         (R_MN10300_NUM): Update.
2828
2829 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2830
2831         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2832         Remove.
2833
2834 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2835
2836         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2837
2838         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2839         sysdeps/unix -> sysdeps/posix move.
2840         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2841
2842 2012-08-07      Allan McRae     <allan@archlinux.org>
2843
2844         [BZ #14303]
2845         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2846         (SUNOS_CPP): Likewise.
2847         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2848         not found.
2849         (open_input): Call CPP using execvp.
2850
2851 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2852
2853         * sysdeps/unix/sysv/linux/kernel-features.h
2854         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2855         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2856         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2857         (__ASSUME_WAITID_SYSCALL): Likewise.
2858         * sysdeps/unix/sysv/linux/dl-execstack.c
2859         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2860         code unconditional.
2861         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2862         conditional code.
2863         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2864         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2865         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2866         code.
2867         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2868         unconditional.
2869         [__ASSUME_WAITID_SYSCALL]: Likewise.
2870         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2871
2872 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2873
2874         * sysdeps/unix/closedir.c: Renamed to ...
2875         * sysdeps/posix/closedir.c: ... here.
2876         * sysdeps/unix/dirfd.c: Renamed to ...
2877         * sysdeps/posix/dirfd.c: ... here.
2878         * sysdeps/unix/dirstream.h: Renamed to ...
2879         * sysdeps/posix/dirstream.h: ... here.
2880         * sysdeps/unix/fdopendir.c: Renamed to ...
2881         * sysdeps/posix/fdopendir.c: ... here.
2882         * sysdeps/unix/opendir.c: Renamed to ...
2883         * sysdeps/posix/opendir.c: ... here.
2884         * sysdeps/unix/readdir.c: Renamed to ...
2885         * sysdeps/posix/readdir.c: ... here.
2886         * sysdeps/unix/readdir_r.c: Renamed to ...
2887         * sysdeps/posix/readdir_r.c: ... here.
2888         * sysdeps/unix/rewinddir.c: Renamed to ...
2889         * sysdeps/posix/rewinddir.c: ... here.
2890         * sysdeps/unix/seekdir.c: Renamed to ...
2891         * sysdeps/posix/seekdir.c: ... here.
2892         * sysdeps/unix/telldir.c: Renamed to ...
2893         * sysdeps/posix/telldir.c: ... here.
2894         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2895         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2896         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2897         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2898
2899         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2900         * bits/fcntl.h: ... here.
2901
2902         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2903         not 0.
2904         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2905         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2906         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2907         (struct flock): Move l_start, l_len to the beginning.
2908         Use __pid_t for l_pid.
2909         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2910         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2911         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2912         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2913         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2914         [__USE_LARGEFILE64] (struct flock64): New type.
2915         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2916
2917         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2918         * bits/dirent.h: ... here.
2919
2920         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2921         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2922
2923 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2924
2925         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2926         Change from 2.6.0 to 2.6.16.
2927         * sysdeps/unix/sysv/linux/configure: Regenerated.
2928         * sysdeps/unix/sysv/linux/kernel-features.h
2929         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2930         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2931         version.
2932         (__ASSUME_UTIMES): Likewise.
2933         (__ASSUME_CLONE_STOPPED): Remove.
2934         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2935         architectures, not kernel version.
2936         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2937         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2938         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2939         (__ASSUME_WAITID_SYSCALL): Likewise.
2940         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2941         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2942         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2943         refer to older versions.
2944
2945 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2946
2947         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2948         Define alphasort64 as an alias.
2949         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2950         Define versionsort64 as an alias.
2951         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2952         Define scandir64 as an alias.
2953         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2954         Define scandirat64 as an alias.
2955         * dirent/alphasort64.c (alphasort64):
2956         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2957         * dirent/versionsort64.c: Likewise.
2958         * dirent/scandir64.c: Likewise.
2959         * dirent/scandirat64.c: Likewise.
2960         * sysdeps/wordsize-64/alphasort.c: File removed.
2961         * sysdeps/wordsize-64/alphasort64.c: File removed.
2962         * sysdeps/wordsize-64/scandir.c: File removed.
2963         * sysdeps/wordsize-64/scandir64.c: File removed.
2964         * sysdeps/wordsize-64/scandirat.c: File removed.
2965         * sysdeps/wordsize-64/scandirat64.c: File removed.
2966         * sysdeps/wordsize-64/versionsort.c: File removed.
2967         * sysdeps/wordsize-64/versionsort64.c: File removed.
2968         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2969         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2970         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2971         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2972         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2973         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2974         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2975         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2976
2977         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2978         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2979         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2980         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2981         [defined __arch64__ || defined __sparcv9]
2982         (__INO_T_MATCHES_INO64_T): New macro.
2983         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2984         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2985         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2986         * sysdeps/unix/sysv/linux/bits/dirent.h
2987         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2988         (_DIRENT_MATCHES_DIRENT64): New macro.
2989
2990         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2991         Define lockf64 as an alias.
2992         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2993         Define fseeko64 as an alias.
2994         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2995         Define ftello64 as an alias.
2996         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2997         Define _IO_fgetpos64 and fgetpos64 as aliases.
2998         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2999         Define _IO_fsetpos64 and fsetpos64 as aliases.
3000         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3001         Conditionalize body on this.
3002         * libio/fseeko64.c: Likewise.
3003         * libio/ftello64.c: Likewise.
3004         * libio/iofgetpos64.c: Likewise.
3005         * libio/iofsetpos64.c: Likewise.
3006         * sysdeps/wordsize-64/lockf.c: File removed.
3007         * sysdeps/wordsize-64/lockf64.c: File removed.
3008         * sysdeps/wordsize-64/fseeko.c: File removed.
3009         * sysdeps/wordsize-64/fseeko64.c: File removed.
3010         * sysdeps/wordsize-64/ftello.c: File removed.
3011         * sysdeps/wordsize-64/ftello64.c: File removed.
3012         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3013         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3014         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3015         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3016         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3017         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3018         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3019         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3020         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3021         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3022         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3023         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3024         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3025         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3026
3027         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3028         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3029         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3030         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3031         [defined __arch64__ || defined __sparcv9]
3032         (__OFF_T_MATCHES_OFF64_T): New macro.
3033         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3034         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3035         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3036         (__OFF_T_MATCHES_OFF64_T): New macro.
3037
3038 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3039
3040         * stdlib/secure-getenv.c (__secure_getenv): Replace
3041         GLIBC_2_16 with GLIBC_2_17.
3042
3043 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3044
3045         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3046         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3047
3048 2012-08-03  David S. Miller  <davem@davemloft.net>
3049
3050         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3051
3052 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3053
3054         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3055         Remove.
3056         (__ASSUME_CORRECT_SI_PID): Likewise.
3057         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3058         (__ASSUME_TMPFS_NAME): Likewise.
3059         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3060         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3061         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3062         (HAVE_AUX_SECURE): Make definition unconditional.
3063         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3064         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3065
3066 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3067
3068         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3069         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3070         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3071         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3072         __eloop_threshold instead of SYMLOOP_MAX.
3073
3074         * sysdeps/generic/eloop-threshold.h: New file.
3075         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3076         of MAXSYMLINKS.
3077         * elf/chroot_canon.c (chroot_canon): Likewise.
3078
3079 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3080
3081         [BZ #13717]
3082         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3083         Change to 2.6.0 everywhere.
3084         * sysdeps/unix/sysv/linux/configure: Regenerated.
3085         * sysdeps/unix/sysv/linux/kernel-features.h
3086         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3087         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3088         kernel versions.
3089         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3090         (__ASSUME_FUTEX_REQUEUE): Remove.
3091         (__ASSUME_STATFS64): Define unconditionally.
3092         (__ASSUME_AT_SECURE): Likewise.
3093         (__ASSUME_CORRECT_SI_PID): Likewise.
3094         (__ASSUME_TGKILL): Define without depending on kernel version for
3095         i386.
3096         (__ASSUME_UTIMES): Likewise.
3097         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3098         kernel version.
3099         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3100         (__ASSUME_TMPFS_NAME): Likewise.
3101         * README: Update reference to Linux kernel versions.
3102
3103 2012-08-02  Marek Polacek  <polacek@redhat.com>
3104
3105         [BZ# 14150]
3106         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3107         libc_cv_asm_type_prefix with %.
3108         * configure: Regenerated.
3109         * include/libc-symbols.h: Remove comment about
3110         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3111         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3112         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3113         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3114         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3115         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3116         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3117         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3118         * elf/tst-unique2mod1.c: Likewise.
3119         * elf/tst-unique1mod2.c: Likewise.
3120         * elf/tst-unique1mod1.c: Likewise.
3121         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3122         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3123         Replace ASM_TYPE_DIRECTIVE with .type.
3124         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3125         * sysdeps/i386/sysdep.h: Likewise.
3126         * sysdeps/x86_64/sysdep.h: Likewise.
3127         * sysdeps/sh/sysdep.h: Likewise.
3128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3129         Do not define ASM_TYPE_DIRECTIVE.
3130         * sysdeps/powerpc/sysdep.h: Likewise.
3131         * sysdeps/powerpc/powerpc32/sysdep.h:
3132         Replace ASM_TYPE_DIRECTIVE with .type.
3133         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3134         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3135         * sysdeps/i386/fpu/e_powf.S: Likewise.
3136         * sysdeps/i386/fpu/e_expl.S: Likewise.
3137         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3138         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3139         * sysdeps/i386/fpu/e_pow.S: Likewise.
3140         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3141         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3142         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3143         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3144         * sysdeps/i386/fpu/e_log2.S: Likewise.
3145         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3146         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3147         * sysdeps/i386/fpu/e_powl.S: Likewise.
3148         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3149         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3150         * sysdeps/i386/fpu/e_logl.S: Likewise.
3151         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3152         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3153         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3154         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3155         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3156         * sysdeps/i386/fpu/e_log.S: Likewise.
3157         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3158         * sysdeps/i386/fpu/e_logf.S: Likewise.
3159         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3160         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3161         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3162         * sysdeps/i386/fpu/e_log10.S: Likewise.
3163         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3164         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3165         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3166         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3167         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3168         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3169         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3170         * sysdeps/i386/i686/strtok.S: Likewise.
3171         * sysdeps/i386/i386-mcount.S: Likewise.
3172         * sysdeps/i386/strtok.S: Likewise.
3173         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3174         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3175         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3176         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3177         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3178         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3179         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3180         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3181         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3182         * sysdeps/x86_64/_mcount.S: Likewise.
3183         * sysdeps/x86_64/strtok.S: Likewise.
3184         * sysdeps/sh/_mcount.S: Likewise.
3185
3186 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3187
3188         * libio/iofopen.c: Include <fcntl.h>.
3189         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3190         (_IO_fopen64, fopen64): Define as aliases.
3191         * libio/iofopen64.c: Include <fcntl.h>.
3192         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3193         Conditionalize body on this.
3194         * sysdeps/wordsize-64/iofopen.c: File removed.
3195         * sysdeps/wordsize-64/iofopen64.c: File removed.
3196
3197 2012-08-01  Marek Polacek  <polacek@redhat.com>
3198
3199         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3200         Use dlfcn directly instead of a variable.
3201         (binfmt-subdir): Do not define.
3202         (dlfcn): Likewise.
3203
3204 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3205
3206         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3207         Remove all definitions.
3208         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3209         <kernel-features.h>.
3210         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3211         (miss_F_GETOWN_EX): Remove all definitions.
3212         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3213         macro definition.
3214         [!__ASSUME_FCNTL64]: Remove conditional code.
3215         [__ASSUME_FCNTL64]: Make code unconditional.
3216         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3217         <kernel-features.h>.
3218         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3219         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3220         (lockf64) [__NR_fcntl64]: Make code unconditional.
3221         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3222
3223         * sysdeps/unix/sysv/linux/kernel-features.h
3224         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3225         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3226         Make code unconditional.
3227         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3228         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3230         [__NR_vfork]: Make code unconditional.
3231         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3232         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3234         [__NR_vfork]: Make code unconditional.
3235         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3236         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3237
3238 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3239
3240         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3241         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3242
3243         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3244         Define mkstemp64 as an alias.
3245         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3246         Define mkstemps64 as an alias.
3247         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3248         Define mkostemp64 as an alias.
3249         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3250         Define mkostemps64 as an alias.
3251         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3252         Conditionalize body on this.
3253         * misc/mkostemp64.c: Likewise.
3254         * misc/mkostemps64.c: Likewise.
3255         * misc/mkstemps64.c: Likewise.
3256         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3257         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3258         * sysdeps/wordsize-64/mkostemp.c: File removed.
3259         * sysdeps/wordsize-64/mkstemp.c: File removed.
3260         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3261         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3262         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3263         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3264
3265         [BZ #14138]
3266         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3267         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3268         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3269         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3270
3271         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3272         compat_symbol macros from <shlib-compat.h> rather than the underlying
3273         default_symbol_version and symbol_version macros, so that DEFAULT
3274         lines in shlib-versions are respected.
3275         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3276
3277 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3278
3279         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3280         Declare with warn_unused_result.
3281         (setgid, setregid, setegid, setresgid): Likewise.
3282         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3283         Likewise.
3284         * WUR-REPORT: Remove set*id functions.
3285
3286 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3287
3288         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3289
3290 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3291
3292         * include/sys/socket.h (__libc_accept, __libc_accept4):
3293         Add attribute_hidden.
3294         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3295
3296         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3297         use of PTR_MANGLE.
3298         * inet/getnetgrent_r.c (setup): Likewise.
3299
3300         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3301
3302 2012-07-31  David S. Miller  <davem@davemloft.net>
3303
3304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3305
3306 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3307
3308         [BZ #13629]
3309         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3310         value between 1.0 and 2.0 and smaller part has absolute value less
3311         than 1.0.
3312         * math/s_clog10.c (__clog10): Likewise.
3313         * math/s_clog10f.c (__clog10f): Likewise.
3314         * math/s_clog10l.c (__clog10l): Likewise.
3315         * math/s_clogf.c (__clogf): Likewise.
3316         * math/s_clogl.c (__clogl): Likewise.
3317         * math/libm-test.inc (clog_test): Add more tests.
3318         (clog10_test): Likewise.
3319         * sysdeps/i386/fpu/libm-test-ulps: Update.
3320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3321
3322 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3323
3324         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3325         Exit with zero in case no suitable GID is found, and write a
3326         message to standard error.
3327
3328 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3329
3330         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3331         rather than to 1.
3332         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3333         (MAXPATHLEN): Removed.
3334         (NOGROUP, NODEV): New macros.
3335         (setbit, clrbit, isset, isclr): New macros.
3336         (howmany, roundup, powerof2): New macros.
3337         (DEV_BSIZE): New macro.
3338
3339         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3340         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3341
3342         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3343         definition on [!__NO_LONG_DOUBLE_MATH].
3344
3345         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3346         PTR_MANGLE and PTR_DEMANGLE.
3347
3348         * socket/accept4.c (accept4): Rename to __libc_accept4.
3349         Define accept4 as a weak alias.
3350
3351         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3352         on [_DIRENT_HAVE_D_TYPE].
3353         * io/ftw.c (ftw_dir): Likewise.
3354
3355         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3356
3357         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3358
3359         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3360         Use the BSD numbers rather than the arbitrary ones we had.
3361         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3362         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3363         (SIGXCPU, SIGXFSZ): New macros.
3364         (_NSIG): Now 32.
3365
3366         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3367         initializer on [_LIBC_REENTRANT].
3368
3369         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3370         definitions inside [_POSIX_MAPPED_FILES].
3371
3372         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3373
3374         * dirent/opendir.c: Include <fcntl.h>.
3375
3376         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3377         (__libc_getspecific): Likewise.
3378         (__libc_key_create): Likewise.
3379
3380         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3381         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3382         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3383         (tmpfile64): Define as alias.
3384         * sysdeps/wordsize-64/tmpfile.c: File removed.
3385         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3386         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3387         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3388
3389         * stdio-common/vfscanf.c: Include <stdbool.h>.
3390         * nss/makedb.c: Likewise.
3391         * stdio-common/_i18n_number.h: Likewise.
3392         * argp/argp-help.c: Likewise.
3393         * posix/wordexp.c: Likewise.
3394         * sysdeps/posix/spawni.c: Likewise.
3395         * nss/nss_files/files-initgroups.c: Likewise.
3396         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3397         * nss/nss_files/files-initgroups.c: Likewise.
3398         * nss/nss_db/db-netgrp.c: Likewise.
3399         * nss/nss_db/db-initgroups.c: Likewise.
3400         * io/fchmodat.c: Include <sys/stat.h>.
3401
3402         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3403         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3404
3405         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3406         [HAVE_MMAP].
3407
3408         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3409         Add multiple inclusion protection.
3410
3411 2012-07-27  David S. Miller  <davem@davemloft.net>
3412
3413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3414
3415 2012-07-27  Gary Benson  <gbenson@redhat.com>
3416
3417         [BZ #14298]
3418         * elf/rtld.c: Include <stap-probe.h>.
3419         (dl_main): Added static probes "init_start" and "init_complete".
3420         * elf/dl-load.c: Include <stap-probe.h>.
3421         (lose): Take new parameter "nsid".
3422         Added static probe "map_failed".
3423         (_dl_map_object_from_fd): Pass namespace id to lose.
3424         Added static probe "map_start".
3425         (open_verify): Pass namespace id to lose.
3426         * elf/dl-open.c: Include <stap-probe.h>.
3427         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3428         and "reloc_complete".
3429         * elf/dl-close.c: Include <stap-probe.h>.
3430         (_dl_close_worker): Added static probes "unmap_start" and
3431         "unmap_complete".
3432         * elf/rtld-debugger-interface.txt: New file documenting the above.
3433
3434 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3435
3436         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3437         rather than a string variable.
3438         * sunrpc/rpc_main.c (h_output): Likewise.
3439         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3440
3441 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3442
3443         * inet/check_native.c: New file.
3444
3445 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3446
3447         [BZ #13629]
3448         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3449         if larger part has absolute value 1.0.
3450         * math/s_clog10.c (__clog10): Likewise.
3451         * math/s_clog10f.c (__clog10f): Likewise.
3452         * math/s_clog10l.c (__clog10l): Likewise.
3453         * math/s_clogf.c (__clogf): Likewise.
3454         * math/s_clogl.c (__clogl): Likewise.
3455         * math/libm-test.inc (clog_test): Add more tests.
3456         (clog10_test): Likewise.
3457         * sysdeps/i386/fpu/libm-test-ulps: Update.
3458         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3459
3460         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3461         (pltexit): Likewise.
3462         (La_regs): Likewise.
3463         (La_retval): Likewise.
3464         (int_retval): Likewise.
3465         Update #error for removed macros to refer only to definitions in
3466         tst-audit.h.
3467         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3468         macro.
3469         (pltexit): Likewise.
3470         (La_regs): Likewise.
3471         (La_retval): Likewise.
3472         (int_retval): Likewise.
3473         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3474         macro.
3475         (pltexit): Likewise.
3476         (La_regs): Likewise.
3477         (La_retval): Likewise.
3478         (int_retval): Likewise.
3479         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3480         macro.
3481         (pltexit): Likewise.
3482         (La_regs): Likewise.
3483         (La_retval): Likewise.
3484         (int_retval): Likewise.
3485         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3486         macro.
3487         (pltexit): Likewise.
3488         (La_regs): Likewise.
3489         (La_retval): Likewise.
3490         (int_retval): Likewise.
3491         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3492         macro.
3493         (pltexit): Likewise.
3494         (La_regs): Likewise.
3495         (La_retval): Likewise.
3496         (int_retval): Likewise.
3497         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3498         macro.
3499         (pltexit): Likewise.
3500         (La_regs): Likewise.
3501         (La_retval): Likewise.
3502         (int_retval): Likewise.
3503         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3504         macro definitions in tst-audit.h.
3505         * sysdeps/i386/tst-audit.h: New file.
3506         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3507         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3508         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3509         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3510         * sysdeps/sh/tst-audit.h: Likewise.
3511         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3512         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3513         * sysdeps/x86_64/tst-audit.h: Likewise.
3514
3515 2012-07-26  Andreas Jaeger  <aj@suse.de>
3516
3517         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3518         ptrace.
3519
3520         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3521         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3522         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3523         PTRACE_O_MASK.
3524         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3525         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3526         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3527
3528         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3529         value.
3530
3531         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3532         _sigsys.
3533         (si_call_addr, si_syscall, si_arch): Define new macro.
3534         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3535         _sigsys.
3536         (si_call_addr, si_syscall, si_arch): Define new marcro.
3537         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3538         _sigsys.
3539         (si_call_addr, si_syscall, si_arch): Define new macro.
3540         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3541         _sigsys.
3542         (si_call_addr, si_syscall, si_arch): Define new macro.
3543
3544 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3545
3546         [BZ #13717]
3547         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3548         Change to 2.4.21 where previously 2.4.1.
3549         * sysdeps/unix/sysv/linux/configure: Regenerated.
3550         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3551         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3552         Linux kernel version.
3553         (__ASSUME_STD_AUXV): Remove.
3554         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3555         kernel version.
3556         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3557         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3558         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3559         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3560         (__ASSUME_NETLINK_SUPPORT): Likewise.
3561         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3562         (__no_netlink_support): Remove conditional definition.
3563         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3564         Remove.
3565         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3566         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3567         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3568         (if_nameindex_ioctl): Remove.
3569         (if_nameindex_netlink): Do not handle __no_netlink_support.
3570         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3571         code.
3572         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3573         Remove conditional code.
3574         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3575         code.
3576         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3577         unconditional.
3578         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3579         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3580         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3581         Remove.
3582         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3583         [!__ASSUME_STD_AUXV]: Remove conditional code.
3584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3585         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3586         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3588         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3589         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3590         code.
3591         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3593         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3594         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3595         conditional code.
3596         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3598         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3599         code.
3600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3601         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3602         conditional code.
3603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3604         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3605         code unconditional.
3606         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3607         conditional code.
3608         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3609         unconditional.
3610         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3611         conditional code.
3612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3613         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3614         unconditional.
3615         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3616         conditional code.
3617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3618         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3619         code unconditional.
3620         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3621         conditional code.
3622         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3623         unconditional.
3624         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3625         conditional code.
3626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3627         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3628         code unconditional.
3629         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3630         conditional code.
3631         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3632         unconditional.
3633         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3634         conditional code.
3635
3636 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3637
3638         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3639         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3640         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3641         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3642         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3643         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3644         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3645         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3646         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3647         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3648         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3649         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3650         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3651         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3652         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3653         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3654         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3655         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3656         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3657         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3658         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3659         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3660         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3661
3662 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3663
3664         * Versions.def: Add GLIBC_2.17.
3665         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3666         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3667         Introduce __libc_secure_getenv.
3668         * stdlib/Versions (2.17): Add secure_getenv
3669         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3670         * stdlib/secure-getenv.c: Rename __secure_getenv to
3671         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3672         symbol __secure_getenv for GLIBC_2.0.
3673         * stdlib/tst-secure-getenv.c: New.
3674         * stdlib/Makefile (tests): Add testcase.
3675         * manual/startup.texi (Environment Access): Document
3676         secure_getenv.
3677         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3678         __libc_secure_getenv.
3679         * inet/ruserpass.c (ruserpass): Likewise.
3680         * malloc/mtrace.c (mtrace): Likewise.
3681         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3682         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3683         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3684         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3685         HAVE_SECURE_GETENV.
3686         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3687         __secure_getenv to __libc_secure_getenv.
3688         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3690         Likewise.
3691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3692         Likewise.
3693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3694         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3695         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3696         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3697         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3698         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3700
3701 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3702
3703         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3704         (struct La_i86_retval): Likewise.
3705         (struct La_x86_64_regs): Likewise.
3706         (struct La_x86_64_retval): Likewise.
3707         (struct La_x32_regs): Likewise.
3708         (struct La_x32_retval): Likewise.
3709         (struct La_ppc32_regs): Likewise.
3710         (struct La_ppc32_retval): Likewise.
3711         (struct La_ppc64_regs): Likewise.
3712         (struct La_ppc64_retval): Likewise.
3713         (struct La_sh_regs): Likewise.
3714         (struct La_sh_retval): Likewise.
3715         (struct La_s390_32_regs): Likewise.
3716         (struct La_s390_32_retval): Likewise.
3717         (struct La_s390_64_regs): Likewise.
3718         (struct La_s390_64_retval): Likewise.
3719         (struct La_sparc32_regs): Likewise.
3720         (struct La_sparc32_retval): Likewise.
3721         (struct La_sparc64_regs): Likewise.
3722         (struct La_sparc64_retval): Likewise.
3723         (struct audit_ifaces): Remove architecture-specific pltenter and
3724         pltexit members.
3725         * sysdeps/i386/ldsodefs.h: New file.
3726         * sysdeps/powerpc/ldsodefs.h: Likewise.
3727         * sysdeps/s390/ldsodefs.h: Likewise.
3728         * sysdeps/sh/ldsodefs.h: Likewise.
3729         * sysdeps/sparc/ldsodefs.h: Likewise.
3730         * sysdeps/x86_64/ldsodefs.h: Likewise.
3731
3732 2012-07-25  Marek Polacek  <polacek@redhat.com>
3733
3734         [BZ #6808]
3735         * math/libm-test.inc (yn_test): Add another test.
3736         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3737         to ERANGE when the result is +-Inf.
3738         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3739         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3740         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3741         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3742
3743 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3744
3745         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3746         equal to 0.
3747         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3748         clock_t.
3749         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3750
3751 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3752
3753         * configure.in <sysdeps resolving>: Correct printing
3754         Implies_before.
3755         * configure: Regenerate.
3756
3757 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3758
3759         * math/w_ilogb.c: Include <limits.h>.
3760         * math/w_ilogbl.c: Likewise.
3761
3762 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3763
3764         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3765         va_copy.  Document allowing for unavailable va_copy only as
3766         pre-C99 compatibility.
3767         * manual/string.texi (Copying and Concatenation): Use va_copy
3768         instead of __va_copy in concat example.
3769
3770 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3771
3772         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3773         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3774         it if not null.
3775
3776         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3777         with O_NOLINK passed to __file_name_lookup.
3778
3779         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3780         with O_NOLINK passed to __file_name_lookup.
3781
3782         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3783         negative N or less than NGIDS.
3784
3785         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3786         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3787         enough.  Use memcpy instead of strncpy.
3788
3789 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3790
3791         * elf/Makefile (check-data): Remove.
3792         (localplt.data): New vpath directive.
3793         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3794         instead of $(check-data).
3795         * scripts/data/localplt-generic.data: Move to ...
3796         * sysdeps/generic/localplt.data: ... here.
3797         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3798         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3799         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3801         ... here.
3802         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3804         ... here.
3805         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3806         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3807         ... here.
3808         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3809         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3810         ... here.
3811         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3812         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3813         ... here.
3814         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3815         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3816         ... here.
3817
3818 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3819
3820         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3821         PPC32 and PPC64 files.
3822         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3823         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3824
3825 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3826
3827         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3828         __makecontext_ret to ...
3829         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3830         ... here and call exit if uc_link is NULL.  New file.
3831         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3832         __makecontext_ret.S.
3833         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3834         __makecontext_ret to ...
3835         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3836         ... here and call exit if uc_link is NULL.  New file.
3837         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3838         __makecontext_ret.S.
3839
3840 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3841
3842         * elf/elf.h (R_390_IRELATIVE): New definition.
3843         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3844         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3845         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3846         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3847         (elf_machine_lazy_rel): Likewise.
3848         * sysdeps/s390/dl-irel.h: New file.
3849         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3850         * sysdeps/s390/s390-64/memset.S: New asm code.
3851         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3852         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3853         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3854         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3855         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3856         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3857         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3858         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3859         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3860         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3861         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3862         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3863         * sysdeps/s390/s390-32/memset.S: New asm code.
3864         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3865
3866 2012-07-17  Marek Polacek  <polacek@redhat.com>
3867
3868         [BZ #14349]
3869         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3870         * sysdeps/s390/s390-64/configure.in: Likewise.
3871         * sysdeps/sparc/configure.in: Likewise.
3872         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3873         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3874         * sysdeps/i386/configure.in: Likewise.
3875         * sysdeps/x86_64/configure.in: Likewise.
3876         * sysdeps/sh/configure.in: Likewise.
3877         * sysdeps/s390/s390-32/configure: Regenerated.
3878         * sysdeps/s390/s390-64/configure: Likewise.
3879         * sysdeps/x86_64/configure: Likewise.
3880         * sysdeps/sh/configure: Likewise.
3881         * sysdeps/powerpc/powerpc64/configure: Likewise.
3882         * sysdeps/powerpc/powerpc32/configure: Likewise.
3883         * sysdeps/sparc/configure: Likwise.
3884         * sysdeps/i386/configure: Likewise.
3885
3886         * elf/dl-open.c: Comment fixes.
3887
3888 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3889
3890         * Makefile [CXX] (check-data): Remove.
3891         [CXX] (c++-types.data): New vpath directive.
3892         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3893         vpath.  Do not allow for C++ type data being missing.
3894         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3895         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3896         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3897         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3898         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3899         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3900         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3902         ... here.
3903         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3905         ... here.
3906         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3908         ... here.
3909         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3910         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3911         ... here.
3912         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3913         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3914         ... here.
3915         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3916         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3917         ... here.
3918         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3919         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3920         ... here.
3921         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3922         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3923
3924         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3925         definitions to architecture-specific files.
3926         (TLS_IE): Likewise.
3927         (TLS_LD): Likewise.
3928         (TLS_GD): Likewise.
3929         * sysdeps/i386/tls-macros.h: New file.
3930         * sysdeps/powerpc/tls-macros.h: Likewise.
3931         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3932         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3933         * sysdeps/sh/tls-macros.h: Likewise.
3934         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3935         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3936         * sysdeps/x86_64/tls-macros.h: Likewise.
3937
3938 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3939
3940         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3941         zero value for regular exit case.
3942
3943         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3944         (__start_context): Preserve zero value for regular exit case.
3945
3946 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3947             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3948
3949         * manual/setjmp.texi (setcontext): Clarify normal process
3950         termination when uc_link is the null pointer.
3951         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3952         exit call.
3953
3954 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3955
3956         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3957         preprocessor.  Test for each exception mask separately.
3958
3959 2012-07-16  Andreas Jaeger  <aj@suse.de>
3960
3961         * po/ru.po: Update from translation team.
3962
3963 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3964
3965         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3966         equal to 0.
3967         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3968         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3969         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3970         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3971         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3972
3973 2012-07-13  Andreas Jaeger  <aj@suse.de>
3974
3975         * po/fr.po: Update from translation team.
3976
3977 2012-07-12  Marek Polacek  <polacek@redhat.com>
3978
3979         [BZ #14173]
3980         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3981         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3982         loop condition.
3983
3984 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3985
3986         [BZ #13717]
3987         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3988         Change to 2.4.1 where previously 2.4.0.
3989         * sysdeps/unix/sysv/linux/configure: Regenerated.
3990         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3991         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3992         version.
3993         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3994         (__ASSUME_AT_CLKTCK): Remove.
3995         (__ASSUME_AT_PAGESIZE): Likewise.
3996         (__ASSUME_AT_XID): Likewise.
3997         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3998         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3999         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4000         unconditionally.
4001         (HAVE_AUX_PAGESIZE): Likewise.
4002         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4003         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4004         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4005
4006 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4007
4008         [BZ #14307]
4009         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4010         the temporary buffer used to invoke __gethostbyname2_r,
4011         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4012         host_data / struct gaih_addrtuple.
4013         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4014         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4015         header file nss/nsswitch.h.
4016         * nss/nsswitch.h (global scope): Add definition of implementation
4017         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4018         resolv/nss_dns/dns-host.c).
4019
4020 2012-07-11  Andreas Jaeger  <aj@suse.de>
4021
4022         * po/fr.po: Update from translation team.
4023
4024         * po/sv.po: Update from translation team
4025         * po/fr.po: Another update from translation team.
4026
4027 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4028
4029         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4030         for subnormals or multiply small sinh result by itself.
4031         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4032         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4033
4034 2012-07-11  David S. Miller  <davem@davemloft.net>
4035
4036         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4037
4038 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4039
4040         [BZ #14347]
4041         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4042         (INTERNAL_MARK): Shift it here.
4043
4044 2012-07-10  Marek Polacek  <polacek@redhat.com>
4045
4046         [BZ #14151]
4047         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4048         libc_cv_asm_global_directive with .globl.
4049         * configure: Regenerated.
4050         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4051         with .globl.
4052         * sysdeps/i386/configure: Regenerated.
4053         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4054         with .globl.
4055         * sysdeps/x86_64/configure: Regenerated.
4056         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4057         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4058         * elf/tst-unique2mod2.c: Likewise.
4059         * elf/tst-unique2mod1.c: Likewise.
4060         * elf/tst-unique1mod2.c: Likewise.
4061         * elf/tst-unique1mod1.c: Likewise.
4062         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4063         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4064         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4065         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4066         * sysdeps/mach/sysdep.h: Likewise.
4067         * sysdeps/i386/sysdep.h: Likewise.
4068         * sysdeps/i386/i386-mcount.S: Likewise.
4069         * sysdeps/x86_64/_mcount.S: Likewise.
4070         * sysdeps/x86_64/sysdep.h: Likewise.
4071         * sysdeps/sh/_mcount.S: Likewise.
4072         * sysdeps/sh/sysdep.h: Likewise.
4073         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4074         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4075         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4076         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4077         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4078         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4079         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4080         * locale/localeinfo.h: Likewise.
4081         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4082         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4083
4084 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4085
4086         [BZ #14336]
4087         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4088         system".
4089         * manual/message.texi (The Uniforum approach): Likewise.
4090         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4091         (glibc iconv Implementation): Likewise.
4092
4093 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4094
4095         [BZ #14337]
4096         * math/s_clog.c (__clog): Avoid scaling a value down where that
4097         could result in underflow.
4098         * math/s_clog10.c (__clog10): Likewise.
4099         * math/s_clog10f.c (__clog10f): Likewise.
4100         * math/s_clog10l.c (__clog10l): Likewise.
4101         * math/s_clogf.c (__clogf): Likewise.
4102         * math/s_clogl.c (__clogl): Likewise.
4103         * math/libm-test.inc (clog_test): Add more tests.
4104         (clog10_test): Likewise.
4105         * sysdeps/i386/fpu/libm-test-ulps: Update.
4106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4107
4108 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4109
4110         [BZ #14283]
4111         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4112         by 7 not 8 to examine high bit of fractional part.
4113
4114         [BZ #14042]
4115         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4116         for call to __mcount_internal.
4117         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4118         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4119         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4120
4121 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4122
4123         [BZ #14154]
4124         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4125         approximation for values within 0x1p-13f of an odd multiple of
4126         pi/4.
4127         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4128         exception.  Add more tests.
4129         * sysdeps/i386/fpu/libm-test-ulps: Update.
4130
4131         [BZ #6778]
4132         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4133         inputs and return -1 for them.  Do not check for +Inf in case not
4134         reachable for +Inf.
4135         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4136         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4137         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4138         and return -1 for them.  Do not check for +Inf in case not
4139         reachable for +Inf.
4140         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4141         define.
4142         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4143         and return -1 for them.  Do not check for +Inf in case not
4144         reachable for +Inf.
4145         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4146         spurious underflow.
4147         * sysdeps/i386/fpu/libm-test-ulps: Update.
4148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4149
4150 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4151
4152         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4153
4154 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4155
4156         [BZ #14157]
4157         [BZ #14331]
4158         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4159         could result in spurious underflow.  Scale down values above
4160         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4161         * math/s_csqrtf.c (__csqrtf): Likewise.
4162         * math/s_csqrtl.c (__csqrtl): Likewise.
4163         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4164         spurious underflow.
4165         * sysdeps/i386/fpu/libm-test-ulps: Update.
4166         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4167
4168 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4169
4170         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4171         xopen-msg.sed.
4172         * catgets/xopen-msg.awk: New file.
4173         * catgets/xopen-msg.sed: Removed.
4174
4175         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4176         po2text.sed.
4177         * intl/po2test.awk: New file.
4178         * intl/po2test.sed: Removed.
4179
4180 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4181
4182         [BZ #14328]
4183         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4184         or multiply small sinh result by itself.
4185         * math/s_ctanf.c (__ctanf): Likewise.
4186         * math/s_ctanh.c (__ctanh): Likewise.
4187         * math/s_ctanhf.c (__ctanhf): Likewise.
4188         * math/s_ctanhl.c (__ctanhl): Likewise.
4189         * math/s_ctanl.c (__ctanl): Likewise.
4190         * math/libm-test.inc (ctan_test_tonearest): New function.
4191         (ctan_test_towardzero): Likewise.
4192         (ctan_test_downward): Likewise.
4193         (ctan_test_upward): Likewise.
4194         (ctanh_test_tonearest): Likewise.
4195         (ctanh_test_towardzero): Likewise.
4196         (ctanh_test_downward): Likewise.
4197         (ctanh_test_upward): Likewise.
4198         (main): Call these new functions.
4199         * sysdeps/i386/fpu/libm-test-ulps: Update.
4200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4201
4202 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4203
4204         * .gitignore: Delete /ports entry.
4205
4206 2012-07-03  Andreas Jaeger  <aj@suse.de>
4207
4208         * po/bg.po: Update from translation team.
4209         * po/cs.po: Likewise.
4210         * po/de.po: Likewise.
4211         * po/hr.po: Likewise.
4212         * po/nl.pl: Likewise.
4213         * po/pl.po: Likewise.
4214         * po/vi.po: Likewise.
4215
4216 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4217
4218         * Makeconfig [!+link] (+link-before-libc): New variable.
4219         [!+link] (+link-after-libc): Likewise.
4220         [!+link] (+link-tests): Likewise.
4221         [!+link] (+link): Define in terms of $(+link-before-libc) and
4222         $(+link-after-libc).
4223         [!+link-static] (+link-static-before-libc): New variable.
4224         [!+link-static] (+link-static-after-libc): Likewise.
4225         [!+link-static] (+link-static-tests): Likewise.
4226         [!+link-static] (+link-static): Define in terms of
4227         $(+link-static-before-libc) and $(+link-static-after-libc).
4228         [build-shared] (link-libc-before-gnulib): New variable.
4229         [build-shared] (link-libc-tests): Likewise.
4230         [build-shared] (link-libc): Define in terms of
4231         $(link-libc-before-gnulib).
4232         [!build-shared] (link-libc-tests): New variable.
4233         (link-libc-static-tests): New variable.
4234         [!gnulib] (gnulib-arch): New variable.
4235         [!gnulib] (gnulib-tests): Likewise.
4236         [!gnulib] (static-gnulib-arch): Likewise.
4237         [!gnulib] (static-gnulib-tests): Likewise.
4238         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4239         Define with "=" instead of ":=".
4240         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4241         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4242         * Rules (binaries-all-notests): New variable.
4243         (binaries-all-tests): Likewise.
4244         (binaries-static-notests): Likewise.
4245         (binaries-static-tests): Likewise.
4246         (binaries-all): Define using $(binaries-all-notests) and
4247         $(binaries-all-tests).
4248         (binaries-static): Define using $(binaries-static-notests) and
4249         $(binaries-static-tests).
4250         (binaries-shared-tests): New variable.
4251         (binaries-shared-notests): Likewise.
4252         (binaries-shared): Remove variable.
4253         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4254         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4255         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4256         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4257         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4258         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4259         * elf/Makefile (sln-modules): New variable.
4260         (extra-objs): Add $(sln-modules:=.o).
4261         (ldconfig-modules): Add static-stubs.
4262         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4263         * elf/static-stubs.c: New file.
4264
4265         [BZ #14283]
4266         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4267         by 7 not 8 to examine high bit of fractional part.  Use volatile
4268         variables when splitting into final array of floats if
4269         __FLT_EVAL_METHOD__ != 0.
4270         * math/libm-test.inc (cos_test): Add another test.
4271         (sin_test): Likewise.
4272         * sysdeps/i386/fpu/libm-test-ulps: Update.
4273
4274         [BZ #14273]
4275         * math/libm-test.inc (cosh_test): Add more tests.
4276
4277         * version.h (RELEASE): Set to "development".
4278         (VERSION): Set to "2.16.90".
4279
4280 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4281
4282         * NEWS: Update copyright. Remove last-updated date.
4283         Mention math library bug fixes and timezone data changes.
4284         * README: Mention GNU/Hurd, x32, and HPPA support status.
4285
4286 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4287
4288         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4289
4290 2012-06-27  Andreas Jaeger  <aj@suse.de>
4291
4292         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4293
4294 2012-06-25  Andreas Jaeger  <aj@suse.de>
4295
4296         * sysdeps/s390/fpu/libm-test-ulps: Update.
4297
4298 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4299             Thomas Schwinge  <thomas@codesourcery.com>
4300
4301         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4302         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4303         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4304         fanotify_mark.
4305
4306 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4307
4308         * sysdeps/mach/start.c: Remove file.
4309         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4310         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4311         * sysdeps/sh/init-first.c: Likewise.
4312
4313         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4314         registers for frame unwinding purposes, add CFI directives.
4315         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4316         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4317         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4318         Likewise.
4319
4320         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4321         __fortify_fail returning.
4322         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4323
4324         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4325         sysdeps/sh/____longjmp_chk.S.
4326         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4327         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4328         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4329         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4330
4331         * sysdeps/sh/abort-instr.h: New file.
4332         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4333         process in case exit returns.
4334
4335         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4336         initialize the GOT register before use.
4337
4338         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4339         calculation of ARGC > 4.
4340
4341         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4342         meaningful names to some local labels.
4343
4344 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4345             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4346
4347         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4348         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4349         (__arch_compare_and_exchange_val_16_acq): Likewise.
4350         (__arch_compare_and_exchange_val_32_acq): Likewise.
4351         (atomic_exchange_and_add): Fix gUSA sequence.
4352         (atomic_add): Likewise.
4353         (atomic_add_negative): Likewise.
4354         (atomic_add_zero): Likewise.
4355         (atomic_bit_test_set): Likewise.
4356
4357 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4358
4359         [BZ #13579]
4360         * include/link.h (struct link_map): Add l_free_initfini.
4361         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4362         l_initfini.
4363         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4364         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4365         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4366         set.
4367
4368 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4369
4370         * configure.in: Use AC_LANG_SOURCE.
4371         * configure: Regenerate.
4372
4373 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4374
4375         * configure.in (libc_cv_localstatedir): New substituted variable.
4376         * configure: Regenerated.
4377         * config.make.in (localstatedir): New variable, substituted from
4378         libc_cv_localstatedir.
4379         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4380         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4381         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4382         * sysdeps/gnu/configure: Regenerated.
4383
4384 2012-06-21  Jeff Law  <law@redhat.com>
4385
4386         [BZ #14277]
4387         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4388         free.  Simplify list management for _LIBC case.
4389
4390 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4391
4392         [BZ #14273]
4393         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4394         Clear sign bit of 64-bit integer value before comparing against
4395         overflow value.
4396
4397         * sysdeps/mach/configure: Regenerated.
4398
4399 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4400
4401         [BZ #14278]
4402         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4403
4404 2012-06-21  Jeff Law  <law@redhat.com>
4405
4406         [BZ #13882]
4407         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4408         uint16_t for elements in the "seen" array to avoid char overflows.
4409         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4410         * elf/dl-open.c (dl_open_worker): Likewise.
4411
4412 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4413
4414         * scripts/list-sources.sh: Scan PORTS for translations.
4415         * po/libc.pot: Regenerated.
4416
4417 2012-06-21  Andreas Jaeger  <aj@suse.de>
4418
4419         [BZ #12194]
4420         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4421         warning.
4422         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4423         * bits/byteswap-16.h (__bswap_16): Likewise.
4424         * bits/byteswap.h (__bswap_constant_16): Likewise.
4425
4426 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4427
4428         [BZ #14117]
4429         * sysdeps/i386/fpu_control.h: Removed.
4430         * sysdeps/x86_64/fpu_control.h: Moved to ...
4431         * sysdeps/x86/fpu_control.h: Here.
4432
4433         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4434         (_FPU_SETCW): Likewise.
4435
4436 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4437
4438         [BZ #14117]
4439         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4440         * sysdeps/x86/fpu/bits/mathinline.h: This.
4441         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4442
4443         [BZ #14050]
4444         [BZ #14117]
4445         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4446         functions if __x86_64__ is defined.
4447
4448 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4449
4450         * string/endian.h: Add !__ASSEMBLER__ condition for including
4451         conversion interfaces.
4452
4453 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4454
4455         [BZ #14241]
4456         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4457         of ABS(x) in calculating zero to negative powers other than odd
4458         integers.
4459         * math/libm-test.inc (pow_test): Add more tests.
4460
4461 2012-06-15  Andreas Jaeger  <aj@suse.de>
4462
4463         * manual/contrib.texi (Contributors): Update entry of Liubov
4464         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4465         Machado Filho.
4466
4467 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4468
4469         * string/string.h: Add __wur to GNU version of strerror_r.
4470
4471 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4472
4473         [BZ #14229]
4474         * string/Makefile (tests): Add tst-strtok_r.
4475         * string/tst-strtok_r.c: New file.
4476         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4477         RAX_LP/RDX_LP on SAVE_PTR.
4478
4479 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4480
4481         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4482
4483 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4484
4485         * libm_test.inc (csqrt_test): Allow more spurious underflow
4486         exceptions.
4487         (j0_test): Likewise.
4488         (j1_test): Likewise.
4489         (y0_test): Likewise.
4490         (y1_test): Likewise.
4491
4492 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4493
4494         * po/Makefile (libc.pot): Use UTF-8 charset.
4495
4496 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4497
4498         [BZ #14210]
4499         Suppress sign-conversion warning from FD_SET.
4500         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4501         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4502         not unsigned long int.
4503         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4504
4505 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4506
4507         [BZ #14050]
4508         [BZ #14117]
4509         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4510         __extern_always_inline instead of __extern_inline.
4511         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4512         (__signbit): Likewise.
4513         (__signbitl): Support C++ namespace.
4514         (lrintf): New inline function.
4515         (lrint): Likewise.
4516         (llrintf): Likewise.
4517         (llrint): Likewise.
4518         (fmaxf): Likewise.
4519         (fmax): Likewise.
4520         (fminf): Likewise.
4521         (fmin): Likewise.
4522         (rint): Likewise.
4523         (rintf): Likewise.
4524         (ceil): Likewise.
4525         (ceilf): Likewise.
4526         (floor): Likewise.
4527         (floorf): Likewise.
4528         (nearbyint): Likewise.
4529         (nearbyintf): Likewise.
4530
4531 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4532
4533         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4534         non-default versions.
4535
4536 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4537
4538         [BZ #14218]
4539         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4540
4541 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4542
4543         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4544         (FE_UPWARD, FE_DOWNWARD): Don't define.
4545         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4546         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4547
4548         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4549         reading it.
4550         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4551         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4552
4553 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4554
4555         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4556         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4557         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4558         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4559
4560 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4561
4562         [BZ #14117]
4563         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4564         * sysdeps/i386/fpu/Implies: New file.
4565         * sysdeps/x86_64/fpu/Implies: Likewise.
4566         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4567         * sysdeps/x86/fpu/bits/fenv.h: This.
4568
4569         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4570         __SSE_MATH__.
4571
4572 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4573
4574         [BZ #14134]
4575         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4576         character 0xffff that matches the last element of the
4577         conversion table.
4578
4579 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4580
4581         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4582         fmodl commit.
4583
4584 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4585
4586         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4587         values higher than 25.6283.
4588
4589 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4590
4591         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4592         subnormal exponent extraction and add some __builtin_expect.
4593         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4594         Fix for subnormal mantissa calculation.
4595
4596 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4597
4598         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4599         cpu2 is -1 and errno is not ENOSYS.
4600
4601 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4602
4603         [BZ #14117]
4604         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4605         * sysdeps/x86/bits/string.h: This.
4606         * sysdeps/x86_64/bits/string.h: Removed.
4607
4608         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4609         if not compiling for x86-64, but compiling for >= i486.
4610
4611         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4612         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4613
4614         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4615         New macro from Linux kernel 3.4.0.
4616         (FP_XSTATE_MAGIC2): Likewise.
4617         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4618         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4619         (struct _fpx_sw_bytes): New struct.
4620         (struct _xsave_hdr): Likewise.
4621         (struct _ymmh_state): Likewise.
4622         (struct _xstate): Likewise.
4623
4624         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4625         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4626         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4627         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4628         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4629         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4630
4631         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4632         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4633         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4634         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4635         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4636         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4637
4638 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4639
4640         [BZ #13743]
4641         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4642         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4643         (sysdep_headers): Include sys/platform/ppc.h.
4644         * sysdeps/powerpc/test-gettimebase.c: Test for
4645         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4646         * manual/Makefile (appendices): Include platform.texi.
4647         * manual/contrib.texi (Contributors): Update @node pointers.
4648         * manual/maint.texi (Maintenance): Likewise.
4649         (Platform): New node.
4650         * manual/platform.texi: New file.  Document the new features.
4651
4652 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4653             Jakub Jelinek  <jakub@redhat.com>
4654
4655         [BZ #14188]
4656         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4657         where __builtin_expect is unavailable.
4658
4659 2012-06-03  David S. Miller  <davem@davemloft.net>
4660
4661         * stdlib/longlong.h: Updated from GCC.
4662
4663 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4664
4665         [BZ #14042]
4666         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4667         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4668         __mcount_internal.
4669         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4670         (GLIBC_2.16): Likewise.
4671
4672 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4673
4674         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4675
4676 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4677
4678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4679         (default-abi): New variable.
4680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4681         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4682         variable.
4683         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4684         Likewise.
4685         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4686         Likewise.
4687         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4688         Likewise.
4689
4690         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4691         definition.  Document in comment.
4692
4693 2012-06-01  David S. Miller  <davem@davemloft.net>
4694
4695         * stdlib/longlong.h: Updated from GCC.
4696
4697 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4698
4699         [BZ #14117]
4700         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4701         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4702         sys/debugreg.h sys/io.h here.
4703         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4704         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4705         sys/io.h.
4706         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4707         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4708         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4709         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4710         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4711         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4712
4713         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4714         Define only if __x86_64__ is defined.
4715
4716 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4717
4718         [BZ #14048]
4719         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4720         Use int64_t for variable i.
4721         * math/libm-test.inc (fmod_test): Add more tests.
4722
4723         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4724         z computation is not scheduled after fetestexcept.
4725         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4726         Use math_force_eval instead of asm to ensure calculation scheduled
4727         before exception test.
4728         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4729         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4730
4731 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4732
4733         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4734         computation is not scheduled after fetestexcept.
4735
4736 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4737
4738         [BZ #14117]
4739         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4740         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4741
4742 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4743
4744         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4745         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4746
4747 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4748
4749         [BZ #14117]
4750         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4751         <bits/wordsize.h>.
4752         (__WCHAR_MIN): Support __WORDSIZE == 64.
4753         (__WCHAR_MAX): Likewise.
4754
4755         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4756         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4757
4758         [BZ #14183]
4759         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4760         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4761
4762         [BZ #14117]
4763         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4764         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4765
4766         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4767         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4768
4769         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4770         Defined to 1 if __x86_64__ isn't defined.
4771         (_STAT_VER_LINUX_OLD): New.
4772         (st_atime): Remove duplicate.
4773         (st_mtime): Likewise.
4774         (st_ctime): Likewise.
4775
4776 2012-05-31  David S. Miller  <davem@davemloft.net>
4777
4778         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4779         entries.
4780
4781 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4782
4783         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4784         gen-libm-test.pl.
4785
4786         [BZ #14132]
4787         * elf/dl-reloc.c: Include <_itoa.h>.
4788         (_dl_reloc_bad_type): Remove use of INTUSE.
4789         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4790         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4791         * stdio-common/psiginfo.c (psiginfo): Likewise.
4792         * stdio-common/psignal.c (psignal): Likewise.
4793         * string/strsignal.c (strsignal): Likewise.
4794         * include/signal.h (_sys_siglist): Declare hidden proto.
4795         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4796         INTVARDEF with libc_hidden_data_def.
4797         * stdio-common/itoa-udigits.c: Likewise.
4798         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4799         (_itoa_lower_digits_internal): Remove declaration.
4800         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4801         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4802         (_sys_sigabbrev_internal): Remove aliases.
4803         (_sys_siglist): Define hidden alias.
4804
4805 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4806
4807         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4808         bits/sysctl.h.
4809
4810 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4811
4812         [BZ #14117]
4813         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4814         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4815
4816         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4817         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4818         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4819         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4820         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4821         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4822
4823         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4824         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4825         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4826
4827         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4828         with __addr.
4829         (insw): Likewise.
4830         (insl): Likewise.
4831         (outsb): Likewise.
4832         (outsw): Likewise.
4833         (outsl): Likewise.
4834
4835         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4836         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4837         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4838
4839         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4840         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4841         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4842         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4843         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4844         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4845
4846         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4847         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4848
4849         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4850         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4851
4852         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4853         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4854         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4855
4856         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4857         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4858         to ...
4859         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4860
4861         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4862         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4863         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4864
4865         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4866         for x86-64.
4867         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4868
4869 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4870
4871         * math/math.h (M_El): Use two more decimal places.
4872         (M_LOG2El): Likewise.
4873         (M_LOG10El): Likewise.
4874         (M_LN2l): Likewise.
4875         (M_LN10l): Likewise.
4876         (M_PIl): Likewise.
4877         (M_PI_2l): Likewise.
4878         (M_PI_4l): Likewise.
4879         (M_1_PIl): Likewise.
4880         (M_2_PIl): Likewise.
4881         (M_2_SQRTPIl): Likewise.
4882         (M_SQRT2l): Likewise.
4883         (M_SQRT1_2l): Likewise.
4884
4885 2012-05-31  David S. Miller  <davem@davemloft.net>
4886
4887         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4888         values between float registers.
4889         * sysdeps/sparc/sparc64/memset.S: Likewise.
4890         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4891
4892 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4893
4894         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4895         -D_FORTIFY_SOURCE=1.
4896         (CPPFLAGS-tst-longjmp_chk.c): Define.
4897         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4898         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4899         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4900         CFLAGS-tst-wchar-h.c.
4901
4902 2012-05-31  Marek Polacek  <polacek@redhat.com>
4903
4904         [BZ #14132]
4905         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4906         __endmntent_internal): Remove declaration.
4907         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4908         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4909         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4910
4911 2012-05-30  David S. Miller  <davem@davemloft.net>
4912
4913         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4914         (___Q_simulate_exceptions): Use real FP ops rather than writing
4915         into the %fsr.
4916         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4917         Likewise.
4918
4919 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4920
4921         [BZ #14117]
4922         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4923         * sysdeps/x86/bits/xtitypes.h: This.
4924
4925         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4926         * sysdeps/x86/bits/wordsize.h: This.
4927
4928         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4929         * sysdeps/x86/bits/huge_vall.h: This.
4930
4931         * sysdeps/i386/bits/select.h: Removed.
4932         * sysdeps/x86_64/bits/select.h: Renamed to ...
4933         * sysdeps/x86/bits/select.h: This.
4934
4935         * sysdeps/i386/bits/setjmp.h: Removed.
4936         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4937         * sysdeps/x86/bits/setjmp.h: This.
4938
4939         * sysdeps/i386/bits/mathdef.h: Removed.
4940         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4941         * sysdeps/x86/bits/mathdef.h: This.
4942
4943 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4944
4945         [BZ #14132]
4946         * include/sys/socket.h (__connect_internal)
4947         (__libc_sa_len_internal): Remove declaration.
4948         (__connect, __libc_sa_len): Declare hidden_proto.
4949         (SA_LEN): Remove use of INTUSE.
4950         * socket/connect.c: Add libc_hidden_def.
4951         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4952         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4953         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4954         alias.
4955         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4956         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4957         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4958         of adding _internal alias.
4959
4960 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4961
4962         [BZ #14117]
4963         * sysdeps/i386/bits/link.h: Removed.
4964         * sysdeps/i386/bits/linkmap.h: Likewise.
4965         * sysdeps/x86_64/bits/link.h: Renamed to ...
4966         * sysdeps/x86/bits/link.h: This.
4967         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4968         * sysdeps/x86/bits/linkmap.h: This.
4969
4970         * sysdeps/i386/bits/endian.h: Removed.
4971         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4972         * sysdeps/x86/bits/endian.h: This.
4973
4974         * sysdeps/i386/bits/byteswap.h: Removed.
4975         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4976         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4977         * sysdeps/x86/bits/byteswap.h: This.
4978         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4979         * sysdeps/x86/bits/byteswap-16.h: This.
4980         * sysdeps/i386/Implies: Add x86.
4981         * sysdeps/x86_64/Implies: Likewise.
4982
4983 2012-05-30  David S. Miller  <davem@davemloft.net>
4984
4985         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4986         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4987         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4988         (FP_TRAPPING_EXCEPTIONS): Define.
4989         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4990         (FP_TRAPPING_EXCEPTIONS): Define.
4991         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4992         subnormals only when inexact has been signalled or underflow
4993         exceptions are enabled.
4994         (_FP_PACK_CANONICAL): Likewise.
4995
4996 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4997
4998         [BZ #14183]
4999         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5000         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5001
5002 2012-05-30  Richard Henderson  <rth@twiddle.net>
5003
5004         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5005         with #ifndef NOT_IN_libc.
5006
5007         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5008         marked to avoid plt entry.
5009
5010 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5011
5012         [BZ #14112]
5013         * Makeconfig (default-abi): New macro.
5014         (abi-includes): Likewise.
5015         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5016         $(abi-$(default-abi)-lib-soname) for soname if defined.
5017         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5018         abi-variants.
5019         * Makefile (installed-stubs): Likewise.
5020         * include/stubs-biarch.h: Removed.
5021         * scripts/lib-names.awk: Only handle one library at a time.
5022         * scripts/soversions.awk: Remove WORDSIZE support.
5023         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5024         entries.
5025         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5026         Removed.
5027         (syscall-list-default-condition): Likewise.
5028         (syscall-list-default-condition): Likewise.
5029         (syscall-list-includes): Likewise.
5030         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5031         syscall-list-* with abi-*.  Handle undefined abi-variants.
5032         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5033         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5034         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5035         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5036         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5037         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5038         Removed.
5039         (syscall-list-32-options): Likewise.
5040         (syscall-list-32-condition): Likewise.
5041         (syscall-list-64-options): Likewise.
5042         (syscall-list-64-condition): Likewise.
5043         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5044         macro.
5045         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5046         Renamed to ...
5047         (abi-*): This.
5048         (abi-64-ld-soname): New macro.
5049         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5050         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5051         Renamed to ...
5052         (abi-*): This.
5053         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5054         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5055
5056 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5057
5058         * sysdeps/unix/sysv/linux/kernel-features.h
5059         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5060         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5061         include <kernel-features.h>.
5062         [!__NR_ftruncate64]: Remove conditional code.
5063         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5064         [__NR_ftruncate64]: Make code unconditional.
5065         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5066         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5067         include <kernel-features.h>.
5068         [!__NR_ftruncate64]: Remove conditional code.
5069         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5070         [__NR_ftruncate64]: Make code unconditional.
5071         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5073         include <kernel-features.h>.
5074         [!__NR_ftruncate64]: Remove conditional code.
5075         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5076         [__NR_ftruncate64]: Make code unconditional.
5077         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5079         include <kernel-features.h>.
5080         [!__NR_ftruncate64]: Remove conditional code.
5081         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5082         [__NR_ftruncate64]: Make code unconditional.
5083         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5084
5085         * configure.in (libc_cv_fpie): Weaken to a compile test using
5086         LIBC_TRY_CC_OPTION.
5087         * configure: Regenerated.
5088
5089 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5090
5091         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5092         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5093         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5094         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5095         Refreshed.
5096         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5097         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5098         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5100         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5102         Refreshed.
5103
5104 2012-05-27  David S. Miller  <davem@davemloft.net>
5105
5106         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5107         (___Q_zero): New.
5108         (__Q_simulate_exceptions): Return void.  Change to simulate
5109         exceptions by writing into the %fsr.
5110         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5111         (__Qp_handle_exceptions): Likewise.
5112         (numbers): Delete.
5113         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5114         __Qp_handle_exceptions.
5115         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5116         __Qp_handle_exceptions.
5117         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5118         as unused and give dummy FP_RND_NEAREST initializer.
5119         (FP_INHIBIT_RESULTS): Define.
5120         (___Q_simulate_exceptions): Update declaration.
5121         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5122         formatting.
5123         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5124         as unused and give dummy FP_RND_NEAREST initializer.
5125         (__Qp_handle_exceptions): Update declaration.
5126         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5127         formatting.
5128
5129 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5130
5131         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5132         the temporary FPU control word.
5133         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5134         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5135         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5136         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5137         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5138         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5139         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5140         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5141         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5142         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5143         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5144
5145 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5146
5147         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5148         fields.
5149
5150 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5151
5152         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5153         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5154         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5155         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5156         Likewise.
5157         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5158         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5159         Likewise.
5160
5161 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5162
5163         * po/h.po: Update from translation team.
5164
5165 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5166
5167         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5168
5169         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5170         handling of denormals.
5171         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5172         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5173         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5174         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5175         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5176         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5177         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5178         Likewise.
5179
5180 2012-05-26  Marek Polacek  <polacek@redhat.com>
5181
5182         [BZ #14152]
5183         * math/libm-test.inc (fma_test): Don't always expect underflow
5184         exception.
5185
5186 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5187
5188         [BZ #12416]
5189         * elf/tst-execstack.c: Include stackinfo.h.
5190         (do_test): Adjust test case to ensure that pthread_getattr_np
5191         behaviour remains the same after marking stack executable.
5192
5193 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5194
5195         * sysdeps/unix/sysv/linux/kernel-features.h
5196         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5197         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5198         kernel-features.h.
5199         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5200         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5201         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5202         kernel-features.h.
5203         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5204         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5205
5206 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5207
5208         * configure.in: Define the default includes to being none.
5209         * configure: Regenerated.
5210
5211 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5212
5213         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5214         * sysdeps/x86_64/setjmp.S: Likewise.
5215         * sysdeps/i386/bsd-setjmp.S: Likewise.
5216         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5217         * sysdeps/i386/setjmp.S: Likewise.
5218         * sysdeps/i386/__longjmp.S: Likewise.
5219         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5220         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5221
5222         * include/stap-probe.h: New file.
5223         * configure.in: Handle --enable-systemtap.
5224         * configure: Regenerated.
5225         * config.h.in (USE_STAP_PROBE): New #undef.
5226         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5227         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5228         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5229
5230 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5231
5232         [BZ #13717]
5233         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5234         to 2.4.0 where earlier.
5235         * sysdeps/unix/sysv/linux/configure: Regenerated.
5236         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5237         <kernel-features.h>.
5238         [__ASSUME_32BITUIDS]: Make code unconditional.
5239         [!__ASSUME_32BITUIDS]: Remove conditional code.
5240         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5241         <kernel-features.h>.
5242         [__ASSUME_32BITUIDS]: Make code unconditional.
5243         [!__ASSUME_32BITUIDS]: Remove conditional code.
5244         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5245         [__ASSUME_32BITUIDS]: Make code unconditional.
5246         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5247         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5248         <kernel-features.h>.
5249         [__ASSUME_32BITUIDS]: Make code unconditional.
5250         [!__ASSUME_32BITUIDS]: Remove conditional code.
5251         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5252         <kernel-features.h>.
5253         [__ASSUME_32BITUIDS]: Make code unconditional.
5254         [!__ASSUME_32BITUIDS]: Remove conditional code.
5255         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5256         <kernel-features.h>.
5257         [__ASSUME_32BITUIDS]: Make code unconditional.
5258         [!__ASSUME_32BITUIDS]: Remove conditional code.
5259         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5260         <kernel-features.h>.
5261         [__ASSUME_32BITUIDS]: Make code unconditional.
5262         [!__ASSUME_32BITUIDS]: Remove conditional code.
5263         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5264         <kernel-features.h>.
5265         [__ASSUME_32BITUIDS]: Make code unconditional.
5266         [!__ASSUME_32BITUIDS]: Remove conditional code.
5267         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5268         <kernel-features.h>.
5269         [__ASSUME_32BITUIDS]: Make code unconditional.
5270         [!__ASSUME_32BITUIDS]: Remove conditional code.
5271         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5272         <kernel-features.h>.
5273         [__ASSUME_32BITUIDS]: Make code unconditional.
5274         [!__ASSUME_32BITUIDS]: Remove conditional code.
5275         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5276         <kernel-features.h>.
5277         [__ASSUME_32BITUIDS]: Make code unconditional.
5278         [!__ASSUME_32BITUIDS]: Remove conditional code.
5279         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5280         <kernel-features.h>.
5281         [__ASSUME_32BITUIDS]: Make code unconditional.
5282         [!__ASSUME_32BITUIDS]: Remove conditional code.
5283         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5284         <kernel-features.h>.
5285         [__ASSUME_32BITUIDS]: Make code unconditional.
5286         [!__ASSUME_32BITUIDS]: Remove conditional code.
5287         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5288         <kernel-features.h>.
5289         [__NR_setresgid] (__setresgid): Do not declare.
5290         [__ASSUME_32BITUIDS]: Make code unconditional.
5291         [!__ASSUME_32BITUIDS]: Remove conditional code.
5292         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5293         <kernel-features.h>.
5294         [__NR_setresuid] (__setresuid): Do not declare.
5295         [__ASSUME_32BITUIDS]: Make code unconditional.
5296         [!__ASSUME_32BITUIDS]: Remove conditional code.
5297         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5298         <kernel-features.h>.
5299         [__ASSUME_32BITUIDS]: Make code unconditional.
5300         [!__ASSUME_32BITUIDS]: Remove conditional code.
5301         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5302         <kernel-features.h>.
5303         [__ASSUME_32BITUIDS]: Make code unconditional.
5304         [!__ASSUME_32BITUIDS]: Remove conditional code.
5305         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5306         <kernel-features.h>.
5307         [__ASSUME_32BITUIDS]: Make code unconditional.
5308         [!__ASSUME_32BITUIDS]: Remove conditional code.
5309         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5310         <kernel-features.h>.
5311         [__ASSUME_32BITUIDS]: Make code unconditional.
5312         [!__ASSUME_32BITUIDS]: Remove conditional code.
5313         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5314         <kernel-features.h>.
5315         [__ASSUME_32BITUIDS]: Make code unconditional.
5316         [!__ASSUME_32BITUIDS]: Remove conditional code.
5317         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5318         <kernel-features.h>.
5319         [__ASSUME_32BITUIDS]: Make code unconditional.
5320         [!__ASSUME_32BITUIDS]: Remove conditional code.
5321         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5322         <kernel-features.h>.
5323         [__ASSUME_32BITUIDS]: Make code unconditional.
5324         [!__ASSUME_32BITUIDS]: Remove conditional code.
5325         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5326         <kernel-features.h>.
5327         [__ASSUME_32BITUIDS]: Make code unconditional.
5328         [!__ASSUME_32BITUIDS]: Remove conditional code.
5329         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5330         <kernel-features.h>.
5331         [__ASSUME_32BITUIDS]: Make code unconditional.
5332         [!__ASSUME_32BITUIDS]: Remove conditional code.
5333         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5334         <kernel-features.h>.
5335         [__ASSUME_32BITUIDS]: Make code unconditional.
5336         [!__ASSUME_32BITUIDS]: Remove conditional code.
5337         * sysdeps/unix/sysv/linux/kernel-features.h
5338         (__ASSUME_SETRESUID_SYSCALL): Remove.
5339         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5340         (__ASSUME_32BITUIDS): Likewise.
5341         (__ASSUME_LDT_WORKS): Likewise.
5342         (__ASSUME_O_DIRECTORY): Likewise.
5343         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5344         architecture but not kernel version.
5345         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5346         (__ASSUME_MMAP2_SYSCALL): Likewise.
5347         (__ASSUME_STAT64_SYSCALL): Likewise.
5348         (__ASSUME_IPC64): Likewise.
5349         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5350         <kernel-features.h>.
5351         [__ASSUME_32BITUIDS]: Make code unconditional.
5352         [!__ASSUME_32BITUIDS]: Remove conditional code.
5353         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5354         <kernel-features.h>.
5355         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5356         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5357         132096]: Remove conditional code.
5358         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5359         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5360         <kernel-features.h>.
5361         [__ASSUME_32BITUIDS]: Make code unconditional.
5362         [!__ASSUME_32BITUIDS]: Remove conditional code.
5363         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5364         <kernel-features.h>.
5365         [__ASSUME_32BITUIDS]: Make code unconditional.
5366         [!__ASSUME_32BITUIDS]: Remove conditional code.
5367         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5368         <kernel-features.h>.
5369         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5370         unconditional.
5371         (__setresgid): Do not declare.
5372         [__ASSUME_32BITUIDS]: Make code unconditional.
5373         [!__ASSUME_32BITUIDS]: Remove conditional code.
5374         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5375         <kernel-features.h>.
5376         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5377         unconditional.
5378         (__setresuid): Do not declare.
5379         [__ASSUME_32BITUIDS]: Make code unconditional.
5380         [!__ASSUME_32BITUIDS]: Remove conditional code.
5381         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5382         <kernel-features.h>.
5383         [__ASSUME_32BITUIDS]: Make code unconditional.
5384         [!__ASSUME_32BITUIDS]: Remove conditional code.
5385         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5386         <kernel-features.h>.
5387         [__ASSUME_32BITUIDS]: Make code unconditional.
5388         [!__ASSUME_32BITUIDS]: Remove conditional code.
5389
5390 2012-05-25  Richard Henderson  <rth@twiddle.net>
5391
5392         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5393         dl_hwcap to ifunc resolver.
5394         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5395         elf_ifunc_invoke.
5396         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5397         dl_hwcap to ifunc resolver.
5398         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5399
5400 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5401
5402         [BZ #14153]
5403         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5404         for |x| <= 2**-26, not 2**-57.
5405         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5406         exception.
5407
5408 2012-05-24  Jeff Law  <law@redhat.com>
5409
5410         * stdio-common/Makefile (tests): Add bug25.
5411         * stdio-common/bug25.c: New test.
5412
5413 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5414
5415         [BZ #13576]
5416         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5417         multiple of MALLOC_ALIGNMENT in size.
5418         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5419
5420 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5421
5422         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5423         Require >= 256.
5424         (FILENAME_MAX): Use macro-int-constant.
5425         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5426         (_IOFBF): Use macro-int-constant.
5427         (_IOLBF): Likewise.
5428         (_IONBF): Likewise.
5429         (SEEK_CUR): Likewise.
5430         (SEEK_END): Likewise.
5431         (SEEK_SET): Likewise.
5432         (TMP_MAX): Likewise.
5433         (EOF): Use macro-int-constant.  Require < 0.
5434         (NULL): Use macro-constant.  Require == 0.
5435         (stdin): Require type to be FILE *.
5436         (stdout): Likewise.
5437         (stderr): Likewise.
5438         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5439         macro-int-constant.
5440         (EXIT_SUCCESS): Likewise.
5441         (NULL): Use macro-constant.  Require == 0.
5442         (RAND_MAX): Use macro-int-constant.
5443         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5444         [C99-based standards] (strtof): Require function.
5445         [C99-based standards] (strtold): Likewise.
5446         [C99-based standards] (strtoll): Likewise.
5447         [C99-based standards] (strtoull): Likewise.
5448         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5449         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5450         [ISO || ISO99 || ISO11] (math.h): Likewise.
5451         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5452         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5453         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5454
5455 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5456
5457         [BZ #14132]
5458         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5459         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5460         * intl/dgettext.c (DCGETTEXT): Likewise.
5461         * intl/gettext.c (DCGETTEXT): Likewise.
5462         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5463         * posix/regex_internal.h (gettext): Likewise.
5464         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5465         Remove declaration.
5466         * include/argz.h (__argz_count_internal)
5467         (__argz_stringify_internal): Remove declaration.
5468         (__argz_count, __argz_stringify): Declare hidden proto.
5469         * intl/dcgettext.c: Remove use of INTDEF.
5470         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5471         * string/argz-stringify.c: Likewise.
5472         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5473         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5474         Declare hidden proto.
5475         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5476         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5477         Declare hidden proto.
5478         * include/stdio.h (__asprintf_internal): Don't declare.
5479         (__asprintf): Don't define as macro.  Declare hidden proto.
5480         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5481         (__fsetlocking): Declare hidden proto.
5482         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5483         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5484         hidden proto.
5485         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5486         (_IO_setlinebuf): Remove use of INTUSE.
5487         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5488         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5489         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5490         Remove declaration.
5491         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5492         (_IO_do_flush): Remove use of INTUSE.
5493         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5494         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5495         (_IO_adjust_column, _IO_least_wmarker)
5496         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5497         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5498         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5499         (_IO_default_doallocate, _IO_wdefault_doallocate)
5500         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5501         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5502         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5503         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5504         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5505         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5506         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5507         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5508         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5509         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5510         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5511         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5512         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5513         proto.
5514         (_IO_flush_all_internal, _IO_adjust_column_internal)
5515         (_IO_default_uflow_internal, _IO_default_finish_internal)
5516         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5517         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5518         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5519         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5520         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5521         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5522         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5523         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5524         (_IO_file_close_internal, _IO_file_close_it_internal)
5525         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5526         (_IO_file_init_internal, _IO_file_attach_internal)
5527         (_IO_file_fopen_internal, _IO_file_read_internal)
5528         (_IO_file_sync_internal, _IO_file_seek_internal)
5529         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5530         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5531         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5532         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5533         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5534         (_IO_list_all_internal, _IO_link_in_internal)
5535         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5536         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5537         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5538         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5539         (_IO_do_write_internal, _IO_padn_internal)
5540         (_IO_getline_info_internal, _IO_getline_internal)
5541         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5542         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5543         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5544         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5545         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5546         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5547         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5548         with libc_hidden_ver, remove use of INTUSE.
5549         * libio/genops.c: Likewise.
5550         * libio/freopen.c: Likewise.
5551         * libio/freopen64.c: Likewise.
5552         * libio/iofclose.c: Likewise.
5553         * libio/iofdopen.c: Likewise.
5554         * libio/iofflush.c: Likewise.
5555         * libio/iofflush_u.c: Likewise.
5556         * libio/iofgets.c: Likewise.
5557         * libio/iofgets_u.c: Likewise.
5558         * libio/iofopen.c: Likewise.
5559         * libio/iofopncook.c: Likewise.
5560         * libio/iofread.c: Likewise.
5561         * libio/iofread_u.c: Likewise.
5562         * libio/ioftell.c: Likewise.
5563         * libio/iofwrite.c: Likewise.
5564         * libio/iogetline.c: Likewise.
5565         * libio/iogets.c: Likewise.
5566         * libio/iogetwline.c: Likewise.
5567         * libio/iopadn.c: Likewise.
5568         * libio/iopopen.c: Likewise.
5569         * libio/ioseekoff.c: Likewise.
5570         * libio/ioseekpos.c: Likewise.
5571         * libio/iosetbuffer.c: Likewise.
5572         * libio/iosetvbuf.c: Likewise.
5573         * libio/ioungetc.c: Likewise.
5574         * libio/ioungetwc.c: Likewise.
5575         * libio/iovdprintf.c: Likewise.
5576         * libio/iovsprintf.c: Likewise.
5577         * libio/iovsscanf.c: Likewise.
5578         * libio/memstream.c: Likewise.
5579         * libio/obprintf.c: Likewise.
5580         * libio/oldfileops.c: Likewise.
5581         * libio/oldiofclose.c: Likewise.
5582         * libio/oldiofdopen.c: Likewise.
5583         * libio/oldiofopen.c: Likewise.
5584         * libio/oldiopopen.c: Likewise.
5585         * libio/oldstdfiles.c: Likewise.
5586         * libio/putc.c: Likewise.
5587         * libio/setbuf.c: Likewise.
5588         * libio/setlinebuf.c: Likewise.
5589         * libio/stdfiles.c: Likewise.
5590         * libio/strops.c: Likewise.
5591         * libio/vasprintf.c: Likewise.
5592         * libio/vscanf.c: Likewise.
5593         * libio/vsnprintf.c: Likewise.
5594         * libio/vswprintf.c: Likewise.
5595         * libio/wfiledoalloc.c: Likewise.
5596         * libio/wfileops.c: Likewise.
5597         * libio/wgenops.c: Likewise.
5598         * libio/wmemstream.c: Likewise.
5599         * libio/wstrops.c: Likewise.
5600         * libio/__fpurge.c: Likewise.
5601         * libio/__fsetlocking.c: Likewise.
5602         * assert/assert.c: Likewise.
5603         * debug/fgets_chk.c: Likewise.
5604         * debug/fgets_u_chk.c: Likewise.
5605         * debug/fread_chk.c: Likewise.
5606         * debug/fread_u_chk.c: Likewise.
5607         * debug/gets_chk.c: Likewise.
5608         * debug/obprintf_chk.c: Likewise.
5609         * debug/vasprintf_chk.c: Likewise.
5610         * debug/vdprintf_chk.c: Likewise.
5611         * debug/vsnprintf_chk.c: Likewise.
5612         * debug/vsprintf_chk.c: Likewise.
5613         * malloc/mtrace.c: Likewise.
5614         * misc/error.c: Likewise.
5615         * misc/syslog.c: Likewise.
5616         * stdio-common/asprintf.c: Likewise.
5617         * stdio-common/fxprintf.c: Likewise.
5618         * stdio-common/getw.c: Likewise.
5619         * stdio-common/isoc99_fscanf.c: Likewise.
5620         * stdio-common/isoc99_scanf.c: Likewise.
5621         * stdio-common/isoc99_vfscanf.c: Likewise.
5622         * stdio-common/isoc99_vscanf.c: Likewise.
5623         * stdio-common/isoc99_vsscanf.c: Likewise.
5624         * stdio-common/printf-prs.c: Likewise.
5625         * stdio-common/printf_fp.c: Likewise.
5626         * stdio-common/printf_fphex.c: Likewise.
5627         * stdio-common/printf_size.c: Likewise.
5628         * stdio-common/putw.c: Likewise.
5629         * stdio-common/scanf.c: Likewise.
5630         * stdio-common/sprintf.c: Likewise.
5631         * stdio-common/tmpfile.c: Likewise.
5632         * stdio-common/vfprintf.c: Likewise.
5633         * stdio-common/vfscanf.c: Likewise.
5634         * stdlib/strfmon_l.c: Likewise.
5635         * sunrpc/openchild.c: Likewise.
5636         * sunrpc/xdr_stdio.c: Likewise.
5637         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5638         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5639
5640 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5641
5642         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5643
5644         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5645         in the third column, to generate for the shared library an IFUNC
5646         that uses _dl_vdso_vsym.
5647         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5648         * Makeconfig (object-suffixes-noshared): New variable.
5649
5650         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5651         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5652         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5653         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5654
5655         [BZ #14132]
5656         * include/sys/time.h (__gettimeofday): Remove macro.
5657         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5658         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5659         Remove INTDEF.
5660         (__gettimeofday): Add libc_hidden_def.
5661         (gettimeofday): Add libc_hidden_weak.
5662         * sysdeps/mach/gettimeofday.c: Likewise.
5663         * sysdeps/posix/gettimeofday.c: Likewise.
5664         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5665         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5666         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5667         (__gettimeofday_internal): Remove strong_alias.
5668         (__gettimeofday): Add libc_hidden_def.
5669         (gettimeofday): Add libc_hidden_weak.
5670         * sysdeps/unix/syscalls.list (gettimeofday):
5671         Remove __gettimeofday_internal alias.
5672
5673 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5674             H.J. Lu  <hongjiu.lu@intel.com>
5675
5676         [BZ #12495]
5677         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5678         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5679         (largebin_index_32_big): New.
5680         (largebin_index): Use it for 16-byte alignment.
5681         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5682         correction with front_misalign.
5683
5684 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5685
5686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5687         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5688         Likewise.
5689         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5690         Likewise.
5691         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5692         Likewise.
5693         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5694         Likewise.
5695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5696         Likewise.
5697         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5698         Likewise.
5699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5700         Likewise.
5701         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5702         Likewise.
5703         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5704         Likewise.
5705         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5706         Likewise.
5707         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5708         Likewise.
5709         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5710         Likewise.
5711
5712         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5713         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5714
5715 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5716
5717         [BZ #10846]
5718         [BZ #14036]
5719         * math/libm-test.inc (exp_test): Add test from bug 14036.
5720         (pow_test): Add test from bug 10846.
5721
5722         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5723         and other flags.
5724         (special_function): Do not include flags in test name.
5725         (parse_args): Likewise.
5726         * sysdeps/i386/fpu/libm-test-ulps: Update.
5727         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5728         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5729         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5731
5732         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5733         exceptions.
5734         * math/libm-test.inc ("Philosophy"): Update comment about
5735         exception testing.
5736         (UNDERFLOW_EXCEPTION): New macro.
5737         (UNDERFLOW_EXCEPTION_OK): Likewise.
5738         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5739         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5740         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5741         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5742         (INVALID_EXCEPTION_OK): Update value.
5743         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5744         (OVERFLOW_EXCEPTION_OK): Likewise.
5745         (IGNORE_ZERO_INF_SIGN): Likewise.
5746         (test_exceptions): Handle underflow exceptions.
5747         (acos_test): Update for underflow exception expectations.
5748         (cexp_test): Likewise.
5749         (clog_test): Likewise.
5750         (clog10_test): Likewise.
5751         (csqrt_test): Likewise.
5752         (ctan_test): Likewise.
5753         (ctanh_test): Likewise.
5754         (exp_test): Likewise.
5755         (exp10_test): Likewise.
5756         (exp2_test): Likewise.
5757         (expm1_test): Likewise.
5758         (fma_test): Likewise.
5759         (j0_test): Likewise.
5760         (jn_test): Likewise.
5761         (nexttoward_test): Likewise.
5762         (pow_test): Likewise.
5763         (scalbn_test): Likewise.
5764         (scalbln_test): Likewise.
5765         (tan_test): Likewise.
5766         (y1_test): Likewise.
5767         * sysdeps/i386/fpu/libm-test-ulps: Update.
5768         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5769
5770 2012-05-23  David S. Miller  <davem@davemloft.net>
5771
5772         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5773         (__libc_sigaction): Remove unused local variables.
5774
5775 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5776
5777         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5778
5779 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5780
5781         mktime: avoid signed integer overflow
5782         * time/mktime.c (__mktime_internal): Do not mishandle the case
5783         where diff == INT_MIN.
5784
5785         mktime: simplify computation of average
5786         * time/mktime.c (ranged_convert): Use new time_t_avg function
5787         instead of rolling our own (probably-slower) code.
5788
5789         mktime: do not assume signed right shift propagates sign bit
5790         * time/mktime.c (isdst_differ): New static function.
5791         (__mktime_internal): No need to normalize tm_isdst now.
5792         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5793         tm_isdst values.
5794
5795         mktime: merge another wrapv change from gnulib
5796         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5797         from some compilers.
5798
5799         mktime: remove incorrect attempt at unusual arithmetics
5800         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5801         The code didn't really work on such machines anyway.
5802         (TYPE_MINIMUM): Assume two's complement.
5803         (twos_complement_arithmetic): Verify that long_int and time_t
5804         are two's complement (or unsigned, in the latter case).
5805
5806         mktime: check signed shifts on long_int and time_t, too
5807         * time/mktime.c (SHR): Check that shifts work as desired
5808         on the types long_int and time_t too, as SHR is used on
5809         such types.
5810
5811         mktime: do not assume 'long' is wide enough
5812         * time/mktime.c (verify): Move decl up.
5813         (long_int): New type.
5814         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5815         to remove assumption in the code that 'long' is wide enough to
5816         store year values.  This assumption is not true on x32 and on
5817         some non-glibc platforms.
5818
5819         mktime: merge wrapv change from gnulib
5820         * time/mktime.c (WRAPV): New macro.
5821         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5822         (guess_time_tm, __mktime_internal): Do not assume that signed
5823         integer overflow wraps around; modern compilers generate code
5824         where this assumption is no longer valid.
5825
5826 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5827
5828         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5829         Replace "jmp L(pseudo_end)" with "ret".
5830         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5831         Likewise.
5832
5833 2012-05-23  Andreas Jaeger  <aj@suse.de>
5834
5835         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5836         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5837
5838 2012-05-23  Andreas Jaeger  <aj@suse.de>
5839             Maximilian Attems  <max@stro.at>
5840
5841         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5842         New macros.
5843
5844 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5845
5846         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5847         code so that pseudo_end is just ret and the stack pointer is
5848         correct also for static library in error case.
5849
5850 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5853         move to syscalls.list.
5854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5858
5859         * manual/install.texi (Running make install): Do not mention Linux
5860         kernel version for which pt_chown is not needed.
5861         (Linux): Do not mention problems with nscd with 2.0 kernels.
5862         * INSTALL: Regenerated.
5863
5864 2012-05-23  Andreas Jaeger  <aj@suse.de>
5865
5866         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5867         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5868         macro.
5869         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5870         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5871         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5872         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5873         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5874         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5875         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5876         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5877         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5878         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5879         * sysdeps/unix/sysv/linux/bits/in.h
5880         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5881
5882 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5883
5884         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5885         (PREPARE_VERSION): Just use assert instead, it will be elided
5886         under [NDEBUG] anyway.
5887
5888 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5889
5890         * sysdeps/unix/sysv/linux/Makefile: Include
5891         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5892         (sysdep_routines): Remove sysctl.
5893         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5894         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5895         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5896         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5897         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5898
5899 2012-05-22  Andreas Jaeger  <aj@suse.de>
5900
5901         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5902         that pseudo_end is just ret and the stack pointer is correct also
5903         for static library in error case.
5904
5905 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5906
5907         [BZ #14122]
5908         * nss/nsswitch.c (defconfig_entries): New variable.
5909         (__nss_database_lookup): Don't leak defconfig entries.
5910         (nss_parse_service_list): Don't leak on error paths.
5911         (free_database_entries): New function.
5912         (free_defconfig): New function.
5913         (free_mem): Move common code to free_database_entries.
5914
5915 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5916
5917         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5918         Add arch_prctl.
5919         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5920
5921         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5922         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5923         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5924         New macro.
5925         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5926         (INTERNAL_SYSCALL_TYPES): Likewise.
5927         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5928         (LOAD_REGS_TYPES_[1-6]): Likewise.
5929         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5930         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5931
5932 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5933
5934         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5935         copysignl for GLIBC_2_0.
5936         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5937         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5938         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5939         logbl for GLIBC_2_0.
5940         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5941         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5942
5943 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5946         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5947
5948         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5949         Use "neg %eax".
5950
5951         * time/mktime.c: Update copyright years.
5952
5953 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5954
5955         mktime: merge comment-quoting-style change from gnulib
5956         * time/mktime.c: Quote 'like this' in comments.
5957         The GNU coding standards suggest that we no longer quote `like this',
5958         as "`" and "'" are typically rendered asymmetrically nowadays.
5959         The typical gnulib style is to quote 'like this' when quoting
5960         code, and "like this" when quoting English.
5961
5962         * time/mktime.c (compile-command): Add "-I.".
5963
5964         mktime: merge mktime-internal.h change from gnulib
5965         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5966
5967         mktime: merge time_r change from gnulib
5968         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5969
5970         mktime: merge DEBUG change from gnulib
5971         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5972         case system <time.h> has a #define.
5973
5974         mktime: merge <sys/types.h> change from gnulib
5975         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5976         since <time.t> is now guaranteed to define time_t.
5977
5978         mktime: merge HAVE_CONFIG_H change from gnulib
5979         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5980
5981 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5982
5983         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5984         Use "neg %eax".
5985
5986         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5987         __rlim_t cast.
5988         (struct rusage): Use anonymous union to pad each field to
5989         __syscall_slong_t.
5990
5991 2012-05-21  David S. Miller  <davem@davemloft.net>
5992
5993         * Makefules (o-iterator): Remove .s cases.
5994         (compile-command.s): Delete.
5995         (COMPILE.s): Delete.
5996         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5997
5998 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5999
6000         * configure.in (libc_cv_predef_stack_protector): Only consider
6001         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6002         * configure: Regenerated.
6003
6004 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6005
6006         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6007         New macro.  Use R*LP on int and pointer.
6008         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6009         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6010         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6011         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6012
6013         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6014         [__WORDSIZE_TIME64_COMPAT32] instead of
6015         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6016         (struct utmp): Likewise.
6017         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6018         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6019         Renamed to ...
6020         (__WORDSIZE_TIME64_COMPAT32): This.
6021         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6022         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6023         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6024         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6025         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6026         (__WORDSIZE_TIME64_COMPAT32): New macro.
6027
6028 2012-05-21  Andreas Jaeger  <aj@suse.de>
6029
6030         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6031         only if [SHARED]. Add prototype for __wcschr_ia32.
6032
6033 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6034
6035         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6036         of %rbp unmolested in the jmp_buf while mangling the low bits.
6037         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6038         unmolested high bits of %rbp while demangling the low bits.
6039         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6040
6041 2012-05-21  Andreas Jaeger  <aj@suse.de>
6042
6043         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6044         * sunrpc/svc_simple.c: Use it for registerrpc.
6045         * sunrpc/xcrypt.c: Use it for passwd2des.
6046
6047         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6048
6049 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6050
6051         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6052         Don't define if [__SYSCALL_WORDSIZE != 32].
6053         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6054         New macro.
6055
6056 2012-05-21  Bruno Haible  <bruno@clisp.org>
6057             Andreas Jaeger  <aj@suse.de>
6058
6059         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6060         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6061         inptr and inend for must_buffer_ch.
6062         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6063         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6064         * stdio-common/Makefile (tests): Remove bug15.
6065         (bug15-ENV): Remove macro.
6066         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6067         anymore.
6068
6069 2012-05-19  Andreas Jaeger  <aj@suse.de>
6070             Roland McGrath  <roland@hack.frob.com>
6071
6072         * manual/contrib.texi: Completely rewritten. It contains now an
6073         alphabetical list of contributors and their contributions.
6074
6075 2012-05-21  Richard Henderson  <rth@twiddle.net>
6076
6077         * misc/getauxval.c (__getauxval): Use unsigned long int.
6078         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6079         (getauxval): Use unsigned long int.
6080
6081 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6082
6083         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6084
6085 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6086
6087         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6088         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6089         __alignof__ (long double).
6090
6091 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6092
6093         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6094
6095 2012-05-20  Richard Henderson  <rth@twiddle.net>
6096
6097         * misc/getauxval.c: New file.
6098         * misc/sys/auxv.h: New file.
6099         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6100         (routines): Add getauxval.
6101         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6102         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6103         * elf/dl-sysdep.c (_dl_auxv): Remove.
6104         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6105         * elf/dl-support.c (_dl_auxv): New variable.
6106         (_dl_aux_init): Initialize it.
6107         * manual/startup.texi (Auxiliary Vector): New node.
6108         * sysdeps/generic/bits/hwcap.h: New file.
6109         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6110         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6111         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6112         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6113         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6114         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6116         Update.
6117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6119         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6120         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6121         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6122         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6123         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6125
6126 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6127
6128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6129
6130 2012-05-19  David S. Miller  <davem@davemloft.net>
6131
6132         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6133
6134 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6135
6136         [BZ #14123]
6137         * math/s_ccosh.c: Include <float.h>
6138         (__ccosh): Avoid internal overflow calculating sinh and cosh
6139         values before multiplying by sin and cos values.
6140         * math/s_ccoshf.c: Likewise.
6141         * math/s_ccoshl.c: Likewise.
6142         * math/s_csin.c: Likewise.
6143         * math/s_csinf.c: Likewise.
6144         * math/s_csinl.c: Likewise.
6145         * math/s_csinh.c: Likewise.
6146         * math/s_csinhf.c: Likewise.
6147         * math/s_csinhl.c: Likewise.
6148         * math/libm-test.inc (ccos_test): Add more tests.
6149         (ccosh_test): Likewise.
6150         (csin_test): Likewise.
6151         (csinh_test): Likewise.
6152         * sysdeps/i386/fpu/libm-test-ulps: Update.
6153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6154
6155 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6158         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6159
6160         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6161
6162 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6163
6164         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6165         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6166         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6167         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6168         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6169         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6170         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6171         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6172         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6173         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6174         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6175         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6176         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6177         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6178         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6179         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6180         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6181         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6182         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6183         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6184         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6185         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6186         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6187         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6188         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6189         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6190         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6191         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6192         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6193         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6194         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6195
6196 2012-05-18  Andreas Jaeger  <aj@suse.de>
6197
6198         * csu/.gitignore: Delete.
6199
6200 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6201
6202         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6203         (timex): Use __syscall_slong_t.
6204
6205 2012-05-18  Andreas Jaeger  <aj@suse.de>
6206             Carlos O'Donell  <carlos_odonell@mentor.com>
6207
6208         * manual/install.texi (Configuring and compiling): Update
6209         description about files modified in the source directory.
6210         * INSTALL: Regenerated.
6211
6212 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6213
6214         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6215         value.  Use "or" to set return value to -1.
6216         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6217         negate return value.
6218
6219 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6220
6221         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6222         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6223         failure if the compiler has Graphite support disabled.
6224         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6225         Likewise.
6226         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6227         CFLAGS-memmove.c): Likewise.
6228         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6229         Likewise.
6230
6231 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6232
6233         * sysdeps/x86_64/x32/_itoa.h: New file.
6234
6235         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6236         getdents system call only if kernel and user dirents have the
6237         same d_ino and d_off.
6238
6239         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6240         LLONG_MAX != LONG_MAX.
6241         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6242         (_fitoa_word): Likewise.
6243
6244         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6245         years.
6246         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6247         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6248         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6249
6250         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6251         include <bits/wordsize.h>.  Check __x86_64__ instead of
6252         __WORDSIZE.
6253         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6254         if __x86_64__ is defined.  Use anonymous union on fpstate.
6255
6256         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6257         anonymous union.
6258
6259 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6260
6261         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6262         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6263         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6264         Refer to _rtld_local_ro instead of _rtld_global_ro.
6265         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6266         Likewise.
6267         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6268         Likewise.
6269         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6270         Likewise.
6271         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6272         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6273         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6274
6275         * sysdeps/powerpc/powerpc32/dl-machine.c
6276         (__elf_machine_runtime_setup) [PROF]: Don't reference
6277         _dl_prof_resolve.
6278
6279 2012-05-18  Andreas Jaeger  <aj@suse.de>
6280
6281         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6282         function only available for GCCs before 3.4 since GCC 3.4
6283         introduced a builtin.
6284         (lrint): Likewise.
6285         (llrintf): Likewise.
6286         (llrint): Likewise.
6287         (fmaxf): Likewise.
6288         (fmax): Likewise.
6289         (fminf): Likewise.
6290         (fmin): Likewise.
6291         (rint): Likewise.
6292         (rintf): Likewise.
6293         (nearbyint): Likewise.
6294         (nearbyintf): Likewise.
6295         (ceil): Likewise.
6296         (ceilf): Likewise.
6297         (floor): Likewise.
6298         (floorf): Likewise.
6299
6300 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6301
6302         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6303         on both fields and cast pointer to __syscall_ulong_t.
6304
6305         * bits/types.h (__fsword_t): New type.
6306         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6307         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6308         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6309         (__FSWORD_T_TYPE): Likewise.
6310         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6311         (__FSWORD_T_TYPE): Likewise.
6312         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6313         (__FSWORD_T_TYPE): Likewise.
6314         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6315         (__FSWORD_T_TYPE): Likewise.
6316         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6317         __SWORD_TYPE with __fsword_t.
6318         (statfs64): Likewise.
6319
6320 2012-05-17  David S. Miller  <davem@davemloft.net>
6321
6322         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6323
6324 2012-05-17  Andreas Jaeger  <aj@suse.de>
6325
6326         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6327         warning.
6328
6329 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6330
6331         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6332
6333 2012-05-17  Andreas Jaeger  <aj@suse.de>
6334
6335         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6336         when it is used.
6337
6338 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6339
6340         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6341
6342 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6343
6344         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6345         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6346
6347 2012-05-17  Andreas Jaeger  <aj@suse.de>
6348             Carlos O'Donell  <carlos_odonell@mentor.com>
6349
6350         [BZ #14059]
6351         * sysdeps/x86_64/multiarch/init-arch.h
6352         (bit_YMM_Usable): Rename to...
6353         (bit_AVX_Usable): ... this.
6354         (bit_FMA4_Usable): New macro.
6355         (bit_XMM_state): New macro.
6356         (bit_YMM_state): New macro.
6357         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6358         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6359         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6360         (CPUID_OSXSAVE): New macro.
6361         (CPUID_AVX): New macro.
6362         (CPUID_FMA4): New macro.
6363         (index_YMM_Usable): Rename to...
6364         (index_AVX_Usable): ... this.
6365         (HAS_AVX): Use HAS_ARCH_FEATURE.
6366         (HAS_FMA4): Likewise.
6367         (HAS_YMM_USABLE): Remove.
6368         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6369         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6370         are present.
6371         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6372         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6373         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6374         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6375         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6376
6377 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6378
6379         * math/libm-test.c: Support platforms without multiple rounding modes.
6380         * math/bug-nextafter.c: Support platforms without FP exceptions.
6381         * math/bug-nexttoward.c: Likewise.
6382         * math/test-fenv.c: Likewise.
6383         * math/test-misc.c: Likewise.
6384         * stdlib/bug-getcontext.c: Likewise.
6385
6386 2012-05-17  Andreas Jaeger  <aj@suse.de>
6387
6388         * manual/examples/search.c (critter_cmp): Change signature to
6389         avoid warnings.
6390         * manual/string.texi (Collation Functions): Likewise.
6391
6392 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6393
6394         * bits/types.h: Fold copyright years.
6395         * bits/typesizes.h: Likewise.
6396         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6397         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6398         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6399         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6400         * time/time.h: Likewise.
6401
6402 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6403
6404         [BZ #208]
6405         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6406         in instead of returning them.  Return void.
6407         (__libc_mallinfo): Accumulate over all arenas.
6408         (__malloc_stats): Adjust for change in int_mallinfo interface.
6409
6410 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6411
6412         [BZ #10375]
6413         * configure.in (NM): Add AC_CHECK_TOOL for it.
6414         (libc_extra_cflags): New substituted variable.
6415         Check for -fstack-protector being used implicitly.
6416         * configure: Regenerated.
6417         * config.make.in (config-extra-cflags): New variable,
6418         gets @libc_extra_cflags@.
6419         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6420
6421         [BZ #10375]
6422         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6423         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6424         * configure: Regenerated.
6425         * config.make.in (CPPUNDEFS): New substituted variable.
6426         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6427         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6428         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6429
6430 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6431
6432         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6433         (mq_attr): Use __syscall_slong_t.
6434
6435 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6436
6437         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6438         Check __x86_64__ instead of __WORDSIZE.
6439         (_STAT_VER_LINUX): Likewise.
6440         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6441         __syscall_ulong_t and __syscall_slong_t.
6442         (stat64): Likewise.
6443
6444 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6445
6446         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6447
6448 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6449
6450         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6451
6452 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6453
6454         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6455         __syscall_ulong_t.
6456
6457         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6458         include <bits/wordsize.h>.  Check __x86_64__ instead of
6459         __WORDSIZE.
6460         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6461         defined.
6462         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6463
6464         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6465         include <bits/wordsize.h>.  Check __x86_64__ instead of
6466         __WORDSIZE.
6467         (user_regs_struct): Use "__extension__ unsigned long long"
6468         instead of "unsigned long" if __x86_64__ is defined.
6469         (user): Likewise.  Pad after pointer field if __ILP32__ is
6470         defined.
6471
6472 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6473
6474         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6475         versions 5 to 9.
6476         * configure: Regenerated.
6477         * manual/install.texi (texinfo): Increase version requirement to
6478         4.5 or later.
6479         * INSTALL: Regenerated.
6480
6481         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6482
6483 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6484
6485         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6486
6487         * sysdeps/x86_64/x32/ffs.c: New file.
6488
6489         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6490         __syscall_ulong_t.
6491         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6492         defined.  Use __syscall_ulong_t.
6493         (shminfo): Use __syscall_ulong_t.
6494         (shm_info): Likewise.
6495
6496         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6497         __syscall_ulong_t.
6498
6499         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6500         <bits/wordsize.h>.
6501         (msgqnum_t): Use __syscall_ulong_t.
6502         (msglen_t): Likewise.
6503         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6504         __syscall_ulong_t.
6505
6506         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6507         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6508
6509         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6510
6511         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6512         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6513
6514         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6515         __syscall_slong_t.
6516
6517         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6518         include <bits/wordsize.h>.  Check __x86_64__ instead of
6519         __WORDSIZE.
6520
6521         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6522         "unsigned long long int" if __x86_64__ is defined.
6523         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6524
6525         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6526         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6527         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6528
6529         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6530         <stdint.h>.
6531         (GET_PC): Cast to uintptr_t first.
6532         (GET_FRAME): Likewise.
6533         (GET_STACK): Likewise.
6534
6535         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6536         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6537         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6538         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6539         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6540         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6541         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6542         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6543         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6544         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6545         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6546         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6547         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6548         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6549         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6550         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6551         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6552         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6553         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6554         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6555         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6556         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6557         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6558         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6559         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6560         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6561         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6562         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6563         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6564
6565 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6566
6567         * Makerules (+depfiles): Also collect depfiles from .oS in
6568         $(extra-objs).
6569         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6570         .oS, $(libnldbl-routines)).
6571
6572         * Makerules (native-compile-mkdep-flags): Define.
6573         * sunrpc/Makefile (extra-objs): Add $(addprefix
6574         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6575         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6576         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6577         calling $(make-target-directory).
6578
6579 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6580
6581         * bits/types.h (__snseconds_t): Removed.
6582         * time/time.h (struct timespec): Replace __snseconds_t with
6583         __syscall_slong_t.
6584         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6585         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6586         Likewise.
6587         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6588         (__SNSECONDS_T_TYPE): Likewise.
6589         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6590         (__SNSECONDS_T_TYPE): Likewise.
6591         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6592         (__SNSECONDS_T_TYPE): Likewise.
6593
6594 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6595
6596         * sysdeps/mach/hurd/bits/typesizes.h
6597         (__SYSCALL_SLONG_TYPE): New macro.
6598         (__SYSCALL_ULONG_TYPE): Likewise.
6599
6600 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6601
6602         * bits/types.h (__syscall_slong_t): New type.
6603         (__syscall_ulong_t): Likewise.
6604
6605         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6606         (__SYSCALL_ULONG_TYPE): Likewise.
6607         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6608         (__SYSCALL_SLONG_TYPE): Likewise.
6609         (__SYSCALL_ULONG_TYPE): Likewise.
6610         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6611         (__SYSCALL_SLONG_TYPE): Likewise.
6612         (__SYSCALL_ULONG_TYPE): Likewise.
6613         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6614         (__SYSCALL_SLONG_TYPE): Likewise.
6615         (__SYSCALL_ULONG_TYPE): Likewise.
6616
6617 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6618
6619         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6620         Add sigaltstack-offsets.sym.
6621         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6622         <sigaltstack-offsets.h>.
6623         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6624         longjmp_msg pointer.
6625         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6626         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6627         signal stack.
6628         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6629
6630 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6631
6632         * elf/stackguard-macros.h: Remove file.
6633         * sysdeps/generic/stackguard-macros.h: New file.
6634         * sysdeps/i386/stackguard-macros.h: Likewise.
6635         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6636         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6637         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6638         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6639         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6640         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6641         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6642         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6643         <elf/stackguard-macros.h>.
6644
6645         [BZ #14109]
6646         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6647         __aligned__ in attribute.
6648         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6649         (gregset_t): Likewise.
6650
6651 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6652
6653         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6654         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6655         * sysdeps/x86_64/x32/Implies-after: New file.
6656
6657 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6658
6659         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6660         and access return value for _dl_profile_fixup.  Use R10_LP to
6661         load frame size.
6662
6663 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6664
6665         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6666
6667 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6668
6669         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6670         * sysdeps/x86_64/x32/sysdep.h: New file.
6671
6672 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6675         * sysdeps/x86_64/setjmp.S: Likewise.
6676
6677 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6678
6679         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6680         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6681         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6682         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6683         remove unused global constant.
6684
6685 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6686
6687         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6688         include of <not-cancel.h>.
6689
6690 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6691
6692         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6693
6694 2012-05-15  Jeff Law  <law@redhat.com>
6695             Andreas Jaeger  <aj@suse.de>
6696
6697         [BZ #13594]
6698         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6699         out from...
6700         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6701         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6702         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6703         code changing __hst_map_handle.map.
6704
6705 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6706
6707         * configure.in (sysnames): Look for Implies-before and Implies-after
6708         files.
6709         * configure: Regenerated.
6710
6711 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6712
6713         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6714         8-byte data alignment with LP_SIZE alignment.
6715
6716 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6717
6718         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6719         into R10_LP.
6720
6721 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6722
6723         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6724
6725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6726
6727         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6728         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6729         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6730         Likewise.
6731         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6732
6733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6734
6735         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6736         (stackinfo_sub_sp): Likewise.
6737
6738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6739
6740         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6741         RAX_LP.
6742
6743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6744
6745         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6746         into R*_LP.
6747
6748 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6749
6750         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6751         sizes into R*_LP.
6752
6753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6754
6755         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6756
6757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6758
6759         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6760         into R11_LP and load __x86_64_shared_cache_size_half into
6761         R8_LP.
6762
6763 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6764
6765         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6766         R8_LP.
6767
6768 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6769
6770         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6771         logb for POWER7.
6772         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6773         logbf for POWER7.
6774         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6775         logbl for POWER7.
6776         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6777         powerpc32/power7/fpu/s_logb.c via #include.
6778         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6779         powerpc32/power7/fpu/s_logbf.c via #include.
6780         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6781         powerpc32/power7/fpu/s_logbl.c via #include.
6782
6783 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6784
6785         * README.libm: Remove file.
6786
6787 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6788
6789         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6790         count for x32.  Use R*_LP and omit operand-size suffix.
6791
6792 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6793
6794         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6795         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6796         * sysdeps/x86_64/x32/shlib-versions: New file.
6797
6798 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6799
6800         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6801         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6802         Use _dl_fatal_printf instead.
6803
6804 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6805
6806         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6807         set if not set by the user.  Do not allow for being unset.
6808         * sysdeps/unix/sysv/linux/configure: Regenerated.
6809
6810 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6811
6812         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6813         the `q' suffix from lea and replace .quad with ASM_ADDR.
6814
6815 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6816
6817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6818         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6819         instead of $17.
6820         (PTR_DEMANGLE): Likewise.
6821
6822 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6823
6824         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6825         (LP_OP): Likewise.
6826         (ASM_ADDR): Likewise.
6827         (RAX_LP): Likewise.
6828         (RBP_LP): Likewise.
6829         (RBX_LP): Likewise.
6830         (RCX_LP): Likewise.
6831         (RDI_LP): Likewise.
6832         (RSI_LP): Likewise.
6833         (RSP_LP): Likewise.
6834         (R8_LP): Likewise.
6835         (R9_LP): Likewise.
6836         (R10_LP): Likewise.
6837         (R10_LP): Likewise.
6838         (R11_LP): Likewise.
6839         (R12_LP): Likewise.
6840         (R13_LP): Likewise.
6841         (R14_LP): Likewise.
6842         (R15_LP): Likewise.
6843
6844 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6845
6846         * sysdeps/x86_64/x32/dl-machine.h: New file.
6847
6848 2012-05-14  Andreas Jaeger  <aj@suse.de>
6849
6850         * manual/Makefile (subdir): Remove export of subdir.
6851         (all): Remove target.
6852         (.PHONY): Remove all from list.
6853         (mkinstalldirs): Remove.
6854         (.PHONY): Remove installdirs from list.
6855         ($(inst_infodir)/libc.info): Use make-target-directory.
6856         (installdirs): Remove.
6857         (subdir_%): Remove.
6858         (glibc-targets): Remove.
6859         (lib): Remove.
6860         (stubs): Remove.
6861         ($(objpfx)stubs ../po/manual.pot): Remove.
6862         ($(objpfx)stamp%): Remove.
6863         (make-target-directory): Remove.
6864         (subdir_install): Remove.
6865         (routines): Remove.
6866         (aux): Remove.
6867         (sources): Remove.
6868         (objects): Remove.
6869         (headers): Remove.
6870
6871         [BZ #13750]
6872         * manual/.gitignore: Remove, it's not needed anymore.
6873         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6874         all files in it.
6875         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6876         directory.
6877         (texis): Renamed to $(objpfx)texis.
6878         (texis-path): New, contains path to generated files.
6879         (chapters.%): Use texis-path for complete path, add extra argument
6880         libc-texinfo.sh.
6881         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6882         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6883         (summary,texi, stamp-summary): Use complete path of
6884         files. Generate files in build dir.
6885         (dir-add.texi): Build in build dir.
6886         (libm-err.texi,stamp-libm-err): Likewise.
6887         (version.texi, stamp-version): Likewise.
6888         (.%c.texi): Likewise.
6889         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6890         (mostlyclean): Remove target.
6891         (realclean): Remove target.
6892         (generated): Add new variable with contents from mostlyclean and
6893         realclean, remove entries duplicated in common-mostlyclean, add
6894         stamp-libm-err and stamp-version.
6895         (generated-dirs): Add libc directory.
6896         ($(inst_infodir)/libc.info): Install files from build dir.
6897
6898         * manual/install.texi (Configuring and compiling): Adjust since
6899         the info files are not part of the tar ball anymore.
6900
6901 2012-05-14  Andreas Jaeger  <aj@suse.de>
6902
6903         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6904         variable.
6905
6906 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6907
6908         [BZ #13717]
6909         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6910         to 2.2.0 where earlier.
6911         * sysdeps/unix/sysv/linux/configure: Regenerated.
6912         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6913         Remove conditional code.
6914         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6915         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6916         Remove conditional code.
6917         [!__NR_lchown]: Likewise.
6918         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6919         [__NR_lchown]: Likewise.
6920         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6921         comment referencing __ASSUME_LCHOWN_SYSCALL.
6922         * sysdeps/unix/sysv/linux/i386/sigaction.c
6923         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6924         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6925         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6926         Remove conditional code.
6927         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6928         (__protocol_available): Remove #if 0 code.
6929         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6930         conditional code.
6931         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6932         * sysdeps/unix/sysv/linux/kernel-features.h
6933         (__ASSUME_GETCWD_SYSCALL): Don't define.
6934         (__ASSUME_REALTIME_SIGNALS): Likewise.
6935         (__ASSUME_PREAD_SYSCALL): Likewise.
6936         (__ASSUME_PWRITE_SYSCALL): Likewise.
6937         (__ASSUME_POLL_SYSCALL): Likewise.
6938         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6939         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6940         non-SPARC.
6941         (__ASSUME_SIOCGIFNAME): Don't define.
6942         (__ASSUME_MSG_NOSIGNAL): Likewise.
6943         (__ASSUME_SENDFILE): Define unconditionally.
6944         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6945         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6946         conditional code.
6947         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6948         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6949         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6950         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6951         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6952         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6953         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6955         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6956         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6958         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6959         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6961         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6962         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6964         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6965         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6967         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6968         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6970         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6971         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6973         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6974         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6976         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6977         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6978         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6979         Remove conditional code.
6980         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6981         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6982         Remove conditional code.
6983         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6984         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6985         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6986         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6987         Remove conditional code.
6988         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6989         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6990         Remove conditional code.
6991         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6992         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6993         Remove conditional code.
6994         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6995         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6996         Remove conditional code.
6997         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6998         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6999         Remove conditional code.
7000         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7001         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7002         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7003         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7004         * sysdeps/unix/sysv/linux/sigaction.c
7005         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7006         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7007         * sysdeps/unix/sysv/linux/sigpending.c
7008         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7009         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7010         * sysdeps/unix/sysv/linux/sigprocmask.c
7011         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7012         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7013         * sysdeps/unix/sysv/linux/sigsuspend.c
7014         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7015         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7016         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7017         (__libc_missing_rt_sigs): Remove.
7018         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7019         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7020         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7021         Remove conditional code.
7022         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7023         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7024         return 1.
7025         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7026         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7027         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7028         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7029
7030 2012-05-14  Andreas Jaeger  <aj@suse.de>
7031
7032         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7033         it's not used in glibc.
7034         (__coshm1): Likewise.
7035         (__acosh1p): Likewise.
7036         (__sgn): Likewise.
7037
7038         * manual/string.texi (Copying and Concatenation): Add missing
7039         variable in concat example.
7040         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7041
7042 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7043
7044         [BZ #14103]
7045         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7046         __builtin_clzl with __builtin_clzll.
7047
7048 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7049
7050         [BZ #14104]
7051         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7052         libc_freeres_ptr.
7053
7054 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7055
7056         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7057         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7058         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7059         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7060
7061 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7062
7063         * NEWS: Update ia64 info.
7064
7065 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7066
7067         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7068         used as bcopy.
7069
7070 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7071
7072         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7073         * sysdeps/unix/syscalls.list (dup3): Likewise.
7074         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7075         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7076
7077 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7078
7079         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7080         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7081
7082 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7083
7084         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7085         thread pointer.
7086         (TLS_IE): Use mov/add instead of movq/addq to load thread
7087         pointer.
7088         (TLS_GD_PREFIX): New.
7089         (TLS_GD): Use it.
7090
7091 2012-05-11  David S. Miller  <davem@davemloft.net>
7092
7093         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7094         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7095         (_FPU_SETCW): Likewise.
7096
7097 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7098
7099         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7100         is 32-byte aligned.
7101
7102 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7103
7104         [BZ #11837]
7105         * iconvdata/gb18030.c: Update tables.
7106         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7107         characters specially.
7108         (BODY for TO_LOOP): Add encoding of missing ranges.
7109
7110 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7111
7112         [BZ #13673]
7113         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7114         * sysdeps/mach/hurd/dup3.c: Likewise.
7115         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7116         * sysdeps/powerpc/memmove.c:: Likewise.
7117
7118 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7119
7120         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7121         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7122
7123 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7124
7125         * elf/elf.h (R_X86_64_RELATIVE64): New.
7126         (R_X86_64_NUM): Updated.
7127         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7128         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7129         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7130         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7131         tst-quad1pie tst-quad2pie
7132         (modules-names): Add tst-quadmod1 tst-quadmod2.
7133         ($(objpfx)tst-quad1): New dependency.
7134         ($(objpfx)tst-quad2): Likewise.
7135         ($(objpfx)tst-quad1pie): Likewise.
7136         ($(objpfx)tst-quad2pie): Likewise.
7137         * sysdeps/x86_64/tst-quad1.c: New file.
7138         * sysdeps/x86_64/tst-quad1pie.c: New file.
7139         * sysdeps/x86_64/tst-quad2.c: Likewise.
7140         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7141         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7142         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7143         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7144         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7145
7146 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7147
7148         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7149         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7150         * streams/stropts.h (t_scalar_t): Define type.
7151
7152         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7153         (_PATH_PRESERVE): Set to "/var/lib".
7154         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7155
7156         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7157         instead of int.
7158
7159         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7160         if __dir_mkfile succeeded.
7161
7162         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7163         checking for _hurd_dtablesize.  Unlock it right after having
7164         finished _hurd_dtable allocation.
7165
7166 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7167
7168         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7169         * sysdeps/mach/hurd/configure: Regenerated.
7170         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7171         special-casing to...
7172         * sysdeps/gnu/configure.in: ... this new file.
7173         * sysdeps/unix/sysv/linux/configure: Regenerated.
7174         * sysdeps/gnu/configure: New generated file.
7175
7176         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7177         for Linux: use nsec instead of usec, as well as:
7178         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7179         members of type struct timespec.
7180         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7181         New macros.
7182         (struct stat64): Likewise.
7183         (_STATBUF_ST_NSEC): New macro.
7184         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7185
7186         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7187         __strtoul_internal rather than strtoul.
7188
7189 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7190
7191         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7192         and reject them.
7193
7194 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7195
7196         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7197         which preserves existing values.
7198         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7199
7200 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7201
7202         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7203         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7204         greater than FD_SETSIZE.
7205
7206 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7207
7208         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7209         allocated, call __vm_protect to finish enabling the existing space, and
7210         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7211         allocate the remainder.
7212
7213 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7214
7215         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7216         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7217
7218 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7219
7220         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7221         sysdeps/mach/hurd/readlink.c.
7222
7223         * posix/tst-sysconf.c (posix_options): Only use
7224         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7225         _POSIX_SYNCHRONIZED_IO when they are defined
7226         * sysdeps/mach/hurd/bits/posix_opt.h:
7227         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7228         (_XOPEN_REALTIME): Undefine macro.
7229         (_XOPEN_REALTIME_THREADS): Undefine macro.
7230         (_XOPEN_SHM): Undefine macro.
7231         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7232         macro to -1.
7233         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7234         macro to -1.
7235         (_POSIX_ASYNC_IO): Undefine macro.
7236         (_POSIX_PRIORITIZED_IO): Undefine macro.
7237         (_POSIX_SPIN_LOCKS): Define macro to -1.
7238
7239         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7240         SA_NODEFER, SA_RESETHAND.
7241         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7242         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7243         F_DUPFD_CLOEXEC.
7244
7245 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7246
7247         * elf/Makefile (pldd-modules): Define unconditionally.
7248
7249 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7250
7251         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7252
7253 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7254
7255         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7256         Return ENOENT when name is empty.
7257         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7258
7259 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7260
7261         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7262
7263         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7264
7265 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7266
7267         Fix mlock in all cases except non-readable pages.
7268         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7269         instead of VM_PROT_ALL as parameter to __vm_wire function.
7270
7271         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7272         (__mkdir): When path is `/', just fail with EEXIST.
7273         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7274
7275 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7276
7277         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7278         <sys/uio.h> (for writev).
7279         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7280         and <sys/param.h> (for MIN).
7281
7282 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7283
7284         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7285         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7286         if interrupted.
7287
7288 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7289
7290         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7291         Depend on against $(link-rpcuserlibs).
7292
7293 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7294
7295         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7296         (__libc_stack_end): Do not use attribute_relro.
7297         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7298         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7299         to libthread-provided value.
7300         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7301         attribute_relro.
7302
7303 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7304
7305         [BZ #3748]
7306         * bits/libc-lock.h (__libc_once_get): New macro.
7307         * sysdeps/mach/bits/libc-lock.h: Likewise.
7308         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7309         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7310         instead of using implementation details.
7311
7312         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7313         * libio/freopen.c: Likewise.
7314         * libio/freopen64.c: Likewise.
7315         * misc/syslog.c: Likewise.
7316         * nscd/connections.c: Likewise.
7317         * nscd/netgroupcache.c: Likewise.
7318         * sysdeps/posix/getcwd.c: Likewise.
7319
7320 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7321
7322         * math/w_ilogbf.c: Add #include <limits.h>.
7323
7324 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7325
7326         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7327         path instead of returning without unlocking.
7328
7329         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7330         immediate-write ioctls.
7331         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7332
7333 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7334
7335         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7336         __builtin_frame_address instead of making assumptions about the
7337         location of the return address relative to DATA.  Force early load of
7338         the return address.
7339         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7340         __builtin_frame_address.
7341
7342         dup3 for GNU Hurd.
7343         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7344         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7345         implement dup3 and do some further code clean-ups.
7346         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7347         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7348
7349 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7350
7351         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7352
7353         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7354         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7355         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7356         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7357         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7358         d->port.lock.
7359
7360         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7361         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7362         when handler == SIG_ERR, not when handler != SIG_ERR.
7363
7364 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7365
7366         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7367         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7368         definitions.
7369
7370         accept4 for GNU Hurd.
7371         * include/sys/socket.h (__libc_accept4): New prototype.
7372         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7373         to implement __libc_accept4.
7374         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7375         __libc_accept4.
7376         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7377
7378         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7379         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7380         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7381         signal-defines.sym.
7382
7383 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7384
7385         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7386
7387 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7388
7389         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7390         assertion on O_CLOEXEC flag.
7391         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7392         * hurd/intern-fd.c: Likewise.
7393         * hurd/port2fd.c: Likewise.
7394
7395 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7396
7397         [BZ #3906]
7398         * bits/in.h (IPV6_PKTINFO): Define new macro.
7399         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7400
7401 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7402
7403         [BZ #13954]
7404         [BZ #13955]
7405         [BZ #13956]
7406         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7407         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7408         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7409         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7410         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7411         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7412         * math/libm-test.inc (logb_test) : Additional logb tests.
7413
7414 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7415             Andreas Jaeger  <aj@suse.de>
7416
7417         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7418         * configure: Regenerated.
7419         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7420         * config.make.in (link-obsolete-rpc): New substituted variable.
7421         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7422         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7423         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7424         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7425         so that libc.a contains the symbols.
7426         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7427         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7428         * sunrpc/auth_none.c: Likewise.
7429         * sunrpc/auth_unix.c: Likewise.
7430         * sunrpc/authdes_prot.c: Likewise.
7431         * sunrpc/authuxprot.c: Likewise.
7432         * sunrpc/clnt_gen.c: Likewise.
7433         * sunrpc/clnt_perr.c: Likewise.
7434         * sunrpc/clnt_raw.c: Likewise.
7435         * sunrpc/clnt_simp.c: Likewise.
7436         * sunrpc/clnt_tcp.c: Likewise.
7437         * sunrpc/clnt_udp.c: Likewise.
7438         * sunrpc/clnt_unix.c: Likewise.
7439         * sunrpc/des_crypt.c: Likewise.
7440         * sunrpc/des_soft.c: Likewise.
7441         * sunrpc/get_myaddr.c: Likewise.
7442         * sunrpc/key_call.c: Likewise.
7443         * sunrpc/key_prot.c: Likewise.
7444         * sunrpc/netname.c: Likewise.
7445         * sunrpc/pm_getmaps.c: Likewise.
7446         * sunrpc/pm_getport.c: Likewise.
7447         * sunrpc/pmap_clnt.c: Likewise.
7448         * sunrpc/pmap_prot.c: Likewise.
7449         * sunrpc/pmap_prot2.c: Likewise.
7450         * sunrpc/pmap_rmt.c: Likewise.
7451         * sunrpc/publickey.c: Likewise.
7452         * sunrpc/rpc_cmsg.c: Likewise.
7453         * sunrpc/rpc_common.c: Likewise.
7454         * sunrpc/rpc_dtable.c: Likewise.
7455         * sunrpc/rpc_prot.c: Likewise.
7456         * sunrpc/rpc_thread.c: Likewise.
7457         * sunrpc/rtime.c: Likewise.
7458         * sunrpc/svc.c: Likewise.
7459         * sunrpc/svc_auth.c: Likewise.
7460         * sunrpc/svc_raw.c: Likewise.
7461         * sunrpc/svc_run.c: Likewise.
7462         * sunrpc/svc_tcp.c: Likewise.
7463         * sunrpc/svc_udp.c: Likewise.
7464         * sunrpc/svc_unix.c: Likewise.
7465         * sunrpc/svcauth_des.c: Likewise.
7466         * sunrpc/xcrypt.c: Likewise.
7467         * sunrpc/xdr.c: Likewise.
7468         * sunrpc/xdr_array.c: Likewise.
7469         * sunrpc/xdr_float.c: Likewise.
7470         * sunrpc/xdr_intXX_t.c: Likewise.
7471         * sunrpc/xdr_mem.c: Likewise.
7472         * sunrpc/xdr_rec.c: Likewise.
7473         * sunrpc/xdr_ref.c: Likewise.
7474         * sunrpc/xdr_sizeof.c: Likewise.
7475         * sunrpc/xdr_stdio.c: Likewise.
7476
7477 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7478
7479         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7480         change.  Update copyright years.
7481
7482 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7483
7484         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7485
7486 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7487             Joseph Myers  <joseph@codesourcery.com>
7488             Paul Pluzhnikov  <ppluzhnikov@google.com>
7489
7490         [BZ #14012]
7491         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7492         requiring rpcgen.
7493         [cross-compiling] (extra-libs): Likewise.
7494         [cross-compiling] (extra-libs-others): Likewise.
7495         [cross-compiling] (librpcsvc-routines): Likewise.
7496         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7497         [cross-compiling] (omit-deps): Likewise.
7498         (sunrpc-CPPFLAGS): New variable.
7499         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7500         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7501         (cross-rpcgen-objs): New variable.
7502         (extra-objs): Append $(cross-rpcgen-objs).
7503         ($(cross-rpcgen-objs)): New rule.
7504         ($(objpfx)cross-rpcgen): Likewise.
7505         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7506         comment.
7507         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7508         ($(objpfx)x%.stmp): Likewise.
7509         * sunrpc/proto.h [IS_IN_build] (_): Define.
7510         [IS_IN_build] (_libc_intl_domainname): Likewise.
7511
7512 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7513
7514         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7515         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7516         and R_X86_64_TPOFF64.
7517
7518 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7519
7520         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7521         sysdeps/unix/sysv/syscalls.list.
7522         (stime): Likewise.
7523         (utime): Likewise.
7524         * sysdeps/unix/sysv/syscalls.list: Remove file.
7525
7526 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7527
7528         [BZ #3440]
7529         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7530         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7531         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7532         (__LC_IDENTIFICATION): Make these macros useful in #if
7533         expressions, as required by C99.
7534
7535 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7536
7537         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7538         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7539         after this.
7540
7541 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7542
7543         * stdlib/longlong.h: Updated from GCC.
7544
7545 2012-05-09  Andreas Jaeger  <aj@suse.de>
7546
7547         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7548         default is first entry.
7549         (run_mode): Set type.
7550         (main): Remove informal message about syslog.
7551         (options): Fix typo.
7552
7553         [BZ #14053]
7554         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7555         to asm.
7556         (lrint): Likewise.
7557         (llrintf): Likewise.
7558         (llrint): Likewise.
7559         (rint): Likewise.
7560         (rintf): Likewise.
7561         (nearbyint): Likewise.
7562         (nearbyintf): Likewise.
7563
7564 2012-05-09  Andreas Jaeger  <aj@suse.de>
7565             Pedro Alves  <palves@redhat.com>
7566
7567         * nscd/nscd.c (run_mode): Use enum.
7568         (main): Cleanup coding style issue.
7569
7570 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7571             Andreas Jaeger  <aj@suse.de>
7572
7573         * nscd/nscd.c (go_background): Replaced with...
7574         (run_mode): ... this.
7575         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7576         (options): Add -F --foreground.
7577         (main): Implement it.
7578         (parse_opt): Parse it.
7579
7580 2012-05-09  Andreas Jaeger  <aj@suse.de>
7581
7582         [BZ #14083]
7583         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7584         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7585         -Wconversion warning.
7586         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7587         Likewise.
7588
7589 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7590
7591         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7592         == 0.
7593         (LC_ALL): Use macro-int-constant.
7594         (LC_COLLATE): Likewise.
7595         (LC_CTYPE): Likewise.
7596         (LC_MESSAGES): Likewise.
7597         (LC_MONETARY): Likewise.
7598         (LC_NUMERIC): Likewise.
7599         (LC_TIME): Likewise.
7600         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7601         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7602         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7603         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7604         Specify type.
7605         [C99-based standards] (float_t): Expect type.
7606         [C99-based standards] (double_t): Expect type.
7607         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7608         type.
7609         [C99-based standards] (HUGE_VALL): Likewise.
7610         [C99-based standards] (INFINITY): Likewise.
7611         [C99-based standards] (NAN): Likewise.
7612         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7613         [C99-based standards] (FP_NAN): Likewise.
7614         [C99-based standards] (FP_NORMAL): Likewise.
7615         [C99-based standards] (FP_SUBNORMAL): Likewise.
7616         [C99-based standards] (FP_ZERO): Likewise.
7617         [C99-based standards] (FP_FAST_FMA): Use
7618         optional-macro-int-constant.  Specify type.  Require == 1.
7619         [C99-based standards] (FP_FAST_FMAF): Likewise.
7620         [C99-based standards] (FP_FAST_FMAL): Likewise.
7621         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7622         [C99-based standards] (FP_ILOGBNAN): Likewise.
7623         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7624         Specify type.
7625         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7626         [C99-based standards] (math_errhandling): Specify type.
7627         [ISO99 || ISO11] (signgam): Do not allow.
7628         [non-C99-based standards] (copysignf): Do not allow.
7629         [non-C99-based standards] (exp2f): Likewise.
7630         [non-C99-based standards] (log2f): Likewise.
7631         [non-C99-based standards] (modff): Allow.
7632         [non-C99-based standards] (erff): Do not allow.
7633         [non-C99-based standards] (erfcf): Likewise.
7634         [non-C99-based standards] (gammaf): Likewise.
7635         [non-C99-based standards] (hypotf): Likewise.
7636         [non-C99-based standards] (j0f): Likewise.
7637         [non-C99-based standards] (j1f): Likewise.
7638         [non-C99-based standards] (jnf): Likewise.
7639         [non-C99-based standards] (lgammaf): Likewise.
7640         [non-C99-based standards] (tgammaf): Likewise.
7641         [non-C99-based standards] (y0f): Likewise.
7642         [non-C99-based standards] (y1f): Likewise.
7643         [non-C99-based standards] (ynf): Likewise.
7644         [non-C99-based standards] (isnanf): Likewise.
7645         [non-C99-based standards] (acoshf): Likewise.
7646         [non-C99-based standards] (asinhf): Likewise.
7647         [non-C99-based standards] (atanhf): Likewise.
7648         [non-C99-based standards] (cbrtf): Likewise.
7649         [non-C99-based standards] (expm1f): Likewise.
7650         [non-C99-based standards] (ilogbf): Likewise.
7651         [non-C99-based standards] (log1pf): Likewise.
7652         [non-C99-based standards] (logbf): Likewise.
7653         [non-C99-based standards] (nextafterf): Likewise.
7654         [non-C99-based standards] (remainderf): Likewise.
7655         [non-C99-based standards] (rintf): Likewise.
7656         [non-C99-based standards] (scalbf): Likewise.
7657         [non-C99-based standards] (copysignl): Likewise.
7658         [non-C99-based standards] (exp2l): Likewise.
7659         [non-C99-based standards] (log2l): Likewise.
7660         [non-C99-based standards] (modfl): Allow.
7661         [non-C99-based standards] (erfl): Do not allow.
7662         [non-C99-based standards] (erfcl): Likewise.
7663         [non-C99-based standards] (gammal): Likewise.
7664         [non-C99-based standards] (hypotl): Likewise.
7665         [non-C99-based standards] (j0l): Likewise.
7666         [non-C99-based standards] (j1l): Likewise.
7667         [non-C99-based standards] (jnl): Likewise.
7668         [non-C99-based standards] (lgammal): Likewise.
7669         [non-C99-based standards] (tgammal): Likewise.
7670         [non-C99-based standards] (y0l): Likewise.
7671         [non-C99-based standards] (y1l): Likewise.
7672         [non-C99-based standards] (ynl): Likewise.
7673         [non-C99-based standards] (isnanl): Likewise.
7674         [non-C99-based standards] (acoshl): Likewise.
7675         [non-C99-based standards] (asinhl): Likewise.
7676         [non-C99-based standards] (atanhl): Likewise.
7677         [non-C99-based standards] (cbrtl): Likewise.
7678         [non-C99-based standards] (expm1l): Likewise.
7679         [non-C99-based standards] (ilogbl): Likewise.
7680         [non-C99-based standards] (log1pl): Likewise.
7681         [non-C99-based standards] (logbl): Likewise.
7682         [non-C99-based standards] (nextafterl): Likewise.
7683         [non-C99-based standards] (remainderl): Likewise.
7684         [non-C99-based standards] (rintl): Likewise.
7685         [non-C99-based standards] (scalbl): Likewise.
7686         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7687         [non-C99-based standards] (FP_*): Do not allow.
7688         [C99-based standards] (FP_*): Change to
7689         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7690         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7691         allow.
7692         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7693         (SIG_ERR): Likewise.
7694         [X/Open-based standards] (SIG_HOLD): Likewise.
7695         (SIG_IGN): Likewise.
7696         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7697         positive value.
7698         (SIGFPE): Likewise.
7699         (SIGILL): Likewise.
7700         (SIGINT): Likewise.
7701         (SIGSEGV): Likewise.
7702         (SIGTER): Likewise.
7703         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7704         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7705         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7706         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7707         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7708         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7709         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7710         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7711         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7712         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7713         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7714         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7715         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7716         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7717         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7718         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7719         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7720         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7721         [X/Open-based standards] (SIGTRAP): Likewise.
7722         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7723         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7724         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7725         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7726         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7727         allow.
7728
7729 2012-05-08  Ian Wienand  <ianw@vmware.com>
7730
7731         [BZ #14080]
7732         * time/tzset.c (__tzset_parse_tz): Update default rules for
7733         daylight time changes in the Energy Policy Act of 2005.
7734
7735 2012-05-09  Andreas Jaeger  <aj@suse.de>
7736
7737         [BZ #13983]
7738         * elf/ldconfig.c (parse_conf): Change string to make clear that
7739         ldconfig only issued a warning if ld.so.conf does not exist.
7740
7741 2012-05-08  David S. Miller  <davem@davemloft.net>
7742
7743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7744         movxtod instead of popping the value on the stack.
7745
7746         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7747
7748 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7749
7750         * config.h.in: Add HAVE_ARM_PCS_VFP.
7751
7752 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7753
7754         [BZ #13979]
7755         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7756         checking but the checks are disabled for any reason.
7757
7758 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7759
7760         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7761         and ELF64_R_TYPE with ELFW(R_TYPE).
7762
7763 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7764
7765         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7766         (ulimit): Likewise.
7767
7768         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7769         (settimeofday): Likewise.
7770
7771 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7772
7773         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7774         a struct th_u2 inside the union, and move tu_block/tu_code into
7775         a new th_u3 union of tu_block/tu_code inside of that.  Move
7776         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7777         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7778         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7779         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7780         (th_stuff): Change to th_u1.tu_stuff.
7781         (th_data): Define.
7782         (th_msg): Change to th_u1.th_u2.tu_data.
7783
7784 2012-05-07  David S. Miller  <davem@davemloft.net>
7785
7786         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7787
7788         [BZ #14074]
7789         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7790         (SETUP_PIC_REG): Use it.
7791         (SETUP_PIC_REG_LEAF): Use it.
7792
7793 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7794
7795         [BZ #13885]
7796         [BZ #13923]
7797         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7798         USE_AS_EXPM1L.
7799         (EXPL_FINITE): Likewise.
7800         (FLDLOG): Likewise.
7801         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7802         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7803         e_expl.S.
7804         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7805         USE_AS_EXPM1L.
7806         (EXPL_FINITE): Likewise.
7807         (FLDLOG): Likewise.
7808         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7809         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7810         e_expl.S.
7811         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7812         test of -max_value argument for long double.
7813         * sysdeps/i386/fpu/libm-test-ulps: Update.
7814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7815
7816 2012-05-06  David S. Miller  <davem@davemloft.net>
7817
7818         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7819         quad soft-float symbols whose references which are compiler
7820         generated.
7821         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7822
7823 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7824
7825         [BZ #13884]
7826         [BZ #13914]
7827         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7828         USE_AS_EXP10L.
7829         (EXPL_FINITE): Likewise.
7830         (FLDLOG): Likewise.
7831         (c0): Likewise.
7832         (c1): Likewise.
7833         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7834         Adjust comments for base varying.
7835         (__expl_finite): Change alias to EXPL_FINITE.
7836         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7837         e_expl.S.
7838         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7839         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7840         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7841         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7842         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7843         USE_AS_EXP10L.
7844         (EXPL_FINITE): Likewise.
7845         (FLDLOG): Likewise.
7846         (c0): Likewise.
7847         (c1): Likewise.
7848         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7849         Adjust comments for base varying.
7850         (__expl_finite): Change alias to EXPL_FINITE.
7851         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7852         tests for bugs.
7853         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7854
7855         [BZ #14064]
7856         * math/libm-test.inc (check_float_internal): Correct ulp
7857         calculation for subnormal expected results.
7858
7859 2012-05-06  Andreas Jaeger  <aj@suse.de>
7860
7861         * Makeconfig (+math-flags): New, set to -frounding-math.
7862         (+cflags): Add +math-flags so that all of glibc gets compiled with
7863         it.
7864
7865         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7866
7867 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7868
7869         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7870         Disable one test.
7871
7872         [BZ #13787]
7873         [BZ #13922]
7874         [BZ #14036]
7875         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7876         (__ieee754_expl): Allow for and saturate large arguments.
7877         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7878         (u_threshold): Likewise.
7879         (__exp): Call __ieee754_exp before checking for overflow and
7880         underflow.
7881         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7882         (u_threshold): Likewise.
7883         (__expf): Call __ieee754_expf before checking for overflow and
7884         underflow.
7885         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7886         (u_threshold): Likewise.
7887         (__expl): Call __ieee754_expl before checking for overflow and
7888         underflow.
7889         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7890         (__ieee754_expl): Allow for and saturate large arguments.
7891         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7892         missing overflow exception on overflow.
7893         (expm1_test): Do not allow missing overflow exception on overflow.
7894
7895         * sysdeps/i386/fpu/e_expl.c: Move to ...
7896         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7897         rather than using inline asm.
7898         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7899         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7900         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7901
7902         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7903         (nice): Likewise.
7904         (poll): Likewise.
7905         (signal): Likewise.
7906         (time): Likewise.
7907         (times): Likewise.
7908
7909 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7910
7911         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7912         sysdeps/unix/common/syscalls.list.
7913         (fchmod): Likewise.
7914         (fchown): Likewise.
7915         (ftruncate): Likewise.
7916         (getrusage): Likewise.
7917         (gettimeofday): Likewise.
7918         (setpgid): Likewise.
7919         (setregid): Likewise.
7920         (setreuid): Likewise.
7921         (sigaction): Likewise.
7922         (truncate): Likewise.
7923         (vhangup): Likewise.
7924         * sysdeps/unix/common/syscalls.list: Remove file.
7925         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7926         * sysdeps/unix/sysv/linux/Implies: Likewise.
7927
7928 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7929
7930         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7931         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7932         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7933         Moved to ...
7934         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7935         Here.
7936         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7937         to ...
7938         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7939         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7940         to ...
7941         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7942         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7943         to ...
7944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7945         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7946         to ...
7947         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7948         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7949         to ...
7950         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7951         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7952         to ...
7953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7954         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7955         to ...
7956         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7957         Here.
7958         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7959         to ...
7960         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7961         Here.
7962         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7963         to ...
7964         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7965         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7966         Moved to ...
7967         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7968         Here.
7969         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7970         to ...
7971         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7972
7973 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7974
7975         * sysdeps/unix/common/bits/dirent.h: Remove file.
7976         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7977
7978         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7979         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7980         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7981         * sysdeps/unix/bsd/isatty.c: Likewise.
7982         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7983         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7984         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7985
7986 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7987
7988         [BZ #13563]
7989         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7990         long double comparison inaccuracies.
7991         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7993
7994 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7995
7996         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7997         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7998
7999 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8000
8001         [BZ #14049]
8002         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8003         nonzero digits before rounding a hex value.
8004         * stdlib/tst-strtod.c (tests): Add another test.
8005
8006 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8007
8008         * sysdeps/s390/fpu/libm-test-ulps: Update.
8009
8010 2012-05-03  Andreas Jaeger  <aj@suse.de>
8011
8012         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8013         does not get optimized out.
8014         (malloc_opt_barrier): New.
8015
8016 2012-05-03  Andreas Jaeger  <aj@suse.de>
8017             Roland McGrath  <roland@hack.frob.com>
8018
8019         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8020         intermediate file deletion.
8021         (generated): Add .symlist files.
8022
8023 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8024
8025         [BZ #13775]
8026         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8027         Redirect under this condition.
8028         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8029         [__USE_GNU] (__dprintf_chk): Not under this condition.
8030         [__USE_GNU] (__vdprintf_chk): Likewise.
8031         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8032         under this condition.
8033         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8034         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8035         [__USE_XOPEN2K8] (vdprintf): Likewise.
8036         [__USE_GNU] (__dprintf_chk): Not under this condition.
8037         [__USE_GNU] (__vdprintf_chk): Likewise.
8038         [__USE_GNU] (dprintf): Likewise.
8039         [__USE_GNU] (vdprintf): Likewise.
8040
8041 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8042
8043         * elf/Makefile (common-generated): Set this instead of generated for
8044         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8045         $(all-built-dso)-derived lists.
8046
8047 2012-05-03  Andreas Jaeger  <aj@suse.de>
8048
8049         * sysdeps/i386/fpu/libm-test-ulps: Update.
8050
8051         * FAQ: Removed.
8052         * FAQ.in: Likewise.
8053         * scripts/gen-FAQ.pl: Likewise.
8054         * manual/install.texi (Installation): Point to online location of
8055         FAQ.
8056         * Makefile (files-for-dist): Remove FAQ.
8057         (FAQ): Remove.
8058
8059 2012-05-02  Allan McRae  <allan@archlinux.org>
8060
8061         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8062         (LDFLAGS-reldepmod5.so): Likewise.
8063         (LDFLAGS-reldep6mod1.so): Likewise.
8064         (LDFLAGS-reldep6mod4.so): Likewise.
8065         (LDFLAGS-reldep8mod3.so): Likewise.
8066         (LDFLAGS-unload4mod1.so): Likewise.
8067         (LDFLAGS-unload4mod2.so): Likewise.
8068         (LDFLAGS-tst-initorder): Likewise.
8069         (LDFLAGS-tst-initordera2.so): Likewise.
8070         (LDFLAGS-tst-initordera3.so): Likewise.
8071         (LDFLAGS-tst-initordera4.so): Likewise.
8072         (LDFLAGS-tst-initorderb2.so): Likewise.
8073         (LDFLAGS-noload): Likewise.
8074         (LDFLAGS-next): Likewise.
8075         (LDFLAGS-order2mod1.so): Likewise.
8076         (LDFLAGS-order2mod2.so): Likewise.
8077         (LDFLAGS-tst-initorder2): Likewise.
8078         (LDFLAGS-tst-initorder2a.so): Likewise.
8079         (LDFLAGS-tst-initorder2b.so): Likewise.
8080         (LDFLAGS-tst-initorder2c.so): Likewise.
8081         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8082
8083 2012-05-02  David S. Miller  <davem@davemloft.net>
8084
8085         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8086
8087 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8088
8089         [BZ #14055]
8090         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8091
8092 2012-05-02  Andreas Jaeger  <aj@suse.de>
8093
8094         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8095         since we manipulate rounding mode.
8096         (CPPFLAGS-test-idouble.c): Likewise.
8097         (CPPFLAGS-test-ifloat.c): Likewise.
8098         (CFLAGS-test-ldouble.c): Likewise.
8099         (CFLAGS-test-double.c): Likewise.
8100         (CFLAGS-test-float.c): Likewise.
8101         (CFLAGS-test-misc.c): Likewise.
8102         (CFLAGS-test-test-fenv.c): Likewise.
8103
8104 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8105
8106         [BZ #2550]
8107         [BZ #2570]
8108         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8109         comparisons to determine direction to adjust input.
8110
8111 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8112
8113         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8114         output to the target.
8115
8116         * scripts/localplt.awk: New file.
8117         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8118         (check-localplt-CFLAGS): Variable removed.
8119         ($(all-built-dso:=.jmprel)): New static pattern rule.
8120         (generated): Add those targets.
8121         (localplt-built-dso): New variable.
8122         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8123
8124         * elf/check-localplt.c: File removed.
8125
8126         * scripts/check-execstack.awk: New file.
8127         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8128         (check-execstack-CFLAGS): Variable removed.
8129         ($(objpfx)check-execstack.h): Target removed.
8130         ($(objpfx)execstack-default): New target.
8131         (generated): Add that instead of check-execstack.h.
8132         ($(all-built-dso:=.phdr)): New static pattern rule.
8133         (generated): Add those targets.
8134         * elf/check-execstack.c: File removed.
8135
8136         * scripts/check-textrel.awk: New file.
8137         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8138         (check-textrel-CFLAGS): Variable removed.
8139         (all-built-dso): Use := to define.o
8140         ($(all-built-dso:=.dyn)): New static pattern rule.
8141         (generated): Add those targets.
8142         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8143         * config.make.in (READELF): New substituted variable.
8144         * elf/check-textrel.c: File removed.
8145
8146 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8147
8148         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8149         allow.
8150         * conform/data/ctype.h-data [C99-based standards] (isblank):
8151         Expect function.
8152         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8153         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8154         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8155         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8156         Specify type.  Require positive value.
8157         (EILSEQ): Likewise.
8158         (ERANGE): Likewise.
8159         [ISO || POSIX] (EILSEQ): Do not expect.
8160         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8161         Specify type.  Require positive value.
8162         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8175         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8176         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8177         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8178         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8179         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8180         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8181         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8182         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8183         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8184         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8205         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8206         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8207         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8208         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8209         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8210         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8211         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8212         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8213         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8214         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8215         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8216         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8217         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8218         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8219         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8220         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8221         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8222         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8223         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8224         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8225         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8226         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8227         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8228         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8229         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8230         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8231         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8232         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8233         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8234         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8235         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8236         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8237         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8238         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8239         Require >= 2.
8240         (FLT_ROUNDS): Expect as macro, not constant.
8241         (FLT_MANT_DIG): Use macro-int-constant.
8242         (DBL_MANT_DIG): Likewise.
8243         (LDBL_MANT_DIG): Likewise.
8244         (FLT_DIG): Likewise.
8245         (DBL_DIG): Likewise.
8246         (LDBL_DIG): Likewise.
8247         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8248         (DBL_MIN_EXP): Likewise.
8249         (LDBL_MIN_EXP): Likewise.
8250         (FLT_MAX_EXP): Use macro-int-constant.
8251         (DBL_MAX_EXP): Likewise.
8252         (LDBL_MAX_EXP): Likewise.
8253         (FLT_MAX_10_EXP): Likewise.
8254         (DBL_MAX_10_EXP): Likewise.
8255         (LDBL_MAX_10_EXP): Likewise.
8256         (FLT_MAX): Use macro-constant.
8257         (DBL_MAX): Likewise.
8258         (LDBL_MAX): Likewise.
8259         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8260         (DBL_EPSILON): Likewise.
8261         (LDBL_EPSILON): Likewise.
8262         (FLT_MIN): Likewise.
8263         (DBL_MIN): Likewise.
8264         (LDBL_MIN): Likewise.
8265         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8266         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8267         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8268         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8269         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8270         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8271         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8272         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8273         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8274         [ISO11] (FLT_TRUE_MIN): Likewise.
8275         [ISO11] (LDBL_TRUE_MIN): Likewise.
8276         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8277         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8278         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8279         (SCHAR_MAX): Likewise.
8280         (UCHAR_MAX): Likewise.
8281         (CHAR_MIN): Likewise.
8282         (CHAR_MAX): Likewise.
8283         (MB_LEN_MAX): Use macro-int-constant.
8284         (SHRT_MIN): Use macro-int-constant.  Specify type.
8285         (SHRT_MAX): Likewise.
8286         (USHRT_MAX): Likewise.
8287         (INT_MAX): Likewise.
8288         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8289         bound negative.
8290         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8291         bound with "U".
8292         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8293         bound with "L".
8294         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8295         bound negative.  Suffix upper bound with "L".
8296         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8297         bound with "UL".
8298         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8299         Specify type.
8300         [C99-based standards] (LLONG_MAX): Likewise.
8301         [C99-based standards] (ULLONG_MAX): Likewise.
8302         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8303         == 0.
8304         [ISO11] (max_align_t): Require type.
8305         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8306
8307         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8308         from $CFLAGS, without defining away __attribute__ calls.
8309         (checknamespace): Use $CFLAGS_namespace.
8310
8311         * conform/conformtest.pl (@keywords): Only include C99 keywords
8312         for standards based on C99 or C11.
8313
8314         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8315         Disable tests.
8316         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8317         UNIX98]: Likewise.
8318
8319         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8320         usability of symbols in #if.
8321
8322         * conform/conformtest.pl: If macro or constant types start
8323         "promoted:", expect the symbol to be of the following type
8324         promoted by the integer promotions.
8325
8326         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8327         in one place.  Also handle "macro-constant".
8328
8329         * conform/conformtest.pl: Only accept expected macro values with
8330         "==".  Parse all "macro" lines in one place.
8331         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8332
8333         * conform/conformtest.pl: Handle braced types on "constant" lines
8334         instead of handling "typed-constant".
8335         * conform/data/signal.h-data: Use "constant" instead of
8336         "typed-constant".
8337
8338         * conform/conformtest.pl: Handle "optional-" at start of lines in
8339         one place rather than duplicating several cases.  Handle each
8340         format of "macro" line with initial "optional-".
8341
8342         * conform/conformtest.pl: Only accept expected constant or
8343         optional-constant values with "==".  Parse all "constant" lines in
8344         one place.  Parse all "optional-constant" lines in one place.
8345         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8346         * conform/data/fmtmsg.h-data: Likewise.
8347         * conform/data/netinet/in.h-data: Likewise.
8348         * conform/data/tar.h-data: Likewise.
8349         * conform/data/limits.h-data: Use "==" form on "constant" and
8350         "optional-constant" lines.
8351
8352         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8353         Use -std=c99 for XOPEN2K.
8354         (@knownproblems): Remove.
8355         (newtoken): Don't check %isknown.
8356
8357         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8358         Do not expect macro.
8359         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8360         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8361         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8362         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8363         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8364         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8365         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8366         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8367         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8368         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8369         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8370         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8371         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8372         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8373         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8374         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8375         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8376         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8377         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8378         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8379         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8380         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8381         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8382         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8383         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8384         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8389         [XPG3] (acosh): Likewise.
8390         [XPG3] (asinh): Likewise.
8391         [XPG3] (atanh): Likewise.
8392         [XPG3] (cbrt): Likewise.
8393         [XPG3] (expm1): Likewise.
8394         [XPG3] (ilogb): Likewise.
8395         [XPG3] (log1p): Likewise.
8396         [XPG3] (logb): Likewise.
8397         [XPG3] (nextafter): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8400         [XPG3] (remainder): Likewise.
8401         [XPG3] (rint): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8409         [UNIX98 || XOPEN2K] (scalb): Expect.
8410         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8411         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8547
8548         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8549         _XOPEN_SOURCE_EXTENDED for XPG4.
8550
8551         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8552
8553         * Makeconfig (localtime): Remove variable.
8554         (inst_localtime-file): Likewise.
8555
8556 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8557
8558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8559         Update.
8560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8561         Update.
8562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8563         Update.
8564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8565         Update.
8566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8567         Update.
8568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8569         Update.
8570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8571         Update.
8572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8573         Update.
8574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8575         Update.
8576
8577 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8578
8579         [BZ #2550]
8580         [BZ #2570]
8581         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8582         comparisons to determine direction to adjust input.
8583         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8584         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8585         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8586         Likewise.
8587         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8588         Likewise.
8589         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8590         Likewise.
8591         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8592         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8593         Likewise.
8594         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8595         Likewise.
8596         * math/libm-test.inc (nexttoward_test): Add more tests.
8597
8598 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8599
8600         [BZ #14040]
8601         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8602         in version GLIBC_2.1, not GLIBC_2.0.
8603         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8604         Likewise.
8605
8606 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8607
8608         [BZ #13942]
8609         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8610         (1 - x) * (1 + x).
8611         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8612         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8613         * math/libm-test.inc (acos_test): Add more tests.
8614         (asin_test): Likewise.
8615         * sysdeps/i386/fpu/libm-test-ulps: Update.
8616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8617
8618         [BZ #14034]
8619         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8620         of square root.
8621         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8622         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8623         * math/libm-test.inc (acos_test_tonearest): New function.
8624         (acos_test_towardzero): Likewise.
8625         (acos_test_downward): Likewise.
8626         (acos_test_upward): Likewise.
8627         (asin_test_tonearest): Likewise.
8628         (asin_test_towardzero): Likewise.
8629         (asin_test_downward): Likewise.
8630         (asin_test_upward): Likewise.
8631         (main): Call the new functions.
8632         * sysdeps/i386/fpu/libm-test-ulps: Update.
8633         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8634
8635         [BZ #13884]
8636         [BZ #13924]
8637         * math/e_exp10.c: Include <float.h>.
8638         (__ieee754_exp10): Handle underflow here rather than multiplying
8639         large negative argument by M_LN10.
8640         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8641         of __ieee754_expf.
8642         * math/e_exp10l.c: Include <float.h>.
8643         (__ieee754_exp10l): Handle underflow here rather than multiplying
8644         large negative argument by M_LN10l.
8645         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8646         spurious overflow exception on underflow.
8647
8648 2012-04-29  Marek Polacek  <polacek@redhat.com>
8649
8650         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8651         (__fortify_function): New macro.
8652         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8653         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8654         __extern_always_inline.
8655         * libio/bits/stdio2.h: Likewise.
8656         * libio/bits/stdio.h: Likewise.
8657         * string/string.h: Likewise.
8658         * string/bits/string3.h: Likewise.
8659         * include/stdio.h: Likewise.
8660         * stdlib/bits/stdlib.h: Likewise.
8661         * stdlib/stdlib.h: Likewise.
8662         * rt/bits/mqueue2.h: Likewise.
8663         * rt/mqueue.h: Likewise.
8664         * posix/bits/unistd.h: Likewise.
8665         * posix/unistd.h: Likewise.
8666         * io/bits/poll2.h: Likewise.
8667         * io/bits/fcntl2.h: Likewise.
8668         * io/fcntl.h: Likewise.
8669         * io/sys/poll.h: Likewise.
8670         * misc/bits/syslog.h: Likewise.
8671         * misc/bits/syslog-ldbl.h: Likewise.
8672         * misc/sys/syslog.h: Likewise.
8673         * socket/bits/socket2.h: Likewise.
8674         * socket/sys/socket.h: Likewise.
8675         * debug/tst-chk1.c: Likewise.
8676         * wcsmbs/bits/wchar2.h: Likewise.
8677         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8678         * wcsmbs/wchar.h: Likewise.
8679
8680 2012-04-29  Andreas Jaeger  <aj@suse.de>
8681
8682         * Makerules (tests): Remove enable-check-abi protection.
8683         (check-abi-warn): Remove.
8684         (check-abi-%): Remove check-abi-warn usage.
8685
8686         * configure.in: Remove check-abi configure option.
8687         * configure: Regenerated.
8688         * config.make.in (enable-check-abi): Remove.
8689
8690 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8691
8692         [BZ #14033]
8693         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8694         double functions to double *_finite functions.
8695
8696         [BZ #13941]
8697         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8698         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8699         LDBL_MIN_EXP.
8700         * stdio-common/Makefile (tests): Add tst-sprintf3.
8701         * stdio-common/tst-sprintf3.c: New file.
8702
8703         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8704         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8705
8706 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8707
8708         * conform/conformtest.pl: Remove duplicate typed-constant
8709         handling.
8710
8711 2012-04-28  David S. Miller  <davem@davemloft.net>
8712
8713         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8714         (check-abi-%): Remove AWK script prerequisite and explicit
8715         abilist directory.
8716         (check-abi): Rewrite to just diff the symlist with the abilist.
8717         (config-tls, config-abi-config): Delete, no longer used.
8718         (update-abi-%): Remove AWK script and explicit abilist directory.
8719         (update-abi): Rewrite to simply compare and conditionally copy the
8720         symlist and the sysdep abilist file.  Remove update-abi-config
8721         checks.
8722         * abilist/ld.abilist: Remove.
8723         * abilist/libBrokenLocale.abilist: Remove.
8724         * abilist/libanl.abilist: Remove.
8725         * abilist/libcrypt.abilist: Remove.
8726         * abilist/libdl.abilist: Remove.
8727         * abilist/librt.abilist: Remove.
8728         * abilist/libthread_db.abilist: Remove.
8729         * abilist/libutil.abilist: Remove.
8730         * scripts/extract-abilist.awk: Remove.
8731         * scripts/merge-abilist.awk: Remove.
8732         * sysdeps/generic/libcidn.abilist: New file.
8733         * sysdeps/generic/libnss_compat.abilist: New file.
8734         * sysdeps/generic/libnss_db.abilist: New file.
8735         * sysdeps/generic/libnss_dns.abilist: New file.
8736         * sysdeps/generic/libnss_files.abilist: New file.
8737         * sysdeps/generic/libnss_hesiod.abilist: New file.
8738         * sysdeps/generic/libnss_nis.abilist: New file.
8739         * sysdeps/generic/libnss_nisplus.abilist: New file.
8740         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8741         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8742         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8743         file.
8744         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8745         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8746         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8747         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8748         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8749         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8750         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8751         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8752         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8753         file.
8754         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8755         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8756         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8757         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8758         file.
8759         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8760         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8761         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8762         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8763         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8764         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8765         file.
8766         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8767         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8768         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8769         file.
8770         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8771         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8772         New file.
8773         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8774         New file.
8775         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8776         New file.
8777         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8778         New file.
8779         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8780         New file.
8781         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8782         New file.
8783         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8784         New file.
8785         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8786         New file.
8787         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8788         New file.
8789         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8790         New file.
8791         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8792         New file.
8793         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8794         New file.
8795         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8796         New file.
8797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8798         file.
8799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8800         New file.
8801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8802         New file.
8803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8804         file.
8805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8806         New file.
8807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8808         New file.
8809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8810         file.
8811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8812         New file.
8813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8814         New file.
8815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8816         New file.
8817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8818         New file.
8819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8820         New file.
8821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8822         New file.
8823         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8824         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8825         file.
8826         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8827         New file.
8828         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8829         file.
8830         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8831         file.
8832         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8833         file.
8834         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8835         file.
8836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8837         file.
8838         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8839         New file.
8840         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8841         file.
8842         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8843         file.
8844         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8845         New file.
8846         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8847         file.
8848         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8849         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8850         file.
8851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8852         New file.
8853         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8854         file.
8855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8856         file.
8857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8858         file.
8859         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8860         file.
8861         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8862         file.
8863         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8864         New file.
8865         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8866         file.
8867         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8868         file.
8869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8870         New file.
8871         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8872         file.
8873         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8874         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8875         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8876         file.
8877         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8878         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8879         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8880         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8881         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8882         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8883         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8884         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8885         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8886         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8887         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8888         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8889         file.
8890         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8891         New file.
8892         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8893         file.
8894         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8895         file.
8896         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8897         file.
8898         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8899         file.
8900         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8901         file.
8902         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8903         New file.
8904         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8905         New file.
8906         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8907         file.
8908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8909         New file.
8910         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8911         file.
8912         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8913         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8914         file.
8915         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8916         New file.
8917         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8918         file.
8919         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8920         file.
8921         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8922         file.
8923         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8924         file.
8925         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8926         file.
8927         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8928         New file.
8929         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8930         New file.
8931         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8932         file.
8933         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8934         New file.
8935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8936         file.
8937
8938 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8939
8940         * conform/conformtest.pl: Fix typo in handling typed-constant from
8941         allow-header.
8942
8943 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8944
8945         * README: Cut down references to pre-2.6 Linux kernels and
8946         Linuxthreads.  Update lists of configurations in libc and ports
8947         and sort alphabetically.  Say "or newer" with Linux kernel version
8948         requirements.
8949
8950         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8951
8952 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8953
8954         [BZ #887]
8955         * math/libm-test.inc (logb_test_downward): New test to expose
8956         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8957         rounding mode.
8958
8959 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8960
8961         [BZ #14027]
8962         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8963         to be done.
8964         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8965         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8966
8967 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8968
8969         * sysdeps/unix/i386/brk.S: Remove file.
8970         * sysdeps/unix/i386/dl-brk.S: Likewise.
8971         * sysdeps/unix/i386/pipe.S: Likewise.
8972         * sysdeps/unix/i386/sigreturn.S: Likewise.
8973         * sysdeps/unix/i386/syscall.S: Likewise.
8974         * sysdeps/unix/i386/vfork.S: Likewise.
8975         * sysdeps/unix/i386/wait.S: Likewise.
8976
8977         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8978         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8979
8980         * configure.in (arm*-none*): Do not allow without
8981         --enable-hacker-mode.
8982         (netbsd*): Remove case setting base_os.
8983         (386bsd*): Likewise.
8984         (freebsd*): Likewise.
8985         (bsdi*): Likewise.
8986         (osf*): Likewise.
8987         (sunos*): Likewise.
8988         (ultrix*): Likewise.
8989         (newsos*): Likewise.
8990         (dynix*): Likewise.
8991         (*bsd*): Likewise.
8992         (sysv*): Likewise.
8993         (isc*): Likewise.
8994         (esix*): Likewise.
8995         (sco*): Likewise.
8996         (minix*): Likewise.
8997         (irix4*): Likewise.
8998         (irix6*): Likewise.
8999         (solaris[2-9]*): Likewise.
9000         (none): Likewise.
9001         * configure: Regenerated.
9002
9003 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9004
9005         [BZ #11521]
9006         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9007         overflow or cancellation in calculating denominator.
9008         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9009         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9010         down expression to avoid unexpected rounding in newer GCCs.
9011         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9012
9013 2012-04-26  David S. Miller  <davem@davemloft.net>
9014
9015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9016         long-double compat symbols.
9017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9025         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9026         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9027         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9029         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9030
9031 2012-04-25  David S. Miller  <davem@davemloft.net>
9032
9033         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9034         HWCAP_* values only after the memory barriers have been defined.
9035         (atomic_full_barrier): Define.
9036         (atomic_read_barrier): Define.
9037         (atomic_write_barrier): Define.
9038
9039 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9040
9041         * shlib-versions: Add libgcc_s version information.
9042         * sysdeps/generic/libgcc_s.h: Remove.
9043         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9044         libgcc_s.h.
9045         * sysdeps/gnu/unwind-resume.c: Likewise.
9046         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9047
9048 2012-04-25  David S. Miller  <davem@davemloft.net>
9049
9050         * sysdeps/unix/sparc/brk.S: Delete.
9051         * sysdeps/unix/sparc/dl-brk.S: Delete.
9052         * sysdeps/unix/sparc/pipe.S: Delete.
9053         * sysdeps/unix/sparc/sysdep.S: Delete.
9054         * sysdeps/unix/sparc/sysdep.h: Delete.
9055         * sysdeps/unix/sparc/vfork.S: Delete.
9056         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9057         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9058         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9059         ret_ERRVAL, r0, r1, MOVE): Define.
9060         (JUMPTARGET): Remove.
9061         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9062         sysdeps/unix/sparc/sysdep.h
9063         (ENTRY, END): Remove.
9064         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9065
9066 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9067
9068         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9069         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9070         -DIS_IN_build.
9071
9072         * timezone/README: Update upstream location and email address for
9073         tzcode and tzdata.
9074         * timezone/zdump.c: Update from tzcode 2012b.
9075         * timezone/zic.c: Likewise.
9076
9077         * configure.in (libc_cv_as_needed): Remove test.
9078         * configure: Regenerated.
9079         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9080         conditional definition.
9081         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9082         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9083         * config.make.in (have-as-needed): Remove variable.
9084
9085 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9086             Paul Pluzhnikov  <ppluzhnikov@google.com>
9087
9088         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9089         strings correctly.
9090
9091 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9092
9093         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9094         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9095         * sysdeps/sh/strlen.S: Likewise.
9096
9097 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9098
9099         * sysdeps/unix/fork.S: Remove file.
9100         * sysdeps/unix/i386/fork.S: Likewise.
9101         * sysdeps/unix/sparc/fork.S: Likewise.
9102
9103         * sysdeps/unix/system.c: Remove file.
9104         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9105
9106         * sysdeps/unix/getegid.S: Remove file.
9107         * sysdeps/unix/geteuid.S: Likewise.
9108
9109 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9110
9111         * scripts/check-localplt.awk: New file.
9112         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9113         of diff.
9114         * scripts/data/localplt-generic.data: Add a comment.
9115
9116         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9117         NODE when __dir_mkfile failed.
9118         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9119         Reported by Ludovic Courtès <ludo@gnu.org>.
9120
9121 2012-04-24  Andreas Jaeger  <aj@suse.de>
9122
9123         * Makerules (common-clean): Also remove gen-as-const-headers
9124         files.
9125
9126 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9127
9128         * Makerules (native-compile): Do not change working directory for
9129         build.  Use $(OUTPUT_OPTION) in command.
9130         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9131
9132 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9133
9134         [BZ #13886]
9135         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9136         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9137         * math/libm-test.inc (floor_test): Add more tests.
9138         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9139
9140 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9141
9142         * sysdeps/unix/getdents.c: Remove file.
9143         * sysdeps/unix/sysv/getdents.c: Likewise.
9144         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9145
9146         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9147         sysdeps/unix/mman/syscalls.list.
9148         (mmap): Likewise.
9149         (mprotect): Likewise.
9150         (msync): Likewise.
9151         (munmap): Likewise.
9152         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9153         * sysdeps/unix/mman/syscalls.list: Remove.
9154         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9155
9156         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9157         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9158         * configure: Regenerated.
9159         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9160         $(libgcc_s_suffix).
9161         * config.make.in (libgcc_s_suffix): Remove variable.
9162
9163 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9164
9165         * sysdeps/unix/sysv/gethostname.c: Move to ...
9166         * sysdeps/posix/gethostname.c: ... here.
9167
9168         * sysdeps/unix/execve.S: Remove file.
9169
9170         * sysdeps/unix/_exit.S: Remove file.
9171
9172 2012-04-23  Andreas Jaeger  <aj@suse.de>
9173
9174         [BZ #13739]
9175         * manual/Makefile: Remove make dist support, there's no
9176         need for a stand-alone documentation tar ball.
9177         (TEXI2DVI): Define always, it's not in Makeconfig.
9178         (dist): Removed.
9179         (tar-it): Removed.
9180         (edition): Removed.
9181         (glibc-doc-$(edition).tar): Removed
9182         (%.Z): Removed.
9183         (%.gz): Removed.
9184         (%.uu): Removed.
9185         (ETAGS): Remove, it's in Makeconfig.
9186         (move-if-change): Remove, it's in Makeconfig.
9187
9188 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9189
9190         [BZ #13970]
9191         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9192         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9193         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9194         (strtod_l, strtof_l, strtold_l): Remove __wur.
9195         It is not necessarily an error to ignore strtol's return value.
9196         One can reliably look at the stored endptr to decide whether
9197         the number had valid syntax.
9198
9199 2012-04-21  Andreas Jaeger  <aj@suse.de>
9200
9201         [BZ #13739]
9202         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9203
9204 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9205
9206         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9207         * sysdeps/unix/sysv/Versions: Remove file.
9208
9209 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9210
9211         [BZ #13927]
9212         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9213
9214 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9215
9216         [BZ #7064]
9217         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9218         version from __vm86.
9219
9220 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9221
9222         * sysdeps/unix/common/lxstat.c: Remove file.
9223         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9224
9225         * sysdeps/unix/sysv/Makefile: Remove file.
9226
9227         * sysdeps/unix/sysv/direct.h: Remove file.
9228
9229         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9230         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9231         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9232         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9233         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9234         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9235         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9236
9237         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9238
9239         * sysdeps/unix/xmknod.c: Remove file.
9240         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9241
9242         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9243
9244         * sysdeps/unix/sysv/i386/time.S: Remove file.
9245
9246         * sysdeps/unix/fxstat.c: Remove file.
9247         * sysdeps/unix/xstat.c: Likewise.
9248         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9249
9250         * sysdeps/unix/sysv/sigaction.c: Remove file.
9251
9252         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9253         (sysdep_headers): Remove variable.
9254         [termio.h not in sysdep_headers] (generated): Likewise.
9255         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9256         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9257         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9258         * sysdeps/unix/sysv/tcflow.c: Likewise.
9259         * sysdeps/unix/sysv/tcflush.c: Likewise.
9260         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9261         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9262         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9263         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9264         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9265
9266         * sysdeps/unix/siglist.c: Remove file.
9267
9268         * sysdeps/unix/getppid.S: Remove file.
9269
9270         * sysdeps/unix/mkdir.c: Remove file.
9271         * sysdeps/unix/rmdir.c: Likewise.
9272
9273 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9274
9275         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9276         ERR_MAX value.
9277         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9278         errlist-compat value.
9279
9280 2012-04-18  David S. Miller  <davem@davemloft.net>
9281
9282         * sysdeps/generic/memcopy.h (reg_char): Delete.
9283         * debug/strcat_chk.c: Use char, not reg_char.
9284         * debug/strcpy_chk.c: Likewise.
9285         * debug/strncat_chk.c: Likewise.
9286         * debug/strncpy_chk.c: Likewise.
9287         * string/memchr.c: Likewise.
9288         * string/memrchr.c: Likewise.
9289         * string/rawmemchr.c: Likewise.
9290         * string/strcat.c: Likewise.
9291         * string/strchr.c: Likewise.
9292         * string/strchrnul.c: Likewise.
9293         * string/strcmp.c: Likewise.
9294         * string/strcpy.c: Likewise.
9295         * string/strncat.c: Likewise.
9296         * string/strncmp.c: Likewise.
9297         * string/strncpy.c: Likewise.
9298
9299 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9300
9301         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9302         __builtin_memcopy is called when src and dest ranges are known to not
9303         overlap.
9304
9305 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9306
9307         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9308         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9309         fwd_align_merge macro call.
9310         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9311         bwd_align_merge macro call.
9312         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9313
9314 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9315
9316         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9317         bwd_align_merge macros.
9318         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9319         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9320         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9321
9322 2012-04-18  David S. Miller  <davem@davemloft.net>
9323
9324         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9325
9326 2012-04-18  Andreas Jaeger  <aj@suse.de>
9327
9328         [BZ# 6794]
9329         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9330         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9331         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9332
9333         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9334         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9335         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9336
9337         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9338         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9339         Adjust for changed ldbl-128 files.
9340
9341         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9342         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9343         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9344
9345 2012-04-17  David S. Miller  <davem@davemloft.net>
9346
9347         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9348
9349 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9350
9351         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9352         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9353         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9354         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9355         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9356         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9357
9358 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9359
9360         [BZ #6794]
9361         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9362         * math/libm-test.inc: Add ilogb errno and exception tests.
9363         * math/w_ilogb.c: New file: ilogb wrapper.
9364         * math/w_ilogbf.c: New file: ilogbf wrapper.
9365         * math/w_ilogbl.c: New file: ilogbl wrapper.
9366         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9367         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9368         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9369         exception being thrown with 0.0 as argument.
9370         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9371         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9372         exception being thrown with 0.0 as argument.
9373         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9374         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9375         exception being thrown with 0.0 as argument.
9376         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9377         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9378         exception being thrown with 0.0 as argument.
9379         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9380         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9381         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9382         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9383         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9384         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9385         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9386         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9387         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9388
9389 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9390
9391         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9392         with altivec.
9393
9394 2012-04-16  Marek Polacek  <polacek@redhat.com>
9395
9396         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9397
9398 2012-04-16  Marek Polacek  <polacek@redhat.com>
9399
9400         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9401         operands of fdivp instruction.
9402
9403 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9404
9405         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9406         * elf/tst-auditmod3b.c: Likewise.
9407         * elf/tst-auditmod4b.c: Likewise.
9408         * elf/tst-auditmod5b.c: Likewise.
9409         * elf/tst-auditmod6b.c: Likewise.
9410         * elf/tst-auditmod6c.c: Likewise.
9411         * elf/tst-auditmod7b.c: Likewise.
9412         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9413         * sysdeps/x86_64/preconfigure.in: Likewise.
9414         * sysdeps/x86_64/preconfigure: Regenerated.
9415
9416 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9417
9418         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9419         __ILP32__.
9420
9421 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9422
9423         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9424         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9425
9426 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9427
9428         [BZ #13973]
9429         * locale/iso-639.def: Fix gl language name. Spotted by
9430         Yaron Shahrabani.
9431
9432 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9433
9434         [BZ #2074]
9435         * libio/libio.h (__io_write_fn): Update comment.
9436
9437 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9438
9439         [BZ #2074]
9440         * stdio.texi (Hook Functions): The user provided writer function
9441         is not allowed to return -1.
9442
9443 2012-04-11  David S. Miller  <davem@davemloft.net>
9444
9445         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9446
9447 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9448
9449         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9450         Add a leading slash to rtkaio.
9451
9452 2012-04-11  Jim Meyering  <meyering@redhat.com>
9453
9454         [BZ #11959]
9455         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9456         It is not necessarily an error to ignore fwrite's return
9457         value.  One can reliably use ferror to test for errors after
9458         the fact.
9459
9460 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9461
9462         * bits/types.h (__snseconds_t): New type.
9463         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9464
9465         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9466         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9467         (__SNSECONDS_T_TYPE): Likewise.
9468         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9469         (__SNSECONDS_T_TYPE): Likewise.
9470         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9471         (__SNSECONDS_T_TYPE): Likewise.
9472
9473 2012-04-10  Andreas Jaeger  <aj@suse.de>
9474
9475         [BZ #2636]
9476         * manual/time.texi (Processor Time): Return type of times is
9477         elapsed real time since an arbitrary point in the past.
9478         (CPU Time): Move CLK_TCK from here...
9479         (Processor Time): ...to here.  Correct description.
9480         * manual/conf.texi (Constants for Sysconf): Correct description of
9481         _SC_CLK_TCK.
9482
9483 2012-04-10  David S. Miller  <davem@davemloft.net>
9484
9485         [BZ #13967]
9486         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9487         where the is a gap between DT_REL(A) and DT_JMPREL.
9488
9489 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9490
9491         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9492         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9493         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9494
9495 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9496
9497         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9498         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9499         (dl_main): Handle --inhibit-cache.
9500         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9501         _dl_inhibit_cache.
9502         * elf/dl-load.c (_dl_map_object): Use it.
9503         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9504
9505 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9506
9507         [BZ #13872]
9508         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9509         (__ieee754_powl): Saturate large exponents rather than testing for
9510         overflow of y*log2(x).
9511         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9512         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9513         exceptions.
9514
9515         [BZ #11521]
9516         * math/s_ctan.c: Include <float.h>.
9517         (__ctan): Avoid internal overflow or cancellation in calculating
9518         denominator.
9519         * math/s_ctanf.c: Likewise.
9520         * math/s_ctanl.c: Likewise.
9521         * math/s_ctanh.c: Likewise.
9522         * math/s_ctanhf.c: Likewise.
9523         * math/s_ctanhl.c: Likewise.
9524         * math/libm-test.inc (ctan_test): Add more tests.
9525         (ctanh_test): Likewise.
9526         * sysdeps/i386/fpu/libm-test-ulps: Update.
9527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9528
9529 2012-04-09  Andreas Jaeger  <aj@suse.de>
9530
9531         [BZ #6894]
9532         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9533         is an optional BSD extension.
9534
9535         [BZ #10254]
9536         * manual/stdio.texi (Opening Streams): Document additional fopen
9537         parameters.
9538
9539 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9540
9541         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9542         %eax without telling the compiler.
9543
9544 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9545
9546         [BZ # 13963]
9547         * manual/install.texi: Use sourceware.org.
9548
9549 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9550
9551         [BZ #13873]
9552         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9553         (__ieee754_pow): Generate overflow and underflow using huge*huge
9554         and tiny*tiny rather than just returning constant infinity or zero
9555         for large exponents.
9556         * math/libm-test.inc (pow_test): Require overflow exceptions for
9557         applicable cases of large exponents.
9558
9559         [BZ #706]
9560         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9561         (__ieee754_pow): Use iterative multiplication algorithm only for
9562         integer exponents with absolute value below 1024.  Check for odd
9563         integer exponents when using algorithm for real exponents.
9564         * math/libm-test.inc (pow_test): Add more tests.
9565         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9566
9567 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9568
9569         [BZ #13705]
9570         * math/libm-test.inc (exp_test): Do not allow overflow exception
9571         on underflow test.
9572
9573 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9574
9575         [BZ #13705]
9576         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9577         instead of __kernel_standard_f.
9578
9579 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9580
9581         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9582         * sysdeps/x86_64/memset_chk.S: Likewise.
9583
9584 2012-04-08  Andreas Jaeger  <aj@suse.de>
9585
9586         [BZ #10153]
9587         * manual/startup.texi (Environment Access): Describe return value
9588         for putenv and setenv.
9589
9590         [BZ #6895]
9591         * manual/filesys.texi (Directory Entries): Add description for
9592         DT_LNK.
9593
9594         [BZ #6890]
9595         * manual/filesys.texi (Directory Entries): Clarify that it's file
9596         system not operating system in the description of DT_UNKNOWN.
9597
9598         [BZ #6578]
9599         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9600
9601 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9602
9603         [BZ #6649]
9604         * manual/llio.texi (Opening and Closing Files): Add cross
9605         reference to explain mode argument.
9606
9607 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9608
9609         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9610         * sysdeps/x86_64/memset_chk.S: Likewise.
9611
9612 2012-04-07  David S. Miller  <davem@davemloft.net>
9613
9614         * elf/elf.h (R_SPARC_WDISP10): Define.
9615         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9616         R_SPARC_SIZE32.
9617         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9618         R_SPARC_SIZE64 and R_SPARC_H34.
9619
9620 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9621
9622         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9623         conditions and remove no longer applicable assertion.
9624
9625 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9626
9627         * bits/byteswap.h: Include <features.h>.
9628         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9629         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9630
9631 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9632
9633         * bits/byteswap.h (__bswap_16): Removed.
9634         Include <bits/byteswap-16.h> to get __bswap_16.
9635         * sysdeps/i386/bits/byteswap.h: Likewise.
9636         * sysdeps/s390/bits/byteswap.h: Likewise.
9637         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9638         * bits/byteswap-16.h: New file.
9639         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9640         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9641         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9642         * string/Makefile (headers): Add bits/byteswap-16.h.
9643
9644 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9645
9646         [BZ #13895]
9647         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9648         extra indirection.
9649         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9650         * nss/tst-nss-static.c: New.
9651
9652 2012-04-06  Robert Millan  <rmh@gnu.org>
9653
9654         [BZ #6486]
9655         * manual/llio.texi (File Position Primitive): lseek
9656         refers to WHENCE when it really means OFFSET.
9657
9658 2012-04-06  Andreas Jaeger  <aj@suse.de>
9659
9660         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9661         strncmp declarations.
9662
9663         * abilist/libc.abilist: Add __poll and __ppoll.
9664
9665 2012-04-05  David S. Miller  <davem@davemloft.net>
9666
9667         * scripts/check-local-headers.sh: Accept a host triplet in the
9668         path matched by the exclude regexp.
9669
9670         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9671         definition.
9672         * sysdeps/powerpc/powerpc32/dl-machine.h
9673         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9674         * sysdeps/s390/s390-32/dl-machine.h
9675         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9676         * sysdeps/sparc/sparc32/dl-machine.h
9677         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9678         * sysdeps/sparc/sparc64/dl-machine.h
9679         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9680
9681         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9682         lazy binding.
9683         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9684         undefined symbol errors.
9685
9686         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9687         DT_NEEDED entries.
9688
9689 2012-04-05  Michael Matz  <matz@suse.de>
9690
9691         [BZ #13592]
9692         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9693
9694 2012-04-05  Andreas Jaeger  <aj@suse.de>
9695
9696         [BZ #13908]
9697         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9698         comment.
9699
9700 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9701
9702         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9703         which ROUND is no valid rounding mode.
9704
9705 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9706
9707         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9708         read again.
9709         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9710
9711 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9712
9713         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9714         an exception using FPU order intentionally.
9715
9716 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9717
9718         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9719         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9720         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9721         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9722
9723 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9724
9725         [BZ #12340]
9726         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9727         EINVAL when BUFLEN is too smal.
9728
9729 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9730
9731         [BZ #13553]
9732         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9733         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9734
9735 2012-04-03  Andreas Jaeger  <aj@suse.de>
9736
9737         [BZ #13938]
9738         * manual/setjmp.texi (System V contexts): Fix sentence.
9739
9740         [BZ #13926]
9741         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9742         New macro for this case.
9743         [!__GNUC__] (__bswap_64): New inline function for this case.
9744         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9745         * bits/byteswap.h: Likewise.
9746         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9747         ull, guard with __GLIBC_HAVE_LONG_LONG.
9748
9749         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9750         __GLIBC_HAVE_LONG_LONG.
9751
9752         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9753         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9754
9755 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9756
9757         [BZ #13691]
9758         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9759         inptr and inend, rather than using last_ch.
9760
9761 2012-04-02  David S. Miller  <davem@davemloft.net>
9762
9763         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9764         * stdio-common/printf-parse.h (read_int): Change return type to
9765         'int', return -1 on INT_MAX overflow.
9766         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9767         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9768         overflows INT_MAX.  Check for overflow of in-format-string precision
9769         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9770         SIZE_MAX not INT_MAX for integer overflow test.
9771         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9772         skip the construct in the format string but do not record anything.
9773         * stdio-common/bug22.c: Adjust to test both width/prevision
9774         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9775         explicitly for proper errno values.
9776
9777 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9778
9779         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9780         CHAR_MAX.
9781         * string/test-strcmp.c [! WIDE]: Likewise.
9782         * time/tst-mktime2.c: Likewise for INT_MAX.
9783         * string/test-string.h: #include <sys/param.h> for MIN.
9784
9785         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9786         * sysdeps/i386/init-first.c (init): Likewise.
9787         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9788         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9789         * sysdeps/sh/init-first.c (init): Likewise.
9790
9791 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9792
9793         * po/ru.po: Update from translation team.
9794         * po/vi.po: Likewise.
9795
9796 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9797
9798         * resolv/nss_dns/dns-host.c: Merge copyright years.
9799
9800 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9801
9802         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9803         Optimize memcpy with prefetch if
9804         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9805         src, dst pointers have unequal 16 byte alignments.
9806
9807 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9808
9809         [BZ #13928]
9810         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9811         from a CNAME entry and return the minimum ttl for the query.
9812         (gaih_getanswer_slice): Likewise.
9813
9814 2012-03-30  Jeff Law  <law@redhat.com>
9815
9816         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9817         due to long keys.
9818         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9819         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9820
9821         * resolv/nss_dns/dns-host.c: Update copyright year.
9822
9823 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9824
9825         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9826         requests to save a system call.  Fix check that all bytes are sent.
9827
9828         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9829         comments for sendmmsg.
9830
9831 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9832
9833         [BZ #13691]
9834         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9835         with only 1 character between 0x0041 and 0x01b0.
9836         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9837         * wcsmbs/tst-mbsnrtowcs.c: New file.
9838
9839 2012-03-29  David S. Miller  <davem@davemloft.net>
9840
9841         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9842         small copies by hand.
9843
9844 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9845
9846         [BZ #13761]
9847         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9848         _nss_compat_initgroups_dyn): Fall back to malloc/free
9849         for large group memberships.
9850
9851 2012-03-28  David S. Miller  <davem@davemloft.net>
9852
9853         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9854         that branches into memcpy.
9855         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9856         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9857         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9858         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9859         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9860         bits.
9861         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9862         implementation too.
9863         * sysdeps/sparc/mempcpy.S: New file.
9864
9865         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9866         the IFUNC routine in the libc case.
9867         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9868
9869         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9870         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9871         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9872         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9873         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9874         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9875         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9876         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9877
9878         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9879         loop to 256 bytes instead of 64 bytes and fix test signedness.
9880
9881         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9882         * sysdeps/sparc/sparc32/Makefile: rather than here...
9883         * sysdeps/sparc/sparc64/Makefile: and here.
9884
9885 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9886
9887         * malloc/mallocbug.c: Avoid warnings about unused variables.
9888
9889 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9890
9891         [BZ #13760]
9892         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9893         in the right place. Discard and retry query if response is
9894         larger than input buffer size.
9895
9896 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9897
9898         [BZ #369]
9899         [BZ #2678]
9900         [BZ #3866]
9901         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9902         x for large integer exponent.
9903         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9904         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9905         sign of result as needed afterwards.
9906         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9907         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9908         result for underflowing pow the same as for overflow.
9909         (__kernel_standard_l): Handle powl overflow and underflow here
9910         rather than calling __kernel_standard.
9911         * math/libm-test.inc (pow_test): Add more tests.
9912
9913         [BZ #3868]
9914         [BZ #13879]
9915         [BZ #13910]
9916         [BZ #13911]
9917         [BZ #13912]
9918         [BZ #13913]
9919         [BZ #13915]
9920         [BZ #13916]
9921         [BZ #13917]
9922         [BZ #13918]
9923         [BZ #13919]
9924         [BZ #13920]
9925         [BZ #13921]
9926         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9927         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9928         (__kernel_standard_l): New function.
9929         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9930         __kernel_standard.
9931         * math/w_acosl.c (__acosl): Likewise.
9932         * math/w_asinl.c (__asinl): Likewise.
9933         * math/w_atan2l.c (__atan2l): Likewise.
9934         * math/w_atanhl.c (__atanhl): Likewise.
9935         * math/w_coshl.c (__coshl): Likewise.
9936         * math/w_exp10l.c (__exp10l): Likewise.
9937         * math/w_exp2l.c (__exp2l): Likewise.
9938         * math/w_fmodl.c (__fmodl): Likewise.
9939         * math/w_hypotl.c (__hypotl): Likewise.
9940         * math/w_j0l.c (__j0l, __y0l): Likewise.
9941         * math/w_j1l.c (__j1l, __y1l): Likewise.
9942         * math/w_jnl.c (__jnl, __ynl): Likewise.
9943         * math/w_lgammal.c (__lgammal): Likewise.
9944         * math/w_log10l.c (__log10l): Likewise.
9945         * math/w_log2l.c (__log2l): Likewise.
9946         * math/w_logl.c (__logl): Likewise.
9947         * math/w_powl.c (__powl): Likewise.
9948         * math/w_remainderl.c (__remainderl): Likewise.
9949         * math/w_scalbl.c (sysv_scalbl): Likewise.
9950         * math/w_sinhl.c (__sinhl): Likewise.
9951         * math/w_sqrtl.c (__sqrtl): Likewise.
9952         * math/w_tgammal.c (__tgammal): Likewise.
9953         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9954         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9955         * math/libm-test.inc (acos_test): Add more tests.
9956         (acosh_test): Likewise.
9957         (asin_test): Likewise.
9958         (atanh_test): Likewise.
9959         (exp_test): Likewise.
9960         (exp10_test): Likewise.
9961         (exp2_test): Likewise.
9962         (expm1_test): Likewise.
9963         (lgamma_test): Likewise.
9964         (log_test): Likewise.
9965         (log10_test): Likewise.
9966         (log1p_test): Likewise.
9967         (log2_test): Likewise.
9968         (pow_test): Do not allow some spurious overflow exceptions.
9969         (sqrt_test): Add more tests.
9970         (tgamma_test): Likewise.
9971         (y0_test): Likewise.
9972         (y1_test): Likewise.
9973         (yn_test): Likewise.
9974
9975 2012-03-27  Anton Blanchard  <anton@samba.org>
9976
9977         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9978         MAP_HUGETLB.
9979         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9980         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9981         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9982
9983 2012-03-27  David S. Miller  <davem@davemloft.net>
9984
9985         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9986
9987         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9988         have-as-vis3 check.
9989
9990 2012-03-27  Andreas Jaeger  <aj@suse.de>
9991
9992         * sysdeps/x86_64/elf/configure.in: Moved to ...
9993         * sysdeps/x86_64/configure.in: ... here.
9994         * sysdeps/x86_64/elf/start.S: Moved to ...
9995         * sysdeps/x86_64/start.S: ... here.
9996         * sysdeps/x86_64/elf/configure: Delete.
9997
9998         * sysdeps/x86_64/configure.in: Merge contents from
9999         sysdeps/i386/configure.in (without i686 check).
10000
10001         * sysdeps/i386/elf/Versions: Merge into ...
10002         * sysdeps/i386/Versions: ... this.
10003         * sysdeps/i386/elf/Versions: Delete file.
10004         * sysdeps/i386/elf/start.S: Moved to ...
10005         * sysdeps/i386/start.S: ...here.
10006         * sysdeps/i386/elf/configure.in: Merge into...
10007         * sysdeps/i386/configure.in: ...here.
10008         * sysdeps/i386/elf/configure.in: Delete file.
10009         * sysdeps/i386/elf/configure: Delete file.
10010
10011         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10012         * debug/backtracesyms.c: ... here.
10013         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10014         * debug/backtracesymsfd.c: ... here.
10015         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10016         * sysdeps/generic/ifunc-sel.h: ... here.
10017
10018         * sysdeps/unix/i386/start.c: Delete file.
10019         * sysdeps/unix/sparc/start.c: Delete file.
10020         * sysdeps/unix/start.c: Delete file.
10021
10022         * sysdeps/sh/elf/configure.in: Moved to ...
10023         * sysdeps/sh/configure.in: ... here.
10024         * sysdeps/sh/elf/start.S: Moved to ...
10025         * sysdeps/sh/start.S: ... here.
10026         * sysdeps/sh/elf/configure: Delete file.
10027
10028         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10029         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10030         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10031         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10032         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10033         * sysdeps/powerpc/powerpc64/start.S: here.
10034         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10035         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10036         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10037         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10038         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10039
10040         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10041         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10042         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10043         * sysdeps/powerpc/powerpc32/start.S: ... here.
10044         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10045         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10046         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10047
10048         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10049         * sysdeps/powerpc/ifunc-sel.h: ... here.
10050         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10051         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10052
10053         * sysdeps/sparc/elf/configure.in: Moved to ...
10054         * sysdeps/sparc/configure.in: ... here.
10055         * sysdeps/sparc/elf/configure: Delete file.
10056         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10057         * sysdeps/sparc/sparc32/start.S: ... here.
10058         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10059         * sysdeps/sparc/sparc64/start.S: ... here.
10060         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10061         * sysdeps/sparc/sparc32/Makefile: ... this.
10062         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10063         * sysdeps/sparc/sparc64/Makefile: ... this.
10064
10065         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10066         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10067         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10068         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10069         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10070         * sysdeps/s390/s390-32/setjmp.S: ... here.
10071         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10072         * sysdeps/s390/s390-32/configure.in: ... here.
10073         * sysdeps/s390/s390-32/elf/configure: Delete file.
10074         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10075         * sysdeps/s390/s390-32/start.S: ... here.
10076
10077         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10078         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10079         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10080         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10081         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10082         * sysdeps/s390/s390-64/setjmp.S: ... here.
10083         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10084         * sysdeps/s390/s390-64/configure.in: ... here
10085         * sysdeps/s390/s390-64/elf/configure: Delete file.
10086         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10087         * sysdeps/s390/s390-64/start.S: ... here.
10088         * sysdeps/s390/s390-64/elf/configure: Delete.
10089
10090         * configure.in: Remove support for elf directories in sysdeps.
10091
10092         * configure: Regenerated.
10093         * sysdeps/i386/configure: Regenerated.
10094         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10095         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10096         * sysdeps/s390/s390-32/configure: Regenerated.
10097         * sysdeps/s390/s390-64/configure: Regenerated.
10098         * sysdeps/sh/configure: Regenerated.
10099         * sysdeps/sparc/configure: Regenerated.
10100         * sysdeps/x86_64/configure: Regenerated.
10101
10102 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10103
10104         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10105
10106         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10107         denormal result into account.
10108
10109 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10110
10111         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10112         Reported by Allan McRae <allan@archlinux.org>.
10113
10114 2012-03-23  Jeff Law  <law@redhat.com>
10115
10116         * nss/getnssent.c (__nss_getent): Fix typo.
10117
10118 2012-03-23  David S. Miller  <davem@davemloft.net>
10119
10120         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10121
10122 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10123
10124         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10125         to pad to uint64_t for each field.
10126         (dl_tls_index): Replace unsigned long with uint64_t.
10127
10128 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10129         Paul Pluzhnikov  <ppluzhnikov@google.com>
10130
10131         [BZ #6528]
10132         * grp/Makefile (otherlibs): Don't set it.
10133         * inet/Makefile (otherlibs): Likewise.
10134         * login/Makefile (otherlibs): Likewise.
10135         * nscd/Makefile (otherlibs): Likewise.
10136         * posix/Makefile (otherlibs): Likewise.
10137         * pwd/Makefile (otherlibs): Likewise.
10138         * rt/Makefile (otherlibs): Likewise.
10139         * sunrpc/Makefile (otherlibs): Likewise.
10140         * nss/Makefile (otherlibs): Likewise.
10141         Add libnss_files to routines and static-only-routines.
10142         ($(objpfx)getent): Remove rule.
10143         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10144         static-only-routines.
10145
10146 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10147
10148         [BZ #13892]
10149         * math/s_cexp.c: Include <float.h>.
10150         (__cexp): Handle exp result overflowing not necessarily
10151         overflowing both real and imaginary parts of result.
10152         * math/s_cexpf.c: Likewise.
10153         * math/s_cexpl.c: Likewise.
10154         * math/libm-test.inc (cexp_test): Add more tests.
10155         * sysdeps/i386/fpu/libm-test-ulps: Update.
10156         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10157
10158 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10159
10160         * include/link.h (ELFW): New macro.
10161         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10162         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10163
10164 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10165
10166         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10167         with uint64_t.
10168
10169 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10170
10171         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10172         declaration.
10173         (struct La_x32_retval): Likewise.
10174
10175 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10176
10177         * sysdeps/x86_64/preconfigure.in: New file.
10178         * sysdeps/x86_64/preconfigure: New generated file.
10179
10180 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10181
10182         [BZ #13824]
10183         * math/e_exp2l.c: Include <float.h>.
10184         (__ieee754_exp2l): Handle overflow and underflow cases
10185         separately.  Only pass fractional part of argument to
10186         __ieee754_expl.
10187         * math/libm-test.inc (exp2_test): Add more tests.
10188
10189         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10190         negating x to take absolute value.
10191         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10192         Likewise.
10193         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10194         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10195         Likewise.
10196         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10197         computing low part if x was negated.
10198         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10199
10200 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10201
10202         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10203         la_x32_gnu_pltexit.
10204         (pltexit): Cast int_retval to ptrdiff_t.
10205         * elf/tst-auditmod3b.c: Likewise.
10206         * elf/tst-auditmod4b.c: Likewise.
10207         * elf/tst-auditmod5b.c: Likewise.
10208         * elf/tst-auditmod6b.c: Likewise.
10209         * elf/tst-auditmod6c.c: Likewise.
10210         * elf/tst-auditmod7b.c: Likewise.
10211
10212         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10213         and x32_gnu_pltexit.
10214
10215         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10216         __ELF_NATIVE_CLASS.
10217         (La_x32_regs): New macro.
10218         (La_x32_retval): Likewise.
10219         (la_x32_gnu_pltenter): New function prototype.
10220         (la_x32_gnu_pltexit): Likewise.
10221
10222 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10223
10224         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10225         exponent.
10226
10227         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10228
10229         * configure.in (libc_cv_cc_nofma): Check for option to disable
10230         generation of FMA instructions.
10231         * configure: Regenerate.
10232         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10233         * sysdeps/ieee754/dbl-64/Makefile: New file.
10234         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10235         Remove brandred-fma4.
10236         (CFLAGS-brandred-fma4.c): Remove.
10237         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10238         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10239         define.
10240         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10241         define.
10242
10243 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10244
10245         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10246         LLONG_MAX != LONG_MAX.
10247         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10248         (_fitoa_word): Likewise.
10249         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10250         LLONG_MAX != LONG_MAX.
10251         * stdio-common/_itowa.h: Include <_itoa.h>.
10252         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10253         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10254         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10255         only if not defined.
10256         (_ITOA_WORD_TYPE): Likewise.
10257         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10258         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10259
10260 2012-03-21  David S. Miller  <davem@davemloft.net>
10261
10262         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10263
10264 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10265
10266         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10267         of x86_64 when setting libc_cv_slibdir, libdir and
10268         libc_cv_localedir.
10269         * sysdeps/unix/sysv/linux/configure: Regenerated.
10270
10271 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10272
10273         * manual/lang.texi (Old Varargs): Remove section.
10274         (How Variadic): Update menu.
10275         (va_start): Do not mention varargs.h.
10276
10277 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10278             Joseph Myers  <joseph@codesourcery.com>
10279
10280         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10281         link test.
10282         * configure: Regenerated.
10283
10284 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10285
10286         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10287         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10288         conformtest.pl
10289
10290 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10291
10292         * NOTES: Remove.
10293         * Makefile (files-for-dist): Remove NOTES.
10294         (NOTES): Remove rule.
10295         * README: Don't refer to NOTES.
10296         * manual/creature.texi: Don't include macros.texi.
10297         * manual/intro.texi (creature.texi): Remove comment referring to
10298         NOTES.
10299
10300         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10301         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10302         * configure: Regenerated.
10303         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10304         LIBC_TRY_CC_OPTION.
10305         (libc_cv_as_i686): Likewise.
10306         (libc_cv_cc_avx): Likewise.
10307         (libc_cv_cc_sse2avx): Likewise.
10308         (libc_cv_cc_fma4): Likewise.
10309         (libc_cv_cc_novzeroupper): Likewise.
10310         * sysdeps/i386/configure: Regenerated.
10311
10312         [BZ #13883]
10313         * sysdeps/i386/fpu/s_cexp.S: Remove.
10314         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10315         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10316         * math/libm-test.inc (cexp_test): Add more tests.
10317         * sysdeps/i386/fpu/libm-test-ulps: Update.
10318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10319
10320 2012-03-21  Allan McRae  <allan@archlinux.org>
10321
10322         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10323
10324 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10325
10326         [BZ #13871]
10327         * math/w_exp2.c: Do not include <float.h>.
10328         (o_threshold, u_threshold): Remove.
10329         (__exp2): Calculate result before checking finiteness and calling
10330         __kernel_standard.
10331         * math/w_exp2f.c: Likewise.
10332         * math/w_exp2l.c: Likewise.
10333         * math/libm-test.inc (exp2_test): Require overflow exception for
10334         1e6 input.
10335
10336         [BZ #3866]
10337         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10338         range of signed 64-bit integers before using fistpll.  Remove
10339         checks for whether integers fit in mantissa bits.
10340         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10341         the range of signed 32-bit integers before using fistpl.  Remove
10342         checks for whether integers fit in mantissa bits.
10343         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10344         (__ieee754_powl): Test for y outside the range of signed 64-bit
10345         integers before using fistpll.  Reduce 64-bit values to 63-bit
10346         ones as needed.
10347         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10348         divide-by-zero is raised for zero to large negative powers.
10349         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10350         (__ieee754_powl): Test for y outside the range of signed 64-bit
10351         integers before using fistpll.  Reduce 64-bit values to 63-bit
10352         ones as needed.
10353         * math/libm-test.inc (pow_test): Add more tests.
10354
10355 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10356
10357         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10358         <stdio-common/_itoa.h>.
10359         * debug/segfault.c: Likewise.
10360         * elf/dl-cache.c: Likewise.
10361         * elf/dl-minimal.c: Likewise.
10362         * elf/dl-misc.c: Likewise.
10363         * elf/dl-sysdep.c: Likewise.
10364         * elf/dl-version.c: Likewise.
10365         * elf/rtld.c: Likewise.
10366         * hurd/hurdsock.c: Likewise.
10367         * hurd/lookup-retry.c: Likewise.
10368         * malloc/malloc.c: Likewise.
10369         * malloc/mtrace.c: Likewise.
10370         * nscd/nscd_getgr_r.c: Likewise.
10371         * nscd/nscd_getpw_r.c: Likewise.
10372         * nscd/nscd_getserv_r.c: Likewise.
10373         * posix/getopt_init.c: Likewise.
10374         * posix/wordexp.c: Likewise.
10375         * stdio-common/_itoa.c: Likewise.
10376         * stdio-common/printf_fphex.c: Likewise.
10377         * stdio-common/vfprintf.c: Likewise.
10378         * string/_strerror.c: Likewise.
10379         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10380         * sysdeps/i386/i686/hp-timing.h: Likewise.
10381         * sysdeps/mach/_strerror.c: Likewise.
10382         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10383         * sysdeps/mach/hurd/sethostid.c: Likewise.
10384         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10385         * sysdeps/mach/xpg-strerror.c: Likewise.
10386         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10387         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10388         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10389         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10390         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10391         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10392         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10393         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10394         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10395         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10396         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10397         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10398         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10399         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10400         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10401         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10402         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10403         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10404         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10405         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10406         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10407
10408         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10409
10410         * stdio-common/_itoa.h: Moved to ...
10411         * sysdeps/generic/_itoa.h: Here.
10412
10413         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10414
10415         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10416         instead of "_itoa.h" and "_itowa.h".
10417         * stdio-common/vfprintf.: Likewise.
10418
10419 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10420
10421         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10422         <bits/wordsize.h>.
10423         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10424         (__signbit): Likwise.
10425         (llrintf): Likwise.
10426         (llrint): Likwise.
10427
10428 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10429
10430         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10431         __WORDSIZE != 64.
10432
10433 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10434
10435         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10436         OVERFLOW_EXCEPTION_OK.
10437         * math/libm-test.inc ("Philosophy"): Update comment about
10438         exception testing.
10439         (OVERFLOW_EXCEPTION): Define.
10440         (OVERFLOW_EXCEPTION_OK): Likewise.
10441         (INVALID_EXCEPTION_OK): Renumber.
10442         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10443         (IGNORE_ZERO_INF_SIGN): Likewise.
10444         (test_exceptions): Handle FE_OVERFLOW.
10445         (exp10_test): Expect overflow exceptions.
10446         (exp2_test): Likewise.
10447         (expm1_test): Likewise.
10448         (nextafter_test): Likewise.
10449         (pow_test): Likewise.
10450         (scalbn_test): Likewise.
10451         (scalbln_test): Likewise.
10452
10453 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10454
10455         * sysdeps/x86_64/bits/atomic.h
10456         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10457         64bit integer.
10458         (atomic_exchange_acq): Likewise.
10459         (__arch_exchange_and_add_body): Likewise.
10460         (__arch_add_body): Likewise.
10461         (atomic_add_negative): Likewise.
10462         (atomic_add_zero): Likewise.
10463
10464 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10465
10466         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10467         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10468
10469 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10470
10471         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10472         Check __x86_64__ instead of __WORDSIZE.
10473
10474 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10475
10476         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10477
10478 2012-03-19  David S. Miller  <davem@davemloft.net>
10479
10480         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10481
10482         * sysdeps/sparc/fpu/fenv_private.h: New file.
10483         * sysdeps/sparc/fpu/math_private.h: Use it.
10484         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10485         Remove.
10486         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10487         (libc_feholdexcept_setroundl): Remove.
10488         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10489         Remove.
10490         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10491         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10492
10493 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10494
10495         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10496         int64_t instead of long int.
10497         (INSERT_WORDS64): Likwise.
10498
10499 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10500
10501         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10502         _Unwind_GetCFA return to _Unwind_Ptr first.
10503
10504 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10505
10506         [BZ #13629]
10507         * math/s_clog.c: Include <float.h>.
10508         (__clog): Scale large or subnormal inputs.
10509         * math/s_clogf.c: Likewise.
10510         * math/s_clogl.c: Likewise.
10511         * math/s_clog10.c: Include <float.h>.
10512         (M_LOG10_2): Define.
10513         (__clog10): Scale large or subnormal inputs.
10514         * math/s_clog10f.c: Likewise.
10515         * math/s_clog10l.c: Likewise.
10516         * math/libm-test.inc (clog_test): Add more tests.
10517         (clog10_test): Likewise.
10518         * sysdeps/i386/fpu/libm-test-ulps: Update.
10519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10520
10521         [BZ #11451]
10522         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10523         x and y.
10524         * math/libm-test.inc (atan2_test): Add another test.
10525
10526         * Makerules (common-objdir-compile): Remove.
10527         * sysdeps/unix/Makefile (config-generated): Do not add
10528         $(unix-generated) to variable.
10529         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10530         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10531         Remove rule.
10532         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10533         Likewise.
10534         [generic bits/local_lim.h] (before-compile): Do not append to
10535         variable.
10536         [generic bits/local_lim.h] (common-generated): Likewise.
10537         [generic sys/param.h] (before-compile): Do not append to variable.
10538         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10539         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10540         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10541         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10542         include.
10543         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10544         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10545         [generic sys/param.h] ($(addprefix
10546         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10547         [generic sys/param.h] (common-generated): Do not append to
10548         variable.
10549         [generic sys/param.h] (sysdep_headers): Likewise.
10550         [generic bits/errno.h] (before-compile): Do not append to
10551         variable.
10552         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10553         rule.
10554         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10555         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10556         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10557         [generic bits/errno.h] (common-generated): Do not append to
10558         variable.
10559         [generic bits/ioctls.h] (before-compile): Do not append to
10560         variable.
10561         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10562         rule.
10563         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10564         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10565         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10566         rule.
10567         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10568         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10569         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10570         [generic bits/ioctls.h] (common-generated): Do not append to
10571         variable.
10572         [generic sys/syscall.h] (syscall.h): Remove variable.
10573         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10574         rule.
10575         [generic sys/syscall.h] (before-compile): Do not append to
10576         variable.
10577         [generic sys/syscall.h] (common-generated): Likewise.
10578         * sysdeps/unix/errnos-tmpl.c: Remove file.
10579         * sysdeps/unix/errnos.awk: Likewise.
10580         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10581         * sysdeps/unix/ioctls.awk: Likewise.
10582         * sysdeps/unix/mk-local_lim.c: Likewise.
10583         * sysdeps/unix/snarf-ioctls: Likewise.
10584
10585 2012-03-19  Richard Henderson  <rth@twiddle.net>
10586
10587         * sysdeps/i386/fpu/fenv_private.h: New file.
10588         * sysdeps/i386/fpu/math_private.h: Use it.
10589         (math_opt_barrier, math_force_eval): Remove.
10590         (libc_feholdexcept_setround_53bit): Remove.
10591         (libc_feupdateenv_53bit): Remove.
10592         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10593         (math_opt_barrier, math_force_eval): Remove.
10594         (libc_feholdexcept): Remove.
10595         (libc_feholdexcept_setround): Remove.
10596         (libc_fetestexcept, libc_fesetenv): Remove.
10597         (libc_feupdateenv_test): Remove.
10598         (libc_feupdateenv, libc_feholdsetround): Remove.
10599         (libc_feresetround): Remove.
10600
10601         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10602         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10603
10604         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10605         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10606         (libc_feupdateenv_testl): New.
10607         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10608         (libc_feupdateenv_testf): New.
10609         (libc_feupdateenv): Use libc_feupdateenv_test.
10610         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10611         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10612
10613         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10614         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10615         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10616         (libc_feresetround_noex): New.
10617         (libc_feresetround_noexf): New.
10618         (libc_feresetround_noexl): New.
10619         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10620         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10621         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10622         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10623         SET_RESTORE_ROUND.
10624         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10625         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10626         (__cos): Likewise.
10627         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10628         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10629         SET_RESTORE_ROUND_NOEX.
10630         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10631         SET_RESTORE_ROUND_NOEXF.
10632         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10633         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10634         (libc_feholdsetroundf): New.
10635         (libc_feresetround, libc_feresetroundf): New.
10636
10637         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10638         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10639         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10640
10641         * sysdeps/generic/math_private.h: Include <fenv.h>.
10642         (default_libc_feholdexcept): New.
10643         (default_libc_feholdexcept_setround): New.
10644         (default_libc_fesetenv, default_libc_feupdateenv): New.
10645         (libc_feholdexcept): Only define if undefined.
10646         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10647         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10648         (libc_feholdexcept_setroundl): Likewise.
10649         (libc_feholdexcept_setround_53bit): Likewise.
10650         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10651         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10652         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10653         (libc_feupdateenv_53bit): Likewise.
10654         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10655         (libc_feholdexcept): Convert from macro to inline function.
10656         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10657         (libc_fesetenv, libc_feupdateenv): Likewise.
10658
10659         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10660         not previously defined.
10661         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10662         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10663         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10664         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10665         * sysdeps/ieee754/flt-32/math_private.h: New file.
10666         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10667         math_private.h below SET_FLOAT_WORD.
10668         (__isnan, __isinf_ns, __finite): Remove.
10669         (__isnanf, __isinf_nsf, __finitef): Remove.
10670
10671 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10672
10673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10674
10675 2012-03-17  David S. Miller  <davem@davemloft.net>
10676
10677         [BZ #6471]
10678         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10679         for 2.16.
10680
10681 2012-03-16  David S. Miller  <davem@davemloft.net>
10682
10683         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10684         warnings.
10685
10686         [BZ #6471]
10687         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10688         properly.
10689         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10690         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10691         sysdep_routines when subdir is sysvipc.
10692         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10693         __getshmlba helper.
10694
10695         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10696
10697 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10698
10699         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10700         [__LP64__].
10701
10702 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10703
10704         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10705         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10706         (__lround): Renamed to ...
10707         (__llround): This.  Replace long int with long long int.
10708         Define lround functions as aliases of llround functions.
10709         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10710
10711 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10712
10713         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10714         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10715         adresses to uintptr_t.  Replace "long int" and "unsigned long
10716         int" with "greg_t" on va_arg.
10717
10718 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10719
10720         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10721         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10722
10723         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10724         Move e_machine check before EI_CLASS check.  Handle x32
10725         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10726         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10727         SKIP_EM_IA_64 and include
10728         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10729
10730         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10731         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10732         (add_system_dir): New macro.
10733
10734         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10735         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10736
10737 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10738
10739         [BZ #2551]
10740         [BZ #2552]
10741         [BZ #2553]
10742         [BZ #2554]
10743         [BZ #2562]
10744         [BZ #2563]
10745         [BZ #2565]
10746         [BZ #2566]
10747         [BZ #2576]
10748         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10749         (y0): Likewise.
10750         * math/w_j0f.c (j0f): Likewise.
10751         (y0f): Likewise.
10752         * math/w_j0l.c (__j0l): Likewise.
10753         (__y0l): Likewise.
10754         * math/w_j1.c (j1): Likewise.
10755         (y1): Likewise.
10756         * math/w_j1f.c (j1f): Likewise.
10757         (y1f): Likewise.
10758         * math/w_j1l.c (__j1l): Likewise.
10759         (__y1l): Likewise.
10760         * math/w_jn.c (jn): Likewise.
10761         (yn): Likewise.
10762         * math/w_jnf.c (jnf): Likewise.
10763         (ynf): Likewise.
10764         * math/w_jnl.c (__jnl): Likewise.
10765         (__ynl): Likewise.
10766         * math/libm-test.inc (j0_test): Add more tests.
10767         (j1_test): Likewise.
10768         (jn_test): Likewise.  Add trailing semicolon to existing test.
10769         (y0_test): Likewise.
10770         (y1_test): Likewise.
10771         * sysdeps/i386/fpu/libm-test-ulps: Update.
10772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10773
10774         [BZ #13851]
10775         [BZ #13854]
10776         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10777         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10778         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10779         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10780         (__tanl): Set errno for infinite argument.
10781         * sysdeps/i386/fpu/mptan.c: Remove.
10782         * sysdeps/i386/fpu/s_tan.S: Likewise.
10783         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10784         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10785         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10786         * math/libm-test.inc (tan_test): Add more tests and enable more
10787         tests for double and long double.
10788         * sysdeps/i386/fpu/libm-test-ulps: Update.
10789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10790
10791 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10792
10793         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10794         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10795
10796 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10797
10798         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10799         * configure.in: Use it for both main tree and add-ons.
10800         * configure: Regenerated.
10801
10802 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10803
10804         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10805
10806 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10807
10808         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10809         in comment.
10810
10811         [BZ #13851]
10812         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10813         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10814         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10815         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10816         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10817         infinite argument.
10818         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10819         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10820         != 0 for prec == 2.
10821         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10822         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10823         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10824         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10825         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10826         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10827         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10828         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10829         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10830         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10831         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10832         * math/libm-test.inc (cos_test): Add more tests and enable more
10833         tests for long double.
10834         (sin_test): Likewise.
10835         (sincos_test): Likewise.
10836         * sysdeps/i386/fpu/libm-test-ulps: Update.
10837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10838
10839 2012-03-16  David S. Miller  <davem@davemloft.net>
10840
10841         * sysdeps/sparc/fpu/math_private.h: New file.
10842
10843 2012-03-15  David S. Miller  <davem@davemloft.net>
10844
10845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10846         file.
10847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10849         file.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10855         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10856         sysdep routines.
10857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10858
10859         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10860         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10861
10862         * sysdeps/sparc/sparc-ifunc.h: New file.
10863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10864         sparc-ifunc.h
10865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10867         Likewise.
10868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10869         Likewise.
10870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10874         Likewise.
10875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10880         Likewise.
10881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10882         Likewise.
10883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10887         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10888         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10889         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10890         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10891         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10892         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10893         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10894         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10895         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10896         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10897         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10898         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10899         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10900         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10901         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10902         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10903         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10904         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10905         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10906         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10907
10908 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10909
10910         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10911         scaling.
10912         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10913
10914 2012-03-15  Andreas Jaeger  <aj@suse.de>
10915
10916         [BZ #13852]
10917         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10918         ieee754/flt-32 implementation for sin, cos and sincos.
10919         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10920         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10921         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10922         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10923         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10924         ieee754/flt-32 implementation for tan.
10925
10926         * math/libm-test.inc (cos_test): Enable some large input tests for
10927         float as well
10928         (sin_test): Likewise.
10929         (sincos_test): Likewise.
10930         (tan_test): Add tests for large input.
10931
10932         * sysdeps/i386/fpu/libm-test-ulps: Update.
10933
10934 2012-03-15  Andreas Jaeger  <aj@suse.de>
10935
10936         [BZ #13658]
10937         * math/libm-test.inc (cos_test): Add more test cases.
10938         (sin_test): Likewise.
10939         (sincos_test): Likewise.
10940
10941 2012-03-15  Andreas Jaeger  <aj@suse.de>
10942
10943         [BZ #13837]
10944         * math/libm-test.inc (cos_test): Add a test case for large input
10945         value.
10946         (sin_test): Likewise.
10947         (sincos_test): Likewise.
10948
10949 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10950         Joseph Myers  <joseph@codesourcery.com>
10951
10952         [BZ #13658]
10953         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10954         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10955         * sysdeps/i386/fpu/branred.c: Likewise.
10956         * sysdeps/i386/fpu/dosincos.c: Likewise.
10957         * sysdeps/i386/fpu/mpa.c: Likewise.
10958         * sysdeps/i386/fpu/s_cos.S: Likewise.
10959         * sysdeps/i386/fpu/s_sin.S: Likewise.
10960         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10961         * sysdeps/i386/fpu/sincos32.c: Likewise.
10962
10963         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10964         Define.
10965         (libc_feupdateenv_53bit): Define.
10966         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10967         Define.
10968         (libc_feupdateenv_53bit): Define.
10969
10970         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10971         53 bit (without extend i386 double precision).
10972
10973         * math/libm-test.inc (sincos_test): Add tests for large input.
10974         (sin): Likewise.
10975         (cos): Likewise.
10976
10977         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10978
10979 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10980
10981         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10982
10983 2012-03-15  David S. Miller  <davem@davemloft.net>
10984
10985         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10986         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10987         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10988         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10998         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11001         file.
11002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11004         file.
11005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11007         file.
11008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11010         file.
11011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11012         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11013         fmin/fmax sysdep routines.
11014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11015
11016 2012-03-14  David S. Miller  <davem@davemloft.net>
11017
11018         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11019         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11020         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11021         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11022         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11023         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11024         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11025         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11026         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11027         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11028         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11029         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11030         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11031         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11032         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11033         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11034         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11035         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11036         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11037         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11038         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11039         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11040         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11041         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11042         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11043         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11044         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11045         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11046         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11047         routines.
11048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11049         file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11052         file.
11053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11055         file.
11056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11058         file.
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11061         file.
11062         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11064         file.
11065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11066         file.
11067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11068         file.
11069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11070         file.
11071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11072         New file.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11074         file.
11075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11076         file.
11077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11079         file.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11082         file.
11083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11085         file.
11086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11088         VIS3 routines.
11089
11090         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11091         New file.
11092
11093         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11094
11095         * sysdeps/sparc/configure.in: New file.
11096         * sysdeps/sparc/configure: Generate.
11097         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11098         * configure: Regenerate.
11099         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11100         * config.make.in (have-as-vis3): New.
11101         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11102         available use -Av9d instead of -Av9a.
11103         * sysdeps/sparc/sparc64/Makefile: Likewise.
11104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11106         New file.
11107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11108         file.
11109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11110         New file.
11111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11112         file.
11113         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11114         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11115         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11116         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11117         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11118
11119         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11120         fzeros/fnegs to load 0x80000000 into a float register instead of
11121         using the stack.
11122         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11123
11124 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11125
11126         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11127         bits/syscall.h.
11128         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11129         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11130         ($(inst_includedir)/bits/syscall.h): Remove rule.
11131         ($(objpfx)bits/syscall.d): Include instead of
11132         $(objpfx)syscall-list.d.
11133         (generated): Change syscall-list.h and syscall-list.d to
11134         bits/syscall.h and bits/syscall.d.
11135
11136 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11137
11138         [BZ #13846]
11139         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11140
11141 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11142
11143         [BZ #13841]
11144         * math/s_csqrt.c: Include <float.h>.
11145         (__csqrt): Scale large or subnormal inputs.
11146         * math/s_csqrtf.c: Likewise.
11147         * math/s_csqrtl.c: Likewise.
11148         * math/libm-test.inc (csqrt_test): Add more tests.
11149         * sysdeps/i386/fpu/libm-test-ulps: Update.
11150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11151
11152         [BZ #13840]
11153         * math/libm-test.inc (hypot_test): Add more tests.
11154
11155 2012-03-13  David S. Miller  <davem@davemloft.net>
11156
11157         [BZ #13840]
11158         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11159         double-precision for the calculation instead of scaling.
11160
11161 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11162
11163         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11164         manipulate bits before adding and subtracting TWO52[sx].
11165         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11166         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11167         Likewise.
11168         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11169
11170 2012-03-13  David S. Miller  <davem@davemloft.net>
11171
11172         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11173         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11174         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11175         rtld-global-offsets.h
11176         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11177
11178         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11179         large parameters.
11180
11181         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11182
11183         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11184         'err' in the ifdef scope in which it is actually used.
11185
11186         * nss/nss_db/db-init.c: Include string.h
11187
11188 2012-03-12  David S. Miller  <davem@davemloft.net>
11189
11190         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11191         masking out of the most significant byte of random value used.
11192         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11193         Fix coding style in previous change.
11194
11195         * sysdeps/unix/sysv/linux/kernel-features.h
11196         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11197         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11198         expression.
11199         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11200         later.
11201
11202 2012-03-11  David S. Miller  <davem@davemloft.net>
11203
11204         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11205         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11206         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11207         for 'resultvar' otherwise things get truncated on 64-bit.
11208
11209         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11210         Fix masking out of the most significant byte of random value used.
11211
11212         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11213
11214 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11215
11216         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11217
11218 2012-03-09  David S. Miller  <davem@davemloft.net>
11219
11220         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11221         variables with appropriate CPP guards.
11222         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11223         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11224         on resulting framesize and the management of the outregs buffer for pltexit.
11225         Preserve floating point return values across _dl_call_pltexit call.
11226         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11227         framesize and the management of the outregs buffer for pltexit.
11228         Preserve floating point return values across _dl_call_pltexit
11229         call.
11230         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11231         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11232         (print_exit): Fix format string for return register value.
11233
11234 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11235
11236         * sunrpc/Makefile (others): Add rpcgen.
11237         ($(objpfx)rpcgen): Remove special build rule and dependency on
11238         libc.
11239         * sunrpc/rpcgen.c: New file.
11240
11241 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         [BZ #13673]
11244         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11245         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11246         * sysdeps/i386/crti.S: Likewise.
11247         * sysdeps/i386/crtn.S: Likewise.
11248         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11249         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11250         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11251         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11252         * sysdeps/sh/crti.S: Likewise.
11253         * sysdeps/sh/crtn.S: Likewise.
11254         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11255
11256         [BZ #13673]
11257         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11258         with URL.
11259         * locale/programs/locfile-kw.gperf: Likewise.
11260         * locale/programs/charmap-kw.h: Regenerated.
11261         * locale/programs/locfile-kw.h: Likewise.
11262
11263         [BZ #13673]
11264         * intl/plural.y: Replace FSF snail mail address with URL.
11265         * intl/plural.c: Regenerated.
11266
11267 2012-03-09  Richard Henderson  <rth@twiddle.net>
11268
11269         * include/math_private.h: Remove file.
11270         * math/math_private.h: Move file ...
11271         * sysdeps/generic/math_private.h: ... here.
11272
11273         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11274         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11275         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11276
11277         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11278         and <math_private.h>.
11279         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11280         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11281         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11282         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11283         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11355         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11356         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11357         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11358         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11359         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11360         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11361         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11362         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11363         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11366         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11367         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11368         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11370         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11371         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11372         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11376         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11377         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11378         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11379         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11380         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11381         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11382         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11383         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11384         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11385         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11386         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11387         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11388         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11389         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11390         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11391         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11392         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11393         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11394         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11395         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11396         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11397         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11398         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11399         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11401         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11402         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11403         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11404         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11405         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11406         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11407         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11408         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11409         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11410         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11411         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11412         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11413         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11414         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11415         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11416         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11417         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11418         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11419         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11420         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11421         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11422         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11423         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11424         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11425         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11426         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11427         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11428         * sysdeps/ieee754/k_standard.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11544         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11548         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11549         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11551         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11556         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11561         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11576         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11577         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11578         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11579         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11589         * sysdeps/ieee754/s_lib_version.c: Likewise.
11590         * sysdeps/ieee754/s_matherr.c: Likewise.
11591         * sysdeps/ieee754/s_signgam.c: Likewise.
11592         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11593         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11594         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11595         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11596         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11597         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11598         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11599         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11600         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11601         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11602         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11603         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11604         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11605         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11606         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11607         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11608         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11609         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11610         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11611         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11612         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11613
11614 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11615
11616         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11617         * sunrpc/rpc_main.c: Likewise.
11618         * sunrpc/rpc_svcout.c: Likewise.
11619
11620 2012-03-09  David S. Miller  <davem@davemloft.net>
11621
11622         * include/math_private.h: New file.
11623
11624 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11625
11626         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11627         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11628         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11629         from <bits/socket_type.h>.
11630         (enum __socket_type): Don't define here.
11631         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11632         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11633         bits/socket_type.h.
11634
11635         [BZ #13566]
11636         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11637         checking __USE_GNU.
11638
11639         * Makerules ($(inst_includedir)/%.h): New rule.
11640         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11641         (install-others): Remove variable setting.
11642         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11643
11644 2012-03-08  Richard Henderson  <rth@twiddle.net>
11645
11646         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11647         from macro to inline function; merge with the
11648         !__LIBC_INTERNAL_MATH_INLINES version.
11649         (__ieee754_sqrtf): Likewise.
11650
11651         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11652         to inline function.
11653         (__rintf, __floor, __floorf): Likewise.
11654
11655         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11656         macro to inline function.
11657         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11658
11659         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11660         not <math/math_private.h>.
11661
11662 2012-03-08  David S. Miller  <davem@davemloft.net>
11663
11664         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11665         copyright year.
11666         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11667
11668 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11669
11670         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11671         normalization.
11672         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11673         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11674
11675 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11676
11677         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11678         be defined individually, they must be defined as a block.  Define
11679         S for printing a string instead of hidint the different by using a
11680         macro for adding the 'l'.
11681         * stdio-common/tst-fphex-wide.c: Adjust.
11682
11683 2012-03-07  Marek Polacek  <polacek@redhat.com>
11684
11685         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11686
11687 2012-03-08  Marek Polacek  <polacek@redhat.com>
11688
11689         [BZ #13806]
11690         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11691         * stdio-common/tst-fphex.c: Define a few macros to make the
11692         test reusable.  Use them.
11693         * stdio-common/tst-fphex-wide.c: New file.
11694
11695 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11696
11697         [BZ #6911]
11698         * manual/macros.texi (gnusystems): New macro.
11699         (nongnusystems): Likewise.
11700         (gnulinuxhurdsystems): Likewise.
11701         (gnuhurdsystems): Likewise..
11702         (gnulinuxsystems): Likewise.
11703         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11704         variants of the GNU system, not "GNU system".
11705         * manual/conf.texi: Likewise.
11706         * manual/errno.texi: Likewise.  Update example of errno macro
11707         expansion.
11708         * manual/filesys.texi: Likewise.
11709         (getumask): Document as specific to GNU/Hurd.
11710         * manual/install.texi: Likewise.  Reword some references to
11711         GNU/Linux.
11712         * manual/intro.texi: Likewise.
11713         * manual/io.texi: Likewise.
11714         (File Name Portability): Detail which constraints are inapplicable
11715         to all GNU systems and which are only inapplicable to GNU/Hurd.
11716         * manual/job.texi: Likewise.
11717         * manual/llio.texi: Likewise.
11718         (O_NOCTTY): Document as present on GNU/Linux.
11719         * manual/maint.texi: Likewise.
11720         * manual/memory.texi: Likewise.
11721         * manual/pattern.texi: Likewise.
11722         * manual/pipe.texi: Likewise.
11723         * manual/process.texi: Likewise.
11724         * manual/resource.texi: Likewise.
11725         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11726         child on GNU/Hurd.
11727         * manual/setjmp.texi: Likewise.
11728         * manual/signal.texi: Likewise.
11729         * manual/startup.texi: Likewise.
11730         * manual/stdio.texi: Likewise.
11731         * manual/terminal.texi: Likewise.
11732         (ONLCR): Document as POSIX.
11733         (OXTABS): Document availability on GNU/Linux as XTABS.
11734         (ONOEOT): Document availability separately from other bits.
11735         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11736         * manual/time.texi: Likewise.
11737         * manual/users.texi: Likewise.
11738         * INSTALL: Regenerated.
11739         * sysdeps/gnu/errlist.c: Regenerated.
11740
11741         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11742         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11743         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11744         puts.
11745         * configure: Regenerated.
11746
11747 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11748
11749         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11750         default includes instead of AC_HEADER_CHECK.
11751         * sysdeps/i386/configure: Regenerated.
11752
11753         [BZ #10716]
11754         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11755         * math/s_cacoshf.c (__cacoshf): Likewise.
11756         * math/s_cacoshl.c (__cacoshl): Likewise.
11757         * math/s_casinh.c (__casinh): Set signs of result from argument.
11758         * math/s_casinhf.c (__casinhf): Likewise.
11759         * math/s_casinhl.c (__casinhl): Likewise.
11760         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11761         (casinh_test): Add more tests.
11762         * sysdeps/i386/fpu/libm-test-ulps: Update.
11763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11764
11765 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11766
11767         * po/zh_TW.po: Update from translation team.
11768
11769         * login/Makefile (distribute): Remove variable.
11770         * catgets/Makefile: Likewise.
11771         * mach/Makefile: Likewise.
11772         * malloc/Makefile: Likewise.
11773         * misc/Makefile: Likewise.
11774         * iconv/Makefile: Likewise.
11775         * nscd/Makefile: Likewise.
11776         * hurd/Makefile: Likewise.
11777         * manual/Makefile: Likewise.
11778         * locale/Makefile: Likewise.
11779         * intl/Makefile: Likewise.
11780         * conform/Makefile: Likewise.
11781         * nss/Makefile: Likewise.
11782         * time/Makefile: Likewise.
11783         * soft-fp/Makefile: Likewise.
11784         * dirent/Makefile: Likewise.
11785         * gmon/Makefile: Likewise.
11786         * po/Makefile: Likewise.
11787         * rt/Makefile: Likewise.
11788         * socket/Makefile: Likewise.
11789         * math/Makefile: Likewise.
11790         * signal/Makefile: Likewise.
11791         * debug/Makefile: Likewise.
11792         * elf/Makefile: Likewise.
11793         * timezone/Makefile: Likewise.
11794         * stdlib/Makefile: Likewise.
11795         * iconvdata/Makefile: Likewise.
11796         * sunrpc/Makefile: Likewise.
11797         * io/Makefile: Likewise.
11798         * argp/Makefile: Likewise.
11799         * inet/Makefile: Likewise.
11800         * hesiod/Makefile: Likewise.
11801         * grp/Makefile: Likewise.
11802         * csu/Makefile: Likewise.
11803         * wctype/Makefile: Likewise.
11804         * crypt/Makefile: Likewise.
11805         * libio/Makefile: Likewise.
11806         * string/Makefile: Likewise.
11807         * nis/Makefile: Likewise.
11808         * resolv/Makefile: Likewise.
11809         * stdio-common/Makefile: Likewise.
11810         * wcsmbs/Makefile: Likewise.
11811         * dlfcn/Makefile: Likewise.
11812         * posix/Makefile: Likewise.
11813
11814         [BZ #6959]
11815         * timezone/Makefile: Don't install timezone files, just the programs
11816         and scripts.
11817
11818 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11819
11820         * nss/databases.def: Add missing gshadow entry.
11821
11822         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11823
11824 2012-03-06  Marek Polacek  <polacek@redhat.com>
11825
11826         [BZ #13726]
11827         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11828         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11829         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11830         * stdio-common/tst-long-dbl-fphex.c: New file.
11831
11832 2012-03-06  David S. Miller  <davem@davemloft.net>
11833
11834         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11835         (set_obp_int): New function.
11836         (get_obp_int): New function.
11837         (__get_clockfreq_via_dev_openprom): Likewise.
11838         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11839         Avoid unused variable warnings on 'val' and use builtin_expect.
11840         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11841         __builtin_expect.
11842         (INLINE_CLONE_SYSCALL): Likewise.
11843
11844 2012-03-05  David S. Miller  <davem@davemloft.net>
11845
11846         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11847
11848 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11849
11850         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11851
11852         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11853         only for |x| >= 40.
11854         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11855
11856 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11857
11858         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11859         Replace gettimeofday with __vdso_gettimeofday.
11860
11861         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11862         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11863         __vdso_clock_gettime and __vdso_getcpu.
11864
11865         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11866         time with __vdso_time.
11867
11868 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11869
11870         * manual/lang.texi (size_t): Note types to which size_t may be
11871         equivalent with the GNU C Library, but do not describe when
11872         differences between them are significant.
11873
11874 2012-03-05  Andreas Jaeger  <aj@suse.de>
11875
11876         * sysdeps/i386/fpu/libm-test-ulps: Update.
11877
11878 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11879
11880         [BZ #3976]
11881         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11882         (__ieee754_pow): Save and restore rounding mode and use
11883         round-to-nearest for main computations.
11884         * math/libm-test.inc (pow_test_tonearest): New function.
11885         (pow_test_towardzero): Likewise.
11886         (pow_test_downward): Likewise.
11887         (pow_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         [BZ #3976]
11893         * math/libm-test.inc (cosh_test_tonearest): New function.
11894         (cosh_test_towardzero): Likewise.
11895         (cosh_test_downward): Likewise.
11896         (cosh_test_upward): Likewise.
11897         (sinh_test_tonearest): Likewise.
11898         (sinh_test_towardzero): Likewise.
11899         (sinh_test_downward): Likewise.
11900         (sinh_test_upward): Likewise.
11901         (main): Call the new functions.
11902         * sysdeps/i386/fpu/libm-test-ulps: Update.
11903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11904
11905 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11906
11907         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11908         default stack guard is set in last bytes.
11909         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11910
11911 2012-03-05  Kees Cook  <keescook@chromium.org>
11912
11913         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11914
11915         [BZ #13656]
11916         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11917         possibly allocate from heap instead of stack.
11918         * stdio-common/bug-vfprintf-nargs.c: New file.
11919         * stdio-common/Makefile (tests): Add nargs overflow test.
11920
11921 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11922
11923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11924
11925 2012-03-03  Marek Polacek  <polacek@redhat.com>
11926
11927         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11928         * math/math_private.h: Likewise.
11929         * stdlib/tst-strtod.c: Likewise.
11930         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11931         * sysdeps/x86_64/bits/atomic.h: Likewise.
11932
11933 2012-03-02  David S. Miller  <davem@davemloft.net>
11934
11935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11939         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11940         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11941         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11942         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11943
11944 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11945
11946         [BZ #13792]
11947         * manual/examples/README: New file, says the example source files
11948         can be used under GPL>=2.
11949         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11950         line containing just "*/".
11951         * manual/examples/add.c: Add copyright header (GPL>=2).
11952         * manual/examples/argp-ex1.c: Likewise.
11953         * manual/examples/argp-ex2.c: Likewise.
11954         * manual/examples/argp-ex3.c: Likewise.
11955         * manual/examples/argp-ex4.c: Likewise.
11956         * manual/examples/atexit.c: Likewise.
11957         * manual/examples/db.c: Likewise.
11958         * manual/examples/dir.c: Likewise.
11959         * manual/examples/dir2.c: Likewise.
11960         * manual/examples/execinfo.c: Likewise.
11961         * manual/examples/filecli.c: Likewise.
11962         * manual/examples/filesrv.c: Likewise.
11963         * manual/examples/fmtmsgexpl.c: Likewise.
11964         * manual/examples/genpass.c: Likewise.
11965         * manual/examples/inetcli.c: Likewise.
11966         * manual/examples/inetsrv.c: Likewise.
11967         * manual/examples/isockad.c: Likewise.
11968         * manual/examples/longopt.c: Likewise.
11969         * manual/examples/memopen.c: Likewise.
11970         * manual/examples/memstrm.c: Likewise.
11971         * manual/examples/mkfsock.c: Likewise.
11972         * manual/examples/mkisock.c: Likewise.
11973         * manual/examples/mygetpass.c: Likewise.
11974         * manual/examples/pipe.c: Likewise.
11975         * manual/examples/popen.c: Likewise.
11976         * manual/examples/rprintf.c: Likewise.
11977         * manual/examples/search.c: Likewise.
11978         * manual/examples/select.c: Likewise.
11979         * manual/examples/setjmp.c: Likewise.
11980         * manual/examples/sigh1.c: Likewise.
11981         * manual/examples/sigusr.c: Likewise.
11982         * manual/examples/stpcpy.c: Likewise.
11983         * manual/examples/strdupa.c: Likewise.
11984         * manual/examples/strftim.c: Likewise.
11985         * manual/examples/strncat.c: Likewise.
11986         * manual/examples/subopt.c: Likewise.
11987         * manual/examples/swapcontext.c: Likewise.
11988         * manual/examples/termios.c: Likewise.
11989         * manual/examples/testopt.c: Likewise.
11990         * manual/examples/testpass.c: Likewise.
11991         * manual/examples/timeval_subtract.c: Likewise.
11992
11993         [BZ #13792]
11994         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11995         function to ...
11996         * manual/timeval_subtract.c.texi: ... here, new file.
11997
11998 2012-03-02  David S. Miller  <davem@davemloft.net>
11999
12000         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12001
12002 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12003
12004         [BZ #3976]
12005         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12006         (__sin): Save and restore rounding mode and use round-to-nearest
12007         for all computations.
12008         (__cos): Save and restore rounding mode and use round-to-nearest
12009         for all computations.
12010         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12011         <fenv.h>.
12012         (tan): Save and restore rounding mode and use round-to-nearest for
12013         all computations.
12014         * math/libm-test.inc (cos_test_tonearest): New function.
12015         (cos_test_towardzero): Likewise.
12016         (cos_test_downward): Likewise.
12017         (cos_test_upward): Likewise.
12018         (sin_test_tonearest): Likewise.
12019         (sin_test_towardzero): Likewise.
12020         (sin_test_downward): Likewise.
12021         (sin_test_upward): Likewise.
12022         (tan_test_tonearest): Likewise.
12023         (tan_test_towardzero): Likewise.
12024         (tan_test_downward): Likewise.
12025         (tan_test_upward): Likewise.
12026         (main): Call the new functions.
12027         * sysdeps/i386/fpu/libm-test-ulps: Update.
12028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12029
12030         [BZ #10135]
12031         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12032         small n, then large n, before computing and testing k+n.
12033         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12034         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12035         Likewise.
12036         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12037         Likewise.
12038         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12039         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12040         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12041         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12042         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12043         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12044         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12045         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12046         * math/libm-test.inc (scalbn_test): Add more tests.
12047         (scalbln_test): Likewise.
12048
12049         * manual/filesys.texi (mode_t): Describe constraints on size and
12050         signedness, not exact equivalence to a particular type.
12051         (ino_t): Likewise.
12052         (ino64_t): Likewise.
12053         (dev_t): Likewise.
12054         (nlink_t): Likewise.
12055         (blkcnt_t): Likewise.
12056         (blkcnt64_t): Likewise.
12057         * manual/llio.texi (off_t): Likewise.
12058
12059         [BZ #3976]
12060         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12061         (__ieee754_exp): Save and restore rounding mode and use
12062         round-to-nearest for all computations.
12063         * math/libm-test.inc (exp_test_tonearest): New function.
12064         (exp_test_towardzero): Likewise.
12065         (exp_test_downward): Likewise.
12066         (exp_test_upward): Likewise.
12067         (main): Call the new functions.
12068         * sysdeps/i386/fpu/libm-test-ulps: Update.
12069         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12070
12071 2012-03-01  Chris Demetriou  <cgd@google.com>
12072
12073         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12074         have predictable order.
12075
12076 2012-03-01  David S. Miller  <davem@davemloft.net>
12077
12078         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12079
12080         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12081         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12082         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12083         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12084
12085         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12086         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12087         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12089         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12090         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12091         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12092         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12093         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12094
12095         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12096
12097         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12098         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12099         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12100
12101         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12102         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12103         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12104         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12105         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12106         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12107         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12108         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12109         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12110         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12111         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12112         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12113         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12114         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12115         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12116         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12117         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12118         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12119         * sysdeps/sparc/elf/configure: Regenerated.
12120
12121 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12122
12123         * configure.in (AS, LD): Require binutils 2.20 or later.
12124         * configure: Regenerated.
12125         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12126         as required minimum version.
12127         * INSTALL: Regenerated.
12128
12129         [BZ #2541]
12130         [BZ #4108]
12131         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12132         before squaring exponent.
12133         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12134         bottom long double and 27 bits of top long double before squaring
12135         exponent.
12136         * math/libm-test.inc (erfc_test): Add more tests.
12137         * sysdeps/i386/fpu/libm-test-ulps: Update.
12138         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12140
12141 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12142
12143         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12144         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12145         containing bit-fields.
12146         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12147         * soft-fp/single.h (_FP_UNION_S): Likewise.
12148         * soft-fp/double.h (_FP_UNION_D): Likewise.
12149
12150 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12151
12152         [BZ #13786]
12153         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12154         not include ../strcmp.S.
12155         [USE_AS_STRNCASECMP_L]: Likewise.
12156         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12157         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12158         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12159         (__strncasecmp_l_ia32): Define as alias to
12160         __strncasecmp_l_nonascii.
12161
12162         [BZ #5794]
12163         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12164         * sysdeps/i386/fpu/libm-test-ulps: Update.
12165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12166
12167         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12168         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12169
12170 2012-02-29  Jeff Law  <law@redhat.com>
12171
12172         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12173         out of bounds read.
12174
12175 2012-02-29  Marek Polacek  <polacek@redhat.com>
12176
12177         [BZ #13706]
12178         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12179         * elf/Makefile: Add rules to run tst-unused-dep.out.
12180
12181 2012-02-28  David S. Miller  <davem@davemloft.net>
12182
12183         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12184         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12185         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12186         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12187         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12188         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12189
12190 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12191
12192         * math/libm-test.inc (llround_test): Move one test from
12193         lround_test.  Use TEST_f_L in moved test.
12194         (lround_test): Move misplaced test to llround_test.  Add testcase
12195         from bug 2561.
12196
12197 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12198
12199         * sysdeps/x86_64/fpu/e_expf.S: New file.
12200         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12201
12202 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12203
12204         [BZ #13637]
12205         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12206         of remain_len that may cause incomplete multi-byte character and
12207         false match.
12208         * posix/bug-regex33.c: New file.
12209         * posix/Makefile (tests): Add bug-regex33.
12210
12211 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12212
12213         * manual/macros.texi: New file.
12214         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12215         * manual/libc.texinfo: Include macros.texi.
12216         * manual/creatute.texi: Likewise.
12217         * manual/install.texi: Likewise.
12218         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12219         @glibcadj{} in references to the GNU C Library.
12220         * manual/charset.texi: Likewise.
12221         * manual/conf.texi: Likewise.
12222         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12223         when not using those macros.
12224         * manual/creature.texi: Likewise.
12225         * manual/crypt.texi: Likewise.
12226         * manual/errno.texi: Likewise.
12227         * manual/filesys.texi: Likewise.
12228         * manual/header.texi: Likewise.
12229         * manual/install.texi: Likewise.
12230         * manual/intro.texi: Likewise.
12231         * manual/io.texi: Likewise.
12232         * manual/job.texi: Likewise.
12233         * manual/lang.texi: Likewise.
12234         * manual/libc.texiinfo: Likewise.
12235         * manual/llio.texi: Likewise.
12236         * manual/locale.texi: Likewise.
12237         * manual/maint.texi: Likewise.
12238         * manual/math.texi: Likewise.
12239         * manual/memory.texi: Likewise.
12240         * manual/message.texi: Likewise.
12241         * manual/nss.texi: Likewise.
12242         * manual/pattern.texi: Likewise.
12243         * manual/process.texi: Likewise.
12244         * manual/resource.texi: Likewise.
12245         * manual/search.texi: Likewise.
12246         * manual/setjmp.texi: Likewise.
12247         * manual/signal.texi: Likewise.
12248         * manual/socket.texi: Likewise.
12249         * manual/startup.texi: Likewise.
12250         * manual/stdio.texi: Likewise.
12251         * manual/string.texi: Likewise.
12252         * manual/sysinfo.texi: Likewise.
12253         * manual/syslog.texi: Likewise.
12254         * manual/terminal.texi: Likewise.
12255         * manual/time.texi: Likewise.
12256         * manual/users.texi: Likewise.
12257         * INSTALL: Regenerated.
12258         * NOTES: Regenerated.
12259         * sysdeps/gnu/errlist.c: Regenerated.
12260
12261 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12262
12263         * include/dirent.h: Include <dirstream.h> before
12264         <dirent/dirent.h>.
12265
12266 2012-02-28  David S. Miller  <davem@davemloft.net>
12267
12268         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12269         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12270         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12271         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12272
12273 2012-02-27  David S. Miller  <davem@davemloft.net>
12274
12275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12277         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12278         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12279
12280         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12281         frame pointer instead of stack pointer relative arg slot.
12282         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12283         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12284         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12285
12286 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12287
12288         [BZ #3992]
12289         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12290
12291 2012-02-27  David S. Miller  <davem@davemloft.net>
12292
12293         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12294         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12295         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12296         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12297         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12298         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12299         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12300         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12301
12302 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12303
12304         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12305         later.  Allow versions 5-9.
12306         * configure: Regenerated.
12307         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12308         required minimum version and 4.6 as recommended version.  Do not
12309         mention bugs in GCC 2.7 and 2.8.
12310         * INSTALL: Regenerated.
12311
12312 2012-02-27  David S. Miller  <davem@davemloft.net>
12313
12314         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12315         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12316         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12317         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12318         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12319         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12320         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12321         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12322
12323         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12324         manipulate bits before adding and subtracting TWO112[sx].
12325         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12326
12327 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12328
12329         [BZ #13775]
12330         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12331         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12332         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12333         being in POSIX, because they are in 1003.1-2008.
12334
12335         * rt/tst-aio.c: Include <fcntl.h>.
12336         * rt/tst-aio7.c: Likewise.
12337         * rt/tst-aio64.c: Likewise.
12338
12339         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12340
12341 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12342
12343         * manual/install.texi (--with-headers): Describe headers as
12344         interface headers, not private headers.
12345         (Specific advice for GNU/Linux systems): Describe use of headers
12346         from "make headers_install", not private headers from older
12347         kernels.
12348         * INSTALL: Regenerated.
12349         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12350         Change to 2.6.19.
12351         * sysdeps/unix/sysv/linux/configure: Regenerated.
12352
12353         * manual/llio.texi (fclean): Remove documentation.
12354
12355         * manual/Makefile (libc-texi-generated): New variable.  Include
12356         version.texi.
12357         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12358         $(libc-texi-generated), not duplicated list of files.
12359         (version.texi, stamp-version): New rules.
12360         (realclean): Remove $(libc-texi-generated), not individual files
12361         from that list.  Do not remove dir-add.texinfo.
12362         * manual/libc.texinfo: Comment out uses of edition numbers and
12363         references to printed manual.  Remove last-updated dates.
12364         (EDITION): Comment out.
12365         (ISBN): Likewise.
12366         (VERSION, UPDATED): Remove.
12367         (version.texi): Include.
12368
12369 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12370
12371         * sysdeps/posix/spawni.c: Include <signal.h>.
12372         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12373         * sysdeps/pthread/aio_fsync.c: Likewise.
12374
12375 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12376
12377         * conform/Makefile (tests): Run only when not cross-compiling and
12378         when fast-check is not defined.
12379
12380         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12381         * conform/data/limits.h-data: Fixes for POSIX2008.
12382         * conform/run-conformtest.sh: Run all tests.
12383         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12384         headers.
12385         * include/bits/dlfcn.h: Likewise.
12386         * include/langinfo.h: Likewise.
12387         * include/monetary.h: Likewise.
12388         * include/sys/poll.h: Likewise.
12389
12390         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12391         for __USE_GNU.
12392         * posix/spawn.h: Define __need_sigset_t.
12393         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12394         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12395         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12396         to get sigevent_t only.
12397         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12398         only for __USE_GNU.
12399         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12400         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12401         process_vm_writev only for __USE_GNU.
12402         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12403
12404         * conform/Makefile: For now ignore errors from run-conformtest.
12405         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12406         POSIX to avoid namespace pollution.  Don't prepend headers.
12407         * conform/data/aio.h-data: Fixes for POSIX testing.
12408         * conform/data/fcntl.h-data: Likewise.
12409         * conform/data/glob.h-data: Likewise.
12410         * conform/data/grp.h-data: Likewise.
12411         * conform/data/pthread.h-data: Likewise.
12412         * conform/data/pwd.h-data: Likewise.
12413         * conform/data/signal.h-data: Likewise.
12414         * conform/data/spawn.h-data: Likewise.
12415         * conform/data/stdio.h-data: Likewise.
12416         * conform/data/stdlib.h-data: Likewise.
12417         * conform/data/stropts.h-data: Likewise.
12418         * conform/data/sys/mman.h-data: Likewise.
12419         * conform/data/sys/stat.h-data: Likewise.
12420         * conform/data/sys/types.h-data: Likewise.
12421         * conform/data/sys/wait.h-data: Likewise.
12422         * conform/data/time.h-data: Likewise.
12423         * conform/data/unistd.h-data: Likewise.
12424         * conform/data/utime.h-data: Likewise.
12425
12426         * io/sys/stat.h: fchmod was always in POSIX.
12427         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12428         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12429         * rt/aio.h: Define __need_timespec before including <time.h>.
12430         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12431         struct.  Add forward declaration of pthread_attr_t and use it in
12432         sigevent.
12433         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12434         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12435         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12436         always remove CLK_TCK definition.
12437
12438 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12439
12440         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12441
12442 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12443
12444         * conform/run-conformtest.sh: New file.
12445         * conform/Makefile: Run run-conformtest for tests.
12446         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12447         support.
12448
12449         * conform/data/uchar.h-data: New file.
12450         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12451         * conform/data/arpa/inet.h-data: Likewise.
12452         * conform/data/assert.h-data: Likewise.
12453         * conform/data/complex.h-data: Likewise.
12454         * conform/data/cpio.h-data: Likewise.
12455         * conform/data/ctype.h-data: Likewise.
12456         * conform/data/dirent.h-data: Likewise.
12457         * conform/data/dlfcn.h-data: Likewise.
12458         * conform/data/errno.h-data: Likewise.
12459         * conform/data/fcntl.h-data: Likewise.
12460         * conform/data/float.h-data: Likewise.
12461         * conform/data/fmtmsg.h-data: Likewise.
12462         * conform/data/fnmatch.h-data: Likewise.
12463         * conform/data/ftw.h-data: Likewise.
12464         * conform/data/glob.h-data: Likewise.
12465         * conform/data/grp.h-data: Likewise.
12466         * conform/data/iconv.h-data: Likewise.
12467         * conform/data/inttypes.h-data: Likewise.
12468         * conform/data/langinfo.h-data: Likewise.
12469         * conform/data/libgen.h-data: Likewise.
12470         * conform/data/limits.h-data: Likewise.
12471         * conform/data/locale.h-data: Likewise.
12472         * conform/data/math.h-data: Likewise.
12473         * conform/data/monetary.h-data: Likewise.
12474         * conform/data/mqueue.h-data: Likewise.
12475         * conform/data/ndbm.h-data: Likewise.
12476         * conform/data/net/if.h-data: Likewise.
12477         * conform/data/netdb.h-data: Likewise.
12478         * conform/data/netinet/in.h-data: Likewise.
12479         * conform/data/nl_types.h-data: Likewise.
12480         * conform/data/poll.h-data: Likewise.
12481         * conform/data/pthread.h-data: Likewise.
12482         * conform/data/pwd.h-data: Likewise.
12483         * conform/data/regex.h-data: Likewise.
12484         * conform/data/sched.h-data: Likewise.
12485         * conform/data/search.h-data: Likewise.
12486         * conform/data/semaphore.h-data: Likewise.
12487         * conform/data/setjmp.h-data: Likewise.
12488         * conform/data/signal.h-data: Likewise.
12489         * conform/data/spawn.h-data: Likewise.
12490         * conform/data/stdarg.h-data: Likewise.
12491         * conform/data/stdio.h-data: Likewise.
12492         * conform/data/stdlib.h-data: Likewise.
12493         * conform/data/string.h-data: Likewise.
12494         * conform/data/strings.h-data: Likewise.
12495         * conform/data/stropts.h-data: Likewise.
12496         * conform/data/sys/ipc.h-data: Likewise.
12497         * conform/data/sys/mman.h-data: Likewise.
12498         * conform/data/sys/msg.h-data: Likewise.
12499         * conform/data/sys/resource.h-data: Likewise.
12500         * conform/data/sys/select.h-data: Likewise.
12501         * conform/data/sys/sem.h-data: Likewise.
12502         * conform/data/sys/shm.h-data: Likewise.
12503         * conform/data/sys/socket.h-data: Likewise.
12504         * conform/data/sys/stat.h-data: Likewise.
12505         * conform/data/sys/statvfs.h-data: Likewise.
12506         * conform/data/sys/time.h-data: Likewise.
12507         * conform/data/sys/timeb.h-data: Likewise.
12508         * conform/data/sys/times.h-data: Likewise.
12509         * conform/data/sys/types.h-data: Likewise.
12510         * conform/data/sys/uio.h-data: Likewise.
12511         * conform/data/sys/un.h-data: Likewise.
12512         * conform/data/sys/utsname.h-data: Likewise.
12513         * conform/data/sys/wait.h-data: Likewise.
12514         * conform/data/syslog.h-data: Likewise.
12515         * conform/data/tar.h-data: Likewise.
12516         * conform/data/termios.h-data: Likewise.
12517         * conform/data/utime.h-data: Likewise.
12518         * conform/data/utmpx.h-data: Likewise.
12519         * conform/data/varargs.h-data: Likewise.
12520         * conform/data/wchar.h-data: Likewise.
12521         * conform/data/wctype.h-data: Likewise.
12522         * conform/data/wordexp.h-data: Likewise.
12523
12524         * include/stropts.h: New file.
12525         * include/uchar.h: New file.
12526         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12527         * include/assert.h: Likewise.
12528         * include/ctype.h: Likewise.
12529         * include/dirent.h: Likewise.
12530         * include/dlfcn.h: Likewise.
12531         * include/fcntl.h: Likewise.
12532         * include/fnmatch.h: Likewise.
12533         * include/glob.h: Likewise.
12534         * include/grp.h: Likewise.
12535         * include/libio.h: Likewise.
12536         * include/locale.h: Likewise.
12537         * include/math.h: Likewise.
12538         * include/net/if.h: Likewise.
12539         * include/netdb.h: Likewise.
12540         * include/netinet/in.h: Likewise.
12541         * include/pthread.h: Likewise.
12542         * include/pwd.h: Likewise.
12543         * include/regex.h: Likewise.
12544         * include/sched.h: Likewise.
12545         * include/search.h: Likewise.
12546         * include/setjmp.h: Likewise.
12547         * include/signal.h: Likewise.
12548         * include/stdio.h: Likewise.
12549         * include/stdlib.h: Likewise.
12550         * include/string.h: Likewise.
12551         * include/sys/cdefs.h: Likewise.
12552         * include/sys/mman.h: Likewise.
12553         * include/sys/msg.h: Likewise.
12554         * include/sys/resource.h: Likewise.
12555         * include/sys/select.h: Likewise.
12556         * include/sys/socket.h: Likewise.
12557         * include/sys/stat.h: Likewise.
12558         * include/sys/statvfs.h: Likewise.
12559         * include/sys/time.h: Likewise.
12560         * include/sys/times.h: Likewise.
12561         * include/sys/uio.h: Likewise.
12562         * include/sys/utsname.h: Likewise.
12563         * include/sys/wait.h: Likewise.
12564         * include/termios.h: Likewise.
12565         * include/time.h: Likewise.
12566         * include/ulimit.h: Likewise.
12567         * include/unistd.h: Likewise.
12568         * include/utime.h: Likewise.
12569         * include/wchar.h: Likewise.
12570         * include/wctype.h: Likewise.
12571         * include/wordexp.h: Likewise.
12572
12573         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12574
12575         * time/time.h: TIME_UTC must be a macro.
12576         Make timespec_get available for ISO C11 only as well.
12577
12578 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12579
12580         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12581         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12582
12583 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12584
12585         * configure.in: Use -o not -a in test for unsupported multi-arch.
12586
12587 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12588
12589         * manual/texinfo.tex: Update to version 2012-01-19.16.
12590
12591 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12592
12593         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12594
12595 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12596
12597         [BZ #13738]
12598         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12599         * manual/fdl-1.3.texi: New file.
12600         * manual/fdl-1.1.texi: File removed.
12601
12602         [BZ #13738]
12603         * manual/libc.texinfo (FDL_VERSION): New @set.
12604         Use it for mention of FDL in cover text.
12605         (Documentation License): Use it in @include file name.
12606
12607 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12608             Roland McGrath  <roland@hack.frob.com>
12609
12610         [BZ #5461]
12611         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12612         not LONG_LONG_MAX and LONG_LONG_MIN.
12613         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12614         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12615         name.
12616         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12617
12618 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12619
12620         [BZ #2547]
12621         [BZ #11365]
12622         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12623         manipulate bits before adding and subtracting TWO23[sx].
12624         * math/libm-test.inc (nearbyint_test): Add more tests.
12625
12626 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12627
12628         [BZ #2548]
12629         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12630         bits before adding and subtracting TWO23[sx].
12631         * math/libm-test.inc (rint_test): Add more tests.
12632         (rint_test_tonearest): Likewise.
12633         (rint_test_towardzero): Likewise.
12634         (rint_test_downward): Likewise.
12635         (rint_test_upward: Likewise.
12636
12637 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12638
12639         [BZ #10110]
12640         * include/stdc-predef.h: New file.  Extracted from features.h.
12641         * include/features.h: Include stdc-predef.h.
12642         * Makefile (headers): Add stdc-predef.h.
12643         * CONFORMANCE (Compiler limitations): Update.
12644
12645 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12646
12647         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12648
12649 2012-02-21  David S. Miller  <davem@davemloft.net>
12650
12651         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12652         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12653
12654 2012-02-20  David S. Miller  <davem@davemloft.net>
12655
12656         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12657         using a normal save/restore sequence, rather than allocating a
12658         dummy stack frame just to store a frame pointer and restore.
12659         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12660
12661 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12662
12663         * manual/install.texi: Fix stray word in line-wrapped comment.
12664
12665 2012-02-20  David S. Miller  <davem@davemloft.net>
12666
12667         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12668         both binutils and gcc support GOTDATA.
12669
12670         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12671         "rd %pc" in the PIC register setup sequences.
12672
12673         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12674         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12675         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12676         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12677         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12678         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12679         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12680         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12681         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12682         (SYSCALL_ERROR_HANDLER): Likewise.
12683         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12684         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12685         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12686         (SYSCALL_ERROR_HANDLER): Likewise.
12687
12688         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12689         (HAVE_GCC_GOTDATA): New.
12690         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12691         relocation support in both binutils and gcc.
12692         * sysdeps/sparc/elf/configure: Regenerate.
12693
12694         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12695         * sysdeps/sparc/sparc32/elf/configure: Delete.
12696         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12697         * sysdeps/sparc/sparc64/elf/configure: Delete.
12698         * sysdeps/sparc/elf/configure.in: New file.
12699         * sysdeps/sparc/elf/configure: Generate.
12700
12701         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12702         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12703         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12704         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12705         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12706
12707 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12708
12709         * manual/install.texi: Do not mention specific glibc version
12710         numbers.
12711         * manual/libc.texinfo (VERSION, UPDATED): Update.
12712         (@copying): Use @copyright{} and range of years.
12713
12714 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12715
12716         [BZ #13695]
12717         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12718         [crti.S not in sysdirs] (generated): Do not append.
12719         [crti.S not in sysdirs] (omit-deps): Likewise.
12720         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12721         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12722         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12723         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12724         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12725         Likewise.
12726         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12727         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12728         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12729         * csu/defs.awk: Remove file.
12730         * sysdeps/generic/initfini.c: Likewise.
12731         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12732         variable.
12733         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12734         Likewise.
12735
12736 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12737
12738         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12739         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12740         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12741         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12742         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12743         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12744         <bits/epoll.h>.
12745         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12746         (__EPOLL_PACKED): Define to empty if not defined by
12747         <bits/epoll.h>.
12748         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12749         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12750         bits/epoll.h.
12751
12752 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12753
12754         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12755         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12756         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12757         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12758         <bits/timerfd.h>.
12759         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12760         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12761         bits/timerfd.h.
12762
12763 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12764
12765         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12766         in C locale.
12767         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12768         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12769         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12771
12772 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12773
12774         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12775         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12776
12777 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12778
12779         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12780         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12781         defined.
12782         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12783         Likewise.
12784         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12785         entry for 2.16.
12786
12787 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12788
12789         * math/w_acos.c: Use non-signaling floating-point comparisons.
12790         * math/w_acosf.c: Likewise.
12791         * math/w_acosh.c: Likewise.
12792         * math/w_acoshf.c: Likewise.
12793         * math/w_acoshl.c: Likewise.
12794         * math/w_acosl.c: Likewise.
12795         * math/w_asin.c: Likewise.
12796         * math/w_asinf.c: Likewise.
12797         * math/w_asinl.c: Likewise.
12798         * math/w_atanh.c: Likewise.
12799         * math/w_atanhf.c: Likewise.
12800         * math/w_atanhl.c: Likewise.
12801         * math/w_exp2.c: Likewise.
12802         * math/w_exp2f.c: Likewise.
12803         * math/w_exp2l.c: Likewise.
12804         * math/w_j0.c: Likewise.
12805         * math/w_j0f.c: Likewise.
12806         * math/w_j0l.c: Likewise.
12807         * math/w_j1.c: Likewise.
12808         * math/w_j1f.c: Likewise.
12809         * math/w_j1l.c: Likewise.
12810         * math/w_jn.c: Likewise.
12811         * math/w_jnf.c: Likewise.
12812         * math/w_log.c: Likewise.
12813         * math/w_log10.c: Likewise.
12814         * math/w_log10f.c: Likewise.
12815         * math/w_log10l.c: Likewise.
12816         * math/w_log2.c: Likewise.
12817         * math/w_log2f.c: Likewise.
12818         * math/w_log2l.c: Likewise.
12819         * math/w_logf.c: Likewise.
12820         * math/w_logl.c: Likewise.
12821         * math/w_sqrt.c: Likewise.
12822         * math/w_sqrtf.c: Likewise.
12823         * math/w_sqrtl.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12826         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12827         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12828         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12829
12830 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12831
12832         [BZ #9739]
12833         * manual/string.texi (strnlen): Use correct parameter name in
12834         equivalent expression.
12835
12836 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12837
12838         [BZ #11174]
12839         * manual/users.texi (seteuid): Consistently use neweuid for
12840         argument name.
12841
12842 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12843
12844         [BZ #13704]
12845         * manual/nss.texi (Services in the NSS configuration): Correct
12846         list of services in example configuration file.
12847
12848 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12849
12850         [BZ #11322]
12851         * manual/arith.texi: Remove statements about negative zero
12852         behaving identically to zero.
12853
12854 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12855
12856         [BZ #5993]
12857         * manual/install.texi: Do not document upgrading from libc5.
12858
12859 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12860
12861         [BZ #4596]
12862         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12863
12864 2012-02-18  David S. Miller  <davem@davemloft.net>
12865
12866         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12867         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12868         %o7 across the call.
12869         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12870         instead.
12871         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12872         SETUP_PIC_REG_LEAF.
12873         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12874         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12875         * sysdeps/sparc/crtn.S: Likewise.
12876
12877 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12878
12879         * aout/Makefile: Remove.
12880
12881 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12882
12883         [BZ #13058]
12884         * manual/examples/argp-ex1.c (main): Format definition in GNU
12885         style.
12886         * manual/examples/argp-ex2.c (main): Likewise.
12887         * manual/examples/argp-ex3.c (main): Likewise.
12888         * manual/examples/argp-ex4.c (main): Likewise.
12889         * manual/examples/longopt.c (main): Use new-style prototype
12890         definition.
12891         * manual/examples/strncat.c (main): Specify return type and use
12892         (void) for arguments.
12893         * manual/examples/subopt.c (main): Use char **argv argument.
12894
12895 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12896
12897         [BZ #5077]
12898         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12899         rounding modes.
12900
12901 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12902
12903         [BZ #6907]
12904         * manual/string.texi (strchr): Change when strchrnul is
12905         recommended.
12906
12907 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12908
12909         [BZ #174]
12910         * manual/locale.texi (setlocale): Document LOCPATH.
12911
12912 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12913
12914         [BZ #10210]
12915         * manual/process.texi (execle): Move @dots{} before last argument.
12916
12917 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12918
12919         [BZ #12047]
12920         * manual/charset.texi (Generic Charset Conversion): Fix typo
12921         (LC_TYPE -> LC_CTYPE).
12922
12923 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12924
12925         [BZ #5805]
12926         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12927         (scalbnf): Likewise.
12928         (scalbnl): Likewise.
12929         (scalbln): Likewise.
12930         (scalblnf): Likewise.
12931         (scalblnl): Likewise.
12932         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12933         (vwarnx): Likewise.
12934         (verr): Likewise.
12935         (verrx): Likewise.
12936         * manual/filesys.texi (telldir): Use braces around return type.
12937         * manual/llio.texi (mmap): Add space after comma.
12938         (mmap64): Likewise.
12939         * manual/math.texi (jn): Use @var{} on parameter names.
12940         (jnf): Likewise.
12941         (jnl): Likewise.
12942         (yn): Likewise.
12943         (ynf): Likewise.
12944         (ynl): Likewise.
12945         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12946         line.
12947         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12948         "...".
12949         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12950         (sched_get_priority_max): Likewise.
12951         * manual/signal.texi (sigvec): Add space after comma.
12952         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12953         names.
12954         (if_indextoname): Likewise.
12955         (if_freenameindex): Likewise.
12956         (sendto): Use ',' instead of '.' in prototype.
12957         * manual/startup.texi (syscall): Use @dots{} instead of literal
12958         "...".
12959         * manual/stdio.texi (__fpending): Separate initial words of
12960         paragraph from @deftypefun line.
12961         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12962         "...".
12963         (vsyslog): Use @var{} on parameter names.
12964         * manual/terminal.texi (stty): Use @var{} on parameter names.
12965         * manual/users.texi (getutmp): Use @var{} on parameter names.
12966         (getutmpx): Likewise.
12967
12968 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12969
12970         [BZ #6884]
12971         * manual/stdio.texi (fopen): Fix typos in description of
12972         ",ccs=STRING".
12973
12974 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12975
12976         [BZ #4026]
12977         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12978         get clock_id definition.
12979
12980 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12981
12982         [BZ #4822]
12983         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12984         (madvise): Cast every argument to void on its own.
12985
12986 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12987
12988         [BZ #9902]
12989         * manual/startup.texi (Exit Status): Fix typo.
12990
12991 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12992
12993         [BZ #10140]
12994         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12995         * manual/examples/argp-ex2.c: Likewise.
12996         * manual/examples/argp-ex3.c: Likewise.
12997
12998 2012-02-16  Richard Henderson  <rth@redhat.com>
12999
13000         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13001         * sysdeps/s390/s390-32/initfini.c: Remove.
13002         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13003         * sysdeps/s390/s390-64/initfini.c: Remove.
13004
13005 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13006
13007         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13008         compiler output for sysdeps/generic/initfini.c.
13009         * sysdeps/sh/elf/initfini.c: Remove file.
13010
13011 2012-02-16  David S. Miller  <davem@davemloft.net>
13012
13013         [BZ #11494]
13014         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13015
13016         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13017         * sysdeps/sparc/crti.S: New file.
13018         * sysdeps/sparc/crtn.S: New file.
13019         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13020         * sysdeps/sparc/sparc64/Makefile: Likewise.
13021
13022 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13023
13024         [BZ #3335]
13025         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13026
13027 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13028
13029         [BZ #4822]
13030         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13031
13032         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13033         (write, read, close): Likewise.
13034         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13035
13036 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13037
13038         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13039         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13040         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13041         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13042         <bits/signalfd.h>.
13043         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13044         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13045         bits/signalfd.h.
13046
13047 2012-02-14  Marek Polacek  <polacek@redhat.com>
13048
13049         * sysdeps/x86_64/crti.S: New file.
13050         * sysdeps/x86_64/crtn.S: New file.
13051         * sysdeps/x86_64/elf/initfini.c: Remove file.
13052
13053 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13054
13055         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13056         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13057         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13058         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13059         <bits/inotify.h>.
13060         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13061         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13062         bits/inotify.h.
13063
13064 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13067         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13068         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13069         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13070         <bits/eventfd.h>.
13071         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13072         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13073         bits/eventfd.h.
13074
13075 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13076
13077         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13078         __feraiseexcept instead of feraiseexcept.
13079
13080         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13081         nanosleep invocations.
13082         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13083         strings, and add error checking for a nanosleep invocations.
13084
13085 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13086
13087         Replace FSF snail mail address with URLs, as per GNU coding standards.
13088         Most of the snail mail addresses were wrong anyway, and omitting
13089         them makes the source code easier to maintain.  Almost all of the
13090         changes are to license notices and to locale LC_IDENTIFICATION
13091         addresses, except for this one:
13092         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13093         not its snail mail address.
13094
13095 2012-02-09  Richard Henderson  <rth@twiddle.net>
13096
13097         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13098         of kernel-features.h.
13099
13100         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13101
13102 2012-02-08  Marek Polacek  <polacek@redhat.com>
13103
13104         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13105         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13106         * sysdeps/gnu/_G_config.h: Likewise.
13107         * sysdeps/generic/_G_config.h: Likewise.
13108
13109 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13110
13111         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13112         tests.
13113         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13114
13115         * sysdeps/powerpc/powerpc32/crti.S: New file.
13116         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13117         * sysdeps/powerpc/powerpc64/crti.S: New file.
13118         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13119
13120         * Makeconfig (have-initfini): Don't set.
13121         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13122         * configure.in (nopic_initfini): Don't substitute.
13123         * config.h.in (HAVE_INITFINI): Don't #undef.
13124         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13125         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13126
13127 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13128
13129         Support crti.S and crtn.S provided directly by architectures.
13130         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13131         [crti.S in sysdirs] (omit-deps): Likewise.
13132         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13133         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13134         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13135         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13136         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13137         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13138         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13139         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13140         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13141         compiler output for sysdeps/generic/initfini.c.
13142         * sysdeps/i386/elf/Makefile: Remove file.
13143         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13144
13145 2012-02-07  Marek Polacek  <polacek@redhat.com>
13146
13147         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13148         * sysdeps/gnu/_G_config.h: Likewise.
13149         * sysdeps/mach/hurd/_G_config.h: Likewise.
13150
13151 2012-02-07  Marek Polacek  <polacek@redhat.com>
13152
13153         * math/Makefile (tests): Add tst-CMPLX2.
13154         * math/tst-CMPLX2.c: New file.
13155
13156 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13157
13158         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13159
13160         * math/libm-test.inc (jn_test): Add missing L suffix.
13161
13162 2012-02-06  Marek Polacek  <polacek@redhat.com>
13163
13164         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13165         * sysdeps/i386/fpu/e_powf.S: Likewise.
13166         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13167         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13168         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13169         * sysdeps/i386/fpu/e_pow.S: Likewise.
13170         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13171         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13172         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13173         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13174         * sysdeps/i386/fpu/e_log2.S: Likewise.
13175         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13176         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13177         * sysdeps/i386/fpu/e_powl.S: Likewise.
13178         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13179         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13180         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13181         * sysdeps/i386/fpu/e_logl.S: Likewise.
13182         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13183         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13184         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13185         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13186         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13187         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13188         * sysdeps/i386/fpu/e_log.S: Likewise.
13189         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13190         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13191         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13192         * sysdeps/i386/fpu/e_logf.S: Likewise.
13193         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13194         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13195         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13196         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13197         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13198         * sysdeps/i386/fpu/e_log10.S: Likewise.
13199         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13200         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13201         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13202         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13203         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13204         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13205         * sysdeps/i386/asm-syntax.h: Likewise.
13206         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13207         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13208         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13209         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13210         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13211         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13212         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13213         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13214         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13215         * sysdeps/powerpc/sysdep.h: Likewise.
13216         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13217         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13218
13219 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13220
13221         [BZ #411]
13222         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13223
13224 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13225
13226         * sysdeps/i386/sysdep.h: Include <features.h>.
13227         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13228         version.
13229
13230 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13231
13232         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13233         Define.
13234         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13235         LOAD_PIC_REG_STR.
13236
13237 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13238
13239         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13240         (SETUP_PIC_REG): Use GET_PC_THUNK.
13241         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13242         macro.
13243
13244 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13245
13246         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13247         for non-PIC compilation.
13248         (SETUP_PIC_REG): Add .p2align directive.
13249         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13250         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13251         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13252         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13253         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13254         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13255         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13256         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13257         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13258         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13259         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13260         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13261         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13262         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13263         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13264         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13265         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13266         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13267         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13268         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13269         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13270         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13271         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13272         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13273         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13274         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13275         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13276         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13277         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13278         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13279         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13280         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13281         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13282         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13283         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13284         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13285         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13286         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13287         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13288         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13289         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13290
13291 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13292
13293         * math/tst-CMPLX.c: Include <stdio.h>.
13294
13295 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13298         float.
13299         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13300         * sysdeps/sparc/bits/mathdef.h: Likewise.
13301
13302 2012-01-31  Marek Polacek  <polacek@redhat.com>
13303
13304         * libio/libio.h: Don't define _PARAMS.
13305         * locale/programs/config.h: Don't define PARAMS.
13306         * stdlib/strtol_l.c: Likewise.
13307         (__strtol_l): Remove PARAMS from the prototype.
13308
13309 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13310
13311         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13312         names.  Just use the correct names.  Remove unnecessary wrapper
13313         functions.
13314         * malloc/arena.c: Likewise.
13315         * malloc/hooks.c: Likewise.
13316
13317         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13318         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13319         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13320
13321 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13322
13323         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13324         into tail calls.
13325         (update_get_addr): New function.
13326         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13327         GET_ADDR_MODULE parameter.
13328
13329 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13330
13331         * crypt/cert.c: Remove __STDC__ conditionals.
13332         * crypt/crypt-entry.c: Likewise.
13333         * crypt/crypt_util.c: Likewise.
13334         * libio/filedoalloc.c: Likewise.
13335         * libio/fileops.c: Likewise.
13336         * libio/genops.c: Likewise.
13337         * libio/iofclose.c: Likewise.
13338         * libio/iofdopen.c: Likewise.
13339         * libio/iofopen.c: Likewise.
13340         * libio/iofopen64.c: Likewise.
13341         * libio/iogetdelim.c: Likewise.
13342         * libio/iopopen.c: Likewise.
13343         * libio/obprintf.c: Likewise.
13344         * libio/oldfileops.c: Likewise.
13345         * libio/oldiofclose.c: Likewise.
13346         * libio/oldiofdopen.c: Likewise.
13347         * libio/oldiofopen.c: Likewise.
13348         * libio/oldiopopen.c: Likewise.
13349         * libio/wfiledoalloc.c: Likewise.
13350         * libio/wgenops.c: Likewise.
13351         * locale/programs/xmalloc.c: Likewise.
13352         * misc/syslog.c: Likewise.
13353         * stdio-common/xbug.c: Likewise.
13354         * string/memchr.c: Likewise.
13355         * string/memcmp.c: Likewise.
13356         * string/memrchr.c: Likewise.
13357         * string/rawmemchr.c: Likewise.
13358         * sysdeps/posix/getcwd.c: Likewise.
13359         * time/strftime_l.c: Likewise.
13360
13361 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13362
13363         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13364         * config.make.in (config-cflags-sse2avx): Define.
13365         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13366         Fix typo.
13367
13368 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13369
13370         * scripts/config.guess: Update from upstream config git repository.
13371         * scripts/config.sub: Likewise.
13372
13373 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13374
13375         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13376         (EM_NUM): Update.
13377         (R_TILEPRO_*, R_TILEGX_*): New macros.
13378
13379         * scripts/firstversions.awk: Fix bug in version range handling.
13380
13381         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13382
13383         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13384
13385         * include/sys/epoll.h: New file.
13386         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13387         libc_hidden_def.
13388
13389 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13390
13391         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13392         Avoid unnecessary __WORDSIZE == 64 test.
13393         (fmaxf): Use VEX format if possible.
13394         (fmax): Likewise.
13395         (fminf): Likewise.
13396         (fmin): Likewise.
13397
13398         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13399         * math/math_private.h: Remove libc_fegetround* and
13400         libc_fesetround*.
13401         * sysdeps/i386/configure.in: Check for -msse2avx.
13402         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13403         also if SSE2AVX is defined.
13404         Remove libc_fegetround* and libc_fesetround*.
13405         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13406         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13407         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13408         of HAS_YMM_USABLE.
13409         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13410         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13411         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13412         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13413         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13414
13415         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13416
13417 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13418
13419         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13420         size is not set.
13421         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13422
13423 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13424
13425         [BZ #13618]
13426         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13427         relocation.
13428         * Makeconfig (libm): Define.
13429         * elf/Makefile: Add rules to build and run tst-relsort1.
13430         * elf/tst-relsort1.c: New file.
13431         * elf/tst-relsort1mod1.c: New file.
13432         * elf/tst-relsort1mod2.c: New file.
13433
13434 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13435
13436         * math/s_ldexp.c: Remove __STDC__ conditionals.
13437         * math/s_ldexpf.c: Likewise.
13438         * math/s_ldexpl.c: Likewise.
13439         * math/s_nextafter.c: Likewise.
13440         * math/s_nexttowardf.c: Likewise.
13441         * math/s_significand.c: Likewise.
13442         * math/s_significandf.c: Likewise.
13443         * math/s_significandl.c: Likewise.
13444         * math/w_jnl.c: Likewise.
13445         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13446         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13447         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13448         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13449         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13450         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13451         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13452         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13453         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13454         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13455         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13456         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13457         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13458         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13459         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13460         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13461         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13462         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13463         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13464         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13465         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13466         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13467         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13468         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13469         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13470         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13471         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13472         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13473         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13474         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13475         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13476         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13477         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13478         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13479         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13480         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13481         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13482         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13483         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13484         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13485         * sysdeps/ieee754/k_standard.c: Likewise.
13486         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13490         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13491         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13492         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13494         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13495         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13498         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13499         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13500         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13503         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13504         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13505         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13506         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13507         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13508         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13511         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13512         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13516         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13517         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13518         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13521         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13522         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13525         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13527         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13529         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13530         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13531         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13532         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13533         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13534         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13535         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13536         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13537         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13538         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13539         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13540         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13541         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13542         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13543         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13545         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13546         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13547         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13548         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13550         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13551         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13552         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13553         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13554         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13555         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13556         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13557         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13558         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13559         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13560         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13561         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13562         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13563         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13564         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13565         * sysdeps/ieee754/s_matherr.c: Likewise.
13566         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13567         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13568         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13569         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13570
13571 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13572
13573         * crypt/md5.h: Remove __STDC__ conditionals.
13574         * libio/libioP.h: Likewise.
13575         * locale/programs/config.h: Likewise.
13576         * sysdeps/generic/sysdep.h: Likewise.
13577         * sysdeps/i386/asm-syntax.h: Likewise.
13578         * sysdeps/s390/asm-syntax.h: Likewise.
13579         * sysdeps/unix/sysdep.h: Likewise.
13580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13582
13583 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13584
13585         * libio/libio.h: Remove __STDC__ conditionals.
13586         * malloc/obstack.h: Likewise.
13587         * math/complex.h: Likewise.
13588         * math/math.h: Likewise.
13589         * sysdeps/generic/_G_config.h: Likewise.
13590         * sysdeps/gnu/_G_config.h: Likewise.
13591         * sysdeps/mach/hurd/_G_config.h: Likewise.
13592         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13593         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13594         * sysdeps/sparc/bits/mathdef.h: Likewise.
13595
13596 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13597
13598         [BZ #13583]
13599         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13600         Clean up HAS_* macros.
13601         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13602         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13603         possible.
13604         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13605         HAS_AVX.
13606         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13607         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13608         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13609         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13610         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13611
13612 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13613
13614         * elf/tst-unique3.cc (gets): Remove declaration.
13615         * elf/tst-unique3lib.cc (gets): Likewise.
13616         * elf/tst-unique3lib2.cc (gets): Likewise.
13617         * elf/tst-unique4.cc (gets): Likewise.
13618
13619 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13620
13621         * include/stdio.h: Add C++ protection.  Add gets declarations and
13622         definitions.
13623         * debug/tst-chk1.c: Don't declare gets here.
13624         * stdio-common/tst-gets.c: Likewise.
13625
13626 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13627
13628         * posix/glob: Remove directory.
13629
13630 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13631
13632         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13633
13634 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13635
13636         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13637         of the non-standard EPFNOSUPPORT.
13638
13639 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13640
13641         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13642         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13643         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13644
13645 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13646
13647         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13648
13649 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13650
13651         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13652         transient errors.
13653         * nscd/grpcache.c (cache_addgr): Likewise.
13654         * nscd/hstcache.c (cache_addhst): Likewise.
13655         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13656         * nscd/pwdcache.c (cache_addpw): Likewise.
13657         * nscd/servicescache.c (cache_addserv): Likewise.
13658
13659 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13660
13661         * malloc/malloc.c: Various cleanups.
13662         * malloc/hooks.c: Likewise.
13663
13664         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13665         * stdlib/bug-fmtmsg1.c: New file.
13666
13667         * stdlib/fmtmsg.c (init): Add missing unlock.
13668         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13669
13670 2012-01-12  Marek Polacek  <polacek@redhat.com>
13671
13672         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13673         and _GNU_SOURCE.
13674
13675 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13676
13677         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13678         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13679         macro to ensure uniqueness of label name.
13680         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13681         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13682
13683 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13684
13685         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13686
13687         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13688         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13689         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13690         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13691
13692 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13693
13694         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13695
13696         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13697         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13698         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13699
13700         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13701
13702         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13703         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13704         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13705         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13706
13707         * math/bits/math-finite.h: Add ldexp support.
13708
13709 2012-01-10  Marek Polacek  <polacek@redhat.com>
13710
13711         * locale/programs/localedef.h (show_archive_content): Add noreturn
13712         attribute.
13713
13714 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13715
13716         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13717
13718 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13719
13720         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13721
13722         * io/Makefile (headers): Add bits/poll2.h.
13723
13724 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13725
13726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13727         typo #include statement.
13728
13729 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13730
13731         * include/sys/cdefs.h: Define __attribute_alloc_size.
13732         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13733         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13734         * elf/pldd.c: Likewise.
13735         * iconv/iconv_charmap.c: Likewise.
13736         * iconv/iconvconfig.c: Likewise.
13737         * iconv/strtab.c: Likewise.
13738         * locale/programs/locale.c: Likewise.
13739         * locale/programs/localedef.h: Likewise.
13740         * locale/programs/simple-hash.c: Likewise.
13741         * nscd/nscd.h: Likewise.
13742         * nss/makedb.c: Likewise.
13743         * sysdeps/generic/ldconfig.h: Likewise.
13744         * locale/programs/localedef.c: Remove xmalloc prototype.
13745         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13746
13747 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13748
13749         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13750         appropriate.
13751
13752 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13753
13754         * math/Makefile (tests): Add tst-CMPLX.
13755         * math/tst-CMPLX.c: New file.
13756
13757         * math/complex.h (CMPLXL): Fix typo.
13758
13759         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13760         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13761         GLIBC_2.16.
13762         * debug/tst-chk1.c: Add poll and ppoll tests.
13763         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13764         * include/sys/poll.h: Add hidden proto for ppoll.
13765         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13766         * sysdeps/mach/hurd/ppoll.c: Likewise.
13767         * io/ppoll.c: Likewise.
13768         * debug/poll_chk.c: New file.
13769         * debug/ppoll_chk.c: New file.
13770         * include/bits/poll2.h: New file.
13771         * io/bits/poll2.h: New file.
13772
13773         [BZ #1350]
13774         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13775
13776         * configure.in: static is always set to yes.  Remove.
13777         * config.make.in: Don't set build-static.
13778         * Makeconfig: Remove use of build-static.
13779         * dlfcn/Makefile: Likewise.
13780         * elf/Makefile: Likewise.
13781         * math/Makefile: Likewise.
13782         * misc/Makefile: Likewise.
13783         * nptl/Makefile: Likewise.
13784         * sysdeps/mach/hurd/Makefile: Likewise.
13785
13786         * configure.in: PWD_P is not used anymore.
13787         * config.make.in: Remove PWD_P entry.
13788
13789         * configure.in: Remove last remnants of RANLIB.
13790         No need to check for signed size_t anymore.
13791         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13792         and IA-64.
13793         Remove __builtin_expect test because we require at least gcc 3.4.
13794         * aclocal.m4: Likewise.
13795
13796         * wcsmbs/mbrtoc16.c: Implement using towc function.
13797         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13798         * wcsmbs/wcsmbsload.c: Likewise.
13799         * iconv/gconv_simple.c: Likewise.
13800         * iconv/gconv_int.h: Likewise.
13801         * iconv/gconv_builtin.h: Likewise.
13802         * iconv/iconv_prog.c: Remove CHAR16 handling.
13803
13804         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13805
13806         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13807
13808         * configure.in: Remove --with-elf and --enable-bounded options.
13809         Dont set base_machine for ia64.  More non-ELF conditions removed.
13810         Remove testing and setting of leading underscore information.
13811         * config.make.in (build-bounded): Set to no.
13812         * config.h.in: Remove NO_UNDERSCORES entry.
13813         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13814         them.
13815         * csu/start.c: Remove !NO_UNDERSCORE code.
13816         * locale/localeinfo.h: Likewise.
13817         * sysdeps/generic/machine-gmon.h: Likewise.
13818         * sysdeps/generic/sysdep.h: Likewise.
13819         * sysdeps/i386/sysdep.h: Likewise.
13820         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13821         * sysdeps/mach/sysdep.h: Likewise.
13822         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13823         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13824         * sysdeps/sh/sysdep.h: Likewise.
13825         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13826         * sysdeps/unix/i386/sysdep.S: Likewise.
13827         * sysdeps/unix/sparc/start.c: Likewise.
13828         * sysdeps/unix/sparc/sysdep.S: Likewise.
13829         * sysdeps/unix/sparc/sysdep.h: Likewise.
13830         * sysdeps/unix/start.c: Likewise.
13831         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13832         * sysdeps/x86_64/sysdep.h: Likewise.
13833
13834 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13835
13836         [BZ #13553]
13837         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13838         for non-gcc.
13839         * argp/argp-fmtstream.h: Use const instead __const.
13840         * argp/argp.h: Likewise.
13841         * assert/assert.h: Likewise.
13842         * bits/fenv.h: Likewise.
13843         * bits/sched.h: Likewise.
13844         * bits/sigset.h: Likewise.
13845         * bits/sigthread.h: Likewise.
13846         * catgets/nl_types.h: Likewise.
13847         * conform/data/pthread.h-data: Likewise.
13848         * crypt/crypt-private.h: Likewise.
13849         * crypt/crypt.h: Likewise.
13850         * crypt/crypt_util.c: Likewise.
13851         * ctype/ctype.h: Likewise.
13852         * debug/execinfo.h: Likewise.
13853         * debug/mbsnrtowcs_chk.c: Likewise.
13854         * debug/mbsrtowcs_chk.c: Likewise.
13855         * debug/wcsnrtombs_chk.c: Likewise.
13856         * debug/wcsrtombs_chk.c: Likewise.
13857         * debug/wcstombs_chk.c: Likewise.
13858         * dirent/dirent.h: Likewise.
13859         * dlfcn/dlfcn.h: Likewise.
13860         * elf/neededtest4.c: Likewise.
13861         * grp/grp.h: Likewise.
13862         * gshadow/gshadow.h: Likewise.
13863         * iconv/gconv.h: Likewise.
13864         * iconv/gconv_int.h: Likewise.
13865         * iconv/gconv_simple.c: Likewise.
13866         * iconv/iconv.h: Likewise.
13867         * iconv/loop.c: Likewise.
13868         * iconv/skeleton.c: Likewise.
13869         * include/aio.h: Likewise.
13870         * include/aliases.h: Likewise.
13871         * include/argz.h: Likewise.
13872         * include/arpa/inet.h: Likewise.
13873         * include/assert.h: Likewise.
13874         * include/dirent.h: Likewise.
13875         * include/dlfcn.h: Likewise.
13876         * include/execinfo.h: Likewise.
13877         * include/fcntl.h: Likewise.
13878         * include/fenv.h: Likewise.
13879         * include/glob.h: Likewise.
13880         * include/grp.h: Likewise.
13881         * include/libintl.h: Likewise.
13882         * include/mntent.h: Likewise.
13883         * include/netdb.h: Likewise.
13884         * include/pwd.h: Likewise.
13885         * include/rpc/netdb.h: Likewise.
13886         * include/sched.h: Likewise.
13887         * include/search.h: Likewise.
13888         * include/shadow.h: Likewise.
13889         * include/signal.h: Likewise.
13890         * include/stdio.h: Likewise.
13891         * include/stdlib.h: Likewise.
13892         * include/string.h: Likewise.
13893         * include/sys/socket.h: Likewise.
13894         * include/sys/stat.h: Likewise.
13895         * include/sys/statfs.h: Likewise.
13896         * include/sys/statvfs.h: Likewise.
13897         * include/sys/syslog.h: Likewise.
13898         * include/sys/time.h: Likewise.
13899         * include/sys/uio.h: Likewise.
13900         * include/time.h: Likewise.
13901         * include/unistd.h: Likewise.
13902         * include/utmp.h: Likewise.
13903         * include/wchar.h: Likewise.
13904         * include/wctype.h: Likewise.
13905         * inet/aliases.h: Likewise.
13906         * inet/arpa/inet.h: Likewise.
13907         * inet/netinet/ether.h: Likewise.
13908         * inet/netinet/in.h: Likewise.
13909         * intl/libintl.h: Likewise.
13910         * io/bits/fcntl2.h: Likewise.
13911         * io/fcntl.h: Likewise.
13912         * io/ftw.h: Likewise.
13913         * io/sys/poll.h: Likewise.
13914         * io/sys/stat.h: Likewise.
13915         * io/sys/statfs.h: Likewise.
13916         * io/sys/statvfs.h: Likewise.
13917         * io/utime.h: Likewise.
13918         * libio/bits/stdio.h: Likewise.
13919         * libio/bits/stdio2.h: Likewise.
13920         * libio/libio.h: Likewise.
13921         * libio/libioP.h: Likewise.
13922         * libio/stdio.h: Likewise.
13923         * locale/lc-ctype.c: Likewise.
13924         * locale/locale.h: Likewise.
13925         * login/utmp.h: Likewise.
13926         * malloc/arena.c: Likewise.
13927         * malloc/malloc.c: Likewise.
13928         * malloc/malloc.h: Likewise.
13929         * malloc/mcheck.c: Likewise.
13930         * malloc/mtrace.c: Likewise.
13931         * math/bits/mathcalls.h: Likewise.
13932         * math/fenv.h: Likewise.
13933         * math/math_private.h: Likewise.
13934         * misc/bits/error.h: Likewise.
13935         * misc/bits/syslog.h: Likewise.
13936         * misc/err.h: Likewise.
13937         * misc/error.h: Likewise.
13938         * misc/fstab.h: Likewise.
13939         * misc/mntent.h: Likewise.
13940         * misc/regexp.h: Likewise.
13941         * misc/search.h: Likewise.
13942         * misc/sgtty.h: Likewise.
13943         * misc/sys/mman.h: Likewise.
13944         * misc/sys/syslog.h: Likewise.
13945         * misc/sys/uio.h: Likewise.
13946         * misc/sys/xattr.h: Likewise.
13947         * misc/ttyent.h: Likewise.
13948         * nis/rpcsvc/ypclnt.h: Likewise.
13949         * nss/nss.h: Likewise.
13950         * posix/bits/unistd.h: Likewise.
13951         * posix/fnmatch.h: Likewise.
13952         * posix/glob.h: Likewise.
13953         * posix/sched.h: Likewise.
13954         * posix/spawn.h: Likewise.
13955         * posix/sys/wait.h: Likewise.
13956         * posix/unistd.h: Likewise.
13957         * posix/wordexp.h: Likewise.
13958         * pwd/pwd.h: Likewise.
13959         * resolv/netdb.h: Likewise.
13960         * resource/sys/resource.h: Likewise.
13961         * rt/aio.h: Likewise.
13962         * rt/bits/mqueue2.h: Likewise.
13963         * rt/mqueue.h: Likewise.
13964         * shadow/shadow.h: Likewise.
13965         * signal/signal.h: Likewise.
13966         * socket/send.c: Likewise.
13967         * socket/sendto.c: Likewise.
13968         * socket/sys/socket.h: Likewise.
13969         * stdio-common/printf.h: Likewise.
13970         * stdlib/bits/stdlib.h: Likewise.
13971         * stdlib/fmtmsg.h: Likewise.
13972         * stdlib/monetary.h: Likewise.
13973         * stdlib/stdlib.h: Likewise.
13974         * stdlib/ucontext.h: Likewise.
13975         * streams/stropts.h: Likewise.
13976         * string/argz.h: Likewise.
13977         * string/bits/string2.h: Likewise.
13978         * string/string.h: Likewise.
13979         * string/strings.h: Likewise.
13980         * sunrpc/rpc/auth.h: Likewise.
13981         * sunrpc/rpc/auth_des.h: Likewise.
13982         * sunrpc/rpc/clnt.h: Likewise.
13983         * sunrpc/rpc/netdb.h: Likewise.
13984         * sunrpc/rpc/pmap_clnt.h: Likewise.
13985         * sunrpc/rpc/xdr.h: Likewise.
13986         * sysdeps/generic/inttypes.h: Likewise.
13987         * sysdeps/generic/net/if.h: Likewise.
13988         * sysdeps/generic/sys/swap.h: Likewise.
13989         * sysdeps/gnu/net/if.h: Likewise.
13990         * sysdeps/gnu/utmpx.h: Likewise.
13991         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13992         * sysdeps/i386/i486/bits/string.h: Likewise.
13993         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13994         * sysdeps/s390/bits/string.h: Likewise.
13995         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13996         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13997         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13998         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13999         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14000         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14001         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14002         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14003         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14004         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14005         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14006         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14007         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14008         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14009         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14010         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14011         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14012         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14013         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14014         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14015         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14016         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14017         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14018         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14019         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14020         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14021         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14022         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14023         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14024         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14025         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14026         * sysvipc/sys/ipc.h: Likewise.
14027         * sysvipc/sys/msg.h: Likewise.
14028         * sysvipc/sys/sem.h: Likewise.
14029         * sysvipc/sys/shm.h: Likewise.
14030         * termios/termios.h: Likewise.
14031         * time/sys/time.h: Likewise.
14032         * time/time.h: Likewise.
14033         * wcsmbs/bits/wchar2.h: Likewise.
14034         * wcsmbs/uchar.h: Likewise.
14035         * wcsmbs/wchar.h: Likewise.
14036         * wctype/wctype.h: Likewise.
14037
14038         [BZ #13551]
14039         * Makeconfig: Remove all but ELF support including AIX support.
14040         * Makerules: Likewise.
14041         * config.h.in: Likewise.
14042         * config.make.in: Likewise.
14043         * configure: Likewise.
14044         * configure.in: Likewise.
14045         * csu/Makefile: Likewise.
14046         * csu/version.c: Likewise.
14047         * debug/Makefile: Likewise.
14048         * dlfcn/Makefile: Likewise.
14049         * elf/Makefile: Likewise.
14050         * extra-lib.mk: Likewise.
14051         * iconv/Makefile: Likewise.
14052         * include/libc-symbols.h: Likewise.
14053         * include/shlib-compat.h: Likewise.
14054         * resolv/Makefile: Likewise.
14055         * resolv/res_libc.c: Likewise.
14056         * rt/Makefile: Likewise.
14057         * sysdeps/i386/asm-syntax.h: Likewise.
14058         * sysdeps/i386/sysdep.h: Likewise.
14059         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14060         * sysdeps/mach/sysdep.h: Likewise.
14061         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14062         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14063         * sysdeps/s390/asm-syntax.h: Likewise.
14064         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14065         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14066         * sysdeps/sh/sysdep.h: Likewise.
14067         * sysdeps/unix/sparc/sysdep.h: Likewise.
14068         * sysdeps/wordsize-32/divdi3.c: Likewise.
14069         * sysdeps/x86_64/sysdep.h: Likewise.
14070
14071         * argp/Versions: Remove _argp_unlock_xxx.
14072
14073         [BZ #13559]
14074         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14075         * abilist/libBrokenLocale.abilist: Likewise.
14076         * abilist/libanl.abilist: Likewise.
14077         * abilist/libc.abilist: Likewise.
14078         * abilist/libcrypt.abilist: Likewise.
14079         * abilist/libdl.abilist: Likewise.
14080         * abilist/libm.abilist: Likewise.
14081         * abilist/libnsl.abilist: Likewise.
14082         * abilist/libpthread.abilist: Likewise.
14083         * abilist/libresolv.abilist: Likewise.
14084         * abilist/librt.abilist: Likewise.
14085         * abilist/libthread_db.abilist: Likewise.
14086         * abilist/libutil.abilist: Likewise.
14087         * abilist/libnss_db.abilist: New file.
14088
14089         * scripts/abilist.awk: Add support for indirect functions.
14090
14091         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14092
14093         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14094
14095         * shlib-versions: Remove entries for ports architectures.
14096
14097         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14098         files in ports.
14099         * elf/stackguard-macros.h: Remove support for IA-64.
14100         * elf/tst-auditmod1.c: Likewise.
14101         * sysdeps/generic/ldsodefs.h: Likewise.
14102
14103         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14104         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14105         configure files.
14106
14107         [BZ #13552]
14108         * configure.in: Remove --enable-omitfp support.
14109         * FAQ.in: Adjust.
14110         * config.make.in: Likewise.
14111         * Makeconfig: Likewise.
14112         * manual/install.texi: Likewise.
14113
14114         In case anyone cares, the IA-64 architecture could move to ports.
14115         * sysdeps/ia64/*: Removed.
14116         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14117         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14118
14119         [BZ #13555]
14120         * configure.in: Remove entries for unsupported architectures.
14121
14122         [BZ #13533]
14123         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14124         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14125         routines.
14126         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14127         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14128         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14129         fall back to using wcrtomb.
14130         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14131         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14132         renaming.
14133         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14134         * wcsmbs/tst-c16c32-1.c: New file.
14135
14136         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14137         local variable.
14138
14139         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14140
14141         * elf/tst-unique3.cc: Add explicit declaration of gets.
14142         * elf/tst-unique3lib.cc: Likewise.
14143         * elf/tst-unique3lib2.cc: Likewise.
14144         * elf/tst-unique4.cc: Likewise.
14145
14146         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14147
14148 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14149
14150         [BZ #13566]
14151         * assert/assert.h (static_assert): Don't define for C++.
14152         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14153         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14154
14155 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14156
14157         * iconv/loop.c (single loop): Fix assertion in storing of
14158         remaining bytes.
14159
14160         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14161
14162 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14163
14164         * posix/getconf.c: Update copyright year.
14165         * nss/getent.c: Likewise.
14166         * nss/makedb.c: Likewise.
14167         * iconv/iconvconfig.c: Likewise.
14168         * iconv/iconv_prog.c: Likewise.
14169         * elf/ldconfig.c: Likewise.
14170         * elf/pldd.c: Likewise.
14171         * elf/sotruss.ksh: Likewise.
14172         * catgets/gencat.c: Likewise.
14173         * csu/version.c: Likewise.
14174         * elf/ldd.bash.in: Likewise.
14175         * elf/sprof.c (print_version): Likewise.
14176         * locale/programs/locale.c: Likewise.
14177         * locale/programs/localedef.c: Likewise.
14178         * login/programs/pt_chown.c: Likewise.
14179         * nscd/nscd.c (print_version): Likewise.
14180         * debug/xtrace.sh: Likewise.
14181         * malloc/memusage.sh: Likewise.
14182         * malloc/mtrace.pl: Likewise.
14183         * debug/catchsegv.sh: Likewise.
14184
14185 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14186
14187         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14188         pure attribute.
14189
14190 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14191
14192         [BZ #13533]
14193         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14194         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14195         transformations.
14196         * iconv/gconv_int.h: Likewise.
14197         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14198         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14199         from libc for GLIBC_2.16.
14200         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14201         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14202         * wcsmbs/uchar.h: Really define mbstate_t.
14203         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14204         * wcsmbs/c16rtomb.c: New file.
14205         * wcsmbs/mbrtoc16.c: New file.
14206         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14207         for C/POSIX locale.
14208         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14209         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14210
14211         * wcsmbs/wchar.h: Add missing __restrict.
14212
14213 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14214
14215         [BZ #13532]
14216         * time/Makefile (routines): Add timespec_get.
14217         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14218         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14219         timespec for ISO C11.
14220         * time/timespec_get.c: New file.
14221         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14222         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14223
14224         [BZ #13531]
14225         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14226         * stdlib/stdlib.h: Declare aligned_alloc.
14227         * Versions.def: Add GLIBC_2.16 for libc.
14228         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14229
14230         [BZ 13527]
14231         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14232         ISO C11.
14233
14234         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14235         code.
14236
14237         [BZ #13528]
14238         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14239
14240         [BZ #13529]
14241         * assert/assert.h (static_assert): Define.
14242
14243         * version.h: Update for 2.16 development version.
14244
14245         [BZ #13526]
14246         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14247         _ISOC11_SOURCE.
14248
14249         * version.h (RELEASE): Bump for 2.15 release.
14250         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14251
14252         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14253         Patch by Marek Polacek <mpolacek@redhat.com>.
14254
14255         * bits/byteswap.h: Protect long long constants with __extension__.
14256         * sysdeps/i386/bits/byteswap.h: Likewise.
14257         * sysdeps/ia64/bits/byteswap.h: Likewise.
14258         * sysdeps/s390/bits/byteswap.h: Likewise.
14259         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14260
14261 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14262
14263         [BZ #13540]
14264         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14265         destination buffer.
14266         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14267
14268 2011-12-23  Marek Polacek  <polacek@redhat.com>
14269
14270         * elf/dl-addr.c (determine_info): Add inline keyword.
14271         * elf/tst-auditmod4b.c (check_avx): Likewise.
14272         * elf/tst-auditmod6b.c (check_avx): Likewise.
14273         * elf/tst-auditmod6c.c (check_avx): Likewise.
14274         * elf/tst-auditmod7b.c (check_avx): Likewise.
14275
14276 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14277
14278         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14279         !__SSE_MATH__.
14280
14281 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14282
14283         [BZ #13540]
14284         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14285         processing for last bytes.
14286
14287 2011-08-06  Bruno Haible  <bruno@clisp.org>
14288
14289         [BZ #13061]
14290         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14291         U+0385, not to U+1FEE.
14292
14293         [BZ #13062]
14294         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14295         entry for U+00A5 U+0301.
14296
14297 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14298
14299         [BZ #13166]
14300         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14301         buffer for the output is too small.
14302
14303         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14304         optimization.
14305
14306         [BZ #13185]
14307         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14308         SSE flags if possible.
14309
14310 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14311
14312         [BZ #13540]
14313         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14314         processing for last bytes.
14315
14316 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14317
14318         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14319         (syscall-list-default-options, syscall-list-default-condition)
14320         (syscall-list-includes): Define.
14321         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14322         list of ABIs and options and #if conditions for each ABI.  Do not
14323         handle common syscalls between ABIs specially.
14324         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14325         Remove.
14326         (syscall-list-variants, syscall-list-32bit-options)
14327         (syscall-list-32bit-condition, syscall-list-64bit-options)
14328         (syscall-list-64bit-condition): Define.
14329         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14330         (syscall-list-variants, syscall-list-32bit-options)
14331         (syscall-list-32bit-condition, syscall-list-64bit-options)
14332         (syscall-list-64bit-condition): Define.
14333         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14334         Remove.
14335         (syscall-list-variants, syscall-list-32bit-options)
14336         (syscall-list-32bit-condition, syscall-list-64bit-options)
14337         (syscall-list-64bit-condition): Define.
14338         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14339         Remove.
14340         (syscall-list-variants, syscall-list-32bit-options)
14341         (syscall-list-32bit-condition, syscall-list-64bit-options)
14342         (syscall-list-64bit-condition): Define.
14343
14344 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14345
14346         * locale/iso-639.def: Add brx entry.
14347
14348         [BZ #13328]
14349         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14350         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14351
14352         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14353         __feraiseexcept_renamed.
14354
14355 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14356
14357         [BZ #13538]
14358         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14359         EPOLLET with unsigned values.
14360         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14361         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14362
14363         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14364         to large cancellation.
14365         * math/s_cacoshf.c: Likewise.
14366         * math/s_cacoshl.c: Likewise.
14367
14368 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14369
14370         [BZ #13305]
14371         [BZ #12786]
14372         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14373         * math/s_cacoshf.c: Likewise.
14374         * math/s_cacoshl.c: Likewise.
14375
14376 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14377
14378         [BZ #13439]
14379         * iconv/gconv.h: Define __GCONV_SWAP.
14380         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14381         * iconvdata/utf-16.c: Likewise.
14382         * iconvdata/utf-32.c: Likewise.
14383
14384 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14385
14386         [BZ #13524]
14387         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14388         numerator after shifting it by one limb.
14389
14390 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14391
14392         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14393         under [__USE_EXTERN_INLINES].
14394
14395 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14396
14397         [BZ #13446]
14398         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14399
14400 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14401
14402         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14403         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14404         optimized code.
14405         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14406         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14407         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14408         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14409         for strncasecmp/strncasecmp_l compilation.
14410         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14411         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14412
14413 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14414
14415         [BZ #13484]
14416         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14417         of __asm__.
14418
14419 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14420
14421         [BZ #13506]
14422         * time/tzfile.c (__tzfile_read): Check values from file header.
14423
14424 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14425
14426         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14427         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14428         * powerpc/powerpc32/dl-start.S: Likewise.
14429         * powerpc/powerpc32/elf/start.S: Likewise.
14430         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14431         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14432         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14433         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14434         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14435         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14436         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14437         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14438         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14439         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14440         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14441         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14442         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14443         * powerpc/powerpc32/memset.S: Likewise.
14444         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14445         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14446         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14447         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14448         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14449         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14450         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14451         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14452         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14453         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14454         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14455         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14456         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14457
14458 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14459
14460         * math/libm-test.inc: Added more nearbyint tests.
14461         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14462         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14463         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14464         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14465
14466 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14467
14468         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14469         FD_CLOEXEC.
14470
14471 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14472
14473         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14474         Add wcscpy-ssse3 wcscpy-c.
14475         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14476         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14477         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14478         * sysdeps/x86_64/wcschr.S: New file.
14479         * sysdeps/x86_64/wcsrchr.S: New file.
14480         * string/test-strcmp.c: Remove checking of wcscmp function for
14481         wrong alignments.
14482         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14483         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14484         wcsrchr-sse2 wcsrchr-c.
14485         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14486         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14487         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14488         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14489         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14490         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14491         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14492         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14493         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14494         * wcsmbc/wcschr.c (WCSCHR): New macro.
14495
14496 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14497
14498         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14499         * wcsmbs/test-wcsrchr.c: New file.
14500         * string/test-strrchr.c: Add wcsrchr support.
14501         (WIDE): New macro.
14502         * wcsmbs/test-wcscpy.c: New file.
14503         * string/test-strcpy.c: Add wcscpy support.
14504         (WIDE): New macro.
14505
14506 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14507
14508         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14509         the inner loop.
14510
14511 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14512
14513         [BZ #13472]
14514         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14515
14516 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14517
14518         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14519         Minor optimizations.
14520
14521         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14522         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14523         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14524
14525 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14526
14527         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14528         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14529         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14530         for gcc to avoid warnings.
14531         * inet/Makefile (tests): Add tst-checks.
14532         * inet/tst-checks.c: New file.
14533
14534         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14535         warning.
14536
14537         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14538         __wmemcmp_sse2.
14539
14540         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14541         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14542
14543         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14544
14545 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14546
14547         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14548         problem.
14549
14550         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14551
14552 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14553
14554         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14555         conditional on GCC version.
14556         (__arch_compare_and_exchange_val_8_acq)
14557         (__arch_compare_and_exchange_val_16_acq)
14558         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14559         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14560         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14561
14562 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14563
14564         * sysdeps/sh/backtrace.c: New file.
14565
14566 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14567
14568         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14569         parenthesis.
14570
14571 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14572
14573         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14574         falling back to utime.
14575
14576 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14577
14578         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14579         expectations for float.
14580
14581 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14582
14583         * locale/weight.h (findidx): Add parameter len.
14584         * locale/weightwc.h (findidx): Likewise.
14585         * posix/fnmatch_loop.c (FCT): Adjust caller.
14586         * posix/regcomp.c (build_equiv_class): Likewise.
14587         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14588         * posix/regexec.c (check_node_accept_bytes): Likewise.
14589         * string/strcoll_l.c (STRCOLL): Likewise.
14590         * string/strxfrm_l.c (STRXFRM): Likewise.
14591
14592 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14593
14594         * Makefile.in: Remove CVSOPT handling.
14595         * configure.in: Remove use of AC_REVISION.
14596         * iconvdata/Makefile (distribute): No need to filter out CVS.
14597         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14598         handling.
14599
14600 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14601
14602         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14603         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14604         [USE_AS_STRNCASECMP_L]: Likewise.
14605         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14606         NO_TLS_DIRECT_SEG_REFS.
14607         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14608         Fix argument offsets for non-PIC.
14609         [USE_AS_STRNCASECMP_L]: Likewise.
14610         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14611         NO_TLS_DIRECT_SEG_REFS.
14612
14613 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14614
14615         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14616         O_CLOEXEC.
14617         * locale/loadlocale.c (_nl_load_locale): Likewise.
14618
14619 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14620
14621         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14622         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14623         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14624         (SYSCALL_GETTIME): Set errno on error.
14625
14626         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14627         count references to noai6ai_cached.
14628
14629 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14630
14631         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14632
14633         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14634         FD_CLOEXEC for /proc/self/maps.
14635
14636         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14637         FD_CLOEXEC for /proc/meminfo.
14638
14639         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14640         gai.conf.
14641
14642         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14643         FD_CLOEXEC for given file.
14644
14645         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14646
14647         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14648         FD_CLOEXEC for /etc/hosts.
14649         (_gethtent): Likewise.
14650
14651         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14652
14653         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14654         cancellation and set FD_CLOEXEC for /etc/netgroup.
14655
14656         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14657         reading /etc/publickey.
14658
14659         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14660         allow cancellation when reading /etc/group.
14661
14662         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14663         cancellation.
14664         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14665
14666         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14667         when using data file.
14668
14669         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14670
14671         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14672         (write_nis_obj): Use "c" and "e" in fopen.
14673
14674         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14675
14676         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14677
14678         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14679
14680         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14681
14682         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14683         locale.alias.
14684
14685         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14686
14687         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14688
14689         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14690
14691         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14692         file parsing and set FD_CLOEXEC.
14693
14694 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14695
14696         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14697
14698 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14699
14700         * malloc/arena.c (arena_get2): Don't call reused_arena when
14701         _int_new_arena failed.
14702
14703 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14704
14705         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14706         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14707         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14708         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14709         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14710         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14711         to compile strcasecmp and strncasecmp.
14712         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14713         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14714
14715         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14716
14717 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14718
14719         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14720         locale-defines.sym to gen-as-const-headers.
14721         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14722         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14723         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14724         to compile strcasecmp and strncasecmp.
14725         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14726         strcasecmp_l and strncasecmp_l.
14727         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14728         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14729         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14730         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14731         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14732         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14733         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14734         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14735         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14736         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14737         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14738
14739 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14740
14741         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14742         result of SYSDEP_GETTIME_CPU to retval.
14743         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14744         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14745
14746         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14747         variable.
14748
14749         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14750         mantissa words.
14751         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14752
14753         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14754         from unused variable.
14755
14756         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14757         DWARF definitions.
14758         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14759         for assembling.
14760
14761         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14762         over namespaces.
14763
14764         * sunrpc/rpc_prot.c (rejected): Fix case value.
14765
14766         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14767         unsigned long long int to avoid warnings in shift.
14768
14769         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14770         of use of trans.
14771         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14772         variable tmp.
14773
14774         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14775         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14776         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14777
14778         * nis/nis_table.c (nis_list): Use variable of correct type for
14779         result of __follow_path call.
14780
14781 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14782
14783         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14784         of math functions ceil, trunc, floor, round, and sqrt, when
14785         avaliable on the platform.
14786         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14787         name clash.
14788         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14789         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14790         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14791
14792 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14793
14794         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14795         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14796
14797 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14798
14799         * include/unistd.h: Fix __readlink return type.
14800         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14801
14802 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14803
14804         * stdlib/ucontext.h: Undo last change for makecontext.
14805
14806 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14807
14808         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14809
14810         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14811         * setjmp/setjmp.h: Mark functions as non-leaf.
14812         * setjmp/bits/setjmp2.h: Likewise.
14813         * stdlib/ucontext.h: Likewise.
14814
14815 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14816
14817         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14818         (reused_arena): Don't check arena limit.
14819         (arena_get2): Atomically check arena limit.
14820
14821 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14822
14823         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14824         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14825
14826         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14827         instructions.
14828
14829 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14830
14831         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14832         handler when locking.
14833
14834         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14835         Fix size of allocated buffer.
14836
14837 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14838
14839         [BZ #10103]
14840         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14841         declarations for long double functions.
14842         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14843
14844         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14845
14846 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14847
14848         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14849         installed.
14850
14851         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14852         is disabled.
14853
14854 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14855
14856         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14857
14858 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14859
14860         * include/alloca.h (stackinfo_alloca_round): Define.
14861         (extend_alloca): Use it.
14862         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14863         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14864         here.
14865
14866         * scripts/check-local-headers.sh: Ignore libaudit.h.
14867
14868         * nscd/Makefile (extra-objs): Make recursively expanded.
14869
14870 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14871
14872         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14873         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14874
14875         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14876         * posix/tst-rfc3484-2.c: Likewise.
14877         * posix/tst-rfc3484-3.c: Likewise.
14878
14879         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14880         process_vm_writev.
14881         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14882         process_vm_writev.
14883         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14884         process_vm_writev from libc using GLIBC_2.15 version.
14885
14886         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14887
14888 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14889
14890         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14891         stack usage.
14892
14893 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14894
14895         [BZ #13367]
14896         * nss/getent.c (initgroups_keys): Show error message in case no group
14897         names are given.
14898
14899         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14900         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14901         __bump_nl_timestamp.
14902         * nscd/connections (nscd_init): When host database is served open
14903         netlink socket and request notification about configuration changes.
14904         (main_loop_poll): Track netlink file descriptor and bump timestamp
14905         in case data becomes available.
14906         (main_loop_epoll): Likewise.
14907         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14908         (database_pers_head): Add extra_data fileds.
14909         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14910         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14911         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14912         Adjust caller.
14913         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14914         in6ai data, call __free_in6ai.
14915         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14916         Add -DHAVE_NETLINK.
14917         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14918         interface information.  Reuse previous data if netlink timestamp
14919         is not changed.
14920         (__bump_nl_timestamp): New function.
14921         (__free_in6ai): New function.
14922
14923 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14924
14925         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14926         close_not_cancel_no_status here.
14927         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14928
14929 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14930
14931         [BZ #13276]
14932         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14933         return value.
14934
14935         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14936         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14937         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14938
14939 2011-07-03  Andreas Jaeger  <aj@suse.de>
14940
14941         [BZ #10709]
14942         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14943         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14944         * math/libm-test.inc (sin_test): Add test case.
14945
14946 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14947
14948         [BZ #13337]
14949         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14950         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14951
14952         * elf/chroot_canon.c (chroot_canon): Cleanups.
14953
14954         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14955
14956         [BZ #13335]
14957         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14958         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14959
14960         * string/test-strchr.c: Make usable for strchrnul testing.
14961         * string/test-strchrnul.c: New file.
14962         * string/Makefile (strop-tests): Add strchrnul.
14963
14964         * po/it.po: Update from translation team.
14965         * po/es.po: Likewise.
14966
14967 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14968
14969         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14970         the three constants needed as parameters.  Drop the others.
14971         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14972         __m128i_strloadu_tolower.
14973         Create and initialize variable zero and use it in all the places
14974         where _mm_setzero_si128 was used.
14975
14976         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14977         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14978         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14979         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14980         anymore.
14981         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14982         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14983         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14984         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14985         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14986         __mpranred, __mptan.
14987         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14988         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14989         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14990         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14991         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14992         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14993         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14994         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14995         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14996
14997 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14998
14999         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15000         redefine if SHARED.
15001         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15002
15003         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15004         wide char related routines to wcsmbs subdir.
15005
15006 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15007
15008         [BZ #13344]
15009         * misc/sys/cdefs.h (__THROWNL): Define.
15010         * posix/unistd.h: Use __THREADNL instead of __THREAD
15011         for memory synchronization functions.
15012
15013 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15014
15015         [BZ #13349]
15016         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15017         doesn't exist.
15018         * manual/stdio.texi (Obstack Streams): Node removed.
15019
15020 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15021
15022         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15023         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15024         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15025
15026         * math/math_private.h (math_force_eval): Allow non-addressable
15027         arguments.
15028         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15029
15030 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15031
15032         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15033         file is not needed.
15034
15035         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15036         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15037         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15038         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15039         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15040         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15041         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15042         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15043         Add AVX variants.
15044         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15045         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15046         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15047         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15048         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15049         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15050         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15051         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15052         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15053         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15054         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15055         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15056         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15057         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15058         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15059         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15060         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15061         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15062         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15063
15064         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15065         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15066
15067         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15068         place.  Use VEX encoding when compiling for AVX.
15069
15070 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15071
15072         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15073         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15074
15075         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15076
15077 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15078
15079         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15080         useless if() expression.
15081         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15082         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15083         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15084         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15085         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15086         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15087         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15088         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15089         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15090         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15091         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15092         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15093         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15094         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15095         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15096         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15097         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15098         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15099         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15100
15101         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15102
15103 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15104
15105         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15106         condition.
15107         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15108
15109 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15110
15111         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15112         .text section.  Avoid duplicate constants.
15113         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15114         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15115         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15116         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15117         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15118         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15119         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15120         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15121         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15122         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15123         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15124         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15125         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15126         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15127         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15128         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15129         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15130         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15131         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15132         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15133         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15134         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15135         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15136         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15137         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15138         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15139         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15140         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15141         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15142         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15143         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15144         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15145         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15146         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15147         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15148         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15149         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15150         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15151         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15152         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15153         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15154         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15155         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15156         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15157         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15158
15159 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15160
15161         * sysdeps/x86_64/dla.h: Move to ...
15162         * sysdeps/x86_64/fpu/dla.h: ...here.
15163         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15164         situations.  Use __builtin_fma only for gcc 4.6 and up.
15165
15166         * config.make.in: Add have-mfma4 entry.
15167         * configure.in: Substitute libc_cv_cc_fma4.
15168         * math/Makefile (dbl-only-routines): Add sincostab.
15169         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15170         Use __sincostab not sincos.
15171         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15172         name is a macro.
15173         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15174         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15175         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15176         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15177         using __copysign.
15178         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15179         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15180         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15181         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15182         and __inv.
15183         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15184         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15185         __copysign.
15186         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15187         define aliases when function name is a macro.
15188         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15189         sysdeps/ieee754/dbl-64/sincos.tbl.
15190         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15191         fma4-enabled routines.
15192         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15193         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15194         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15195         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15196         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15197         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15198         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15199         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15200         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15201         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15202         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15203         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15204         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15205         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15206         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15207         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15208         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15209         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15210         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15211         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15212         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15213         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15214         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15215         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15216         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15217         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15218         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15219         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15220         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15221         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15222
15223         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15224         rename.
15225         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15226         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15227         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15228         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15229         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15230         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15231         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15232         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15233
15234 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15235
15236         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15237
15238 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15239
15240         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15241
15242         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15243         prediction.
15244         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15245
15246         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15247         Remove unused variable magic_bits.
15248         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15249
15250         * string/strnlen.c: Define and use STRNLEN macro.
15251         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15252         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15253         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15254         * wcsmbs/wcslen.c: Define and use WCSLEN.
15255         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15256         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15257         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15258         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15259         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15260         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15261         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15262
15263 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15264
15265         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15266         strnlen-sse2-no-bsf.
15267         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15268         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15269         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15270         Add strnlen support.
15271         (USE_AS_STRNLEN): New macro.
15272         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15273         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15274         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15275         * sysdeps/x86_64/wcslen.S: New file.
15276
15277 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15278
15279         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15280         XMM-moves are used for copying on small sizes.
15281
15282 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15283
15284         * wcsmbs/Makefile (strop-tests): Add wcschr.
15285         * wcsmbs/test-wcschr.c: New file.
15286         * string/test-strchr.c: Update.
15287         Add wcschr support.
15288         (WIDE): New macro.
15289
15290 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15291
15292         * wcsmbs/Makefile (strop-tests): Add wcslen.
15293         * wcsmbs/test-wcslen.c: New file.
15294         * string/test-strlen.c: Update.
15295         Add wcslen support.
15296         (WIDE): New macro.
15297
15298 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15299
15300         * po/it.po: Update from translation team.
15301
15302 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15303
15304         * sysdeps/x86_64/wcscmp.S: Update.
15305         Fix wrong comparison semantics.
15306         wcscmp shall use signed comparison not unsigned.
15307         Don't use substraction to avoid overflow bug.
15308         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15309         * wcsmbc/wcscmp.c: Likewise.
15310         * string/test-strcmp.c: Likewise.
15311         Add new tests to check cases with negative values.
15312
15313 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15314
15315         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15316         * sysdeps/x86_64/dla.h: ...here.  New file.
15317         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15318         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15319         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15320         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15321         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15322         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15323         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15324         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15325         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15326
15327 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15328
15329         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15330         __ynl_finite aliases.
15331
15332 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15333
15334         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15335
15336         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15337         define DLA_FMA.
15338         [DLA_FMA] (EMULV): Use DLA_FMA.
15339         [DLA_FMA] (MUL12): Use EMULV.
15340         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15341         that are not needed.
15342         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15343         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15344         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15345         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15346         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15347         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15348         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15349
15350 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15351
15352         * math/s_nan.c: Undef __nan.
15353         * math/s_nanf.c: Undef __nanf.
15354         * math/s_nanl.c: Undef __nanl.
15355         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15356         "math_private.h".
15357
15358 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15359
15360         * math/s_catan.c: Add branch predictions.
15361         * math/s_catanf.c: Likewise.
15362         * math/s_catanh.c: Likewise.
15363         * math/s_catanhf.c: Likewise.
15364         * math/s_catanhl.c: Likewise.
15365         * math/s_catanl.c: Likewise.
15366         * math/s_cexp.c: Likewise.
15367         * math/s_cexpf.c: Likewise.
15368         * math/s_cexpl.c: Likewise.
15369         * math/s_clog.c: Likewise.
15370         * math/s_clog10.c: Likewise.
15371         * math/s_clog10f.c: Likewise.
15372         * math/s_clog10l.c: Likewise.
15373         * math/s_clogf.c: Likewise.
15374         * math/s_clogl.c: Likewise.
15375         * math/s_csqrt.c: Likewise.
15376         * math/s_csqrtf.c: Likewise.
15377         * math/s_csqrtl.c: Likewise.
15378         * math/s_ctanf.c: Likewise.
15379         * math/s_ctanh.c: Likewise.
15380         * math/s_ctanhf.c: Likewise.
15381         * math/s_ctanhl.c: Likewise.
15382         * math/s_ctanl.c: Likewise.
15383
15384         * math/math_private.h: Define __nan, __nanf, __nanl.
15385         * math/s_cacosh.c: Include <math_private.h>.
15386         * math/s_cacoshl.c: Likewise.
15387         * math/s_casinh.c: Likewise.
15388         * math/s_casinhf.c: Likewise.
15389         * math/s_casinhl.c: Likewise.
15390         * math/s_ccos.c: Rely entire on ccosh.
15391         * math/s_ccosf.c: Rely entire on ccoshf.
15392         * math/s_ccosl.c: Rely entirely on ccoshl.
15393         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15394         Remove tests for FE_INVALID.
15395         * math/s_ccoshf.c: Likewise.
15396         * math/s_ccoshl.c: Likewise.
15397         * math/s_csin.c: Likewise.
15398         * math/s_csinf.c: Likewise.
15399         * math/s_csinh.c Likewise.
15400         * math/s_csinhf.c: Likewise.
15401         * math/s_csinhl.c: Likewise.
15402         * math/s_csinl.c: Likewise.
15403         * math/s_ctan.c: Likewise.
15404         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15405         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15406         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15407
15408 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15409
15410         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15411         compilation problems.
15412
15413         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15414         __builtin_expect.
15415
15416 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15417
15418         * sysdeps/i386/configure.in: Test for -mfma4 option.
15419         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15420         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15421         COMMON_CPUID_INDEX_80000001.
15422         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15423         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15424         use it if FMA3 is not supported.
15425         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15426
15427         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15428         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15429
15430 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15431
15432         [BZ #12892]
15433         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15434         it would create a cycle with a link time dependency.
15435
15436 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15437
15438         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15439         instruction.
15440         * string/Makefile (strop-tests): Add rawmemchr.
15441         * string/test-rawmemchr.c: New file.
15442
15443         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15444         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15445         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15446         when compiling str{,n}casecmp and when AVX is available.  Hook up
15447         new optimized code in initializers.
15448
15449 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15450
15451         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15452         __feraiseexcept instead of feraiseexcept.
15453
15454 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15455
15456         * math/math_private.h: Define defaults for libc_fetestexcept and
15457         libc_feupdateenv.
15458         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15459         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15460         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15461         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15462         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15463         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15464         libc_fetestexcept and libc_feupdateenv.
15465
15466         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15467         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15468         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15469         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15470         libc_feholdexcept_setround.
15471
15472         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15473         Add s_nearbyint-c and s_nearbyintf-c.
15474         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15475         nearbyintf inlines.
15476         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15477         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15478         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15479         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15480
15481         * math/math_private.h: Define defaults for libc_fegetround,
15482         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15483         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15484         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15485         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15486         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15487         standard functions.
15488         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15489         Remove comments and hacks for old compiler versions.
15490         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15491         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15492         libc_feholdexceptl.
15493
15494 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15495
15496         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15497         (__feraiseexcept_renamed): Add __NTH.
15498         (feraiseexcept): Add __NTH.  Rename local variables to fix
15499         namespace violations.
15500
15501 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15502
15503         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15504
15505         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15506
15507         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15508         recently added interfaces.
15509         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15510
15511         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15512         about macro parameter expansion.
15513
15514         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15515         __NO_MATH_INLINES is defined.  Cleanups.
15516
15517         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15518         and __floorf is target has SSE4.1.
15519         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15520         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15521         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15522         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15523
15524         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15525         name.
15526         (floorf): Likewise.
15527
15528         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15529
15530 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15531
15532         * misc/sys/cdefs.h: Fix last change.
15533
15534         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15535         database lookup.
15536
15537 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15538
15539         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15540
15541         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15542         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15543         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15544         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15545         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15546         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15547         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15548         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15549         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15550         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15551         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15552         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15553         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15554         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15555         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15556         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15557         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15558         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15559         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15560         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15561         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15562         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15563
15564         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15565         ceil, ceilf, floor, floorf.
15566
15567         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15568         Perform IRELATIVE relocations last.
15569
15570         * elf/do-rel.h: Add another parameter nrelative, replacing the
15571         local variable with the same name.  Change name of the function
15572         to end in Rel or Rela (uppercase).
15573         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15574         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15575         elf_dynamic_do_##reloc function.
15576
15577 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15578
15579         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15580         is sufficient, at least on modern CPUs.
15581
15582         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15583
15584         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15585         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15586
15587         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15588         __expl_finite.
15589         * math/bits/math-finite.h: Add entries for exp.
15590         * math/e_expl.c: Add __*_finite alias.
15591         * sysdeps/i386/fpu/e_exp.S: Likewise.
15592         * sysdeps/i386/fpu/e_expf.S: Likewise.
15593         * sysdeps/i386/fpu/e_expl.c: Likewise.
15594         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15595         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15596         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15597         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15598         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15599         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15600         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15601
15602         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15603         is sufficient, at least on modern CPUs.
15604
15605         * ctype/ctype-info.c (__ctype_init): Define.
15606         * include/ctype.h (__ctype_init): Declare.
15607         (__ctype_b_loc): The variable is always initialized.
15608         (__ctype_toupper_loc): Likewise.
15609         (__ctype_tolower_loc): Likewise.
15610         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15611         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15612
15613 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15614
15615         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15616
15617         * configure.in: Also look in $cxxmachine/include for C++ system
15618         headers.
15619
15620 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15621
15622         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15623         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15624         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15625         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15626         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15627         (USE_AS_WMEMCMP): New macro.
15628         Fixing indents.
15629         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15630         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15631         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15632         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15633         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15634         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15635         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15636         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15637         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15638         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15639         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15640         (USE_AS_WMEMCMP): New macro.
15641         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15642         * sysdeps/string/test-memcmp.c: Update.
15643         Fix simple_wmemcmp.
15644         Add new tests.
15645         * wcsmbs/wmemcmp.c: Update.
15646         (WMEMCMP): New macro.
15647         Fix overflow bug.
15648
15649 2011-10-12  Andreas Jaeger  <aj@suse.de>
15650
15651         [BZ #13268]
15652         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15653
15654 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15655
15656         * libio/iofwide.c (do_length): Avoid warning.
15657
15658         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15659
15660 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15661
15662         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15663
15664         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15665         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15666         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15667         * sysdeps/i386/i686/fpu/e_log.S: New file.
15668         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15669         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15670
15671         * ctype/ctype.h: Add support for inlined isXXX functions when
15672         compiling C++ code.
15673
15674 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15675
15676         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15677
15678         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15679
15680 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15681
15682         [BZ #13291]
15683         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15684
15685 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15686
15687         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15688         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15689         feraiseexcept.
15690
15691         * sysdeps/x86_64/memrchr.S: Check for zero size.
15692
15693         * string/stratcliff.c: Add memrchr tests.
15694
15695 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15696
15697         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15698         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15699         rawmemchr-sse2 rawmemchr-sse2-bsf.
15700         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15701         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15702         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15703         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15704         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15705         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15706         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15707         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15708         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15709         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15710         * string/memrchr.c (MEMRCHR): New macro.
15711
15712 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15713
15714         Add integration with gcc's -ffinite-math-only and optimize wrapper
15715         functions in libm.
15716         * Versions.def: Define GLIBC_2.15 version for libm.
15717         * math/Makefile (headers): Add bits/math-finite.h.
15718         * math/bits/math-finite.h: New file.
15719         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15720         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15721         * math/e_acoshl.c: Add __*_finite alias.
15722         * math/e_acosl.c: Likewise.
15723         * math/e_asinl.c: Likewise.
15724         * math/e_atan2l.c: Likewise.
15725         * math/e_atanhl.c: Likewise.
15726         * math/e_coshl.c: Likewise.
15727         * math/e_exp10.c: Likewise.
15728         * math/e_exp10f.c: Likewise.
15729         * math/e_exp10l.c: Likewise.
15730         * math/e_exp2l.c: Likewise.
15731         * math/e_fmodl.c: Likewise.
15732         * math/e_gammal_r.c: Likewise.
15733         * math/e_hypotl.c: Likewise.
15734         * math/e_j0l.c: Likewise.
15735         * math/e_j1l.c: Likewise.
15736         * math/e_jnl.c: Likewise.
15737         * math/e_lgammal_r.c: Likewise.
15738         * math/e_log10l.c: Likewise.
15739         * math/e_log2l.c: Likewise.
15740         * math/e_logl.c: Likewise.
15741         * math/e_powl.c: Likewise.
15742         * math/e_sinhl.c: Likewise.
15743         * math/e_sqrtl.c: Likewise.
15744         * math/e_scalb.c: Completely rewritten and optimized.
15745         * math/e_scalbf.c: Likewise.
15746         * math/e_scalbl.c: Likewise.
15747         * math/w_acos.c: Likewise.
15748         * math/w_acosf.c: Likewise.
15749         * math/w_acosl.c: Likewise.
15750         * math/w_acosh.c: Likewise.
15751         * math/w_acoshf.c: Likewise.
15752         * math/w_acoshl.c: Likewise.
15753         * math/w_asin.c: Likewise.
15754         * math/w_asinf.c: Likewise.
15755         * math/w_asinl.c: Likewise.
15756         * math/w_atan2.c: Likewise.
15757         * math/w_atan2f.c: Likewise.
15758         * math/w_atan2l.c: Likewise.
15759         * math/w_atanh.c: Likewise.
15760         * math/w_atanhf.c: Likewise.
15761         * math/w_atanhl.c: Likewise.
15762         * math/w_exp10.c: Likewise.
15763         * math/w_exp10f.c: Likewise.
15764         * math/w_exp10l.c: Likewise.
15765         * math/w_fmod.c: Likewise.
15766         * math/w_fmodf.c: Likewise.
15767         * math/w_fmodl.c: Likewise.
15768         * math/w_j0.c: Likewise.
15769         * math/w_j0f.c: Likewise.
15770         * math/w_j0l.c: Likewise.
15771         * math/w_j1.c: Likewise.
15772         * math/w_j1f.c: Likewise.
15773         * math/w_j1l.c: Likewise.
15774         * math/w_jn.c: Likewise.
15775         * math/w_jnf.c: Likewise.
15776         * math/w_log.c: Likewise.
15777         * math/w_logf.c: Likewise.
15778         * math/w_logl.c: Likewise.
15779         * math/w_log10.c: Likewise.
15780         * math/w_log10f.c: Likewise.
15781         * math/w_log10l.c: Likewise.
15782         * math/w_log2.c: Likewise.
15783         * math/w_log2f.c: Likewise.
15784         * math/w_log2l.c: Likewise.
15785         * math/w_pow.c: Likewise.
15786         * math/w_powf.c: Likewise.
15787         * math/w_powl.c: Likewise.
15788         * math/w_remainder.c: Likewise.
15789         * math/w_remainderf.c: Likewise.
15790         * math/w_remainderl.c: Likewise.
15791         * math/w_scalb.c: Likewise.
15792         * math/w_scalbf.c: Likewise.
15793         * math/w_scalbl.c: Likewise.
15794         * math/w_sqrt.c: Likewise.
15795         * math/w_sqrtf.c: Likewise.
15796         * math/w_sqrtl.c: Likewise.
15797         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15798         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15799         used.
15800         * math/math_private.h: Declare __kernel_standard_f.
15801         * math/w_cosh.c: Remove cruft and optimize a bit.
15802         * math/w_coshf.c: Likewise.
15803         * math/w_coshl.c: Likewise.
15804         * math/w_exp2.c: Likewise.
15805         * math/w_exp2f.c: Likewise.
15806         * math/w_exp2l.c: Likewise.
15807         * math/w_hypot.c: Likewise.
15808         * math/w_hypotf.c: Likewise.
15809         * math/w_hypotl.c: Likewise.
15810         * math/w_lgamma.c: Likewise.
15811         * math/w_lgamma_r.c: Likewise.
15812         * math/w_lgammaf.c: Likewise.
15813         * math/w_lgammaf_r.c: Likewise.
15814         * math/w_lgammal.c: Likewise.
15815         * math/w_lgammal_r.c: Likewise.
15816         * math/w_sinh.c: Likewise.
15817         * math/w_sinhf.c: Likewise.
15818         * math/w_sinhl.c: Likewise.
15819         * math/w_tgamma.c: Likewise.
15820         * math/w_tgammaf.c: Likewise.
15821         * math/w_tgammal.c: Likewise.
15822         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15823         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15824         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15825         Minor optimizations.  Pretty printing.  Remove cruft.
15826         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15827         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15828         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15829         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15830         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15831         * sysdeps/i386/fpu/e_asin.S: Likewise.
15832         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15833         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15834         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15835         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15836         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15837         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15838         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15839         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15840         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15841         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15842         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15843         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15844         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15845         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15846         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15847         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15848         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15849         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15850         * sysdeps/i386/fpu/e_log.S: Likewise.
15851         * sysdeps/i386/fpu/e_log10.S: Likewise.
15852         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15853         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15854         * sysdeps/i386/fpu/e_log2.S: Likewise.
15855         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15856         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15857         * sysdeps/i386/fpu/e_logf.S: Likewise.
15858         * sysdeps/i386/fpu/e_logl.S: Likewise.
15859         * sysdeps/i386/fpu/e_pow.S: Likewise.
15860         * sysdeps/i386/fpu/e_powf.S: Likewise.
15861         * sysdeps/i386/fpu/e_powl.S: Likewise.
15862         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15863         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15864         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15865         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15866         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15867         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15868         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15869         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15870         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15871         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15872         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15873         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15874         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15875         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15876         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15877         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15878         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15879         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15880         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15881         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15882         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15883         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15884         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15885         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15886         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15887         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15888         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15889         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15890         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15891         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15892         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15893         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15894         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15895         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15896         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15897         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15898         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15899         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15900         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15901         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15902         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15903         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15904         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15905         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15906         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15907         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15908         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15909         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15910         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15911         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15912         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15913         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15914         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15915         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15916         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15917         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15920         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15921         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15922         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15923         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15924         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15925         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15926         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15927         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15928         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15929         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15930         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15931         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15932         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15933         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15934         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15935         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15936         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15937         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15938         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15939         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15940         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15941         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15942         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15943         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15944         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15945         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15946         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15947         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15948         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15949         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15950         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15951         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15952         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15953         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15954         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15955         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15956         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15957         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15958         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15959         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15960         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15961         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15962         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15963         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15964         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15965         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15966         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15967         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15968         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15969         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15970         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15971         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15972         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15973         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15974         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15975         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15976         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15977         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15978         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15979         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15980         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15981         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15982         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15983         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15984         (__isnanf): Likewise.
15985         (__isinf_ns): Likewise.
15986         (__isinf_nsf): Likewise.
15987         (__finite): Likewise.
15988         (__finitef): Likewise.
15989         (__ieee754_sqrt): Define as macro.
15990         (__ieee754_sqrtf): Define as macro.
15991         (__ieee754_sqrtl): Define as macro.
15992         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15993         inlined copy.
15994         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15995         __FINITE_MATH_ONLY__ consistent.
15996         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15997
15998 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15999
16000         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16001         of rawmemchr.
16002
16003         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16004
16005 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16006
16007         * po/ja.po: Update from translation team.
16008
16009 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16010
16011         * locale/programs/locarchive.c (prepare_address_space): New function.
16012         (create_archive, enlarge_archive, open_archive): Use it.
16013
16014         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16015         inside [SHARED], where it is used.
16016
16017         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16018
16019         * nss/getent.c (netgroup_keys): Remove unused variable.
16020         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16021
16022 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16023
16024         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16025         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16026         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16027         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16028         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16029         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16030         * math/Makefile (libm-calls): Add s_isinf_ns.
16031         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16032         * math/multc3.c: Likewise.
16033         * math/s_casin.c: Likewise.
16034         * math/s_casinf.c: Likewise.
16035         * math/s_casinl.c: Likewise.
16036         * math/s_ccos.c: Likewise.
16037         * math/s_ccosf.c: Likewise.
16038         * math/s_ccosl.c: Likewise.
16039         * math/s_ctan.c: Likewise.
16040         * math/s_ctanf.c: Likewise.
16041         * math/s_ctanh.c: Likewise.
16042         * math/s_ctanhf.c: Likewise.
16043         * math/s_ctanhl.c: Likewise.
16044         * math/s_ctanl.c: Likewise.
16045         * math/w_fmod.c: Likewise.
16046         * math/w_fmodf.c: Likewise.
16047         * math/w_fmodl.c: Likewise.
16048         * math/w_remainder.c: Likewise.
16049         * math/w_remainderf.c: Likewise.
16050         * math/w_remainderl.c: Likewise.
16051         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16052         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16053         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16054         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16055         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16056         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16057         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16058         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16059
16060         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16061         of the number.
16062         * stdio-common/printf_fphex.c: Likewise.
16063         * stdio-common/printf_size.c: Likewise.
16064
16065         * math/e_exp10.c: Include math_private.h using <...> not "...".
16066         * math/e_exp10f.c: Likewise.
16067         * math/e_exp10l.c: Likewise.
16068         * math/e_exp2l.c: Likewise.
16069         * math/e_j0l.c: Likewise.
16070         * math/e_j1l.c: Likewise.
16071         * math/e_jnl.c: Likewise.
16072         * math/e_lgammal_r.c: Likewise.
16073         * math/e_rem_pio2l.c: Likewise.
16074         * math/e_scalb.c: Likewise.
16075         * math/e_scalbf.c: Likewise.
16076         * math/e_scalbl.c: Likewise.
16077         * math/k_cosl.c: Likewise.
16078         * math/k_sinl.c: Likewise.
16079         * math/k_tanl.c: Likewise.
16080         * math/s_cacoshf.c: Likewise.
16081         * math/s_catan.c: Likewise.
16082         * math/s_catanf.c: Likewise.
16083         * math/s_catanh.c: Likewise.
16084         * math/s_catanhf.c: Likewise.
16085         * math/s_catanhl.c: Likewise.
16086         * math/s_catanl.c: Likewise.
16087         * math/s_ccosh.c: Likewise.
16088         * math/s_ccoshf.c: Likewise.
16089         * math/s_ccoshl.c: Likewise.
16090         * math/s_cexp.c: Likewise.
16091         * math/s_cexpf.c: Likewise.
16092         * math/s_cexpl.c: Likewise.
16093         * math/s_clog.c: Likewise.
16094         * math/s_clog10.c: Likewise.
16095         * math/s_clog10f.c: Likewise.
16096         * math/s_clog10l.c: Likewise.
16097         * math/s_clogf.c: Likewise.
16098         * math/s_clogl.c: Likewise.
16099         * math/s_csin.c: Likewise.
16100         * math/s_csinf.c: Likewise.
16101         * math/s_csinh.c: Likewise.
16102         * math/s_csinhf.c: Likewise.
16103         * math/s_csinhl.c: Likewise.
16104         * math/s_csinl.c: Likewise.
16105         * math/s_csqrt.c: Likewise.
16106         * math/s_csqrtf.c: Likewise.
16107         * math/s_csqrtl.c: Likewise.
16108         * math/s_ctan.c: Likewise.
16109         * math/s_ctanf.c: Likewise.
16110         * math/s_ctanh.c: Likewise.
16111         * math/s_ctanhf.c: Likewise.
16112         * math/s_ctanhl.c: Likewise.
16113         * math/s_ctanl.c: Likewise.
16114         * math/s_ldexp.c: Likewise.
16115         * math/s_ldexpf.c: Likewise.
16116         * math/s_ldexpl.c: Likewise.
16117         * math/s_significand.c: Likewise.
16118         * math/s_significandf.c: Likewise.
16119         * math/s_significandl.c: Likewise.
16120         * math/w_acos.c: Likewise.
16121         * math/w_acosf.c: Likewise.
16122         * math/w_acosh.c: Likewise.
16123         * math/w_acoshf.c: Likewise.
16124         * math/w_acoshl.c: Likewise.
16125         * math/w_acosl.c: Likewise.
16126         * math/w_asin.c: Likewise.
16127         * math/w_asinf.c: Likewise.
16128         * math/w_asinl.c: Likewise.
16129         * math/w_atan2.c: Likewise.
16130         * math/w_atan2f.c: Likewise.
16131         * math/w_atan2l.c: Likewise.
16132         * math/w_atanh.c: Likewise.
16133         * math/w_atanhf.c: Likewise.
16134         * math/w_atanhl.c: Likewise.
16135         * math/w_cosh.c: Likewise.
16136         * math/w_coshf.c: Likewise.
16137         * math/w_coshl.c: Likewise.
16138         * math/w_dremf.c: Likewise.
16139         * math/w_exp10.c: Likewise.
16140         * math/w_exp10f.c: Likewise.
16141         * math/w_exp10l.c: Likewise.
16142         * math/w_exp2.c: Likewise.
16143         * math/w_exp2f.c: Likewise.
16144         * math/w_fmod.c: Likewise.
16145         * math/w_fmodf.c: Likewise.
16146         * math/w_fmodl.c: Likewise.
16147         * math/w_hypot.c: Likewise.
16148         * math/w_hypotf.c: Likewise.
16149         * math/w_hypotl.c: Likewise.
16150         * math/w_j0.c: Likewise.
16151         * math/w_j0f.c: Likewise.
16152         * math/w_j0l.c: Likewise.
16153         * math/w_j1.c: Likewise.
16154         * math/w_j1f.c: Likewise.
16155         * math/w_j1l.c: Likewise.
16156         * math/w_jn.c: Likewise.
16157         * math/w_jnf.c: Likewise.
16158         * math/w_jnl.c: Likewise.
16159         * math/w_lgamma.c: Likewise.
16160         * math/w_lgamma_r.c: Likewise.
16161         * math/w_lgammaf.c: Likewise.
16162         * math/w_lgammaf_r.c: Likewise.
16163         * math/w_lgammal.c: Likewise.
16164         * math/w_lgammal_r.c: Likewise.
16165         * math/w_log.c: Likewise.
16166         * math/w_log10.c: Likewise.
16167         * math/w_log10f.c: Likewise.
16168         * math/w_log10l.c: Likewise.
16169         * math/w_log2.c: Likewise.
16170         * math/w_log2f.c: Likewise.
16171         * math/w_log2l.c: Likewise.
16172         * math/w_logf.c: Likewise.
16173         * math/w_logl.c: Likewise.
16174         * math/w_pow.c: Likewise.
16175         * math/w_powf.c: Likewise.
16176         * math/w_powl.c: Likewise.
16177         * math/w_remainder.c: Likewise.
16178         * math/w_remainderf.c: Likewise.
16179         * math/w_remainderl.c: Likewise.
16180         * math/w_scalb.c: Likewise.
16181         * math/w_scalbf.c: Likewise.
16182         * math/w_scalbl.c: Likewise.
16183         * math/w_sinh.c: Likewise.
16184         * math/w_sinhf.c: Likewise.
16185         * math/w_sinhl.c: Likewise.
16186         * math/w_sqrt.c: Likewise.
16187         * math/w_sqrtf.c: Likewise.
16188         * math/w_sqrtl.c: Likewise.
16189         * math/w_tgamma.c: Likewise.
16190         * math/w_tgammaf.c: Likewise.
16191         * math/w_tgammal.c: Likewise.
16192
16193         * po/ja.po: Update from translation team.
16194
16195 2011-09-29  Andreas Jaeger  <aj@suse.de>
16196
16197         [BZ #13179]
16198         * sunrpc/netname.c (netname2host): Fix logic.
16199
16200         [BZ #6779]
16201         [BZ #6783]
16202         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16203         correctly.
16204         * math/w_remainder.c (__remainder): Likewise.
16205         * math/w_remainderf.c (__remainderf): Likewise.
16206         * math/libm-test.inc (remainder_test): Add test cases.
16207
16208 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16209
16210         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16211         sdiv_qrnnd.
16212
16213 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16214
16215         * string/test-memcmp.c: Avoid unncessary #defines.
16216         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16217
16218 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16219
16220         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16221         Use new sse2 version for core i3 - i7 as it's faster
16222         than sse42 version.
16223         (bit_Prefer_PMINUB_for_stringop): New.
16224         * sysdeps/x86_64/rawmemchr.S: Update.
16225         Replace with faster SSE2 version.
16226         * sysdeps/x86_64/memrchr.S: New file.
16227         * sysdeps/x86_64/memchr.S: Update.
16228         Replace with faster SSE2 version.
16229
16230 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16231
16232         * elf/dl-load.c (lose): Add cast to avoid warning.
16233
16234 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16235
16236         * po/ca.po: Update from translation team.
16237
16238         * inet/getnetgrent_r.c: Hook up nscd.
16239         * nscd/Makefile (routines): Add nscd_netgroup.
16240         (nscd-modules): Add netgroupcache.
16241         (CFLAGS-netgroupcache.c): Define.
16242         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16243         (cache_search): Add const to second parameter.
16244         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16245         INNETGR.
16246         (dbs): Add netgrdb entry.
16247         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16248         (verify_persistent_db): Handle netgrdb.
16249         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16250         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16251         GETFDNETGR.
16252         (netgroup_response_header): Define.
16253         (innetgroup_response_header): Define.
16254         (datahead): Add netgroup_response_header and innetgroup_response_header
16255         elements.
16256         * nscd/nscd.conf: Add entries for netgroup cache.
16257         * nscd/nscd.h (dbtype): Add netgrdb.
16258         (_PATH_NSCD_NETGROUP_DB): Define.
16259         (netgroup_iov_disabled): Declare.
16260         (xmalloc, xcalloc, xrealloc): Move declarations here.
16261         (cache_search): Adjust prototype.
16262         Add netgroup-related prototypes.
16263         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16264         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16265         (__nscd_innetgr): Declare.
16266         * nscd/selinux.c (perms): Use access_vector_t as element type and
16267         add netgroup-related initializers.
16268         * nscd/netgroupcache.c: New file.
16269         * nscd/nscd_netgroup.c: New file.
16270         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16271         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16272         For four parameters use innetgr.
16273         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16274         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16275         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16276         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16277
16278         * nscd/connections.c (register_traced_file): Don't register file
16279         for disabled databases.
16280
16281 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16282
16283         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16284
16285         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16286         from tree and freeing node.
16287
16288 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16289
16290         * nss/nsswitch.c (__nss_database_lookup): Handle
16291         nss_parse_service_list out of memory case.
16292
16293 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16294
16295         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16296         out of memory case.
16297
16298 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16299
16300         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16301         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16302         pass it down.
16303         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16304         elf_machine_rela, elf_machine_lazy_rel.
16305         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16306         (ELF_DYNAMIC_DO_REL): Likewise.
16307         (ELF_DYNAMIC_DO_RELA): Likewise.
16308         (ELF_DYNAMIC_RELOCATE): Likewise.
16309         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16310         to ELF_DYNAMIC_DO_REL.
16311         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16312         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16313         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16314         elf_machine_rela.
16315         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16316         skip_ifunc, don't call ifunc function if non-zero.
16317         (elf_machine_rela): Likewise.
16318         (elf_machine_lazy_rel): Likewise.
16319         (elf_machine_lazy_rela): Likewise.
16320         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16321         (elf_machine_lazy_rel): Likewise.
16322         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16323         Likewise.
16324         (elf_machine_lazy_rel): Likewise.
16325         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16326         Likewise.
16327         (elf_machine_lazy_rel): Likewise.
16328         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16329         (elf_machine_lazy_rel): Likewise.
16330         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16331         (elf_machine_lazy_rel): Likewise.
16332         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16333         (elf_machine_lazy_rel): Likewise.
16334         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16335         (elf_machine_lazy_rel): Likewise.
16336         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16337         (elf_machine_lazy_rel): Likewise.
16338         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16339         (elf_machine_lazy_rel): Likewise.
16340
16341 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16342
16343         * nss/nss_files/files-init.c (_nss_files_init): Use static
16344         initialization for all the *_traced_file variables.
16345
16346 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16347
16348         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16349
16350 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16351
16352         [BZ #13226]
16353         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16354
16355 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16356
16357         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16358         Reread the line before reparsing it.
16359
16360 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16361
16362         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16363
16364 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16365             Maxim Kuvyrkov  <maxim@codesourcery.com>
16366             Joseph Myers  <joseph@codesourcery.com>
16367
16368         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16369         if needed for __stack_chk_guard.
16370
16371 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16372
16373         * sysdeps/posix/spawni.c (script_execute): Always define it.
16374         It will be optimized away if unused.
16375         (maybe_script_execute): New function.
16376         (__spawni): Call it.
16377
16378         * Makerules: Don't include tls.make.
16379         (config-tls): Always set to thread.
16380         * tls.make.c: File removed.
16381
16382 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16383
16384         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16385         * config.make.in (CPPFLAGS-config): New substituted variable.
16386
16387 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16388
16389         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16390
16391         [BZ #13192]
16392         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16393         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16394
16395 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16396
16397         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16398         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16399         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16400         (CALL_FAIL): Likewise.
16401         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16402         (CALL_FAIL): Macro removed.
16403         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16404
16405 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16406
16407         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16408         for __FINITE_MATH_ONLY__ == 1.
16409
16410 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16411
16412         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16413         __ieee754_sqrt instead of sqrt.
16414         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16415         __ieee754_sqrtf instead of sqrtf.
16416         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16417         __floorf instead of floorf.
16418         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16419         __floorf, __truncf instead of floorf, truncf.
16420
16421 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16422
16423         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16424
16425         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16426         __extern_always_inline.
16427         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16428         32-bit.
16429
16430 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16431
16432         * elf/rtld.c (dl_main): Also relocate in dependency order when
16433         doing symbol dependency testing.
16434
16435 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16436
16437         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16438         Always define `refsym'.
16439
16440 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16441
16442         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16443         (__FD_ELT): Renamed from __FDELT.
16444         * misc/bits/select2.h (__FD_ELT): Likewise.
16445         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16446         __FD_MASK instead of __FDELT, __FDMASK.
16447         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16448         Likewise.
16449         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16450         Likewise.
16451
16452         * elf/Makefile (gen-ldd): Fix pattern.
16453
16454         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16455         (init_tls): Likewise.
16456
16457 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16458
16459         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16460
16461 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16462
16463         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16464         `struct cmsghdr *' instead of `void *'.
16465         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16466         Likewise.
16467
16468 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16469
16470         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16471         if non-absolute.
16472         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16473         ldd_rewrite_script.
16474
16475 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16476
16477         * configure.in: Remove --with-tls option.
16478         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16479         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16480         out in case it is missing.
16481         * sysdeps/ia64/elf/configure.in: Likewise.
16482         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16483         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16484         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16485         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16486         * sysdeps/sh/elf/configure.in: Likewise.
16487         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16488         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16489         * sysdeps/x86_64/elf/configure.in: Likewise.
16490         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16491         * sysdeps/mach/hurd/tls.h: Likewise.
16492
16493         [BZ #13067]
16494         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16495
16496         [BZ #13090]
16497         * configure.in: Fix use of AC_INIT.
16498
16499         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16500
16501 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16502
16503         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16504         __set_errno.
16505         * malloc/hooks.c: Likewise.
16506
16507         [BZ #11929]
16508         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16509         variables statically.
16510         (narenas): Initialize.
16511         (list_lock): Initialize.
16512         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16513         initializtion of main_arena and list_lock.  Small cleanups.
16514         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16515         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16516         Add initializers to main_arena and mp_.
16517         (malloc_state): Remove pagesize member.  Change all users to use
16518         GLRO(dl_pagesize).
16519
16520         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16521         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16522         is always initialized.
16523
16524         * malloc/malloc.c: Removed unused configurations and dead code.
16525         * malloc/arena.c: Likewise.
16526         * malloc/hooks.c: Likewise.
16527         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16528
16529         * include/tls.h: Removed.  USE___THREAD must always be defined.
16530         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16531         * elf/dl-libc.c: Likewise.
16532         * elf/dl-tsd.c: Likewise.
16533         * include/errno.h: Likewise.
16534         * include/netdb.h: Likewise.
16535         * include/resolv.h: Likewise.
16536         * inet/herrno-loc.c: Likewise.
16537         * inet/herrno.c: Likewise.
16538         * malloc/arena.c: Likewise.
16539         * malloc/hooks.c: Likewise.
16540         * malloc/malloc.c: Likewise.
16541         * resolv/res-state.c: Likewise.
16542         * resolv/res_libc.c: Likewise.
16543         * sysdeps/i386/dl-machine.h: Likewise.
16544         * sysdeps/ia64/dl-machine.h: Likewise.
16545         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16546         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16547         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16548         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16549         * sysdeps/sh/dl-machine.h: Likewise.
16550         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16551         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16552         * sysdeps/unix/i386/sysdep.S: Likewise.
16553         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16554         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16555         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16556         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16557         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16558         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16559         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16560         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16561         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16562         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16563         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16564         * sysdeps/x86_64/dl-machine.h: Likewise.
16565         * tls.make.c: Likewise.
16566
16567         * configure.in: Remove --with-__thread option.  Make tests for
16568         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16569         tls_model attribute fail if no support is available.  Remove
16570         USE_IN_LIBIO.
16571         * Makeconfig: Adjust for dropped configure option.  All features are
16572         now mandatory.
16573         * Makerules: Likewise.
16574         * Versions.def: Likewise.
16575         * argp/argp-fmtstream.c: Likewise.
16576         * argp/argp-fmtstream.h: Likewise.
16577         * argp/argp-help.c: Likewise.
16578         * assert/assert.c: Likewise.
16579         * config.h.in: Likewise.
16580         * config.make.in: Likewise.
16581         * configure: Likewise.
16582         * configure.in: Likewise.
16583         * csu/Versions: Likewise.
16584         * csu/init.c: Likewise.
16585         * elf/tst-audit2.c: Likewise.
16586         * elf/tst-tls10.c: Likewise.
16587         * elf/tst-tls10.h: Likewise.
16588         * elf/tst-tls11.c: Likewise.
16589         * elf/tst-tls12.c: Likewise.
16590         * elf/tst-tls14.c: Likewise.
16591         * elf/tst-tlsmod11.c: Likewise.
16592         * elf/tst-tlsmod12.c: Likewise.
16593         * elf/tst-tlsmod13.c: Likewise.
16594         * elf/tst-tlsmod13a.c: Likewise.
16595         * elf/tst-tlsmod14a.c: Likewise.
16596         * elf/tst-tlsmod15b.c: Likewise.
16597         * elf/tst-tlsmod16a.c: Likewise.
16598         * elf/tst-tlsmod16b.c: Likewise.
16599         * elf/tst-tlsmod7.c: Likewise.
16600         * elf/tst-tlsmod8.c: Likewise.
16601         * elf/tst-tlsmod9.c: Likewise.
16602         * gmon/gmon.c: Likewise.
16603         * grp/fgetgrent_r.c: Likewise.
16604         * grp/putgrent.c: Likewise.
16605         * hurd/fopenport.c: Likewise.
16606         * include/libc-symbols.h: Likewise.
16607         * include/tls.h: Likewise.
16608         * intl/gettextP.h: Likewise.
16609         * intl/loadinfo.h: Likewise.
16610         * locale/global-locale.c: Likewise.
16611         * locale/localeinfo.h: Likewise.
16612         * mach/devstream.c: Likewise.
16613         * malloc/arena.c: Likewise.
16614         * malloc/set-freeres.c: Likewise.
16615         * misc/err.c: Likewise.
16616         * misc/getttyent.c: Likewise.
16617         * misc/mntent_r.c: Likewise.
16618         * posix/getopt.c: Likewise.
16619         * posix/wordexp.c: Likewise.
16620         * pwd/fgetpwent_r.c: Likewise.
16621         * resolv/Versions: Likewise.
16622         * resolv/res_hconf.c: Likewise.
16623         * shadow/fgetspent_r.c: Likewise.
16624         * shadow/putspent.c: Likewise.
16625         * stdio-common/printf_fphex.c: Likewise.
16626         * stdio-common/tmpfile.c: Likewise.
16627         * stdlib/abort.c: Likewise.
16628         * stdlib/fmtmsg.c: Likewise.
16629         * sunrpc/auth_unix.c: Likewise.
16630         * sunrpc/clnt_perr.c: Likewise.
16631         * sunrpc/clnt_tcp.c: Likewise.
16632         * sunrpc/clnt_udp.c: Likewise.
16633         * sunrpc/clnt_unix.c: Likewise.
16634         * sunrpc/openchild.c: Likewise.
16635         * sunrpc/svc_simple.c: Likewise.
16636         * sunrpc/svc_tcp.c: Likewise.
16637         * sunrpc/svc_udp.c: Likewise.
16638         * sunrpc/svc_unix.c: Likewise.
16639         * sunrpc/xdr.c: Likewise.
16640         * sunrpc/xdr_array.c: Likewise.
16641         * sunrpc/xdr_rec.c: Likewise.
16642         * sunrpc/xdr_ref.c: Likewise.
16643         * sunrpc/xdr_stdio.c: Likewise.
16644
16645 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16646
16647         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16648
16649 2011-07-03  Andreas Jaeger  <aj@suse.de>
16650
16651         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16652         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16653         regenerate with gen-libm-tests.pl.
16654
16655 2010-05-12  Petr Baudis  <pasky@suse.cz>
16656
16657         [BZ #11589]
16658         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16659         around j0() zero points by switching to j1().
16660         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16661         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16662         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16663         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16664
16665 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16666
16667         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16668         instead of 0.
16669         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16670         instead of 0.                              .
16671         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16672         Patch in part by Pavel Roskin <proski@gnu.org>.
16673
16674         [BZ #13138]
16675         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16676         realloc.
16677         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16678         Free memory block if necessary.
16679
16680         [BZ #12847]
16681         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16682         be NULL.  Don't lock in this case.
16683
16684 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16685
16686         * elf/elf.h (ELFOSABI_GNU): New macro.
16687         (ELFOSABI_LINUX): Define to that.
16688
16689 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16690
16691         * string/strncat.c (strncat): Undef the symbol in case it has been
16692         defined in bits/string.h.
16693
16694 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16695
16696         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16697
16698         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16699         link map.
16700
16701 2011-08-17  Andreas Jaeger  <aj@suse.de>
16702
16703         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16704
16705 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16706             Ian Lance Taylor  <iant@google.com>
16707
16708         * math/libm-test.inc (lround_test): New testcase.
16709         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16710
16711 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16712
16713         * Makefile: Remove support for automatic cvs check-ins.
16714         * Makerules: Likewise.
16715         * config.make.in: Likewise.
16716         * configure.in: Likewise.
16717         * intl/Makefile: Likewise.
16718         * locale/Makefile: Likewise.
16719         * po/Makefile: Likewise.
16720         * posix/Makefile: Likewise.
16721         * sysdeps/gnu/Makefile: Likewise.
16722         * sysdeps/mach/hurd/Makefile: Likewise.
16723         * sysdeps/sparc/sparc32/Makefile: Likewise.
16724
16725         [BZ #13118]
16726         * posix/Makefile (bug-regex32-ENV): Define.
16727         Patch by John Stanley <jpsinthemix@verizon.net>.
16728
16729         * misc/Makefile (headers): Add bits/select2.h.
16730         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16731         * misc/bits/select2.h: New file.
16732         * include/bits/select2.h: New file.
16733         * debug/Makefile (routines): Add fdelt_chk.
16734         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16735         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16736         FD_ISSET.
16737         * debug/fdelt_chk.c: New file.
16738
16739         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16740         * wcsmbs/test-wmemcmp.c: Likewise.
16741         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16742         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16743
16744 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16745
16746         * string/Makefile (strop-tests): Add memcmp.
16747         * string/test-wmemcmp.c: New file.
16748         * string/test-memcmp.c: Add wmemcmp support.
16749
16750 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16751
16752         [BZ #13153]
16753         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16754         2011-07-19 change.
16755
16756         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16757         garbage value in a __mach_port_mod_refs call in the cases of the
16758         task-self and thread-self ports.
16759
16760 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16761
16762         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16763
16764 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16765
16766         * elf/dl-load.c (lose): Check for non-null L.
16767
16768 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16769
16770         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16771
16772         * elf/dl-libc.c (dlerror_run): Pass back error code from
16773         dl_catch_error.
16774
16775         [BZ #13123]
16776         * elf/dl-load.c (lose): Free l_origin if it is valid.
16777
16778         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16779         names.
16780         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16781         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16782         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16783         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16784         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16785         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16786
16787 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16788
16789         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16790         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16791         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16792         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16793         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16794         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16795         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16796         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16797         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16798         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16799
16800 2011-08-15  Alan Modra  <amodra@gmail.com>
16801
16802         [BZ #13092]
16803         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16804         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16805         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16806         ppc_mcount to static-only-routines.
16807         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16808         __mcount_internal.
16809         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16810         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16811
16812 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16813
16814         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16815         for finite and infinity parameters.
16816
16817 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16818
16819         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16820         and add nop instructions for throughput optimization.
16821         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16822
16823 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16824
16825         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16826         aligned copy for power7 with vector-scalar instructions.
16827         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16828
16829 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16830
16831         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16832         AVX check.
16833
16834 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16835
16836         [BZ #13144]
16837         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16838         last change.
16839
16840 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16841
16842         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16843         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16844         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16845         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16846         clock_gettime.
16847
16848 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16849
16850         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16851         Forgot to demangle the pointer.
16852
16853         * sysdeps/i386/sysdep.h: Define atom_text_section.
16854         * sysdeps/x86_64/sysdep.h: Likewise.
16855         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16856         section with atom_text_section.
16857         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16858         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16859         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16860         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16861         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16862
16863         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16864         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16865         already be defined.  Change to take two parameters and don't assign
16866         result to variable.  Adjust all users.
16867         Define INTERNAL_GETTIME if not already defined.
16868         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16869         call.
16870         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16871         HAVE_CLOCK_GETTIME_VSYSCALL.
16872         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16873
16874         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16875         gettimeofday vsyscall, just use time.
16876
16877 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16878
16879         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16880         <errno.h>.
16881
16882 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16883
16884         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16885         syscall on x86-64.
16886         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16887         syscall.
16888         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16889         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16890         syscall if possible.
16891
16892 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16893
16894         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16895         e_ident.  Don't pass to find_mapsXX.
16896         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16897
16898 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16899
16900         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16901         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16902         * sysdeps/x86_64/multiarch/strchr.S: Update.
16903         Check bit_slow_BSF bit.
16904         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16905         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16906         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16907
16908 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16909
16910         [BZ #13134]
16911         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16912         before glibc 2.15.
16913         (tryshell): Define.
16914         (__spawni): Change last parameter to be flag.  Test
16915         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16916         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16917         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16918         * posix/spawni.c: Likewise.
16919         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16920         * posix/spawnp.c: Likewise.  Change normal version to use
16921         SPAWN_XFLAGS_USE_PATH.
16922         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16923         SPAWN_XFLAGS_TRY_SHELL.
16924
16925         [BZ #13150]
16926         * posix/glob.h: Remove gcc 1.x support.
16927
16928         [BZ #13068]
16929         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16930
16931 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16932
16933         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16934         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16935         strrchr-sse2-bsf
16936         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16937         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16938         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16939         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16940         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16941         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16942
16943 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16944
16945         * sysdeps/x86_64/wcscmp.S: New file.
16946
16947         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16948         wcscmp-c wcscmp-sse2
16949         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16950         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16951         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16952         * wcsmbs/wcscmp.c: Allow renaming.
16953
16954 2011-09-05  David S. Miller  <davem@davemloft.net>
16955
16956         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16957         stack slot, rather than the struct return pointer slot.
16958         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16959         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16961         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16962
16963 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16964
16965         * po/ja.po: Update from translation team.
16966
16967         [BZ #13144]
16968         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16969         kernel in 64-bit binaries.
16970
16971 2011-09-01  David S. Miller  <davem@davemloft.net>
16972
16973         * elf/elf.h (HWCAP_SPARC_*): Move to..
16974         * sysdeps/sparc/sysdep.h: this new file and add new values.
16975         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16976         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16977         _DL_HWCAP_COUNT to 24.
16978         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16979         entries.
16980         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16981         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16982         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16983         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16984         instead of magic constants.
16985         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16986
16987 2011-08-31  David S. Miller  <davem@davemloft.net>
16988
16989         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16990         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16991         Reimplement to do errno handling inline.
16992         (SYSCALL_ERROR_HANDLER): New macro.
16993         (__SYSCALL_STRING): Do not do errno handling in asm.
16994         (__CLONE_SYSCALL_STRING): Delete.
16995         (__INTERNAL_SYSCALL_STRING): Delete.
16996         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16997         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16998         (PSEUDO): Reimplement to do errno handling inline.
16999         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17000         (SYSCALL_ERROR_HANDLER): New macro.
17001         (__SYSCALL_STRING): Do not do errno handling in asm.
17002         (__CLONE_SYSCALL_STRING): Delete.
17003         (__INTERNAL_SYSCALL_STRING): Delete.
17004         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17005         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17006         i386.
17007         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17008         (inline_syscall*): Add 'err' argument.
17009         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17010         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17011         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17012         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17013
17014         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17015         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17016
17017 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17018
17019         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17020
17021 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17022
17023         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17024         directive.
17025
17026 2011-08-24  David S. Miller  <davem@davemloft.net>
17027
17028         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17029
17030 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17031
17032         * elf/Makefile: Add rules to build and run unload8 test.
17033         * elf/unload8.c: New file.
17034         * elf/unload8mod1.c: New file.
17035         * elf/unload8mod1x.c: New file.
17036         * elf/unload8mod2.c: New file.
17037         * elf/unload8mod3.c: New file.
17038
17039         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17040         it wasn't used.
17041
17042 2011-08-23  David S. Miller  <davem@davemloft.net>
17043
17044         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17045         subtract stack bias.
17046         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17047         %sp not %fp in calculations.
17048         (_JMPBUF_UNWINDS_ADJ): Likewise.
17049
17050         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17051         (aio_suspend): Call it to force an exception region around the
17052         AIO_MISC_WAIT() invocation.
17053
17054 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17055
17056         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17057         backslash.
17058
17059 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17060
17061         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17062         protection macro.
17063         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17064         and <dl-machine.h>.
17065         (Elf64_FuncDesc): Remove.
17066
17067 2011-08-22  David S. Miller  <davem@davemloft.net>
17068
17069         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17070         sigaltstack check, add missing cfi directives.
17071         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17072         missing cfi directives, and sigaltstack handling.
17073
17074 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17075
17076         [BZ #11724]
17077         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17078         object is seen twice.
17079         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17080
17081         * elf/Makefile (distribute): Add tst-initorder2.c.
17082         (tests): Add tst-initorder2.
17083         (modules-names): Add tst-initorder2a tst-initorder2b
17084         tst-initorder2c tst-initorder2d.  Add rules to build them.
17085         ($(objpfx)tst-initorder2.out): New rule.
17086         * elf/tst-initorder2.c: New file.
17087         * elf/tst-initorder2.exp: New file.
17088
17089 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17090
17091         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17092
17093         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17094         dependencies back to end of function.
17095
17096         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17097         $(elfobjdir)/ld.so.
17098
17099 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17100
17101         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17102         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17103         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17104         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17105         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17106         of __vdso_gettimeofday.
17107         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17108         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17109         attribute_hidden.
17110         (_libc_vdso_platform_setup): Remove initialization of
17111         __vdso_gettimeofday and __vdso_time.
17112
17113 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17116         and fgetc_unlocked.
17117         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17118         getc_unlocked.
17119
17120         * elf/dl-open.c (add_to_global): Report additions to the global scope
17121         for LD_DEBUG=scopes.
17122         (dl_open_worker): Also print scope of newly loaded dependencies.
17123         (_dl_show_scope): Indicate if there is no scope.
17124
17125         [BZ #13114]
17126         * stdio-common/Makefile (tests): Add bug24.
17127         * stdio-common/bug24.c: New file.
17128
17129 2011-08-19  Andreas Jaeger  <aj@suse.de>
17130
17131         [BZ #13114]
17132         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17133         non-existant file when using close-on-exec mode.
17134
17135 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17136
17137         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17138         the very first instruction.
17139
17140         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17141         the CFI state in the end.
17142         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17143         inclusion of dl-trampoline.h.
17144         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17145
17146 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17147
17148         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17149         expectations for long double.
17150
17151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17152         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17153
17154 2011-08-14  David S. Miller  <davem@davemloft.net>
17155
17156         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17157         artificual limit depends upon the system page size.
17158
17159 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17160
17161         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17162         * resolv/Makefile: Define CFLAGS-libresolv.
17163
17164 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17165
17166         * nss/makedb.c (compute_tables): Make variables used in nested
17167         function static.
17168
17169 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17170
17171         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17172         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17173         if buffer was too small.
17174
17175         * elf/pldd.c (main): Attach to all threads in the process.
17176         Rewrite /proc handling to use *at functions.
17177
17178 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17179
17180         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17181         specifies first scope to show.
17182         (dl_open_worker): Update callers.  Move printing scope of new
17183         object to before the relocation.
17184         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17185         * sysdeps/generic/ldsodefs.h: Update declaration.
17186
17187         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17188         string for the scope number.
17189
17190 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17191
17192         * nscd/servicescache.c (cache_addserv): Make sure written is always
17193         initialized.
17194
17195 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17196
17197         * sysdeps/i386/i486/bits/atomic.h
17198         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17199         statement expression, so as to suppress "set but not used" warning.
17200         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17201
17202         * string/strncat.c (STRNCAT): Use prototype definition.
17203
17204         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17205         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17206         -Iprograms here.
17207         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17208         (localedef-modules): Add localedef.
17209         (locale-modules): Add locale.
17210
17211         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17212         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17213         to avoid a warning.
17214
17215 2011-08-14  David S. Miller  <davem@davemloft.net>
17216
17217         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17218         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17219
17220 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17221
17222         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17223         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17224         * elf/rtld.c (dl_main): Set l_name of vDSO.
17225         Call _dl_show_scope when DL_DEBUG_SCOPES.
17226         (process_dl_debug): Recognize scopes flag and also set it for all.
17227         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17228         Declare _dl_show_scope.
17229
17230         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17231         (do_dlopen): Pass caller_dlopen to dl_open.
17232         (__libc_dlopen_mode): Initialize caller_dlopen.
17233
17234         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17235         of libc.  Make tolower call locale-independent.  Optimize a bit by
17236         using isdigit instead of isalnum.
17237         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17238
17239 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17240
17241         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17242         was a dependency or dynamically loaded.
17243
17244 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17245
17246         * intl/l10nflist.c: Allow architecture-specific pop function.
17247         * sysdeps/x86_64/l10nflist.c: New file.
17248
17249         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17250         classification.
17251
17252 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17253
17254         * include/dirent.h: Add libc_hidden_proto for scandirat and
17255         scandirat64.  Don't declare __scandirat64.
17256         * dirent/scandirat.c: Add libc_hidden_def.
17257         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17258         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17259
17260 2011-08-10  David S. Miller  <davem@davemloft.net>
17261
17262         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17263         enum.
17264         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17265         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17266         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17267
17268 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17269
17270         * Versions.def [libc]: Add GLIBC_2.15.
17271         * dirent/Makefile (routines): Add scandirat and scandirat64.
17272         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17273         GLIBC_2.15.
17274         * dirent/dirent.h: Declare scandirat and scandirat64.
17275         * dirent/scandirat.c: New file.
17276         * dirent/scandirat64.c: New file.
17277         * sysdeps/wordsize-64/scandirat.c: New file.
17278         * sysdeps/wordsize-64/scandirat64.c: New file.
17279         * dirent/opendir.c: Define opendirat.
17280         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17281         using scandirat.
17282         * dirent/scandir64.c: Adjust for scandir.c change.
17283         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17284         __scandirat64, and __scandir_cancel_handler.
17285         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17286         additional parameter and use openat instead of open (outside of ld.so).
17287         Add new __opendir as wrapper around __opendirat.
17288         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17289         here without requiring old scandirat implementation.
17290
17291 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17292
17293         * dirent/scandir.c (cancel_handler): Renamed to
17294         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17295         defined.  Adjust users.
17296         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17297         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17298
17299 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17300
17301         * string/test-string.h (IMPL): Use __STRING to expand name and then
17302         stringify it.
17303
17304         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17305         of cleanups.
17306
17307 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17308
17309         * string/Makefile: Update.
17310         (strop-tests): Append strncat.
17311         * string/test-wcscmp.c: New file.
17312         New comprehensive test for wcscmp.
17313         * string/test-strcmp.c: Update.
17314         (WIDE): New define.
17315
17316 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17317
17318         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17319         line.
17320
17321 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17322
17323         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17324         encoding to ACE if AI_IDN.
17325
17326 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17327
17328         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17329         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17330
17331 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17332
17333         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17334         Fix overflow bug in strncat.
17335         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17336
17337         * string/test-strncat.c: Update.
17338         Add new tests for checking overflow bugs.
17339
17340 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17341
17342         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17343         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17344         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17345         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17346         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17347         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17348         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17349         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17350         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17351
17352         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17353         (USE_AS_STRCAT): Define.
17354         Add strcat and strncat support.
17355         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17356
17357 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17358
17359         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17360         __n bigger than INT_MAX+1.
17361         (__strncmp_g): Likewise.
17362
17363 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17364
17365         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17366         * libio/stido.h: Likewise.
17367
17368         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17369         (AF_NFC): Define.
17370         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17371         (AF_NFC): Define.
17372
17373         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17374         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17375         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17376         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17377         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17378
17379         [BZ #13021]
17380         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17381         installed.
17382
17383         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17384         typo.
17385         (_dl_x86_64_save_sse): Likewise.
17386
17387 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17388
17389         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17390         OSXSAVE.
17391         (_dl_x86_64_save_sse): Likewise.
17392
17393         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17394
17395         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17396
17397 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17398
17399         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17400         change.
17401         (_dl_x86_64_save_sse): Use correct AVX check.
17402
17403 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17404
17405         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17406         bug in strncpy/strncat.
17407         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17408
17409 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17410
17411         * string/tester.c (test_strcat): Add tests for different alignments
17412         of source and destination.
17413         (test_strncat): Likewise.
17414
17415 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17416
17417         [BZ #12852]
17418         * posix/glob.c (glob): Check passed in values before using them in
17419         expressions to avoid some overflows.
17420         (glob_in_dir): Likewise.
17421
17422         [BZ #13007]
17423         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17424         check for AVX enablement so that we don't crash with old kernels and
17425         new hardware.
17426         * elf/tst-audit4.c: Add same checks here.
17427         * elf/tst-audit6.c: Likewise.
17428
17429         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17430
17431 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17432
17433         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17434
17435 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17436
17437         * po/cs.po: Update from translation team.
17438         * po/bg.po: Likewise.
17439
17440 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17441
17442         * misc/sys/cdefs.h: Add support for const attribute.
17443         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17444         to gnu_dev_{major,minor,makedev} functions.
17445
17446 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17447
17448         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17449
17450 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17451
17452         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17453         strlen results.
17454
17455 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17456
17457         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17458         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17459         register in order to avoid conflicts with the soft frame pointer
17460         being held in r11 when necessary.
17461         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17462         (INTERNAL_VSYSCALL_NCS): Likewise.
17463
17464 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17465
17466         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17467         * elf/dl-fini.c (_dl_fini): Adjust caller.
17468         * elf/dl-close.c (_dl_close_worker): Likewise.
17469         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17470
17471 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17472
17473         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17474         "aux_cache->nlibs < 0".
17475
17476         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17477         in the reload-count case.
17478
17479 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17480
17481         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17482         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17483         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17484         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17485         * sysdeps/x86_64/multiarch/strcat.S: New file.
17486         * sysdeps/x86_64/multiarch/strncat.S: New file.
17487         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17488         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17489         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17490         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17491         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17492         (USE_AS_STRCAT): Define.
17493         Add strcat and strncat support.
17494         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17495         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17496         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17497         * string/strncat.c: Update.
17498         (USE_AS_STRNCAT): Define.
17499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17500         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17501         and i7.
17502         * sysdeps/x86_64/multiarch/init-arch.h
17503         (bit_Prefer_PMINUB_for_stringop): New.
17504         (index_Prefer_PMINUB_for_stringop): Likewise.
17505         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17506         bit_Prefer_PMINUB_for_stringop.
17507
17508 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17509
17510         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17511         buffer64.
17512         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17513         of casting of buffer.
17514         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17515         buffer32 and buffer64.
17516         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17517         writes instead of casting of buffer.
17518         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17519         buffer32.
17520         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17521         casting of buffer.
17522
17523 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17524
17525         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17526
17527 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17528
17529         * nscd/nscd.c (termination_handler): Don't do anything for a database
17530         if it has not yet been initialized.
17531
17532 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17533
17534         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17535
17536 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17537
17538         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17539
17540 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17541
17542         * po/nl.po: Update from translation team.
17543         * po/sv.po: Likewise.
17544
17545 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17546
17547         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17548         now disallowed by GCC.
17549
17550         * configure.in (use-default-link): Default to yes if a test -shared
17551         link meets our qualifications.
17552         * configure: Regenerated.
17553
17554         * config.make.in (output-format): New variable.
17555         * configure.in: Check for ld --print-output-format support.
17556         * configure: Regenerated.
17557         * Makerules ($(common-objpfx)format.lds)
17558         [$(output-format) != unknown]: Just use $(output-format),
17559         instead of the linker-script munging.
17560
17561 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17562
17563         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17564         of $(common-objpfx)shlib.lds.
17565         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17566
17567         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17568         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17569
17570         * configure.in (-z relro check): Adjust test code to add a large
17571         writable data section after it.
17572         * configure: Regenerated.
17573
17574 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17575
17576         * configure.in (-z relro check): Fix test code to make the variable
17577         truly const.
17578         * configure: Regenerated.
17579
17580 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17581
17582         * nscd/nscd.h (struct traced_file): Define.
17583         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17584         elements.  Add traced_files.
17585         (inotify_fd): Declare.
17586         (register_traced_file): Declare.
17587         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17588         (inotify_fd): Export.
17589         (resolv_conf_descr): Remove.
17590         (nscd_init): Move inotify descriptor creation to main.
17591         Don't register files for notification here.
17592         (register_traced_file): New function.
17593         (invalidate_cache): Don't use reset_res to determine whether to call
17594         res_init, go through the list of registered files.
17595         (main_loop_poll): The inotify descriptors are now stored in the
17596         structures for the traced files.
17597         (main_loop_epoll): Likewise
17598         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17599         to __nss_disable_nscd.
17600         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17601         for a database anymore.  Check the records for all the registered
17602         files instead.
17603         * nss/Makefile (libnss_files-routines): Add files-init.
17604         (libnss_db-routines): Add db-init.
17605         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17606         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17607         * nss/nss_db/db-init.c: New file.
17608         * nss/nss_files/files-init.c: New file.
17609         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17610         __nss_lookup_function.
17611         (__nss_lookup_function): Call nss_load_library.
17612         (nss_load_all_libraries): New function.
17613         (__nss_disable_nscd): Take parameter with callback function for files
17614         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17615         used for the cached services.
17616         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17617         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17618         options for features to all the files in nscd.
17619
17620         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17621
17622 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17623
17624         * csu/elf-init.c (__libc_csu_init): Comment typo.
17625
17626 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17627
17628         * po/pl.po: Update from translation team.
17629         * po/ja.po: Likewise.
17630         * po/ru.po: Likewise.
17631         * po/ko.po: Likewise.
17632         * po/fr.po: Likewise.
17633
17634 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17635
17636         * configure.in (.ctors/.dtors header and trailer check):
17637         Use an empirical test on a built program.
17638         * configure: Regenerated.
17639
17640         * configure.in (-z relro check): Use an empirical test on a built DSO.
17641         Detect, but do not require, on ia64.
17642         * configure: Regenerated.
17643
17644         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17645         Update tests that use readelf to use $READELF instead.
17646         * configure: Regenerated.
17647
17648 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17649
17650         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17651         if the result is not used.
17652
17653 2011-07-05  Andreas Jaeger  <aj@suse.de>
17654
17655         [BZ#9696]
17656         * stdlib/tst-strtod.c: Add testcase.
17657
17658 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17659
17660         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17661         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17662         The latter has a higher limit.  Take additional parameter to pass to
17663         the new function.
17664         (__pathconf): Pass file to __statfs_link_max.
17665         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17666         __statfs_link_max.
17667         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17668         __statfs_link_max.
17669
17670         [BZ #12868]
17671         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17672         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17673         Handle Lustre.
17674         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17675         (__statfs_filesize_max): Likewise.
17676         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17677
17678 2011-07-05  Andreas Jaeger  <aj@suse.de>
17679
17680         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17681
17682 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17683
17684         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17685         `status' variable.
17686         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17687         Likewise.
17688
17689 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17690
17691         * Makefile (strop-tests): Add strncat.
17692         * string/test-strncat.c: New file.
17693
17694 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17695
17696         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17697
17698 2011-06-21  Andreas Jaeger  <aj@suse.de>
17699
17700         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17701         Copy rule from iconvdata/Makefile.
17702
17703 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17704
17705         [BZ #12922]
17706         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17707         but no long options are defined, just return 'W'.
17708
17709 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17710
17711         [BZ #9696]
17712         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17713
17714 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17715
17716         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17717         netgroups to read.
17718         (innetgr): Likewise.
17719
17720 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17721
17722         * config.make.in (install_root): Default to $(DESTDIR).
17723
17724 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17725
17726         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17727
17728 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17729
17730         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17731
17732         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17733         containing directory rather than embedding absolute directory names.
17734
17735         * scripts/check-local-headers.sh: Rewritten using awk.
17736         Match by word, not by line.  Print error messages for matches.
17737         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17738
17739         * Makerules [shlib-lds-flags empty]:
17740         ($(common-objpfx)libc_pic.opts): New target.
17741         ($(common-objpfx)libc_pic.os.clean): New target.
17742         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17743
17744         * config.make.in (OBJCOPY): New variable.
17745         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17746         * configure: Regenerated.
17747
17748         * config.make.in (use-default-link): New variable.
17749         * configure.in (use_default_link): Grok --with-default-link to set it.
17750         * configure: Regenerated.
17751         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17752         (shlib-lds, shlib-lds-flags): Define to empty.
17753
17754         * Makerules (shlib-lds): New variable.
17755         (shlib-lds-flags): New variable.
17756         (build-shlib, build-moduile, build-module-asneeded): Use it.
17757         ($(common-objpfx)libc.so): Use $(shlib-lds).
17758         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17759         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17760
17761         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17762         DT_FLAGS/DT_FLAGS_1 with zero flags.
17763
17764         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17765         linker script munging.
17766
17767 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17768
17769         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17770         as 128-bit value.
17771         * crypt/sha512.c (sha512_process_block): Perform total addition using
17772         128-bit if possible.
17773         (__sha512_finish_ctx): Likewise.
17774         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17775         as 64-bit value.
17776         * crypt/sha256.c (SWAP64): Define.
17777         (sha256_process_block): Perform total addition using 64-bit if
17778         possible.
17779         (__sha256_finish_ctx): Likewise.
17780
17781 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17782
17783         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17784         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17785         * nscd/hstcache.c (cache_addhst): Likewise.
17786         * nscd/grpcache.c (cache_addgr): Likewise.
17787         * nscd/aicache.c (addhstaiX): Likewise
17788         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17789
17790 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17791
17792         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17793         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17794         * nscd/hstcache.c (cache_addhst): Likewise.
17795         * nscd/grpcache.c (cache_addgr): Likewise.
17796         * nscd/aicache.c (addhstaiX): Likewise
17797
17798 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17799
17800         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17801         domain only when needed.
17802
17803 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17804
17805         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17806         is always restored.
17807
17808 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17809
17810         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17811         are re-adding the entry.
17812         * nscd/servicescache.c (cache_addserv): Likewise.
17813
17814 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17815
17816         * sysdeps/generic/dl-irel.h: fix protection against multiple
17817         inclusions.
17818         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17819
17820 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17821
17822         [BZ #12935]
17823         * malloc/memusage.sh: Fix quoting in message.
17824         * debug/xtrace.sh: Likewise.
17825
17826         * configure.in: Remove support for --experimental-malloc option, make
17827         it the default.
17828         * config.make.in: Likewise.
17829         * malloc/Makefile: Likewise.
17830
17831 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17832
17833         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17834         two-byte characters.
17835
17836 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17837
17838         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17839         AC_CACHE_CHECK invocation.
17840         * configure: Regenerated.
17841
17842         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17843
17844 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17845
17846         [BZ #12350]
17847         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17848         bit from old_res_options.
17849
17850         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17851
17852         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17853         value type for setfct.
17854
17855 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17856
17857         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17858         __gettimeofday instead of gettimeofday.
17859
17860 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17861
17862         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17863
17864 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17865
17866         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17867
17868         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17869         info.
17870
17871 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17872
17873         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17874         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17875         strcpy-sse2-unaligned strncpy-sse2-unaligned
17876         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17877         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17878         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17879         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17880         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17881         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17882         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17883         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17884         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17885         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17886         (STRCPY): Support SSE2 and SSSE3 versions.
17887
17888 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17889
17890         [BZ #12874]
17891         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17892         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17893         kernels which artificially limit size of requests.
17894
17895 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17896
17897         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17898         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17899         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17900         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17901         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17902         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17903         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17904         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17905         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17906         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17907         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17908         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17909         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17910         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17911         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17912         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17913         Enable unaligned load optimization for Intel Core i3, i5 and i7
17914         processors.
17915         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17916         Define.
17917         (index_Fast_Unaligned_Load): Define.
17918         (HAS_FAST_UNALIGNED_LOAD): Define.
17919
17920 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17921
17922         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17923
17924 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17925
17926         [BZ #12907]
17927         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17928         until it is clear that the information is realy needed.
17929         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17930
17931 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17932
17933         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17934
17935 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17936
17937         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17938         /sys/devices/system/cpu/online if it is usable.
17939
17940         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17941         reading the information from the /proc filesystem to once a second.
17942
17943 2011-06-21  Andreas Jaeger  <aj@suse.de>
17944
17945         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17946         NULL after inclusion of kernel headers.
17947
17948 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17949
17950         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17951         calls to internal_setent.
17952
17953         [BZ #12885]
17954         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17955         addresses using gethostbyname4_r ignore IPv4 addresses.
17956
17957         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17958         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17959
17960         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17961
17962 2011-06-20  David S. Miller  <davem@davemloft.net>
17963
17964         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17965         inclusions.
17966         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17967
17968         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17969         (elf_irel): Use it.
17970         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17971         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17972         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17973         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17974         * sysdeps/x86_64/dl-irel.h: Likewise.
17975
17976         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17977         * elf/dl-sym.c: Likewise.
17978
17979 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17980
17981         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17982         need to dereference resplen2.
17983
17984 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17985
17986         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17987
17988 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17989
17990         * Makeconfig: Define vardbdir and inst_vardbdir.
17991         * nss/Makefile: Add rules to install db-Makefile.
17992
17993         * nss/nss_db/db-XXX.c: Cleanup.
17994
17995         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17996         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17997         GLIBC_PRIVATE.
17998         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17999         * nss/makedb.c: Implement -g option to specify that value strings
18000         are generated and should not be added to table iterated over for
18001         get*ent calls.
18002         * nss/nss_db/db-initgroups.c: New file.
18003
18004         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18005         interface.
18006
18007         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18008         (internal_getgrouplist): Adjust to name change.
18009         Update use_initgroups_entry if this is not the first call.
18010         * nss/databases.def: Add initgroups entry.
18011
18012         * nss/makedb.c (compute_tables): Check result of multiple hash table
18013         sizes to minimize maximum chain length.
18014
18015 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18016
18017         * Versions.def: Add entry for libnss_db.
18018         * shlib-versions: Likewise.
18019         * nss/Makefile: Add rules to build libnss_db.
18020         * nss/Versions: Add libnss_db information.  Organize libnss_files
18021         entries better.
18022         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18023         makedb progra.  Some minor improvements to generate smaller files.
18024         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18025         here from...
18026         * nss/makedb.c: ...here.
18027         Improve database format to be smaller and require less memory at
18028         runtime.
18029         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18030         db anymore.
18031         * nss/nss_db/db-netgrp.c: Likewise.
18032         * nss/nss_db/db-open.c: Likewise.
18033         * nss/nss_files/flies-XXX.x: Adjust comments.
18034         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18035         * nss/nss_files/files-grp.c: Likewise.
18036         * nss/nss_files/files-hosts.c: Likewise.
18037         * nss/nss_files/files-network.c: Likewise.
18038         * nss/nss_files/files-proto.c: Likewise.
18039         * nss/nss_files/files-pwd.c: Likewise.
18040         * nss/nss_files/files-rpc.c: Likewise.
18041         * nss/nss_files/files-service.c: Likewise.
18042         * nss/nss_files/files-sgrp.c: Likewise.
18043         * nss/nss_files/files-spwd.c: Likewise.
18044         * nss/nss_db/db-alias.c: Removed.
18045         * nss/nss_db/dummy-db.h: Removed.
18046
18047 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18048
18049         * nss/makedb.c: Rewritten to not use database library.
18050         * nss/Makefile: Update to build new makedb program.
18051
18052 2011-06-14  Andreas Jaeger  <aj@suse.de>
18053
18054         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18055         memset declaration.
18056
18057 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18058
18059         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18060         tmpbuf.
18061
18062 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18063
18064         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18065         * elf/Makefile ($(objpfx)ld.so): Likewise.
18066
18067         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18068         Don't list ld.so twice in dependencies.
18069
18070         * posix/bug-regex31.c: Include <stdlib.h>.
18071
18072         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18073
18074         * nis/nss_compat/compat-spwd.c
18075         (getspent_next_nss_netgr): Remove unused variable.
18076         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18077
18078         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18079         nonmembers" output to use the right array.
18080
18081         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18082
18083         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18084
18085         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18086         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18087         * catgets/gencat.c (read_input_file): Likewise.
18088         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18089
18090         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18091         variable definition inside #if's controlling its use.
18092
18093         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18094
18095         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18096
18097         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18098
18099         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18100         unreachable code.
18101
18102         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18103
18104         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18105         * configure: Regenerated.
18106
18107         * Makerules: Revert last change.
18108         * elf/Makefile: Likewise.
18109
18110 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18111
18112         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18113         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18114         (reloc-link): Likewise.
18115
18116 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18117
18118         * elf/Makefile: Add rules to build pldd.
18119         * elf/pldd.c: New file.
18120         * elf/pldd-xx.c: New file.
18121
18122 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18123
18124         * version.h: Update for 2.15 development version.
18125
18126 2011-06-07  David S. Miller  <davem@davemloft.net>
18127
18128         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18129         ifuncs.
18130         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18131         elf_machine_lazy_rel): Likewise.
18132         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18133         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18134         elf_machine_lazy_rel): Likewise.
18135         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18136         dl_hwcap via passed in argument.
18137         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18138         Likewise.
18139
18140 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18141
18142         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18143
18144 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18145
18146         [BZ #12849]
18147         * manual/fdl-1.1.texi: New file, verbatim from:
18148         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18149         * manual/lgpl-2.1.texi: New file, verbatim from:
18150         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18151         * manual/Makefile (licenses): New variable, list those new file names.
18152         (texis): Use it.
18153         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18154
18155         * manual/fdl.texi: File removed.
18156         * manual/lesser.texi: File removed.
18157         * manual/libc.texinfo (Copying, Documentation License):
18158         Use new @include file names, put @appendix directive before @include.
18159
18160 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18161
18162         [BZ #12841]
18163         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18164         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18165         (mq_open): Add __NTH.
18166
18167 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18168
18169         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18170         Assume Intel Core i3/i5/i7 processor if AVX is available.
18171
18172 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18173
18174         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18175         typo.
18176
18177 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18178
18179         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18180         memory.  Use alloca_account.  Fix memory leak when retrying.
18181
18182 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18183
18184         * version.h (RELEASE): Bump for 2.14 release.
18185         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18186
18187         * config.make.in (RANLIB): Remove entry.
18188
18189 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18190
18191         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18192         (libc.pot): Work around missing support for .ksh extension in xgettext.
18193
18194         [BZ #12684]
18195         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18196         if both request failed.
18197         (send_dg): In case of server errors clear resplen or *resplen2.
18198
18199         [BZ #12454]
18200         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18201         when there are multiple maps.
18202         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18203         (_dl_fini): Remove test here.
18204
18205         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18206
18207 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18208
18209         [BZ #12350]
18210         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18211         bit from old_res_options.
18212         (gaih_inet): Likewise.
18213
18214         [BZ #11099]
18215         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18216         as signed.
18217
18218         * resolv/res_init.c (res_setoptions): Make the code more compact.
18219
18220         [BZ #11558]
18221         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18222         set RES_USEVC.
18223
18224         [BZ #11634]
18225         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18226
18227         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18228
18229         [BZ #11781]
18230         * malloc/malloc.h: Declare malloc hook variables as volatile.
18231
18232         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18233         in last patch.
18234
18235         [BZ #11799]
18236         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18237         raise in the comment.
18238         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18239         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18240         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18241
18242 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18243
18244         [BZ #12811]
18245         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18246         grow the buffers more if it already has to be sufficient.
18247         (build_wcs_upper_buffer): Likewise.
18248         * posix/regexec.c (check_matching): Likewise.
18249         (clean_state_log_if_needed): Likewise.
18250         (extend_buffers): Don't enlarge buffers beyond size of the input
18251         buffer.
18252         Patches mostly by Emil Wojak <emil@wojak.eu>.
18253         * posix/bug-regex32.c: New file.
18254         * posix/Makefile (tests): Add bug-regex32.
18255
18256         * locale/findlocale.c (_nl_find_locale): Return right away if
18257         _nl_explode_name failed.
18258         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18259
18260         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18261
18262         * debug/xtrace.sh: Unify messages.
18263         * malloc/memusage.sh: Likewise.
18264
18265         [BZ #12813]
18266         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18267         time symbol from vDSO.  Substitute with vsyscall if not available.
18268         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18269         __vdso_time.
18270
18271         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18272         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18273         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18274         Add sendmmsg and internal_sendmmsg.
18275         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18276         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18277         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18278
18279         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18280         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18281         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18282
18283 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18284
18285         [BZ #12813]
18286         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18287         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18288         available.
18289         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18290         __vdso_getcpu.
18291
18292         [BZ #12814]
18293         * iconvdata/Makefile (tests): Add bug-iconv9.
18294         * iconvdata/bug-iconv9.c: New file.
18295
18296 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18297
18298         [BZ #12814]
18299         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18300
18301 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18302
18303         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18304         (struct user_regs_struct): Change intcs field back to cs.
18305
18306 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18307
18308         * po/ja.po: Update from translation team.
18309
18310 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18311
18312         [BZ #12795]
18313         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18314         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18315
18316 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18317
18318         * stdlib/longlong.h: Update from GCC.
18319
18320 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18321
18322         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18323         parameter name.
18324         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18325         Add parameter name.
18326         (__sysconf): Pass it down.
18327
18328 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18329
18330         [BZ #12671]
18331         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18332         some situations.
18333         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18334         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18335         add in in __libc_use_alloca calls.  Adjust callers.
18336         (glob): Use malloc in some situations.
18337
18338         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18339         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18340         pltexit.
18341
18342 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18343
18344         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18345         and CLOCK_BOOTTIME_ALARM.
18346
18347         [BZ #12782]
18348         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18349         is returned.
18350
18351         * string/_strerror.c (__strerror_r): Print negative errors as signed
18352         numbers.
18353
18354         [BZ #12777]
18355         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18356         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18357         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18358
18359         * configure.in: Fix typo in redirection and correct removal of test
18360         files in two cases.
18361
18362         [BZ #12788]
18363         * locale/setlocale.c (new_composite_name): Fix test to check for
18364         identical name of all categories.
18365
18366         [BZ #12792]
18367         * libio/filedoalloc.c (local_isatty): New function.
18368         (_IO_file_doallocate): Use local_isatty.
18369         * stdio-common/perror.c (perror): In case a new stream is used
18370         forward the stream error.
18371         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18372         error flag.
18373
18374 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18375
18376         [BZ #11869]
18377         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18378         alloca.
18379         * include/alloca.h (extend_alloca_account): Define.
18380
18381         [BZ #11857]
18382         * posix/regex.h: Fix comments with documentation of user-accessible
18383         fields after compilation and describe correct free'ing of pattern
18384         after re_compile_pattern.
18385         Patch by Reuben Thomas <rrt@sc3d.org>.
18386
18387 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18388
18389         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18390         and -mno-altivec to prevent the compiler from using Altivec and/or
18391         VSX instructions when the corresponding registers are not available.
18392
18393 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18394
18395         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18396
18397 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18398
18399         * libio/freopen.c (freopen): Use __dup2, not dup2.
18400         * libio/freopen64.c (freopen64): Likewise.
18401
18402 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18403
18404         [BZ #12775]
18405         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18406         * math/Makefile (tests): Add test-powl.
18407         (CFLAGS-test-powl.c): Define.
18408         * math/test-powl.c: New file.
18409
18410 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18411
18412         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18413
18414 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18415
18416         [BZ #11837]
18417         * iconvdata/gb18030.c: Update to GB18020-2005.
18418
18419 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18420
18421         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18422         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18423         Patch by Aharon Robbins <arnold@skeeve.com>.
18424
18425         [BZ #11892]
18426         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18427         on the stack.
18428
18429         [BZ #11895]
18430         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18431         through underflows.
18432
18433         [BZ #12766]
18434         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18435         point to strings before performing equality test for error_one_per_line
18436         mode.
18437
18438         [BZ #11697]
18439         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18440
18441         [BZ #11820]
18442         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18443         (struct user_fpregs_struct): Avoid __uint*_t types.
18444
18445         [BZ #6420]
18446         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18447         symbol info.  Use it instead of calling _dl_addr locally.
18448         (lock_and_info): New function.
18449         (tr_freehook): Call lock_and_info and pass symbol info as additional
18450         parameter to tr_where.
18451         (tr_mallochook): Likewise.
18452         (tr_reallochook): Likewise.
18453         (tr_memalignhook): Likewise.
18454
18455         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18456         used and couldn't be at all thread-safe.
18457
18458 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18459
18460         * libio/freopen.c (freopen): Don't close old file descriptor
18461         before the new one is opened.  Instead dup the new file descriptor
18462         to the old one after the new stream is created.
18463         * libio/freopen64.c (freopen64): Likewise.
18464         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18465         * libio/fileops.c (_IO_new_file_close_it): Handle new
18466         _IO_FLAGS2_NOCLOSE flag.
18467         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18468         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18469         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18470         _IO_FLAGS2_NOCLOSE flag.
18471         * include/unistd.h: Add hidden_proto for dup3.
18472         Define __have_dup3.
18473         * io/dup3.c: Define hidden symbol.
18474         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18475
18476         [BZ #7101]
18477         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18478         when an incomplete long option is used.
18479         * posix/tst-getopt_long1.c: New file.
18480         * posix/Makefile (tests): Add tst-getopt_long1.
18481
18482         [BZ #10138]
18483         * scripts/config.guess: Update from autoconf-2.68.
18484         * scripts/config.sub: Likewise.
18485
18486         [BZ #10157]
18487         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18488         tests into ...
18489         (has_cpuclock): ...this.  New function.
18490         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18491         macro here based on has_cpuclock code.
18492
18493         [BZ #10149]
18494         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18495         First byte (not low byte) is now always NUL.
18496         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18497
18498         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18499         Use non-cancelable interfaces.
18500
18501         [BZ #9809]
18502         * locale/iso-639.def: Add entry for Sorani.
18503
18504         [BZ #11901]
18505         * include/stdlib.h: Move include protection to the right place.
18506         Define abort_msg_s.  Declare __abort_msg with it.
18507         * stdlib/abort.c (__abort_msg): Adjust type.
18508         * assert/assert.c (__assert_fail_base): New function.  Majority
18509         of code from __assert_fail.  Allocate memory for __abort_msg with
18510         mmap.
18511         (__assert_fail): Now call __assert_fail_base.
18512         * assert/assert-perr.c: Remove bulk of implementation.  Use
18513         __assert_fail_base.
18514         * include/assert.hL Declare __assert_fail_base.
18515         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18516         mmap.
18517         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18518
18519 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18520
18521         [BZ #11952]
18522         [BZ #12453]
18523         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18524         until all modules are registered in the DTV.
18525         * elf/Makefile: Add rules to build and run tst-tls19.
18526         * elf/tst-tls19.c: New file.
18527         * elf/tst-tls19mod1.c: New file.
18528         * elf/tst-tls19mod2.c: New file.
18529         * elf/tst-tls19mod3.c: New file.
18530         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18531
18532         [BZ #12083]
18533         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18534         correctly.
18535
18536         [BZ #12601]
18537         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18538         two-byte sequence errors.
18539         * iconvdata/Makefile (tests): Add bug-iconv8.
18540         * iconvdata/bug-iconv8.c: New file.
18541
18542         [BZ #12626]
18543         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18544         buf2 definition.
18545
18546         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18547
18548         [BZ #12432]
18549         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18550         (dummy_getcfa): New function.
18551         (init): Get _Unwind_GetCFA address, use dummy if not found.
18552         (backtrace_helper): In recursion check, also check whether CFA changes.
18553         (__backtrace): Completely initialize arg.
18554
18555         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18556         storing incomplete byte sequence in state object.  Avoid testing for
18557         guaranteed too small input if we know there is enough data available.
18558
18559 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18560
18561         * Makeconfig (+link-pie): Indent.
18562         * Rules (binaries-pie): Define if $(have-fpie) and
18563         $(build-shared).
18564         (binaries-shared): Also filter out $(binaries-pie).
18565         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18566         * nscd/Makefile (others-pie): Add nscd.
18567         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18568         ($(objpfx)nscd): Remove command override.
18569         * login/Makefile (others-pie): Add pt_chown.
18570         ($(objpfx)pt_chown): Remove command override.
18571         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18572         remove command overrides.
18573
18574 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18575
18576         * libio/tst_putwc.c: Fix error messages.
18577
18578         [BZ #12724]
18579         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18580         currently writing and seek to current position when not.
18581         * libio/Makefile (tests): Add bug-fclose1.
18582         * libio/bug-fclose1.c: New file.
18583
18584 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18585
18586         [BZ #12511]
18587         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18588         don't set DF_1_NODELETE here.
18589         (do_lookup_x): When entering new entry test for copy relocation
18590         and if necessary set DF_1_NODELETE flag.
18591         * elf/tst-unique4.cc: New file.
18592         * elf/tst-unique4.h: New file.
18593         * elf/tst-unique4lib.cc: New file.
18594         * elf/Makefile: Add rules to build and run tst-unique4.
18595         Patch by Piotr Bury <pbury@goahead.com>.
18596
18597 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18598
18599         [BZ #12052]
18600         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18601
18602         [BZ #12625]
18603         * misc/mntent_r.c (addmntent): Flush the stream after the output
18604
18605         [BZ #12393]
18606         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18607         (is_trusted_path_normalize): Skip initial colon.  Append slash
18608         to empty buffer.  Duplicate is_trusted_path code but allow
18609         constructed patch to be prefix.
18610         (is_dst): Allow $ORIGIN followed by /.
18611         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18612         Correct testing of result of is_trusted_path_normalize
18613         (decompose_rpath): Fix warning.
18614
18615 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18616
18617         [BZ #11257]
18618         * grp/initgroups.c (internal_getgrouplist): When we found the service
18619         list through the initgroups entry in nsswitch.conf do not always
18620         continue on a successful lookup.  Don't always use the
18621         __nss_group_database value if it is set.
18622         * nss/nsswitch.conf (initgroups): Change action for successful db
18623         lookup to continue for compatibility.
18624
18625 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18626
18627         [BZ #11532]
18628         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18629         and CP774 modules.
18630         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18631         and CP774 modules.
18632         * iconvdata/tst-tables.sh: Likewise.
18633         * iconvdata/cp770.c: New file.
18634         * iconvdata/cp771.c: New file.
18635         * iconvdata/cp772.c: New file.
18636         * iconvdata/cp773.c: New file.
18637         * iconvdata/cp774.c: New file.
18638         * iconvdata/testdata/CP770: New file.
18639         * iconvdata/testdata/CP770..UTF8: New file.
18640         * iconvdata/testdata/CP771: New file.
18641         * iconvdata/testdata/CP771..UTF8: New file.
18642         * iconvdata/testdata/CP772: New file.
18643         * iconvdata/testdata/CP772..UTF8: New file.
18644         * iconvdata/testdata/CP773: New file.
18645         * iconvdata/testdata/CP773..UTF8: New file.
18646         * iconvdata/testdata/CP774: New file.
18647         * iconvdata/testdata/CP774..UTF8: New file.
18648
18649         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18650         END CHARMAP line.
18651         * iconvdata/gen-8bit-gap.sh: Likewise.
18652         * iconvdata/gen-8bit.sh: Likewise.
18653
18654         * locale/iso-639.def: Add ary entry.
18655
18656         [BZ #11258]
18657         * locale/C-translit.h.in: Add U20A1 transliteration.
18658
18659         [BZ #12178]
18660         * locale/iso-639.def: Add wae entry.
18661         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18662
18663         [BZ #12545]
18664         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18665         for n.
18666
18667         [BZ #12711]
18668         * locale/C-translit.h.in: Add entry for U20B9.
18669         Patch by pravin.d.s@gmail.com.
18670
18671 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18672
18673         [BZ #12713]
18674         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18675         ENAMETOOLONG use generic getcwd.
18676         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18677         in rtld.  Use *stat64.
18678         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18679         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18680         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18681         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18682         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18683         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18684         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18685         __fstatat64 macros.
18686         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18687         * dirent/rewinddir.c: Add libc_hidden_def.
18688         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18689         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18690
18691         * include/dirent.h (__alloc_dir): Add flags parameter.
18692         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18693         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18694         __alloc_dir.
18695         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18696         from fdopendir if O_CLOEXEC is already set.
18697
18698 2011-03-15  Alan Modra  <amodra@gmail.com>
18699
18700         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18701         l_tls_firstbyte_offset non-zero.  Save padding offset in
18702         l_tls_firstbyte_offset for later use.
18703         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18704         freeing static tls block.
18705
18706 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18707
18708         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18709         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18710         being defined by the kernel headers.
18711
18712 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18713
18714         [BZ #12734]
18715         * resolv/resolv.h: Define RES_NOTLDQUERY.
18716         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18717         no-tld-query and set RES_NOTLDQUERY.
18718         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18719         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18720         modern BIND to search name as TLD unless forbidden.
18721
18722 2011-05-07  Petr Baudis  <pasky@suse.cz>
18723             Ulrich Drepper  <drepper@gmail.com>
18724
18725         [BZ #12393]
18726         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18727         (is_trusted_path): ...to here.
18728         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18729         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18730         using is_trusted_path_normalize() in setuid scripts.
18731
18732 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18733
18734         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18735         __BEGIN/__END_DECLS.
18736
18737 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18738
18739         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18740         NSS_STATUS_NOTFOUND if no record was found.
18741
18742 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18743
18744         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18745         (headers-not-in-tirpc): Remove rpc/netdb.h
18746         * resolv/netdb.h: Revert last change.
18747
18748 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18749
18750         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18751         circular dependency between libgcc.a and libc.a.
18752
18753 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18754
18755         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18756         * nis/Makefile: Don't install rpcsvc/*.
18757         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18758         instead of <rpc/types.h>.
18759         (MAXHOSTNAMELEN): Define.
18760
18761 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18762
18763         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18764
18765 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18766
18767         [BZ #12714]
18768         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18769         gethostbyname4_r when IPv6 results are possible.
18770
18771 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18772
18773         [BZ #12723]
18774         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18775         _PC_PIPE_BUF handling.
18776
18777 2011-04-30  Bruno Haible  <bruno@clisp.org>
18778
18779         [BZ #12717]
18780         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18781         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18782         to 'int'.
18783         * inet/getnameinfo.c (getnameinfo): Likewise.
18784
18785 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18786
18787         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18788         to groups setting in database lookup.
18789         * nss/nsswitch.conf: Add initgroups entry.
18790
18791 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18792
18793         [BZ #12685]
18794         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18795         mode string.
18796         Patch by Eric Blake <eblake@redhat.com>.
18797
18798 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18799
18800         * sunrpc/Makefile (need-export-routines): Add svc_run.
18801         (routines): Remove svc_run.
18802         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18803         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18804         * sunrpc/svc_run.c (svc_run): Likewise.
18805         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18806
18807 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18808
18809         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18810         problem in reallocation in last patch.
18811
18812 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18813
18814         * sunrpc/Makefile: Move inclusion of Rules.
18815
18816 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18817
18818         * nss/nss_files/files-initgroups.c: New file.
18819         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18820         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18821         _nss_files_initgroups_dyn.
18822
18823 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18824
18825         * elf/elf.h (R_ARM_IRELATIVE): Define.
18826
18827 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18828
18829         * po/ru.po: Update from translation team.
18830
18831 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18832
18833         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18834         dependencies.
18835
18836 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18837
18838         [BZ #12653]
18839         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18840         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18841         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18842         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18843         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18844
18845 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18846
18847         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18848         differing bytes.
18849         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18850         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18851         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18852
18853 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18854
18855         [BZ #12420]
18856         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18857         storing it.
18858         * stdlib/bug-getcontext.c: New file.
18859         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18860
18861 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18862
18863         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18864         instructions into .machine "z9-109".
18865         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18866         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18867
18868 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18869
18870         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18871         between environment variables and auxiliary vector.
18872
18873 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18874
18875         * Makefile: Add rules to build linkobj/libc.so.
18876         * include/libc-symbols.h: Define libc_hidden_nolink.
18877         * include/rpc/auth.h: Mark functions which are to be hidden.
18878         * include/rpc/auth_des.h: Likewise.
18879         * include/rpc/auth_unix.h: Likewise.
18880         * include/rpc/clnt.h: Likewise.
18881         * include/rpc/des_crypt.h: Likewise.
18882         * include/rpc/key_prot.h: Likewise.
18883         * include/rpc/pmap_clnt.h: Likewise.
18884         * include/rpc/pmap_prot.h: Likewise.
18885         * include/rpc/pmap_rmt.h: Likewise.
18886         * include/rpc/rpc_msg.h: Likewise.
18887         * include/rpc/svc.h: Likewise.
18888         * include/rpc/svc_auth.h: Likewise.
18889         * include/rpc/xdr.h: Likewise.
18890         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18891         * nss/Makefile: Likewise.
18892         * sunrpc/Makefile: Don't install headers.  Build library with normal
18893         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18894         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18895         for the compat linking library.  Remove use of INTDEF/INTUSE.
18896         * sunrpc/auth_none.c: Likewise.
18897         * sunrpc/auth_unix.c: Likewise.
18898         * sunrpc/authdes_prot.c: Likewise.
18899         * sunrpc/authuxprot.c: Likewise.
18900         * sunrpc/clnt_gen.c: Likewise.
18901         * sunrpc/clnt_perr.c: Likewise.
18902         * sunrpc/clnt_raw.c: Likewise.
18903         * sunrpc/clnt_simp.c: Likewise.
18904         * sunrpc/clnt_tcp.c: Likewise.
18905         * sunrpc/clnt_udp.c: Likewise.
18906         * sunrpc/clnt_unix.c: Likewise.
18907         * sunrpc/des_crypt.c: Likewise.
18908         * sunrpc/des_soft.c: Likewise.
18909         * sunrpc/get_myaddr.c: Likewise.
18910         * sunrpc/key_call.c: Likewise.
18911         * sunrpc/key_prot.c: Likewise.
18912         * sunrpc/netname.c: Likewise.
18913         * sunrpc/pm_getmaps.c: Likewise.
18914         * sunrpc/pm_getport.c: Likewise.
18915         * sunrpc/pmap_clnt.c: Likewise.
18916         * sunrpc/pmap_prot.c: Likewise.
18917         * sunrpc/pmap_prot2.c: Likewise.
18918         * sunrpc/pmap_rmt.c: Likewise.
18919         * sunrpc/publickey.c: Likewise.
18920         * sunrpc/rpc_cmsg.c: Likewise.
18921         * sunrpc/rpc_common.c: Likewise.
18922         * sunrpc/rpc_dtable.c: Likewise.
18923         * sunrpc/rpc_prot.c: Likewise.
18924         * sunrpc/rpc_thread.c: Likewise.
18925         * sunrpc/rtime.c: Likewise.
18926         * sunrpc/svc.c: Likewise.
18927         * sunrpc/svc_auth.c: Likewise.
18928         * sunrpc/svc_authux.c: Likewise.
18929         * sunrpc/svc_raw.c: Likewise.
18930         * sunrpc/svc_run.c: Likewise.
18931         * sunrpc/svc_simple.c: Likewise.
18932         * sunrpc/svc_tcp.c: Likewise.
18933         * sunrpc/svc_udp.c: Likewise.
18934         * sunrpc/svc_unix.c: Likewise.
18935         * sunrpc/svcauth_des.c: Likewise.
18936         * sunrpc/xcrypt.c: Likewise.
18937         * sunrpc/xdr.c: Likewise.
18938         * sunrpc/xdr_array.c: Likewise.
18939         * sunrpc/xdr_float.c: Likewise.
18940         * sunrpc/xdr_intXX_t.c: Likewise.
18941         * sunrpc/xdr_mem.c: Likewise.
18942         * sunrpc/xdr_rec.c: Likewise.
18943         * sunrpc/xdr_ref.c: Likewise.
18944         * sunrpc/xdr_sizeof.c: Likewise.
18945         * sunrpc/xdr_stdio.c: Likewise.
18946
18947 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18948
18949         [BZ #12650]
18950         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18951         * sysdeps/ia64/dl-tls.h: Likewise.
18952         * sysdeps/powerpc/dl-tls.h: Likewise.
18953         * sysdeps/s390/dl-tls.h: Likewise.
18954         * sysdeps/sh/dl-tls.h: Likewise.
18955         * sysdeps/sparc/dl-tls.h: Likewise.
18956         * sysdeps/x86_64/dl-tls.h: Likewise.
18957         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18958
18959 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18960
18961         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18962         rpath element also skip the following colon.
18963         (expand_dynamic_string_token): Add is_path parameter and pass
18964         down to DL_DST_REQUIRED and _dl_dst_substitute.
18965         (decompose_rpath): Call expand_dynamic_string_token with
18966         non-zero is_path.  Ignore empty rpaths.
18967         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18968         with zero is_path.
18969
18970 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18971
18972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18973         Make cancelable.
18974
18975 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18976
18977         [BZ #12655]
18978         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18979         Patch by Filipe David Manana <fdmanana@apache.org>.
18980
18981 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18982
18983         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18984         Maintain aligned stack.
18985         (CHECK_RSP): Remove unused macro.
18986
18987 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18988
18989         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18990         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18991
18992 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18993
18994         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18995
18996         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18997
18998 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18999
19000         [BZ #12518]
19001         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19002         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19003         * sysdeps/x86_64/memmove.c: New file.
19004         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19005         (memcpy): Renamed to ...
19006         (__new_memcpy): This.
19007         (memcpy): Provide GLIBC_2_14 memcpy.
19008         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19009         (memcpy): Provide GLIBC_2_2_5 memcpy.
19010
19011 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19012
19013         [BZ #12631]
19014         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19015
19016 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19017
19018         * misc/syncfs.c: New file.
19019         * misc/Makefile (routines): Add syncfs.
19020         * posix/unistd.h: Declare syncfs.
19021         * sysdeps/unix/syscalls.list: Add syncfs.
19022
19023 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19024
19025         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19026         open_by_handle_at.
19027         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19028         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19029         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19030         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19031         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19032         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19033         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19034
19035 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19036
19037         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19038         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19039         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19040         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19041         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19042         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19043         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19044
19045         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19046         sync_file_range.c with -fexceptions.
19047         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19048         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19049         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19050         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19051         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19052         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19053         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19054         sync_file_range as cancellation point
19055         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19056         now a wrapper around __call_sync_file_range with cancellation handling.
19057         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19058         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19059         function name to __call_sync_file_range.
19060         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19061         Add call_sync_file_range.
19062
19063 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19064
19065         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19066         bits/timex.h.
19067
19068 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19069
19070         * iconv/iconv.h: Fix typo in comment.
19071         * io/fcntl.h: Likewise.
19072         * libio/stdio.h: Likewise.
19073         * posix/spawn.h: Likewise.
19074         * posix/unistd.h: Likewise.
19075         * stdlib/stdlib.h: Likewise.
19076         * time/time.h: Likewise.
19077         * wcsmbs/wchar.h: Likewise.
19078
19079         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19080         open_by_handle): Add.
19081         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19082         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19083         Augment a few comments.
19084         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19085         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19086         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19087         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19088         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19089         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19090         open_by_handle.
19091
19092         * io/fcntl.h (AT_EMPTY_PATH): Define.
19093
19094 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19095
19096         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19097         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19098         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19099         to...
19100         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19101         * Versions.def: Add GLIBC_2.14.
19102         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19103         Export.
19104
19105 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19106
19107         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19108         round counter.
19109         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19110
19111 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19112
19113         [BZ #12597]
19114         * string/test-strncmp.c (do_page_test): New function.
19115         (check2): Likewise.
19116         (test_main): Call check2.
19117         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19118
19119 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19120
19121         [BZ #12587]
19122         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19123         Handle cache information in CPU leaf 4.
19124         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19125
19126 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19127
19128         [BZ #12583]
19129         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19130         character representation.
19131         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19132
19133 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19134
19135         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19136         END(__isnan) to END(__isnanf) to match function entry point/label
19137         EALIGN(__isnanf,...).
19138
19139 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19140
19141         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19142
19143 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19144
19145         [BZ #12510]
19146         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19147         copy from the symbol referenced in the relocation to initialize the
19148         used variable.
19149         Patch by Piotr Bury <pbury@goahead.com>.
19150         * elf/Makefile: Add rules to build and tst-unique3.
19151         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19152         * elf/tst-unique3.cc: New file.
19153         * elf/tst-unique3.h: New file.
19154         * elf/tst-unique3lib.cc: New file.
19155         * elf/tst-unique3lib2.cc: New file.
19156
19157         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19158
19159 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19160
19161         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19162         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19163         to _start.
19164
19165 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19166
19167         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19168         to-be-loaded object along a path to loader is ld.so.
19169
19170 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19171             Ulrich Drepper  <drepper@gmail.com>
19172
19173         * sysdeps/x86_64/memset.S: After aligning destination, code
19174         branches to different locations depending on the value of
19175         misalignment, when multiarch is enabled. Fix this.
19176
19177 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19178
19179         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19180         Set _x86_64_preferred_memory_instruction for AMD processsors.
19181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19182         Set bit_Prefer_SSE_for_memop for AMD processors.
19183
19184 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19185
19186         * libio/fmemopen.c (fmemopen): Optimize a bit.
19187
19188 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19189
19190         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19191
19192 2011-03-03  Roland McGrath  <roland@redhat.com>
19193
19194         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19195
19196 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19197
19198         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19199         __bzero_ultra1 instead of __memset_ultra1.
19200
19201 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19202             Ulrich Drepper  <drepper@gmail.com>
19203
19204         [BZ #12509]
19205         * include/link.h (struct link_map): Add l_orig_initfini.
19206         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19207         returning unsuccessfully.
19208         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19209         close of a file loaded at startup, restore the original l_initfini
19210         list.
19211         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19212         list, store the pointer.
19213         * elf/Makefile ($(objpfx)noload-mem): New rule.
19214         (noload-ENV): Define.
19215         (tests): Add $(objpfx)noload-mem.
19216         * elf/noload.c: Include <memcheck.h>.
19217         (main): Call mtrace.  Close all opened handles.
19218
19219 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19220
19221         [BZ #12454]
19222         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19223         dependencies are missing.
19224
19225 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19226
19227         Fix __if_freereq crash: Unlike the generic version which uses free,
19228         Hurd needs munmap.
19229         * sysdeps/mach/hurd/ifreq.h: New file.
19230
19231 2011-01-27  Petr Baudis  <pasky@suse.cz>
19232             Ulrich Drepper  <drepper@gmail.com>
19233
19234         [BZ 12445]#
19235         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19236         to extend_alloca().
19237         * stdio-common/bug23.c: New file.
19238         * stdio-common/Makefile (tests): Add bug23.
19239
19240 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19241             Ulrich Drepper  <drepper@gmail.com>
19242
19243         [BZ #12489]
19244         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19245         before performing relro protection.  At old place add assertion
19246         to make sure nothing changed.
19247
19248 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19249             Glauber de Oliveira Costa  <glommer@gmail.com>
19250
19251         * elf/elf.h: Add new ARM TLS relocs.
19252
19253 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19254
19255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19256         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19257         cast from r3.
19258         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19259         'tests' variable.
19260         * sysdeps/wordsize-64/tst-writev.c: New file.
19261
19262 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19263
19264         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19265         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19266         insns in _dl_start to prevent a TOC reference before relocs are
19267         resolved.
19268
19269 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19270
19271         [BZ #12469]
19272         * Makeconfig: Remove RANLIB definition.
19273         * Makerules: Don't use RANLIB.
19274         * aclocal.m4: Remove ranlib test.
19275         * configure.in: No need to check for ranlib.
19276         * elf/rtld-Rules: Don't use RANLIB.
19277
19278 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19279
19280         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19281         protection macro.
19282         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19283         inclusion protection macro.
19284
19285         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19286         SIGRTMIN and SIGRTMAX and print information in that case only when
19287         SIGRTMIN is defined.
19288
19289 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19290
19291         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19292         arginfo fn returning -1.
19293
19294         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19295         and thousands string is zero terminated.
19296
19297 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19298
19299         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19300         sysdeps/unix/sysv/linux/bits/socket.h.
19301
19302 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19303
19304         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19305         (__CPU_COUNT): Remove old macros.
19306         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19307         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19308         (__CPU_ALLOC, __CPU_FREE): Add macros.
19309         (__sched_cpualloc, __sched_cpufree): Add declarations.
19310
19311 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19312
19313         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19314         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19315         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19316         (readdhstai): Return value of addhstaiX call.
19317         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19318         (addgrbyX): Return value returned by cache_addgr.
19319         (readdgrbyname): Return value returned by addgrbyX.
19320         (readdgrbygid): Likewise.
19321         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19322         (addpwbyX): Return value returned by cache_addpw.
19323         (readdpwbyname): Return value returned by addhstbyX.
19324         (readdpwbyuid): Likewise.
19325         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19326         (addservbyX): Return value returned by cache_addserv.
19327         (readdservbyname): Return value returned by addservbyX:
19328         (readdservbyport): Likewise.
19329         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19330         (addhstbyX): Return value returned by cache_addhst.
19331         (readdhstbyname): Return value returned by addhstbyX.
19332         (readdhstbyaddr): Likewise.
19333         (readdhstbynamev6): Likewise.
19334         (readdhstbyaddrv6): Likewise.
19335         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19336         (readdinitgroups): Return value returned by addinitgroupsX.
19337         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19338         (prune_cache): Keep track of timeout value of re-added entries.
19339         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19340         * nscd/nscd.h: Adjust prototypes of readd* functions.
19341
19342 2011-02-04  Roland McGrath  <roland@redhat.com>
19343
19344         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19345         (nis_stats): Likewise.
19346         * nis/nis_modify.c (nis_modify): Likewise.
19347         * nis/nis_remove.c (nis_remove): Likewise.
19348         * nis/nis_add.c (nis_add): Likewise.
19349
19350         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19351
19352         * posix/fnmatch_loop.c: Add some consts.
19353
19354         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19355
19356 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19357
19358         [BZ #12460]
19359         * config.make.in (config-cflags-novzeroupper): Define.
19360         * configure.in: Substitute libc_cv_cc_novzeroupper.
19361         * elf/Makefile (AVX-CFLAGS): Define.
19362         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19363         (CFLAGS-tst-auditmod4a.c): Likewise.
19364         (CFLAGS-tst-auditmod4b.c): Likewise.
19365         (CFLAGS-tst-auditmod6b.c): Likewise.
19366         (CFLAGS-tst-auditmod6c.c): Likewise.
19367         (CFLAGS-tst-auditmod7b.c): Likewise.
19368         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19369
19370 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19371
19372         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19373         function to the callback.
19374         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19375
19376 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19377
19378         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19379         of errno.
19380
19381 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19382
19383         [BZ #11724]
19384         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19385         of constructors.
19386         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19387         of destructors.
19388         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19389
19390         [BZ #11724]
19391         * elf/Makefile: Add rules to build and run new test.
19392         * elf/tst-initorder.c: New file.
19393         * elf/tst-initorder.exp: New file.
19394         * elf/tst-initordera1.c: New file.
19395         * elf/tst-initordera2.c: New file.
19396         * elf/tst-initordera3.c: New file.
19397         * elf/tst-initordera4.c: New file.
19398         * elf/tst-initorderb1.c: New file.
19399         * elf/tst-initorderb2.c: New file.
19400         * elf/tst-order-a1.c: New file.
19401         * elf/tst-order-a2.c: New file.
19402         * elf/tst-order-a3.c: New file.
19403         * elf/tst-order-a4.c: New file.
19404         * elf/tst-order-b1.c: New file.
19405         * elf/tst-order-b2.c: New file.
19406         * elf/tst-order-main.c: New file.
19407         New test case by George Gensure <werkt0@gmail.com>.
19408
19409 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19410
19411         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19412         decoding ACE if AI_CANONIDN.
19413
19414 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19415
19416         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19417
19418 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19419
19420         * version.h (RELEASE): Bump for 2.13 release.
19421         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19422
19423         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19424
19425         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19426         MADV_NOHUGEPAGE.
19427         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19428         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19429         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19430         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19431         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19432         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19433
19434         * posix/getconf.c: Update copyright year.
19435         * catgets/gencat.c: Likewise.
19436         * csu/version.c: Likewise.
19437         * debug/catchsegv.sh: Likewise.
19438         * debug/xtrace.sh: Likewise.
19439         * elf/ldconfig.c: Likewise.
19440         * elf/ldd.bash.in: Likewise.
19441         * elf/sprof.c (print_version): Likewise.
19442         * iconv/iconv_prog.c: Likewise.
19443         * iconv/iconvconfig.c: Likewise.
19444         * locale/programs/locale.c: Likewise.
19445         * locale/programs/localedef.c: Likewise.
19446         * malloc/memusage.sh: Likewise.
19447         * malloc/mtrace.pl: Likewise.
19448         * nscd/nscd.c (print_version): Likewise.
19449         * nss/getent.c: Likewise.
19450
19451         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19452         PF_CAIF, and PF_ALG.
19453         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19454
19455 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19456
19457         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19458         (modules-names): Use them.
19459         (ifunc-test-modules, ifunc-pie-tests): Define.
19460         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19461         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19462         (test-extras): Likewise.
19463         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19464         $(compile-command.c).
19465         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19466         (all-built-dso): Define.
19467         (check-textrel.out, check-execstack.out): Depend on it.
19468
19469         * configure.in: Don't override --enable-multi-arch.
19470
19471 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19472
19473         [BZ #6812]
19474         * nscd/hstcache.c (tryagain): Define.
19475         (cache_addhst): Return tryagain not notfound for temporary errors.
19476         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19477         failed.
19478
19479 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19480
19481         [BZ #10563]
19482         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19483         to make the syscall.
19484         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19485
19486         [BZ #12378]
19487         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19488         and fall back to matching as normal character if the string ends before
19489         the matching ']' is found.  This is what POSIX requires.
19490         * posix/testfnm.c: Adjust test result.
19491         * posix/globtest.sh: Adjust test result.  Add new test.
19492         * posix/tst-fnmatch.input: Likewise.
19493         * posix/tst-fnmatch2.c: Add new test.
19494
19495 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19496
19497         * elf/Makefile (check-execstack): Revert last change.  Depend on
19498         check-execstack.h.
19499         (check-execstack.h): New target.
19500         (generated): Add check-execstack.h.
19501         * elf/check-execstack.c: Include "check-execstack.h".
19502         (main): Revert last change.
19503         (handle_file): Return zero if GNU_STACK is absent and
19504         DEFAULT_STACK_PERMS doesn't include PF_X.
19505
19506 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19507
19508         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19509         in child fails because the descriptor is already closed.
19510         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19511         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19512         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19513
19514         [BZ #12397]
19515         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19516         syscall.
19517
19518         [BZ #10484]
19519         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19520         temporary buffer used to handle multi lookups locally.
19521         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19522
19523 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19524
19525         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19526         loader is ld.so.
19527
19528 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19529
19530         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19531         alignment for SSE2.
19532
19533 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19534
19535         [BZ #12394]
19536         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19537         characters.  When rounding increased number of integer digits recompute
19538         number of groups.
19539         * stdio-common/tst-grouping.c: New file.
19540         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19541
19542 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19543
19544         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19545         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19546
19547         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19548         void.
19549         * bits/select.h: Likewise.
19550
19551 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19552
19553         * po/ja.po: Update from translation team.
19554
19555 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19556
19557         [BZ #11155]
19558         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19559         implementation just like for lxstat, fxstatat, et al.
19560
19561 2010-12-27  Jim Meyering  <meyering@redhat.com>
19562
19563         [BZ #12348]
19564         * posix/regexec.c (build_trtable): Return failure indication upon
19565         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19566
19567 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19568
19569         [BZ #12201]
19570         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19571         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19572         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19573         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19574
19575         [BZ #12207]
19576         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19577
19578         [BZ #12204]
19579         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19580         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19581
19582 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19583
19584         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19585         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19586         script has SORT_BY_INIT_PRIORITY.
19587         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19588         NO_CTORS_DTORS_SECTIONS is defined.
19589         * elf/soinit.c: Likewise.
19590         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19591         NO_CTORS_DTORS_SECTIONS is defined.
19592         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19593         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19594         * sysdeps/sh/init-first.c: Likewise.
19595         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19596
19597 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19598
19599         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19600         always use the slow path.
19601
19602 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19603
19604         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19605         similar rule which adds the sysdep directories to the header search in
19606         order to pick up the correct platform stackinfo.h.
19607         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19608         perform test if it is, otherwise return successfully without testing.
19609         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19610         DEFAULT_STACK_PERMS define in stackinfo.h.
19611         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19612         defined in stackinfo.h.
19613         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19614         DEFAULT_STACK_PERMS defined in stackinfo.h.
19615         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19616         * sysdeps/ia64/stackinfo.h: Likewise.
19617         * sysdeps/s390/stackinfo.h: Likewise.
19618         * sysdeps/sh/stackinfo.h: Likewise.
19619         * sysdeps/sparc/stackinfo.h: Likewise.
19620         * sysdeps/x86_64/stackinfo.h: Likewise.
19621         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19622         PF_X for powerpc64.  Retain PF_X for powerpc32.
19623
19624 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19625
19626         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19627         accurately.
19628         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19629         GETDENTS_64BIT_ALIGNED.
19630
19631 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19632
19633         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19634
19635 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19636
19637         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19638         _GNU_SOURCE.
19639
19640         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19641         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19642         Remove __restrict.
19643         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19644         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19645
19646 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19647
19648         [BZ #11655]
19649         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19650         are initialized.
19651
19652 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19653
19654         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19655
19656 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19657
19658         * po/it.po: Update from translation team.
19659
19660 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19661
19662         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19663         unused codes.
19664
19665 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19666
19667         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19668
19669 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19670
19671         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19672         specially.
19673         (gaih_getanswer_slice): Likewise.
19674
19675 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19676
19677         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19678
19679 2010-05-31  Petr Baudis  <pasky@suse.cz>
19680
19681         [BZ #11149]
19682         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19683         silently even in the chroot mode.
19684
19685 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19686
19687         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19688         last patch a bit.  Pretty printing
19689
19690 2010-05-31  Petr Baudis <pasky@suse.cz>
19691
19692         [BZ #10085]
19693         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19694         initialization of skip_initgroups_dyn.
19695
19696 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19697
19698         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19699         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19700
19701 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19702
19703         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19704
19705 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19706
19707         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19708         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19709         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19710         ($(objpfx)tst-fnmatch-mem): New rule.
19711         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19712         * posix/tst-fnmatch.c (main): Call mtrace.
19713
19714 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19715
19716         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19717         Support Intel processor model 6 and model 0x2c.
19718
19719 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19720
19721         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19722           signed comparison.
19723
19724 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19725
19726         [BZ #12205]
19727         * string/test-strncasecmp.c (check_result): New function.
19728         (do_one_test): Use it.
19729         (check1): New function.
19730         (test_main): Use it.
19731         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19732         Support strcasecmp and strncasecmp.
19733
19734 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19735
19736         [BZ #12194]
19737         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19738         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19739
19740 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19741
19742         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19743         IFUNC support.
19744         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19745         memset-x86-64.
19746         * sysdeps/x86_64/multiarch/bzero.S: New file.
19747         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19748         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19749         * sysdeps/x86_64/multiarch/memset.S: New file.
19750         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19751         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19752         Set bit_Prefer_SSE_for_memop for Intel processors.
19753         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19754         Define.
19755         (index_Prefer_SSE_for_memop): Define.
19756         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19757
19758 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19759
19760         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19761         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19762
19763 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19764
19765         [BZ #12191]
19766         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19767         (__x86_64_raw_data_cache_size_half): Likewise.
19768         (__x86_64_raw_shared_cache_size): Likewise.
19769         (__x86_64_raw_shared_cache_size_half): Likewise.
19770
19771         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19772         (__x86_64_raw_data_cache_size_half): Likewise.
19773         (__x86_64_raw_shared_cache_size): Likewise.
19774         (__x86_64_raw_shared_cache_size_half): Likewise.
19775         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19776         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19777         and __x86_64_raw_shared_cache_size_half.  Round
19778         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19779         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19780         to multiple of 256 bytes.
19781
19782 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19783
19784         [BZ #12167]
19785         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19786         of inacessible symlinks.  Verify result of symlink before returning it.
19787         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19788         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19789
19790 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19791
19792         * math/math.h (isinf): Fix typo in comment.
19793
19794 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19795
19796         * po/da.po: Update from translation team.
19797
19798 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19799
19800         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19801         is added to the list.
19802
19803 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19804             Ulrich Drepper  <drepper@gmail.com>
19805
19806         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19807         the global list here.  Move code to...
19808         (_dl_add_to_namespace_list): ...here.  New function.
19809         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19810         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19811         * elf/dl-load.c (lose): Don't remove the element from the list.
19812         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19813         (_dl_map_object): Likewise.
19814
19815 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19816
19817         [BZ #12159]
19818         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19819         into all bytes of SSE register.
19820         Patch by Richard Li <richardpku@gmail.com>.
19821
19822 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19823
19824         [BZ #12140]
19825         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19826         perturbing.
19827
19828 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19829
19830         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19831         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19832         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19833         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19835         submachine.
19836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19837
19838 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19839
19840         * include/dlfcn.h (__RTLD_SECURE): Define.
19841         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19842         mode & __RTLD_SECURE instead.
19843         (open_path): Rename preloaded parameter to secure.
19844         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19845         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19846         * elf/dl-deps.c (openaux): Likewise.
19847         * elf/rtld.c (struct map_args): Remove is_preloaded.
19848         (map_doit): Don't use it.
19849         (dl_main): Likewise.
19850         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19851         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19852
19853 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19854
19855         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19856         (sysd-rules-targets): Remove duplicates.
19857         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19858         rtld-%.$o dependency.
19859
19860 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19861
19862         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19863         _dl_map_object do it.
19864
19865 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19866
19867         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19868         fast fma builtins, define the macros in the C99 standard.
19869         (FP_FAST_FMAF): Likewise.
19870         (FP_FAST_FMAL): Likewise.
19871         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19872
19873         * bits/mathdef.h: Update copyright year.
19874         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19875
19876 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19877
19878         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19879         builtins, define the macros in the C99 standard.
19880         (FP_FAST_FMAF): Likewise.
19881         (FP_FAST_FMAL): Likewise.
19882         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19883         multiply/add.
19884         (FP_FAST_FMAF): Likewise.
19885
19886 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19887
19888         [BZ #3268]
19889         * math/libm-test.inc (fma_test): Some new testcases.
19890         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19891         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19892         y and infinite z.  Do multiplication by C already in long double.
19893         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19894         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19895         y and infinite z.  Do bitwise or of inexact bit into u.d.
19896         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19897         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19898         * sysdeps/i386/fpu/s_fma.S: Removed.
19899         * sysdeps/i386/fpu/s_fmal.S: Removed.
19900
19901 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19902
19903         [BZ #3268]
19904         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19905         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19906         computation is not scheduled after fetestexcept.  Fix value
19907         of minimum denormal long double.
19908
19909 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19910
19911         [BZ #3268]
19912         * math/libm-test.inc (fma_test): Add some more tests.
19913         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19914         correctly.
19915
19916 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19917
19918         * scripts/data/localplt-s390-linux-gnu.data: New file.
19919         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19920
19921 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19922
19923         [BZ #3268]
19924         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19925         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19926         instead of dbl-64.
19927         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19928         inlines.
19929         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19930         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19931         if one of x and y is very large and the other is subnormal.
19932         * sysdeps/s390/fpu/s_fmaf.c: New file.
19933         * sysdeps/s390/fpu/s_fma.c: New file.
19934         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19935         * sysdeps/powerpc/fpu/s_fma.S: New file.
19936         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19937         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19938         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19939
19940 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19941
19942         [BZ #3268]
19943         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19944         fma tests.
19945         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19946         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19947         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19948         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19949         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19950         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19951         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19952
19953 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19954
19955         [BZ #12078]
19956         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19957         * posix/bug-regex31.input: Add test case.
19958
19959 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19960
19961         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19962         * posix/bug-regex31.input: New file.
19963
19964         [BZ #12078]
19965         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19966         (parse_sub_exp): Fix last change, use postorder.
19967
19968         * posix/bug-regex31.c: New file.
19969         * posix/Makefile: Add rules to build and run bug-regex31.
19970
19971         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19972
19973         [BZ #12078]
19974         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19975
19976         [BZ #12108]
19977         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19978         to have entries in sys_siglist.
19979
19980         [BZ #12093]
19981         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19982         be NULL.
19983
19984 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19985
19986         [BZ #3268]
19987         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19988         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19989         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19990         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19991         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19992         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19993         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19994         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19995         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19996         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19997         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19998         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19999         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20000         * math/ftestexcept.c (fetestexcept): Likewise.
20001         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20002         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20003         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20004         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20005         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20006         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20007         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20008
20009 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20010
20011         [BZ #12107]
20012         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20013         newline.
20014
20015 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20016
20017         * string/bug-strstr1.c: New file.
20018         * string/Makefile: Add rules to build and run bug-strstr1.
20019
20020 2010-10-05  Eric Blake  <eblake@redhat.com>
20021
20022         [BZ #12092]
20023         * string/str-two-way.h (two_way_long_needle): Always clear memory
20024         when skipping input due to the shift table.
20025
20026 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20027
20028         [BZ #12005]
20029         * malloc/mcheck.c: Handle large requests.
20030
20031         [BZ #12077]
20032         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20033         for strncmp and strncasecmp.
20034         * string/stratcliff.c: Add tests for strcmp and strncmp.
20035         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20036
20037 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20038
20039         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20040         __set_fpscr.
20041
20042 2010-09-30  Andreas Jaeger  <aj@suse.de>
20043
20044         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20045         (CGROUP_SUPER_MAGIC): Define.
20046         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20047         Handle btrfs and cgroup file systems.
20048         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20049         Likewise.
20050
20051 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20052
20053         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20054         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20055
20056 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20057
20058         [BZ #12067]
20059         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20060         trying to locate the ELF header.
20061
20062 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20063
20064         [BZ #11611]
20065         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20066         Mask out sign-bit copies when constructing f_fsid.
20067
20068 2010-09-24  Petr Baudis <pasky@suse.cz>
20069
20070         * debug/stack_chk_fail_local.c: Add missing licence exception.
20071         * debug/warning-nop.c: Likewise.
20072
20073 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20074
20075         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20076         implementing getdents64 using getdents syscall, set d_type if
20077         __ASSUME_GETDENTS32_D_TYPE.
20078
20079 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20080
20081         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20082         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20083
20084 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20085
20086         [BZ #12037]
20087         * posix/unistd.h: Undo change of feature selection for ftruncate from
20088         2010-01-11.
20089
20090 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20091
20092         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20093         detection.
20094
20095 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20096
20097         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20098         fanotify_mark.
20099         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20100
20101 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20102
20103         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20104         variables after CHECK_SP call.
20105         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20106
20107 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20108             Ulrich Drepper  <drepper@redhat.com>
20109
20110         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20111         re-relocationg ld.so.
20112         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20113         _dl_init_paths call.
20114         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20115         here anymore.
20116
20117 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20118
20119         * resolv/res_init.c (__res_vinit): Count the default server we added.
20120
20121 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20122             Ulrich Drepper  <drepper@redhat.com>
20123
20124         [BZ #11968]
20125         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20126         (____longjmp_chk): Use %ebx for saving value across system call.
20127         Add unwind info.
20128
20129 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20130
20131         * manual/Makefile: Don't mix pattern rules with normal rules.
20132
20133 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20134
20135         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20136         operation.
20137         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20138         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20139         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20140         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20141         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20142         Likewise.
20143
20144 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20145
20146         [BZ #11979]
20147         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20148         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20149
20150 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20151
20152         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20153         * sysdeps/x86_64/addmul_1.S: Likewise.
20154         * sysdeps/x86_64/lshift.S: Likewise.
20155         * sysdeps/x86_64/mul_1.S: Likewise.
20156         * sysdeps/x86_64/rshift.S: Likewise.
20157         * sysdeps/x86_64/sub_n.S: Likewise.
20158         * sysdeps/x86_64/submul_1.S: Likewise.
20159
20160 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20161
20162         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20163         Define __sched_param instead of SCHED_* and sched_param when
20164         <bits/sched.h> is included with __need_schedparam defined.
20165         * bits/sched.h [__need_schedparam]
20166         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20167         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20168         (__defined_schedparam): Define to 1.
20169         (__sched_param): New structure, identical to sched_param.
20170         (__need_schedparam): Undefine.
20171
20172 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20173
20174         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20175         (epoll_create1): Declare.
20176
20177         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20178
20179 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20180
20181         [BZ #7066]
20182         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20183         shifting retval into place.
20184
20185 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20186
20187         * nis/rpcsvc/nis.h: Update copyright notice.
20188         * nis/rpcsvc/nis.x: Likewise.
20189         * nis/rpcsvc/nis_callback.h: Likewise.
20190         * nis/rpcsvc/nis_callback.x: Likewise.
20191         * nis/rpcsvc/nis_object.x: Likewise.
20192         * nis/rpcsvc/nis_tags.h: Likewise.
20193         * nis/rpcsvc/yp.h: Likewise.
20194         * nis/rpcsvc/yp.x: Likewise.
20195         * nis/rpcsvc/ypupd.h: Likewise.
20196         * nis/yp_xdr.c: Likewise.
20197         * nis/ypupdate_xdr.c: Likewise.
20198
20199         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20200         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20201         (pmap_getport): Use __libc_rpc_getport.
20202         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20203         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20204         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20205
20206 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20207
20208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20209         fanotify_mark.
20210
20211 2010-08-27  Roland McGrath  <roland@redhat.com>
20212
20213         * sysdeps/i386/i686/multiarch/Makefile
20214         (CFLAGS-varshift.c): New variable.
20215
20216 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20217
20218         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20219         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20220
20221         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20222
20223         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20224
20225 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20226
20227         * sysdeps/x86_64/strlen.S: Unroll the loop.
20228         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20229         strlen-sse2 strlen-sse2-bsf.
20230         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20231         __strlen_no_bsf if bit_Slow_BSF is set.
20232         (__strlen_sse42): Removed.
20233         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20234         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20235
20236 2010-08-25  Roland McGrath  <roland@redhat.com>
20237
20238         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20239         * sysdeps/x86_64/multiarch/varshift.c: New file.
20240         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20241         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20242         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20243         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20244
20245 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20246
20247         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20248         strlen-sse2 strlen-sse2-bsf.
20249         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20250         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20251         (__strlen_sse2): Removed.
20252         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20253         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20254         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20255         bit_Slow_BSF for Atom.
20256         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20257         (index_Slow_BSF): Define.
20258         (HAS_SLOW_BSF): Define.
20259
20260 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20261
20262         [BZ #10851]
20263         * resolv/res_init.c (__res_vinit): When no server address at all
20264         is given default to loopback.
20265
20266 2010-08-24  Roland McGrath  <roland@redhat.com>
20267
20268         * configure.in: Remove config-name.h generation.
20269         * configure: Regenerated.
20270         * config-name.in: File removed.
20271         * scripts/config-uname.sh: New file.
20272         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20273         ($(objdir)config-name.h): New target.
20274
20275         * sunrpc/rpc_parse.h: Avoid nested comment.
20276
20277 2010-08-24  Richard Henderson  <rth@redhat.com>
20278             Ulrich Drepper  <drepper@redhat.com>
20279             H.J. Lu  <hongjiu.lu@intel.com>
20280
20281         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20282         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20283         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20284         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20285         _mm_alignr_epi8 with _mm_loadu_si128.
20286         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20287         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20288         (__m128i_shift_right): Removed.
20289         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20290         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20291         * sysdeps/x86_64/multiarch/varshift.h: New file.
20292         * sysdeps/x86_64/multiarch/varshift.S: New file.
20293
20294 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20295
20296         * configure.in: Move assembler checks to before sysdep dir checking.
20297
20298 2010-08-20  Petr Baudis  <pasky@suse.cz>
20299
20300         * LICENSES: Sync the sunrpc license.
20301
20302 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20303
20304         * sunrpc/auth_des.c: Update copyright notice once again.
20305         * sunrpc/auth_none.c: Likewise.
20306         * sunrpc/auth_unix.c: Likewise.
20307         * sunrpc/authdes_prot.c: Likewise.
20308         * sunrpc/authuxprot.c: Likewise.
20309         * sunrpc/bindrsvprt.c: Likewise.
20310         * sunrpc/clnt_gen.c: Likewise.
20311         * sunrpc/clnt_perr.c: Likewise.
20312         * sunrpc/clnt_raw.c: Likewise.
20313         * sunrpc/clnt_simp.c: Likewise.
20314         * sunrpc/clnt_tcp.c: Likewise.
20315         * sunrpc/clnt_udp.c: Likewise.
20316         * sunrpc/clnt_unix.c: Likewise.
20317         * sunrpc/des_crypt.c: Likewise.
20318         * sunrpc/des_soft.c: Likewise.
20319         * sunrpc/get_myaddr.c: Likewise.
20320         * sunrpc/getrpcport.c: Likewise.
20321         * sunrpc/key_call.c: Likewise.
20322         * sunrpc/key_prot.c: Likewise.
20323         * sunrpc/openchild.c: Likewise.
20324         * sunrpc/pm_getmaps.c: Likewise.
20325         * sunrpc/pm_getport.c: Likewise.
20326         * sunrpc/pmap_clnt.c: Likewise.
20327         * sunrpc/pmap_prot.c: Likewise.
20328         * sunrpc/pmap_prot2.c: Likewise.
20329         * sunrpc/pmap_rmt.c: Likewise.
20330         * sunrpc/rpc/auth.h: Likewise.
20331         * sunrpc/rpc/auth_unix.h: Likewise.
20332         * sunrpc/rpc/clnt.h: Likewise.
20333         * sunrpc/rpc/des_crypt.h: Likewise.
20334         * sunrpc/rpc/key_prot.h: Likewise.
20335         * sunrpc/rpc/netdb.h: Likewise.
20336         * sunrpc/rpc/pmap_clnt.h: Likewise.
20337         * sunrpc/rpc/pmap_prot.h: Likewise.
20338         * sunrpc/rpc/pmap_rmt.h: Likewise.
20339         * sunrpc/rpc/rpc.h: Likewise.
20340         * sunrpc/rpc/rpc_des.h: Likewise.
20341         * sunrpc/rpc/rpc_msg.h: Likewise.
20342         * sunrpc/rpc/svc.h: Likewise.
20343         * sunrpc/rpc/svc_auth.h: Likewise.
20344         * sunrpc/rpc/types.h: Likewise.
20345         * sunrpc/rpc/xdr.h: Likewise.
20346         * sunrpc/rpc_clntout.c: Likewise.
20347         * sunrpc/rpc_cmsg.c: Likewise.
20348         * sunrpc/rpc_common.c: Likewise.
20349         * sunrpc/rpc_cout.c: Likewise.
20350         * sunrpc/rpc_dtable.c: Likewise.
20351         * sunrpc/rpc_hout.c: Likewise.
20352         * sunrpc/rpc_main.c: Likewise.
20353         * sunrpc/rpc_parse.c: Likewise.
20354         * sunrpc/rpc_parse.h: Likewise.
20355         * sunrpc/rpc_prot.c: Likewise.
20356         * sunrpc/rpc_sample.c: Likewise.
20357         * sunrpc/rpc_scan.c: Likewise.
20358         * sunrpc/rpc_scan.h: Likewise.
20359         * sunrpc/rpc_svcout.c: Likewise.
20360         * sunrpc/rpc_tblout.c: Likewise.
20361         * sunrpc/rpc_util.c: Likewise.
20362         * sunrpc/rpc_util.h: Likewise.
20363         * sunrpc/rpcinfo.c: Likewise.
20364         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20365         * sunrpc/rpcsvc/key_prot.x: Likewise.
20366         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20367         * sunrpc/rpcsvc/mount.x: Likewise.
20368         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20369         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20370         * sunrpc/rpcsvc/rex.x: Likewise.
20371         * sunrpc/rpcsvc/rstat.x: Likewise.
20372         * sunrpc/rpcsvc/rusers.x: Likewise.
20373         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20374         * sunrpc/rpcsvc/spray.x: Likewise.
20375         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20376         * sunrpc/rtime.c: Likewise.
20377         * sunrpc/svc.c: Likewise.
20378         * sunrpc/svc_auth.c: Likewise.
20379         * sunrpc/svc_authux.c: Likewise.
20380         * sunrpc/svc_raw.c: Likewise.
20381         * sunrpc/svc_run.c: Likewise.
20382         * sunrpc/svc_simple.c: Likewise.
20383         * sunrpc/svc_tcp.c: Likewise.
20384         * sunrpc/svc_udp.c: Likewise.
20385         * sunrpc/svc_unix.c: Likewise.
20386         * sunrpc/svcauth_des.c: Likewise.
20387         * sunrpc/xcrypt.c: Likewise.
20388         * sunrpc/xdr.c: Likewise.
20389         * sunrpc/xdr_array.c: Likewise.
20390         * sunrpc/xdr_float.c: Likewise.
20391         * sunrpc/xdr_mem.c: Likewise.
20392         * sunrpc/xdr_rec.c: Likewise.
20393         * sunrpc/xdr_ref.c: Likewise.
20394         * sunrpc/xdr_sizeof.c: Likewise.
20395         * sunrpc/xdr_stdio.c: Likewise.
20396
20397         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20398         handling.
20399
20400 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20401
20402         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20403
20404 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20405
20406         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20407         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20408         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20409         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20410         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20411         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20412         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20413         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20414         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20415         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20416         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20417         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20418         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20419         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20420
20421 2010-07-26  Anton Blanchard  <anton@samba.org>
20422
20423         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20424         * malloc/arena.c (heap_trim): Likewise.
20425
20426 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20427
20428         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20429         here.  Not...
20430         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20431         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20432
20433 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20434
20435         * sysdeps/i386/elf/Makefile: New file.
20436
20437 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20438
20439         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20440         from fanotify_init.
20441         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20442         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20443
20444 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20445
20446         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20447         of strncasecmp_l.
20448         * sysdeps/multiarch/strcmp.S: Likewise.
20449
20450 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20451
20452         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20453         strncase_l-nonascii.
20454         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20455         Add strncase_l-ssse3.
20456         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20457         * sysdeps/x86_64/strcmp.S: Likewise.
20458         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20459         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20460         * sysdeps/x86_64/strncase.S: New file.
20461         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20462         * sysdeps/x86_64/strncase_l.S: New file.
20463         * string/Makefile (strop-tests): Add strncasecmp.
20464         * string/test-strncasecmp.c: New file.
20465
20466         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20467         warning.
20468
20469         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20470         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20471
20472 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20473
20474         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20475
20476 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20477
20478         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20479         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20480         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20481
20482 2010-05-01  Alan Modra  <amodra@gmail.com>
20483
20484         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20485         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20486         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20487         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20488         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20489         tidying.  Don't tail-call __sigjmp_save for static lib.
20490         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20491         save location.
20492         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20493         (CALL_MCOUNT): Add eh info, and nop after bl.
20494         (TAIL_CALL_SYSCALL_ERROR): New macro.
20495         (PSEUDO_RET): Use it.
20496         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20497         Correct save location of integer regs and cr.
20498         (_dl_profile_resolve): Correct cr save location.  Delete nops
20499         after bl when SHARED.  Reduce cfi size a little by better
20500         placement of cfi directives.
20501         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20502         make a stack frame.  Instead use parm save area as a temp.
20503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20504         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20506         Don't make a stack frame for parent, use parm save area.
20507         Increase child stack frame to 112 bytes.  Don't save unused reg,
20508         and adjust reg usage.  Set up cfi on error recovery and
20509         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20511         (__makecontext): Add dummy nop after jump to exit.
20512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20513         Use correct parm save area and cr save, reduce stack frame.
20514         Correct cfi for possible PSEUDO_RET frame setup.
20515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20516         Branch to local label emitted by PSEUDO_RET rather than
20517         __syscall_error.
20518
20519 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20520
20521         [BZ #11904]
20522         * locale/programs/locale.c (print_assignment): New function.
20523         (show_locale_vars): Use it.
20524
20525 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20526
20527         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20528         field.
20529         (struct statfs64): Likewise.
20530         (_STATFS_F_FLAGS): Define.
20531         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20532         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20533         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20534         (ST_VALID): Define locally.
20535         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20536         __statvfs_getflags, use the provided value.
20537         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20538         __ASSUME_STATFS_F_FLAGS.
20539
20540         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20541
20542         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20543         Add sys/fanotify.h.
20544         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20545         fanotify_mask for GLIBC_2.13.
20546         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20547         fanotify_init and fanotify_mark.
20548         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20549         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20550
20551         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20552         Add prlimit.
20553         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20554         prlimit64 for GLIBC_2.13.
20555         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20556         prlimit64.
20557         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20558         syscall.
20559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20560         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20561         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20562         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20563         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20564         add prlimit alias.
20565         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20566
20567         [BZ #11903]
20568         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20569         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20570
20571         * nss/Makefile: Add rules to build and run tst-nss-test1.
20572         * shlib-versions: Add entry for libnss_test1.
20573         * nss/nss_test1.c: New file.
20574         * nss/tst-nss-test1.c: New file.
20575
20576         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20577         (__nss_configure_lookup): Set appropriate entry in
20578         __nss_configure_lookup to true.
20579         * nss/nsswitch.h: Define enum with indeces of databases in
20580         databases and __nss_database_custom arrays.  Declare
20581         __nss_database_custom.
20582         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20583         to avoid using nscd when custom rules are installed.
20584         * nss/getXXbyYY_r.c: Likewise.
20585         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20586
20587         * nss/nss_files/files-parse.c: Whitespace fixes.
20588
20589 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20590
20591         [BZ #11883]
20592         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20593         * posix/fnmatch_loop.c: Likewise.
20594
20595 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20596
20597         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20598         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20599         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20600         * Versions.def [GLIBC_2.13]: Add.
20601
20602 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20603
20604         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20605         Also fail if tpwd after pwuid call is NULL.
20606
20607 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20608
20609         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20610         when converting to ms.
20611
20612 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20613
20614         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20615         EOPNOTSUPP errors with ENOTTY.
20616         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20617         EOPNOTSUPP errors with ENOTTY.
20618
20619 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20620
20621         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20622         Add strcasecmp_l-ssse3.
20623         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20624         strcasecmp.
20625         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20626         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20627         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20628
20629 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20630
20631         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20632
20633         * string/Makefile (strop-tests): Add strcasecmp.
20634         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20635         strcasecmp_l-nonascii.
20636         (gen-as-const-headers): Add locale-defines.sym.
20637         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20638         * sysdeps/x86_64/strcasecmp.S: New file.
20639         * sysdeps/x86_64/strcasecmp_l.S: New file.
20640         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20641         * sysdeps/x86_64/locale-defines.sym: New file.
20642         * string/test-strcasecmp.c: New file.
20643
20644         * string/test-strcasestr.c: Test both ends of the range of characters.
20645         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20646
20647 2010-07-29  Roland McGrath  <roland@redhat.com>
20648
20649         [BZ #11856]
20650         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20651
20652 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20653
20654         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20655         for ld.so.
20656
20657 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20658
20659         * manual/memory.texi (Malloc Tunable Parameters): Document
20660         M_PERTURB.
20661
20662 2010-07-26  Roland McGrath  <roland@redhat.com>
20663
20664         [BZ #11840]
20665         * configure.in (-fgnu89-inline check): Set and substitute
20666         gnu89_inline, not libc_cv_gnu89_inline.
20667         * configure: Regenerated.
20668         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20669
20670 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20671
20672         * string/test-strnlen.c: New file.
20673         * string/Makefile (strop-tests): Add strnlen.
20674         * string/tester.c (test_strnlen): Add a few more test cases.
20675         * string/tst-strlen.c: Better error reporting.
20676
20677         * sysdeps/x86_64/strnlen.S: New file.
20678
20679 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20680
20681         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20682         lower-latency instructions.
20683
20684 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20685
20686         * string/test-strcasestr.c: New file.
20687         * string/test-strstr.c: New file.
20688         * string/Makefile (strop-tests): Add strstr and strcasestr.
20689         * string/str-two-way.h: Don't undefine MAX.
20690         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20691
20692 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20693
20694         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20695         strcasestr-nonascii.
20696         (CFLAGS-strcasestr-nonascii.c): Define.
20697         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20698         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20699         Remove unused attribute.
20700
20701 2010-07-20  Roland McGrath  <roland@redhat.com>
20702
20703         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20704         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20705         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20706         like LD_HWCAP_MASK can disable hwcaps.
20707
20708 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20709
20710         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20711
20712 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20713
20714         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20715         call in strcasestr.
20716         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20717         __strcasestr_sse42_nonascii.
20718         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20719         strcasestr-nonascii.c.
20720         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20721
20722 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20723
20724         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20725         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20726         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20727         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20728
20729 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20730
20731         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20732         fcntl.
20733
20734 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20735
20736         [BZ #11577]
20737         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20738         dl_signal_cerror.
20739
20740 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20741
20742         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20743         _PC_PIPE_BUF using F_GETPIPE_SZ.
20744
20745 2010-07-05  Roland McGrath  <roland@redhat.com>
20746
20747         * manual/arith.texi (Rounding Functions): Fix rint description
20748         implicit in round description.
20749
20750 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20751
20752         * elf/Makefile: Fix linking for a few tests to make recent linker
20753         happy.
20754
20755 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20756
20757         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20758         $(common-objpfx)libc_nonshared.a.
20759
20760 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20761
20762         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20763         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20764         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20765         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20766         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20767         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20768         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20769         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20775         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20784         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20785         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20786         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20787         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20788         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20789         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20790         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20791         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20792         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20793         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20794         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20795         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20810
20811 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20812
20813         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20814         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20815         * string/memmove.c (memmove): Renamed to ...
20816         (MEMMOVE): ...this.  Default to memmove.
20817         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20818         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20819         (END_CHK): Define.
20820         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20821         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20822         mempcpy-ssse3-back memmove-ssse3-back.
20823         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20824         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20825         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20826         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20827         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20828         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20829         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20830         * sysdeps/x86_64/multiarch/memmove.c: New file.
20831         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20832         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20833         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20834         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20835         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20836         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20837         Define.
20838         (index_Fast_Copy_Backward): Define.
20839         (HAS_ARCH_FEATURE): Define.
20840         (HAS_FAST_REP_STRING): Define.
20841         (HAS_FAST_COPY_BACKWARD): Define.
20842
20843 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20844
20845         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20846         Restore proper fallback handling.
20847
20848 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20849
20850         [BZ #11701]
20851         * posix/group_member.c (__group_member): Correct checking loop.
20852
20853         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20854         OOM in getpwuid_r correctly.  Return error number when the caller
20855         should return, otherwise -1.
20856         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20857         call returning > 0 value.
20858         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20859
20860 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20861
20862         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20863         libc_nonshared.a from targets in modules-names.
20864
20865 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20866
20867         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20868         requires it.
20869
20870 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20871
20872         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20873         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20874         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20875         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20876
20877 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20878
20879         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20880
20881 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20882
20883         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20884         and F_GETPIPE_SZ.
20885         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20886         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20887         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20888         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20889         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20890         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20891
20892 2010-06-14  Roland McGrath  <roland@redhat.com>
20893
20894         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20895
20896 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20897
20898         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20899         __REDIRECT followed by __THROW.
20900         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20901         * posix/getopt.h (getopt): Likewise.
20902
20903 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20904
20905         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20906         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20907         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20908         in AT_FLAGS.
20909         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20910         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20911
20912 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20913
20914         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20915
20916 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20917
20918         [BZ #11640]
20919         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20920         Properly check family and model.
20921
20922 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20923
20924         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20925
20926 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20927
20928         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20929
20930 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20931
20932         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20933         symbol reference.
20934
20935 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20936
20937         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20938         symbol reference.
20939
20940 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20941
20942         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20943         and internal_recvmmsg.
20944         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20945         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20946         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20947         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20948
20949         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20950         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20951         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20952
20953 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20954
20955         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20956
20957 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20958
20959         POWER7 optimizations.
20960         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20961         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20962
20963 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20964
20965         * version.h: Update for 2.13 development version.
20966
20967 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20968
20969         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20970         exceptions.  Return 0.
20971
20972 2010-05-07  Roland McGrath  <roland@redhat.com>
20973
20974         * elf/ldconfig.c (main): Add a const.
20975
20976 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20977
20978         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20979         (args_options): Add no-idn option.
20980         (ahosts_keys_int): Add idn_flags to ai_flags.
20981         (parse_option): Handle 'i' option to clear idn_flags.
20982
20983         * malloc/malloc.c (_int_free): Possible race in the most recently
20984         added check.  Only act on the data if no current modification
20985         happened.
20986
20987 See ChangeLog.17 for earlier changes.