Fix build of test cases on GNU Hurd that are statically linked.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
2
3         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
4         variable.
5
6         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
7
8         * sysdeps/mach/hurd/powerpc: Remove directory.
9         * sysdeps/mach/powerpc: Likewise.
10
11 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12
13         * scripts/check-local-headers.sh: Ignore c++ headers.
14
15 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
16
17         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
18         __libc_cleanup_region_start argument.
19
20 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
21
22         [BZ #14784]
23         [BZ #14785]
24         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
25         x * y using scaling, not as x * y + z.
26         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28         * math/libm-test.inc (fma_test): Add more tests.
29         (fma_test_towardzero): Likewise.
30         (fma_test_downward): Likewise.
31         (fma_test_upward): Likewise.
32
33 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
34
35         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
36
37 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
38
39         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
40         New variable.
41
42 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
43
44         * rt/tst-shm.c (worker): Correct checking for mmap failure.
45
46 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
47
48         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
49         Fix sort order.
50         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51         Likewise.
52
53 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
54
55         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56         Fix the order of the list for glibc 2.17.
57         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
58         Likewise.
59
60 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
61
62         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63
64 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
65
66         [BZ #14610]
67         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
68         for low part of x being zero before using __atanl (y).
69         * math/libm-test.inc (atan2_test): Add another test.
70
71         * manual/install.texi (Configuring and compiling): Document
72         general use of test-wrapper and test-wrapper-env.
73         * INSTALL: Regenerated.
74
75         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
76         (__fma): Do not extract and scale down low bits on after-rounding
77         systems when result rounded to normal precision would have normal
78         exponent.
79         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
80         (__fmal): Do not extract and scale down low bits on after-rounding
81         systems when result rounded to normal precision would have normal
82         exponent.
83         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
84         (__fmal): Do not extract and scale down low bits on after-rounding
85         systems when result rounded to normal precision would have normal
86         exponent.
87         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
88         macro.
89         (fma_test): Add more tests.
90         (fma_test_towardzero): Likewise.
91         (fma_test_downward): Likewise.
92         (fma_test_upward): Likewise.
93
94 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
95
96         * sysdeps/i386/tininess.h: Renamed to ...
97         * sysdeps/x86/tininess.h: This.
98         * sysdeps/x86_64/tininess.h: Removed.
99
100 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
101
102         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
103         input.  Use $(build-program-cmd).
104         ($(objpfx)tst-array1-static.out): Likewise.
105         ($(objpfx)tst-array2.out): Likewise.
106         ($(objpfx)tst-array3.out): Likewise.
107         ($(objpfx)tst-array4.out): Likewise.
108         ($(objpfx)tst-array5.out): Likewise.
109         ($(objpfx)tst-array5-static.out): Likewise.
110
111 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
112
113         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
114         if defined.
115
116         * nss/nsswitch.h (nss_interface_function): Provide new
117         macro for use with NSS functions.
118         * grp/initgroups.c: Use new macro.
119         * nss/getXXbyYY.c: Likewise.
120         * nss/getXXbyYY_r.c: Likewise.
121         * nss/getXXent.c: Likewise.
122         * nss/getXXent_r.c: Likewise.
123         * sysdeps/posix/getaddrinfo.c: Likewise.
124
125 2012-10-30  Andreas Jaeger  <aj@suse.de>
126
127         * po/ru.po: Update Russion translation from translation project.
128
129 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
130
131         [BZ #14152]
132         [BZ #14783]
133         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
134         result and shift together with sticky bit instead of replicating
135         round-to-nearest rounding.
136         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
137         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
138         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
139         missing underflow exceptions.
140         (fma_test_towardzero): Add more tests.
141         (fma_test_downward): Likewise.
142         (fma_test_upward): Likewise.
143
144         [BZ #14047]
145         * sysdeps/generic/tininess.h: New file.
146         * sysdeps/i386/tininess.h: Likewise.
147         * sysdeps/sh/tininess.h: Likewise.
148         * sysdeps/x86_64/tininess.h: Likewise.
149         * stdlib/tst-strtod-underflow.c: Likewise.
150         * stdlib/tst-tininess.c: Likewise.
151         * stdlib/strtod_l.c: Include <tininess.h>.
152         (round_and_return): Do not set errno for exact underflow cases.
153         Force an underflow exception when setting errno for underflow.
154         Determine underflow based on rounding to normal precision if
155         TININESS_AFTER_ROUNDING.
156         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
157         ERANGE for exact underflow cases.
158         * stdlib/Makefile (tests): Add tst-tininess and
159         tst-strtod-underflow.
160         ($(objpfx)tst-tininess): Use $(link-libm).
161         ($(objpfx)tst-strtod-underflow): Likewise.
162
163 2012-10-30  Andreas Jaeger  <aj@suse.de>
164
165         [BZ#14767]
166         * elf/Makefile (tests): Remove conditional for have-initfini-array
167         since this is now always required and the variable does not exist
168         anymore.
169         (tests-static): Likewise.
170         (modules-names): Likewise.
171
172         * po/eo.po: Add Esperanto translation from translation project.
173
174         * elf/tst-array1.c (fini_array): Make writeable so that it can be
175         merged with constructor/destructor.
176         (init_array): Likewise.
177         * elf/tst-array2dep.c (fini_array): Likewise.
178         (init_array): Likewise.
179
180 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
181
182         * manual/message.texi: Delete @cartouche tags.
183
184 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
185
186         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
187         EOPNOTSUPP.
188         * sysdeps/mach/hurd/fsync.c: Likewise.
189
190         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
191         [_POSIX_REALTIME_SIGNALS]: Change condition to
192         [_POSIX_REALTIME_SIGNALS > 0].
193
194 2012-10-27  Andreas Jaeger  <aj@suse.de>
195
196         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
197         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
198         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
199         [__WORDSIZE != 64]: Likewise.
200
201 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
202
203         *  iconvdata/tst-table.sh: Remove ${SHELL}.
204         *  iconvdata/tst-tables.sh: Likewise.
205
206 2012-10-25  David S. Miller  <davem@davemloft.net>
207
208         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
209         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
210         of strtoull.
211
212         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
213         ifunc-impl-list.c
214         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
215         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
216         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
217         file.
218
219 2012-10-25  Roland McGrath  <roland@hack.frob.com>
220
221         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
222         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
223         __getdirentries.
224
225 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
226             Jim Blandy  <jimb@codesourcery.com>
227
228         * scripts/cross-test-ssh.sh: New file.
229         * manual/install.texi (Configuring and compiling): Document use of
230         cross-test-ssh.sh.
231         * INSTALL: Regenerated.
232
233 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
234
235         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
236         EOPNOTSUPP.
237
238 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
239
240         * Makeconfig (run-program-prefix): Fix comment.
241
242 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
243             Jim Blandy  <jimb@codesourcery.com>
244
245         * Makeconfig (test-wrapper): New variable,
246         (test-wrapper-env): Likewise.
247         [$(cross-compiling) = yes && $(test-wrapper) != ""]
248         (run-built-tests): Define to yes.
249         (run-program-prefix): Use $(test-wrapper).
250         (built-program-cmd): Likewise.
251         * Rules (make-test-out): Use $(test-wrapper-env) and
252         $(host-built-program-cmd).
253         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
254         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
255         tst-pathopt.sh.
256         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
257         $(test-wrapper-env) to tst-rtld-load-self.sh.
258         ($(objpfx)order2.out): Use $(test-wrapper).
259         ($(objpfx)tst-initorder.out): Likewise.
260         ($(objpfx)tst-initorder2.out): Likewise.
261         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
262         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
263         (test_wrapper_env): New variable.  Use it to run ld.so.
264         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
265         Use it to run ld.so.
266         (test_wrapper_env): Likewise.
267         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
268         $(test-wrapper) to run-iconv-test.sh.
269         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
270         (ICONV): Use $test_wrapper.
271         * posix/Makefile ($(objpfx)globtest.out): Pass
272         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
273         globtest.sh, not $(run-program-prefix).
274         * posix/globtest.sh (run_via_rtld_prefix): New variable.
275         (test_wrapper): Likewise.
276         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
277         set together with run_via_rtld_prefix.
278         (run_program_prefix): Define in terms of test_wrapper and
279         run_via_rtld_prefix.
280
281 2012-10-24  Roland McGrath  <roland@hack.frob.com>
282
283         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
284         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
285         Targets removed.
286
287         [BZ #14743]
288         * include/time.h: Remove librt_hidden_proto (clock_gettime).
289         Declare __clock_getres, __clock_gettime, __clock_settime,
290         __clock_nanosleep, and __clock_getcpuclockid.
291         * rt/clock_gettime.c: Define __clock_gettime as an alias.
292         Remove librt_hidden_def (clock_gettime).
293         * sysdeps/unix/clock_gettime.c: Likewise.
294         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
295         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
296         * rt/clock_getres.c: Define __clock_getres as an alias.
297         * sysdeps/posix/clock_getres.c: Likewise.
298         * rt/clock_settime.c: Define __clock_settime as an alias.
299         * sysdeps/unix/clock_settime.c: Likewise.
300         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
301         * sysdeps/unix/clock_nanosleep.c: Likewise.
302         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
303         * rt/clock-compat.c: New file.
304         * rt/Makefile (librt-routines): Add clock-compat and move
305         $(clock-routines) to ...
306         (routines): ... here, new variable.
307         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
308         Don't add get_clockfreq here.
309         * rt/Versions (libc: GLIBC_2.17): New version set.
310         Add clock_* symbols here.
311         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
312         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
313         (GLIBC_2.17): Add clock_* symbols.
314         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
315         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
316         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
318         Likewise.
319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
320         Likewise.
321         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
322         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
323         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
324         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
325         * NEWS: Mention the move.
326
327         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
328         Use __open, __read, __close rather than their public counterparts.
329         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
330         (__get_clockfreq_via_cpuinfo): Likewise.
331         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
332         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
333
334         * config.h.in (HAVE_IFUNC): New #undef.
335         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
336         was successful.
337         * configure: Regenerated.
338
339 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
340
341         * configure.in: Move READELF check to start of file.
342         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
343         libc_cv_asm_gnu_indirect_function in the process.
344         * configure: Regenerated.
345
346 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
347
348         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
349         send the output to /dev/null.
350         (libc_cv_cc_with_libunwind): Likewise.
351         (libc_cv_as_noexecstack): Likewise.
352         * configure: Regenerate.
353
354 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
355
356         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
357
358         * posix/globtest.sh (TMPDIR): Do not set.
359         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
360         (testout): Likewise.
361
362 2012-10-24  Andreas Jaeger  <aj@suse.de>
363
364         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
365         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
366         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
367         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
368         posix_fadvise64, posix_fallocate64.
369
370         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
371         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
372         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
373         Likewise.
374         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
375         Likewise.
376         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
377
378         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
379         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
380         <bits/fcntl-linux.h>.
381         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
382
383         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
384         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
385         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
386         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
387         [__WORDSIZE != 64]: Likewise.
388
389 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
390
391         * Makeconfig (run-built-tests): New variable.
392         * Rules [$(cross-compiling) = yes]: Change condition to
393         [$(run-built-tests) = no].
394         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
395         to [$(run-built-tests) = yes].
396         * elf/Makefile [$(cross-compiling) = no]: Likewise
397         * grp/Makefile [$(cross-compiling) = no]: Likewise.
398         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
399         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
400         * intl/Makefile [$(cross-compiling) = no]: Likewise.
401         * io/Makefile [$(cross-compiling) = no]: Likewise.
402         * libio/Makefile [$(cross-compiling) = no]: Likewise.
403         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
404         * misc/Makefile [$(cross-compiling) = no]: Likewise.
405         * posix/Makefile [$(cross-compiling) = no]: Likewise.
406         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
407         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
408         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
409         * string/Makefile [$(cross-compiling) = no]: Likewise.
410
411         * posix/Makefile ($(objpfx)globtest.out): Pass
412         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
413         $(rtld-installed-name).
414         * posix/globtest.sh (elf_objpfx): Remove variable.
415         (rtld_installed_name): Likewise.
416         (library_path): Likewise.
417         (run_program_prefix): New variable.  Use for running globtest
418         binary.
419
420 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
421             Joseph Myers  <joseph@codesourcery.com>
422
423         * Makeconfig (host-built-program-cmd): New variable.
424         * elf/Makefile (tst-stackguard1-ARGS): Use
425         $(host-built-program-cmd).
426         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
427         (tst-spawn-ARGS): Likewise.
428         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
429
430 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
431             Jim Blandy  <jimb@codesourcery.com>
432
433         * Makeconfig (run-via-rtld-prefix): New variable.
434         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
435         (built-program-cmd): Likewise.
436
437 2012-10-22  Andreas Jaeger  <aj@suse.de>
438
439         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
440         __O_RSYNC if it exists, otherwise to O_SYNC.
441
442 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
443             Joseph Myers  <joseph@codesourcery.com>
444
445         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
446         /dev/null.
447         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
448         from /dev/null
449         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
450         /dev/null.
451
452 2012-10-22  Andreas Jaeger  <aj@suse.de>
453
454         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
455         Define always.
456         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
457
458         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
459         bits/fcntl-linux.h.
460
461         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
462         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
463
464         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
465         to __O_LARGEFILE.
466         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
467         to __O_LARGEFILE.
468
469 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
470             Joseph Myers  <joseph@codesourcery.com>
471
472         * config.make.in (NM): New variable.
473
474 2012-10-21  Andreas Jaeger  <aj@suse.de>
475
476         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
477         definitions and declarations that are provided by
478         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
479
480 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
481
482         [BZ #14683]
483         * elf/Makefile (tests-static): Add tst-leaks1-static.
484         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
485         ($(objpfx)tst-leaks1-static): New rule.
486         ($(objpfx)tst-leaks1-static-mem): Likewise.
487         (tst-leaks1-static-ENV): New macro.
488         * elf/dl-open.c (dl_open_worker): Check the main application
489         only if SHARED is defined.
490         * elf/tst-leaks1-static.c: New file.
491
492 2012-10-20  Andreas Jaeger  <aj@suse.de>
493
494         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
495         generic values for Linux.
496         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
497         and declarations that are provided by <bits/fcntl-linux.h> and
498         include <bits/fcntl-linux.h>.
499         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
500         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
501
502 2012-10-20  Roland McGrath  <roland@hack.frob.com>
503
504         * io/fcntl.h: Move include of <bits/types.h> to the top and
505         include it unconditionally.
506
507 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
508
509         * wcsmbs/Makefile (tests-ifunc): New variable.
510         (tests): Add $(tests-ifunc).
511         * wcsmbs/test-wcschr-ifunc.c: New file.
512         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
513         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
514         * wcsmbs/test-wcslen-ifunc.c: Likewise.
515         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
516         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
517
518         * string/Makefile (tests-ifunc): New variable.
519         (tests): Add $(tests-ifunc).
520         * string/test-memccpy.c (TEST_NAME): New macro.
521         * string/test-memchr.c (TEST_NAME): Likewise.
522         * string/test-memcmp.c (TEST_NAME): Likewise.
523         * string/test-memcpy.c (TEST_NAME): Likewise.
524         * string/test-memmem.c (TEST_NAME): Likewise.
525         * string/test-memmove.c (TEST_NAME): Likewise.
526         * string/test-memset.c (TEST_NAME): Likewise.
527         * string/test-rawmemchr.c (TEST_NAME): Likewise.
528         * string/test-stpcpy.c (TEST_NAME): Likewise.
529         * string/test-stpncpy.c (TEST_NAME): Likewise.
530         * string/test-strcasecmp.c (TEST_NAME): Likewise.
531         * string/test-strcasestr.c (TEST_NAME): Likewise.
532         * string/test-strcat.c (TEST_NAME): Likewise.
533         * string/test-strchr.c (TEST_NAME): Likewise.
534         * string/test-strcmp.c(TEST_NAME): Likewise.
535         * string/test-strcpy.c (TEST_NAME): Likewise.
536         * string/test-strcspn.c (TEST_NAME): Likewise.
537         * string/test-strlen.c (TEST_NAME): Likewise.
538         * string/test-strncasecmp.c (TEST_NAME): Likewise.
539         * string/test-strncmp.c (TEST_NAME): Likewise.
540         * string/test-strncpy.c (TEST_NAME): Likewise.
541         * string/test-strnlen.c (TEST_NAME): Likewise.
542         * string/test-strpbrk.c (TEST_NAME): Likewise.
543         * string/test-strrchr.c (TEST_NAME): Likewise.
544         * string/test-strspn.c (TEST_NAME): Likewise.
545         * string/test-strstr.c (TEST_NAME): Likewise.
546         * string/test-bcopy-ifunc.c: New file.
547         * string/test-bzero-ifunc.c: Likewise.
548         * string/test-memccpy-ifunc.c: Likewise.
549         * string/test-memchr-ifunc.c: Likewise.
550         * string/test-memcmp-ifunc.c: Likewise.
551         * string/test-memcpy-ifunc.c: Likewise.
552         * string/test-memmem-ifunc.c: Likewise.
553         * string/test-memmove-ifunc.c: Likewise.
554         * string/test-mempcpy-ifunc.c: Likewise.
555         * string/test-memset-ifunc.c: Likewise.
556         * string/test-rawmemchr-ifunc.c: Likewise.
557         * string/test-stpcpy-ifunc.c: Likewise.
558         * string/test-stpncpy-ifunc.c: Likewise.
559         * string/test-strcasecmp-ifunc.c: Likewise.
560         * string/test-strcasestr-ifunc.c: Likewise.
561         * string/test-strcat-ifunc.c: Likewise.
562         * string/test-strchr-ifunc.c: Likewise.
563         * string/test-strchrnul-ifunc.c: Likewise.
564         * string/test-strcmp-ifunc.c: Likewise.
565         * string/test-strcpy-ifunc.c: Likewise.
566         * string/test-strcspn-ifunc.c: Likewise.
567         * string/test-strlen-ifunc.c: Likewise.
568         * string/test-strncasecmp-ifunc.c: Likewise.
569         * string/test-strncat-ifunc.c: Likewise.
570         * string/test-strncmp-ifunc.c: Likewise.
571         * string/test-strncpy-ifunc.c: Likewise.
572         * string/test-strnlen-ifunc.c: Likewise.
573         * string/test-strpbrk-ifunc.c: Likewise.
574         * string/test-strrchr-ifunc.c: Likewise.
575         * string/test-strspn-ifunc.c: Likewise.
576         * string/test-strstr-ifunc.c: Likewise.
577
578         * debug/Makefile (tests-ifunc): New variable.
579         (tests): Add $(tests-ifunc).
580         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
581         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
582         * debug/test-stpcpy_chk-ifunc.c: New file.
583         * debug/test-strcpy_chk-ifunc.c: Likewise.
584
585 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
586
587         [BZ #13601]
588         * elf/dl-load.c (open_verify): Retry read if the entire ELF
589         header is not read in.
590
591 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
592
593         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
594         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
595         directly.  Pass built executable to script as
596         $(built-program-cmd).
597         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
598         $testprogram without using LD_LIBRARY_PATH and $ldso.
599
600         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
601         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
602         $(rtld-installed-name).
603         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
604         (rtld_installed_name): Likewise.
605         (library_path): Likewise.
606         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
607         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
608         $(run-program-prefix) to tst-tables.sh.
609         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
610         it to run tst-table-from and tst-table-to.
611         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
612         Pass it to tst-table.sh.
613         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
614         $(run-program-prefix) to tst-gettext.sh.
615         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
616         tst-translit.sh.
617         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
618         tst-gettext2.sh.
619         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
620         to run tst-gettext.
621         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
622         to run tst-gettext2.
623         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
624         to run tst-translit.
625         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
626         $(run-program-prefix) to tst-mtrace.sh.
627         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
628         to run tst-mtrace.
629         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
630         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
631         $(rtld-installed-name).
632         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
633         (rtld_installed_name): Likewise.
634         (run_program_prefix): New variable.  Use it to run wordexp-test.
635
636         * Makeconfig (ARCH): Remove all definitions.
637         (machine): Likewise.
638         [ARCH]: Remove conditional code.
639         [!objdir]: Give error.
640         [!objdir] (objpfx): Remove.
641         [!objdir] (common-objpfx): Likewise.
642         [!objdir] (common-objdir): Likewise.
643         * configure.in (config_makefile): Remove.  Hardcode Makefile in
644         AC_CONFIG_FILES call.
645         * configure: Regenerated.
646
647         [BZ #13888]
648         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
649         or TMPDIR.
650         (testout): Likewise.
651
652         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
653         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
654         $(rtld-installed-name).
655         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
656         (rtld_installed_name): Likwise.
657         (runit): Remove function.
658         (run_getconf): New variable,  Use it for running getconf binary.
659
660 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
661
662         [BZ #14716]
663         * string/test-memmem.c (check_result): New function.
664         (do_one_test): Use it.
665         (check1): New function.
666         (test_main): Use it.
667
668 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
669
670         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
671
672 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
673
674         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
675         (_G_LSEEK64): Likewise.
676         (_G_MMAP64): Likewise.
677         (_G_FSTAT64): Likewise.
678         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
679         (_G_LSEEK64): Likewise.
680         (_G_MMAP64): Likewise.
681         (_G_FSTAT64): Likewise.
682         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
683         unconditional.  Call __mmap64 directly.
684         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
685         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
686         __lseek64 directly.
687         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
688         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
689         __mmap64 directly.
690         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
691         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
692         __lseek64 directly.
693         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
694         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
695         __lseek64 directly.
696         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
697         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
698         __lseek64 directly.
699         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
700         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
701         __fxstat64 directly.
702         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
703         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
704         unconditional.
705         (freopen64) [!_G_OPEN64]: Remove conditional code.
706         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
707         unconditional.
708         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
709         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
710         unconditional.
711         (ftello64) [!_G_LSEEK64]: Remove conditional code.
712         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
713         unconditional.
714         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
715         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
716         unconditional.
717         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
718         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
719         unconditional.
720         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
721         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
722         unconditional.
723         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
724         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
725         unconditional.
726         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
727
728 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
729
730         [BZ #12140]
731         * manual/memory.texi (Malloc Tunable Parameters): Add note
732         about free list pointers overwriting some perturb bytes.
733         Wording suggested by Roland McGrath.
734
735 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
736
737         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
738         (lgamma_test): Likewise.
739         (tgamma_test): Likewise.
740
741 2012-10-16  Florian Weimer  <fweimer@redhat.com>
742
743         [BZ #14700]
744         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
745         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
746
747 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
748
749         * NEWS: Mention BZ #14716.
750         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
751         when removing AVAILABLE1_USES_J macro.
752
753 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
754
755         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
756         (__bswap_64): __uint64_t for unsigned 64-bit int.
757
758 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
759
760         * include/string.h (memmem): Declare libc hidden alias.
761         * string/memmem.c (memmem): Define libc hidden alias.
762         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
763         __read, __close instead of open, read, close.
764
765 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
766
767         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
768         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
769         global and hidden.
770         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
771         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
772         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
773         Likewise.
774         (__rawmemchr_sse2): Likewise.
775         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
776         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
777         (__strchr_sse2): Likewise.
778         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
779         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
780         (__strcasecmp_sse2): Likewise.
781         (__strncasecmp_sse2): Likewise.
782         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
783         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
784         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
785         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
786         (__strrchr_sse2): Likewise.
787         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
788         ifunc-impl-list.c.
789         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
790         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
791         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
792         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
793         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
794         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
795         * sysdeps/x86_64/multiarch/memset.S: Likewise.
796         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
797         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
798         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
799         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
800         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
801         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
802         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
803         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
804         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
805         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
806         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
807         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
808         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
809         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
810         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
811         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
812         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
813         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
814         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
815         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
816         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
817         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
818         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
819
820         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
821         global and hidden.
822         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
823         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
824         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
825         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
826         Likewise.
827         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
828         Likewise.
829         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
830         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
831         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
832         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
833         ifunc-impl-list.c.
834         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
835         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
836         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
837         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
838         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
839         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
840         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
841         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
842         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
843         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
844         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
845         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
846         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
847         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
848         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
849         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
850         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
851         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
852         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
853         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
854         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
855         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
856         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
857         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
858         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
859         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
860         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
861         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
862         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
863         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
864         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
865         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
866         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
867         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
868         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
869         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
870         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
871         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
872         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
873         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
874         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
875
876         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
877         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
878         * include/ifunc-impl-list.h: New file.
879         * misc/ifunc-impl-list.c: Likewise.
880         * misc/Makefile (routines): Add ifunc-impl-list.
881         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
882         * string/test-string.h: Include <ifunc-impl-list.h>.
883         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
884         impl_array): New variables.
885         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
886         are defined.
887         (test_init): Call __libc_ifunc_impl_list to initialize
888         func_list if TEST_IFUNC and TEST_NAME are defined.
889
890         * string/Makefile (strop-tests): Add bcopy and bzero.
891         * string/test-bcopy.c: New file.
892         * string/test-bzero.c: Likewise.
893         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
894         defined.
895         * string/test-memset.c: Support bzero test if TEST_BZERO is
896         defined.
897         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
898         __libc_memmove.
899         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
900         __libc_memset.
901         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
902         of memset.
903
904 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
905
906         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
907         * configure: Regenerated.
908
909         * Makeconfig (+link-static-before-libc): Don't include
910         $(link-static-libc).
911
912         * libio/libio.h (_IO_pos_t): Remove.
913
914 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
915
916         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
917         McGrath.
918
919 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
920
921         * crypt/crypt-entry.c: Include fips-private.h.
922         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
923         * crypt/md5c-test.c (main): Tolerate disabled MD5.
924         * sysdeps/unix/sysv/linux/fips-private.h: New file.
925         * sysdeps/generic/fips-private.h: New file, dummy fallback.
926
927 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
928
929         * crypt/crypt-private.h: Include stdbool.h.
930         (_ufc_setup_salt_r): Return bool.
931         * crypt/crypt-entry.c: Include errno.h.
932         (__crypt_r): Return NULL with EINVAL for bad salt.
933         * crypt/crypt_util.c (bad_for_salt): New.
934         (_ufc_setup_salt_r): Check that salt is long enough and within
935         the specified alphabet.
936         * crypt/badsalttest.c: New file.
937         * crypt/Makefile (tests): Add it.
938         ($(objpfx)badsalttest): New.
939
940 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
941
942         * NEWS: Add entry for BZ #14602.
943
944 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
945
946         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
947         type-generic.
948         * math/libm-test.inc: Update comment listing what functions and
949         macros are tested.
950         (isgreater_test): New function.
951         (isgreaterequal_test): Likewise.
952         (isless_test): Likewise.
953         (islessequal_test): Likewise.
954         (islessgreater_test): Likewise.
955         (isunordered_test): Likewise.
956         (main): Call the new functions.
957
958 2012-10-09  Roland McGrath  <roland@hack.frob.com>
959
960         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
961         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
962         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
963         * sysdeps/i386/configure: Regenerated.
964         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
965         * sysdeps/mach/configure: Regenerated.
966         * sysdeps/mach/hurd/configure: Regenerated.
967         * sysdeps/powerpc/configure: Regenerated.
968         * sysdeps/powerpc/powerpc32/configure: Regenerated.
969         * sysdeps/powerpc/powerpc64/configure: Regenerated.
970         * sysdeps/s390/s390-32/configure: Regenerated.
971         * sysdeps/s390/s390-64/configure: Regenerated.
972         * sysdeps/sh/configure: Regenerated.
973         * sysdeps/sparc/configure: Regenerated.
974         * sysdeps/unix/sysv/linux/configure: Regenerated.
975         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
976         * sysdeps/x86_64/configure: Regenerated.
977
978         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
979         defined.  Don't check if MAP is NULL.
980
981 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
982
983         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
984         (_G_stat64): Likewise.
985         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
986         (_G_stat64): Likewise.
987         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
988         instead of struct _G_stat64.
989         * libio/fileops.c (mmap_remap_check): Likewise.
990         (decide_maybe_mmap): Likewise.
991         (_IO_new_file_seekoff): Likewise.
992         (_IO_file_stat): Likewise.
993         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
994         _G_off64_t.
995         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
996         instead of struct _G_stat64.
997         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
998
999 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1000
1001         [BZ #14602]
1002         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1003         Replace with ...
1004         (CHECK_EOL): New macro.
1005         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1006         CHECK_EOL.
1007         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1008         Replace with CHECK_EOL.
1009         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1010         Replace with CHECK_EOL.
1011
1012 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1013
1014         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1015         type-generic.
1016         * math/libm-test.inc: Update comment listing what functions and
1017         macros are tested.
1018         (finite_test): New function.
1019         (isinf_test): Likewise.
1020         (isnan_test): Likewise.
1021         (fpclassify_test): Test subnormal input.
1022         (isfinite_test): Likewise.
1023         (isnormal_test): Likewise.
1024         (main): Call the new functions.
1025
1026 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1027
1028         [BZ #14660]
1029         * Makerules (%.dynsym): Force C locale when running
1030         $(OBJDUMP) --dynamic-syms.
1031
1032 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1033
1034         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1035         <stdint.h>.
1036
1037 2012-10-06  David S. Miller  <davem@davemloft.net>
1038
1039         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1040         upper 32-bits of the length value in %o2 since we use branch-on-register
1041         tests which consider the entire 64-bit register.
1042
1043 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1044
1045         * string/test-strstr.c (check2): Add a test for page boundary.
1046
1047 2012-10-05  David S. Miller  <davem@davemloft.net>
1048
1049         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1050         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1051         file.
1052         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1053         sysdep_routines.
1054         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1055         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1056         and bzero when HWCAP_SPARC_CRYPTO is present.
1057
1058 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1059
1060         [BZ #14602]
1061         * string/test-strstr.c (check2): New function.
1062         (test_main): Call check2.
1063
1064         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1065         and bug-strchr1.
1066         * string/bug-strcasestr1.c (do_test): Moved to ...
1067         * string/test-strcasestr.c (check1): Here.  New function.
1068         (do_one_test): Break out result checking code into ...
1069         (check_result): This.  New function.
1070         (do_one_test): Call check_result.
1071         (test_main): Call check1.
1072         * string/bug-strchr1.c (do_test): Moved to ...
1073         * string/test-strchr.c (check1): Here.  New function.
1074         (do_one_test): Break out result checking code into ...
1075         (check_result): This.  New function.
1076         (do_one_test): Call check_result.
1077         (test_main): Call check1.
1078         * string/bug-strstr1.c (main): Moved to ...
1079         * string/test-strchr.c (check1): Here.  New function.
1080         (do_one_test): Break out result checking code into ...
1081         (check_result): This.  New function.
1082         (do_one_test): Call check_result.
1083         (test_main): Call check1.
1084         * string/bug-strcasestr1.c: Removed.
1085         * string/bug-strchr1.c: Likewise.
1086         * string/bug-strstr1.c: Likewise.
1087
1088         * elf/Makefile (dl-routines): Add hwcaps.
1089         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1090         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1091         (_dl_important_hwcaps): Moved to ...
1092         * elf/dl-hwcaps.c: Here.  New file.
1093         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1094
1095         [BZ #14557]
1096         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1097         if IS_IN_rtld isn't defined.
1098
1099         * elf/dl-support.c (_dl_sysinfo_map): New.
1100         Include "get-dynamic-info.h" and "setup-vdso.h".
1101         (_dl_non_dynamic_init): Call setup_vdso.
1102         * elf/dynamic-link.h: Don't include <assert.h>.
1103         (elf_get_dynamic_info): Moved to ...
1104         * elf/get-dynamic-info.h: Here.  New file.
1105         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1106         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1107         * elf/setup-vdso.h: Here.  New file.
1108         * elf/rtld.c: Include "setup-vdso.h".
1109         (dl_main): Call setup_vdso.
1110
1111 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1112
1113         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1114         creal in comment listing functions tested.  List finite, isinf,
1115         isnan, isless, islessequal, isgreater, isgreaterequal,
1116         islessgreater, isunordered, lgamma_r and pow10 as functions and
1117         macros not tested.  Mention which functions not tested are aliases
1118         for other functions.  Fix typo.  Note that signs of NaNs are not
1119         tested.
1120
1121         * scripts/config.guess: Update from config.git.
1122         * scripts/config.sub: Likewise.
1123
1124 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1125
1126         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1127         * misc/madvise.c (madvise): Renamed to __madvise.
1128         Make madvise a weak alias.
1129         * include/sys/mman.h: Declare __madvise.
1130         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1131         * sysdeps/unix/syscalls.list
1132         (madvise): Make __madvise the strong name, and madvise a weak alias.
1133         * sysdeps/unix/sysv/linux/syscalls.list
1134         (madvise, mmap): Remove redundant entries.
1135         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1136         * malloc/malloc.c (mtrim): Likewise.
1137         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1138
1139 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1140
1141         * sysdeps/mach/hurd/dl-cache.c: File removed.
1142         * config.h.in (USE_LDCONFIG): New #undef.
1143         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1144         * configure: Regenerated.
1145         * elf/Makefile (dl-routines): Add dl-cache only under
1146         [$(use-ldconfig) = yes].
1147         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1148         cache on [USE_LDCONFIG].
1149         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1150         [USE_LDCONFIG].
1151         * elf/rtld.c (dl_main): Likewise.
1152
1153 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1154
1155         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1156         _SC_LEVEL4_CACHE_LINESIZE.
1157
1158 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1159
1160         * sysdeps/unix/bsd/confstr.h: File removed.
1161
1162 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1163
1164         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1165         sys/sdt-config.h.
1166
1167 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1168
1169         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1170         Make 'mapoff' field ElfW(Off) rather than off_t.
1171
1172 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1173
1174         * nscd/Makefile: Remove nscd-cflags and all its users.
1175         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1176         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1177
1178         [BZ #10631]
1179         * malloc.c (malloc_printerr): Clarify error message.
1180
1181 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1182
1183         [BZ #14648]
1184         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1185         Set bit_FMA_Usable if FMA is supported.
1186         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1187         macro.
1188         (bit_FMA4_Usable): Updated.
1189         (index_FMA_Usable): New macro.
1190         (CPUID_FMA): Likewise
1191         (HAS_FMA): Defined with bit_FMA_Usable.
1192
1193 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1194
1195         * bits/types.h (__swblk_t): Type removed.
1196         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1197         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1198         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1199         (__SWBLK_T_TYPE): Likewise.
1200         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1201         (__SWBLK_T_TYPE): Likewise.
1202         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1203         (__SWBLK_T_TYPE): Likewise.
1204         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1205         (__SWBLK_T_TYPE): Likewise.
1206
1207 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1208             Honza Horak <hhorak@redhat.com>
1209
1210         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1211         (xdr_mapname): Use YPMAXMAP as maxsize.
1212         (xdr_peername): Use YPMAXPEER as maxsize.
1213         (xdr_keydat): Use YPAXRECORD as maxsize.
1214         (xdr_valdat): Use YPMAXRECORD as maxsize.
1215
1216 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1217
1218         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1219
1220         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1221         * csu/init-first.c: ... here.
1222         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1223         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1224         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1225         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1226         * sysdeps/i386/init-first.c: File removed.
1227         * sysdeps/sh/init-first.c: File removed.
1228
1229 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1230
1231         [BZ #14645]
1232         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1233         if x * y might underflow to zero and z is zero.
1234         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1235         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1236         * math/libm-test.inc (min_subnorm_value): New variable.
1237         (fma_test): Add more tests.
1238         (fma_test_towardzero): Likewise.
1239         (fma_test_downward): Likewise
1240         (fma_test_upward): Likewise.
1241         (initialize): Set min_subnorm_value.
1242
1243 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1244
1245         [BZ #14638]
1246         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1247         0 + 0.
1248         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1249         mode for addition resulting in exact zero.
1250         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1251         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1252         exact 0 + 0.
1253         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1254         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1255         * math/libm-test.inc (fma_test): Add more tests.
1256         (fma_test_towardzero): New function.
1257         (fma_test_downward): Likewise.
1258         (fma_test_upward): Likewise.
1259         (main): Call the new functions.
1260
1261 2012-09-28  David S. Miller  <davem@davemloft.net>
1262
1263         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1264
1265 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1266
1267         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1268         instead of SIGALRM.
1269
1270         * sysdeps/gnu/_G_config.h: Moved to ...
1271         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1272         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1273         * sysdeps/generic/_G_config.h: ... here.
1274
1275         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1276
1277         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1278
1279         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1280         Conditionalize target on [libnss_test1.so-version].
1281
1282         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1283
1284         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1285         (elfobjdir): Move out of conditionals.
1286
1287         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1288         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1289         (__nss_lookup_function): Conditionalize label remove_from_tree on
1290         [!DO_STATIC_NSS || SHARED], matching its only use.
1291
1292 2012-09-28  David S. Miller  <davem@davemloft.net>
1293
1294         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1295         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1296         file.
1297         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1298         sysdep_routines.
1299         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1300         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1301         when HWCAP_SPARC_CRYPTO is present.
1302
1303 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1304
1305         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1306
1307 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1308
1309         [BZ #6530]
1310         * stdio-common/vfprintf.c (process_string_arg): Revert
1311         2000-07-22 change.
1312
1313 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1314
1315         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1316         for testcase.
1317         * stdio-common/tst-sprintf.c: Include <locale.h>
1318         (main): Test sprintf's handling of incomplete multibyte
1319         characters.
1320
1321 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1322
1323         * elf/dl-runtime.c (VERSYMIDX): Removed.
1324         * elf/dl-version.c (VERSYMIDX): Likewise.
1325         * elf/do-rel.h (VERSYMIDX): Likewise.
1326         (VALIDX): Likewise.
1327         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1328         * elf/rtld.c (VALIDX): Likewise.
1329         (ADDRIDX): Likewise.
1330         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1331         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1332         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1333         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1334         (VALIDX): Likewise.
1335         (ADDRIDX): Likewise.
1336
1337 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1338
1339         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1340
1341 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1342
1343         [BZ #11438]
1344         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1345         to global scope.
1346         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1347         addresses are in the same scope as 192.0.2/24.
1348         * posix/gai.conf: Document new scope table defaults.
1349
1350 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1351
1352         [BZ #5298]
1353         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1354         for ftell.  Compute offsets from write pointers instead.
1355         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1356
1357 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1358
1359         [BZ #14543]
1360         * libio/Makefile (tests): New test case tst-fseek.
1361         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1362         combination works in wide mode.
1363         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1364         state when the external buffer state changes.
1365
1366 2012-09-27  David S. Miller  <davem@davemloft.net>
1367
1368         [BZ #14376]
1369         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1370         pass reloc->r_addend in as the 'high' argument to
1371         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1372
1373         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1374
1375 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1376
1377         * rt/tst-aio2.c: Include <pthread.h>.
1378         * rt/tst-aio3.c: Likewise.
1379
1380 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1381
1382         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1383
1384 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1385
1386         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1387         contents on [SHARED].
1388
1389 2012-09-26  Marek Polacek  <polacek@redhat.com>
1390
1391         [BZ #14530]
1392         [BZ #13741]
1393         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1394         for C++ and GCC <4.3 as well as for non GCC compilers.
1395
1396 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1397
1398         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1399
1400 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1401
1402         * Makefile.in (all, install): Declare with .PHONY.
1403         Reported by Michael Hope <michael.hope@linaro.org>.
1404
1405 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1406
1407         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1408         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1409         system header.
1410         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1411         Likewise.
1412         (sydep_routines): Add the new and the internal functions.
1413         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1414         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1416         (GLIBC_2.17): Add the new function.
1417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1418         (GLIBC_2.17): Likewise.
1419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1420         (GLIBC_2.17): Likewise.
1421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1422         (GLIBC_2.17): Likewise.
1423         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1424
1425 2012-09-25  Alan Modra  <amodra@gmail.com>
1426
1427         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1428         Add release barrier before setting once_control to say
1429         initialisation is done.  Add hints on lwarx.  Use macro in
1430         place of isync.
1431         (clear_once_control): Add release barrier.
1432
1433 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1434
1435         [BZ #13629]
1436         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1437         specially.
1438         * math/s_clog10.c (__clog10): Likewise.
1439         * math/s_clog10f.c (__clog10f): Likewise.
1440         * math/s_clog10l.c (__clog10l): Likewise.
1441         * math/s_clogf.c (__clogf): Likewise.
1442         * math/s_clogl.c (__clogl): Likewise.
1443         * math/Makefile (libm-calls): Add x2y2m1.
1444         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1445         (__x2y2m1): Likewise.
1446         (__x2y2m1l): Likewise.
1447         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1448         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1449         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1450         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1451         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1452         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1453         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1454         * sysdeps/i386/fpu/libm-test-ulps: Update.
1455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1456
1457         [BZ #14621]
1458         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1459         int as type of variable DEPTH.
1460         (glob): Use size_t instead of int as type of variables NEWCOUNT
1461         and OLD_PATHC.
1462
1463 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1464
1465         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1466         Add s_sincosf-sse2.
1467         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1468         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1469         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1470         macros for using routine as __sincosf_ia32.
1471         Use macro for function declaration and weak_alias.
1472         * sysdeps/i386/fpu/libm-test-ulps: Update.
1473
1474         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1475         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1476
1477         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1478         subnormal argument.
1479         * math/s_cexpf.c (__cexpf): Likewise.
1480         * math/s_csinf.c (__csinf): Likewise.
1481         * math/s_csinhf.c (__csinhf): Likewise.
1482         * math/s_ctanf.c (__ctanf): Likewise.
1483         * math/s_ctanhf.c (__ctanhf): Likewise.
1484         * math/s_ccosh.c (__ccoshf): Likewise.
1485         * math/s_cexp.c (__cexpl): Likewise.
1486         * math/s_csin.c (__csin): Likewise.
1487         * math/s_csinh.c (__csinh): Likewise.
1488         * math/s_ctan.c (__ctan): Likewise.
1489         * math/s_ctanh.c (ctanh): Likewise.
1490         * math/s_ccoshl.c (__ccoshl): Likewise.
1491         * math/s_cexpl.c (__cexpl): Likewise.
1492         * math/s_csinl.c (__csinl): Likewise.
1493         * math/s_csinhl.c (__csinhl): Likewise.
1494         * math/s_ctanl.c (__ctanl): Likewise.
1495         * math/s_ctanhl.c (__ctanhl): Likewise.
1496
1497 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1498
1499         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1500         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1501         (_IO_off_t): Define to __off_t, not _G_off_t.
1502         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1503         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1504         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1505         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1506         type of __dummy and __dummy2 fields.
1507         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1508         (_G_ssize_t): Likewise.
1509         (_G_off_t): Likewise.
1510         (_G_pid_t): Likewise.
1511         (_G_uid_t): Likewise.
1512         (_G_wchar_t): Likewise.
1513         (_G_wint_t): Likewise.
1514         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1515         (_G_ssize_t): Likewise.
1516         (_G_off_t): Likewise.
1517         (_G_pid_t): Likewise.
1518         (_G_uid_t): Likewise.
1519         (_G_wchar_t): Likewise.
1520         (_G_wint_t): Likewise.
1521         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1522         (_G_ssize_t): Likewise.
1523         (_G_off_t): Likewise.
1524         (_G_pid_t): Likewise.
1525         (_G_uid_t): Likewise.
1526         (_G_wchar_t): Likewise.
1527         (_G_wint_t): Likewise.
1528
1529 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1530
1531         * malloc/arena.c: Include malloc-sysdep.h.
1532         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1533         is sufficient to shrink the heap or an unmap is needed.
1534         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1535         new function check_may_shrink_heap.
1536         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1537         new function check_may_shrink_heap.
1538
1539 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1540
1541         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1542         comments.
1543
1544 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1545
1546         * catgets/test-gencat.sh: Add "set -e".
1547         * elf/tst-pathopt.sh: Likewise.
1548         * grp/tst_fgetgrent.sh: Likewise.
1549         * iconvdata/run-iconv-test.sh: Likewise.
1550         * intl/tst-gettext.sh: Likewise.
1551         * intl/tst-gettext2.sh: Likewise.
1552         * intl/tst-gettext4.sh: Likewise.
1553         * intl/tst-gettext6.sh: Likewise.
1554         * intl/tst-translit.sh: Likewise.
1555         * io/ftwtest-sh: Likewise.
1556         * libio/test-freopen.sh: Likewise.
1557         * malloc/tst-mtrace.sh: Likewise.
1558         * posix/globtest.sh: Likewise.
1559         * posix/tst-getconf.sh: Likewise.
1560         * posix/wordexp-tst.sh: Likewise.
1561         * stdio-common/tst-printf.sh: Likewise.
1562         * stdio-common/tst-unbputc.sh: Likewise.
1563         * stdlib/tst-fmtmsg.sh: Likewise.
1564         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1565         * catgets/Makefile: Do not specify -e option when running
1566         testsuite shell scripts.
1567         * elf/Makefile: Likewise.
1568         * grp/Makefile: Likewise.
1569         * iconvdata/Makefile: Likewise.
1570         * intl/Makefile: Likewise.
1571         * io/Makefile: Likewise.
1572         * libio/Makefile: Likewise.
1573         * malloc/Makefile: Likewise.
1574         * posix/Makefile: Likewise.
1575         * stdio-common/Makefile: Likewise.
1576         * stdlib/Makefile: Likewise.
1577         * sysdeps/x86_64/Makefile: Likewise.
1578
1579         * io/ftwtest-sh: Add copyright header.
1580         * posix/globtest.sh: Likewise.
1581         * posix/tst-getconf.sh: Likewise.
1582         * posix/wordexp-tst.sh: Likewise.
1583         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1584
1585 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1586
1587         [BZ #13679]
1588         * Makeconfig (+link): Defined as $(+link-static) if
1589         $(build-shared) isn't yes.
1590         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1591         isn't yes.
1592         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1593
1594         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1595
1596         [BZ #14562]
1597         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1598         new chunk size with MALLOC_ALIGN_MASK.
1599
1600 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1601
1602         [BZ #5044]
1603         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1604         <rounding-mode.h>.
1605         (__printf_fphex): Determine rounding using get_rounding_mode and
1606         round_away.
1607         * stdio-common/tst-printf-round.c (struct hex_test): New
1608         structure.
1609         (hex_tests): New variable.
1610         (test_hex_in_one_mode): New function.
1611         (do_test): Also run tests for hex float output.
1612
1613 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1614
1615         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1616         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1617         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1618         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1619         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1620         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1621         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1622         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1623
1624 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1625
1626         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1627         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1628         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1629         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1630
1631 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1632
1633         [BZ #14579]
1634         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1635         mode only.
1636         * elf/tst-rtld-load-self.sh: New test.
1637         * elf/Makefile: Run it.
1638
1639 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1640
1641         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1642         (tst-writev-ENV): Remove.
1643         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1644
1645 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1646
1647         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1648
1649 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1650
1651         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1652         unconditional.
1653         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1654         Likewise.
1655         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1656         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1657         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1658         Likewise.
1659
1660 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1661
1662         [BZ #14587]
1663         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1664         * config.make.in (have-cpp-asm-debuginfo): Removed.
1665         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1666         * configure: Regenerated.
1667
1668 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1669
1670         [BZ #5044]
1671         * stdio-common/printf_fp.c: Include <stdbool.h> and
1672         <rounding-mode.h>.
1673         (___printf_fp): Determine rounding using get_rounding_mode and
1674         round_away.
1675         * stdio-common/tst-printf-round.c: New file.
1676         * stdio-common/Makefile (tests): Add tst-printf-round.
1677         (link-libm): New variable.
1678         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1679
1680 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1681
1682         [BZ #14576]
1683         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1684         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1685         Likewise.
1686         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1687         Likewise.
1688
1689 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1690
1691         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1692         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1693         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1694         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1695
1696 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1697
1698         [BZ #14518]
1699         * include/rounding-mode.h: New file.
1700         * sysdeps/generic/get-rounding-mode.h: Likewise.
1701         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1702         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1703         (MAX_VALUE): New macro.
1704         (MIN_VALUE): Likewise.
1705         (overflow_value): New function.
1706         (underflow_value): Likewise.
1707         (round_and_return): Use overflow_value and underflow_value to
1708         determine return values in overflow and underflow cases.  Use
1709         round_away to determine rounding depending on rounding mode.
1710         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1711         determine return values in overflow and underflow cases.
1712         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1713         (struct test_results): New structure.
1714         (struct test): Use struct test_results to store expected results
1715         for all rounding modes.
1716         (TEST): Include expected results for all rounding modes.
1717         (test_in_one_mode): New function.
1718         (do_test): Use test_in_one_mode to compute and check results.
1719         Check results for all rounding modes.
1720         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1721         $(link-libm).
1722
1723 2012-12-09  Allan McRae  <allan@archlinux.org>
1724
1725         * sysdeps/i386/fpu/libm-test-ulps: Update
1726
1727 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1728
1729         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1730         (_G_int32_t): Likewise.
1731         (_G_uint16_t): Likewise.
1732         (_G_uint32_t): Likewise.
1733         (_G_HAVE_BOOL): Likewise.
1734         (_G_HAVE_ATEXIT): Likewise.
1735         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1736         (_G_HAVE_IO_FILE_OPEN): Likewise.
1737         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1738         (_G_int32_t): Likewise.
1739         (_G_uint16_t): Likewise.
1740         (_G_uint32_t): Likewise.
1741         (_G_HAVE_BOOL): Likewise.
1742         (_G_HAVE_ATEXIT): Likewise.
1743         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1744         (_G_HAVE_IO_FILE_OPEN): Likewise.
1745         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1746         (_G_int32_t): Likewise.
1747         (_G_uint16_t): Likewise.
1748         (_G_uint32_t): Likewise.
1749         (_G_HAVE_BOOL): Likewise.
1750         (_G_HAVE_ATEXIT): Likewise.
1751         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1752         (_G_HAVE_IO_FILE_OPEN): Likewise.
1753
1754 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1755
1756         * csu/libc-tls.c: Update copyright years.
1757
1758 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1759
1760         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1761         [!_G_USING_THUNKS]: Remove conditional code.
1762         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1763         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1764
1765         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1766         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1767         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1768         (_G_VTABLE_LABEL_PREFIX): Likewise.
1769         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1770         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1771         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1772         (_G_VTABLE_LABEL_PREFIX): Likewise.
1773         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1774         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1775         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1776         (_G_VTABLE_LABEL_PREFIX): Likewise.
1777         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1778
1779 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1780
1781         * libio/Makefile: Include ../Makeconfig before tests.
1782         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1783         only if $(build-shared) is yes.
1784
1785         * iconv/gconv_db.c: Update copyright years.
1786
1787 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1788
1789         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1790         unwind info if defined PIC. Fix special cases description.
1791         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1792
1793         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1794         DP_HI_MASK entry.
1795         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1796
1797 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1798
1799         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1800
1801         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1802         is NULL.
1803
1804         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1805         (LDLIBS-tst-chk4): This.
1806         (LDFLAGS-tst-chk5): Renamed to ...
1807         (LDLIBS-tst-chk5): This.
1808         (LDFLAGS-tst-chk6): Renamed to ...
1809         (LDLIBS-tst-chk6): This.
1810         (LDFLAGS-tst-lfschk4): Renamed to ...
1811         (LDLIBS-tst-lfschk4): This.
1812         (LDFLAGS-tst-lfschk5): Renamed to ...
1813         (LDLIBS-tst-lfschk5): This.
1814         (LDFLAGS-tst-lfschk6): Renamed to ...
1815         (LDLIBS-tst-lfschk6): This.
1816
1817         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1818         on $(common-objpfx)soversions.mk.
1819
1820 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1821
1822         [BZ #10014]
1823         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1824         example host name.
1825
1826 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1827
1828         * malloc/arena.c (arena_get_retry): New function that gets
1829         another arena for the caller to try its request on.
1830         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1831         current arena cannot fulfill the request.
1832         (__libc_memalign): Likewise.
1833         (__libc_memalign): Likewise.
1834         (__libc_pvalloc): Likewise.
1835         (__libc_calloc): Likewise.
1836
1837 2012-09-05  John Tobey  <john.tobey@gmail.com>
1838
1839         [BZ #13542]
1840         * manual/arith.texi (Operations on Complex): Fix description
1841         of carg branch cut.
1842
1843 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1844
1845         [BZ #10014]
1846         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1847         host name.
1848
1849         [BZ #10038]
1850         * manual/memory.texi (Memory): Make order of menu items match
1851         order of sections.
1852
1853 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1854
1855         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1856         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1857         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1858
1859 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1860
1861         * csu/libc-tls.c (static_dtv): Renamed to ...
1862         (_dl_static_dtv): This.  Make it global.
1863         (_dl_initial_dtv): Removed.
1864         (__libc_setup_tls): Updated.
1865         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1866         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1867         DL_INITIAL_DTV.
1868
1869 2012-09-06  Petr Machata  <pmachata@redhat.com>
1870
1871         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1872         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1873         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1874         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1875
1876 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1877
1878         [BZ #14545]
1879         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1880         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1881         freeing dtv[-1].
1882
1883 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1884
1885         [BZ #14544]
1886         * Makeconfig (link-static-before-libc): Replace $(+prector)
1887         with $(+prectorT).
1888         (link-static-after-libc): Replace $(+postctor) with
1889         $(+postctorT).
1890         (link-bounded): Replace $(+prector)/$(+postctor) with
1891         $(+prectorT)/$(+postctorT).
1892         (+prectorT): New macro.
1893         (+postctorT): Likewise.
1894
1895 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1896
1897         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1898         (round_str): Handle values above the maximum for IBM long double
1899         as inexact.
1900         * stdlib/tst-strtod-round.c (tests): Regenerated.
1901
1902 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1903
1904         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1905         assembler flag.
1906         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1907         zarch_nohighgprs around the zarch optimized routines.
1908         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1909         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1910         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1911         for zarch.
1912
1913 2012-09-05  David S. Miller  <davem@davemloft.net>
1914
1915         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1916
1917         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1918         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1919         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1920         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1921         entries.
1922
1923 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1924
1925         * malloc/arena.c: Fold copyright years.
1926         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1927
1928 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1929
1930         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1931
1932 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1933
1934         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1935
1936 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1937
1938         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1939         change internal state upon failure.
1940
1941 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1942
1943         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1944         * malloc/memusage.c (mmap): Likewise.
1945         (mmap64, mremap): Likewise.  Adjust name in comment.
1946
1947 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1948
1949         * libio/fileops.c: Fix typos in comments.
1950         * libio/oldfileops.c: Likewise.
1951         * libio/wfileops.c: Likewise.
1952
1953 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1954
1955         [BZ #1349]
1956         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1957         (tst-malloc-usable-ENV): Set environment for test case.
1958         * malloc/hooks.c (malloc_check_get_size): New function to get
1959         requested size.
1960         * malloc/malloc.c (musable): Use malloc_check_get_size.
1961         * malloc/tst-malloc-usable.c: New test case.
1962
1963 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1964
1965         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1966
1967 2012-09-05  Allan McRae  <allan@archlinux.org>
1968
1969         [BZ #13966]
1970         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1971         determine header location.
1972         * configure: Regenerated.
1973
1974 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1975
1976         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1977         float format.
1978         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1979         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1980         format.
1981         (test): Regenerate.
1982
1983 2012-09-04  David S. Miller  <davem@davemloft.net>
1984
1985         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1986         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1987         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1988
1989 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1990
1991         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1992         failures.
1993
1994         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1995
1996 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1997
1998         [BZ #9914]
1999         * libio/iogetdelim.c: Include <limits.h>.
2000         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2001         + len + 1 would overflow.
2002
2003 2012-09-03  Andreas Jaeger  <aj@suse.de>
2004
2005         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2006         * sysdeps/i386/fpu/libm-test-ulps: Update.
2007
2008 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2009
2010         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2011         Add s_sinf-sse2, s_conf-sse2.
2012
2013         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2014         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2015         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2016         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2017
2018         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2019         for using routine as __sinf_ia32.
2020         Use macro for function declaration and weak_alias.
2021         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2022         for using routine as __cosf_ia32.
2023         Use macro for function declaration and weak_alias.
2024
2025         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2026         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2027
2028         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2029         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2030         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2031
2032         * math/libm-test.inc (cos_test): Add more test cases.
2033         (sin_test): Likewise.
2034         (sincos_test): Likewise.
2035
2036 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2037
2038         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2039         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2040         hidden.
2041         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2042
2043 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2044
2045         [BZ #14538]
2046         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2047         first element of the GOT.
2048         (elf_machine_load_address): Return the difference between
2049         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2050
2051 2012-09-01  Allan McRae  <allan@archlinux.org>
2052
2053         [BZ #13412]
2054         * configure.in (AWK): Require gawk version 3.0 or later.
2055         * configure: Regenerated.
2056
2057 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2058
2059         * sysdeps/unix/sysv/linux/kernel-features.h
2060         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2061         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2062         [__NR_clock_getres]: Make code unconditional.
2063         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2064         (clock_getcpuclockid): Remove code left unreachable by removal of
2065         conditionals.
2066         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2067         code unconditional.
2068         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2069         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2070         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2071         Make code unconditional.
2072         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2073         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2074         * sysdeps/unix/sysv/linux/clock_settime.c
2075         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2076         conditional code.
2077         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2078         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2079
2080 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2081
2082         [BZ #14476]
2083         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2084         scripts/test-installation.pl.
2085
2086         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2087         and $ld_so_version if it is set.
2088
2089 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2090
2091         [BZ #14516]
2092         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2093         failure if reading from procfs failed.
2094         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2095
2096 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2097
2098         * sysdeps/unix/sysv/linux/kernel-features.h
2099         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2100         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2101         Remove conditional code.
2102         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2103         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2104         Remove conditional code.
2105         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2106         * sysdeps/unix/sysv/linux/i386/fxstat.c
2107         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2108         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2109         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2110         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2111         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2112         * sysdeps/unix/sysv/linux/i386/lxstat.c
2113         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2114         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2115         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2116         Remove conditional code.
2117         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2118         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2119         Remove conditional code.
2120         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2121         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2122         <kernel-features.h>.
2123         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2124         Remove.
2125         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2126         Remove conditional code.
2127         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2128         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2129         Remove conditional.
2130
2131 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2132
2133         [BZ #5400]
2134         * NEWS: Add fixed bug number.
2135
2136 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2137
2138         [BZ #14519]
2139         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2140         underflowing exponent in case of negative sign.
2141         * stdlib/tst-strtod-round-data: Add more tests.
2142         * stdlib/tst-strtod-round.c (tests): Regenerated.
2143
2144         [BZ #3479]
2145         * stdlib/strtod_l.c (NDIG): Remove.
2146         (HEXNDIG): Likewise.
2147         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2148         smallest representable value.
2149         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2150         lie within an exact representation of 1/2 ulp of the result.
2151         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2152         unconditionally.
2153         (TENS_P9_IDX): Define unconditionally.
2154         (TENS_P9_SIZE): Likewise.
2155         (TENS_P10_IDX): Likewise.
2156         (TENS_P10_SIZE): Likewise.
2157         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2158         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2159         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2160         entries for 10^2^13 and 10^2^14.
2161         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2162         (TENS_P13_IDX): Define.
2163         (TENS_P13_SIZE): Likewise.
2164         (TENS_P14_IDX): Likewise.
2165         (TENS_P14_SIZE): Likewise.
2166         (_fpioconst_pow10): Change array size to
2167         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2168         unconditional.
2169         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2170         1024]: Add entries for 10^2^13 and 10^2^14.
2171         [LAST_POW10 > _LAST_POW10]: Remove #error.
2172         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2173         (_fpioconst_pow10): Change array size to
2174         FPIOCONST_POW10_ARRAY_SIZE.
2175         * stdlib/gen-fpioconst.c: New file.
2176         * stdlib/gen-tst-strtod-round.c: Likewise.
2177         * stdlib/tst-strtod-round-data: Likewise.
2178         * stdlib/tst-strtod-round.c: Likewise.
2179         * stdlib/Makefile (tests): Add tst-strtod-round.
2180
2181         [BZ #14459]
2182         * stdlib/strtod_l.c: Include <stdint.h>.
2183         (NDEBUG): Do not define.
2184         (round_and_return): Change EXPONENT parameter to type intmax_t.
2185         Rearrange calculations to avoid internal overflow possibilities.
2186         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2187         Rearrange calculations to avoid internal overflow possibilities.
2188         Assert that number fits inside MPNSIZE limbs.
2189         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2190         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2191         calculations and add assertions to avoid internal overflow
2192         possibilities.  Add casts to avoid signed/unsigned operations.
2193         * stdlib/tst-strtod-overflow.c: New file.
2194         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2195
2196 2012-08-25  Marek Polacek  <polacek@redhat.com>
2197
2198         * time/time.h: Fix some typos in comments.
2199
2200 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2201
2202         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2203         * posix/tst-rfc3484-2.c: Likewise.
2204         * posix/tst-rfc3484-3.c: Likewise.
2205
2206 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2207
2208         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2209         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2210
2211 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2212
2213         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2214         #include of fxstatat64.c.
2215
2216 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2217
2218         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2219         * shadow/getspent_r.c: Likewise.
2220         * shadow/getspnam.c: Likewise.
2221         * shadow/getspnam_r.c: Likewise.
2222         * gshadow/getsgent.c: Likewise.
2223         * gshadow/getsgent_r.c: Likewise.
2224         * gshadow/getsgnam.c: Likewise.
2225         * gshadow/getsgnam_r.c: Likewise.
2226         * inet/getnetbyad.c: Likewise.
2227         * inet/getnetbyad_r.c: Likewise.
2228         * inet/getnetbynm.c: Likewise.
2229         * inet/getnetbynm_r.c: Likewise.
2230         * inet/getnetent.c: Likewise.
2231         * inet/getnetent_r.c: Likewise.
2232         * inet/getproto.c: Likewise.
2233         * inet/getproto_r.c: Likewise.
2234         * inet/getprtent.c: Likewise.
2235         * inet/getprtent_r.c: Likewise.
2236         * inet/getprtname.c: Likewise.
2237         * inet/getprtname_r.c: Likewise.
2238         * inet/getrpcbyname.c: Likewise.
2239         * inet/getrpcbyname_r.c: Likewise.
2240         * inet/getrpcbynumber.c: Likewise.
2241         * inet/getrpcbynumber_r.c: Likewise.
2242         * inet/getrpcent.c: Likewise.
2243         * inet/getrpcent_r.c: Likewise.
2244         * inet/getaliasent.c: Likewise.
2245         * inet/getaliasent_r.c: Likewise.
2246         * inet/getaliasname.c: Likewise.
2247         * inet/getaliasname_r.c: Likewise.
2248         * nscd/getgrgid_r.c: Likewise.
2249         * nscd/getgrnam_r.c: Likewise.
2250         * nscd/gethstbyad_r.c: Likewise.
2251         * nscd/gethstbynm3_r.c: Likewise.
2252         * nscd/getpwnam_r.c: Likewise.
2253         * nscd/getpwuid_r.c: Likewise.
2254         * nscd/getsrvbynm_r.c: Likewise.
2255         * nscd/getsrvbypt_r.c: Likewise.
2256         * nscd/gai.c: Likewise.
2257
2258         * configure.in (build_nscd): New substituted variable, set
2259         by --disable-build-nscd and defaults to $use_nscd.
2260         * configure: Regenerated.
2261         * config.make.in (build-nscd): New substituted variable.
2262         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2263         Change conditional to require [$(build-nscd) = yes] as well.
2264         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2265
2266         [BZ# 13696]
2267         * configure.in (use_nscd): New substituted variable, set by
2268         --disable-nscd.  If enabled, define USE_NSCD.
2269         * configure: Regenerated.
2270         * config.h.in: Add USE_NSCD.
2271         * config.make.in (use-nscd): New substituted variable.
2272         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2273         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2274         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2275         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2276         (CFLAGS-getgrnam_r.c): Likewise.
2277         (CFLAGS-initgroups.c): Likewise.
2278         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2279         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2280         Variables removed.
2281         * inet/getnetgrent_r.c
2282         (nscd_setnetgrent): New function, broken out of ...
2283         (setnetgrent): ... here.  Call it.
2284         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2285         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2286         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2287         * nscd/Makefile (routines, aux): Move definitions after include of
2288         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2289         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2290         Conditionalize on [USE_NSCD].
2291         (is_nscd, nscd_init_cb): Likewise.
2292         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2293         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2294         * nss/nss_db/db-init.c: Likewise.
2295         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2296         [USE_NSCD].
2297         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2298         (make_request): Use it.
2299         (cache_valid_p): New function.
2300         (__check_pf): Use it.
2301         * NEWS: Add item for --disable-nscd.
2302
2303 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2304
2305         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2306         to support sed >= 4.2.1-20-ga9bf076.
2307         * configure: Regenerated.
2308
2309 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2310
2311         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2312         Conditionalize whole body on [IREL].
2313
2314 2012-08-22  Jeff Law <law@redhat.com>
2315
2316         [BZ #14505]
2317         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2318         if the family is PF_UNSPEC.
2319
2320 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2321
2322         * Makerules (lib-version): Rename from V.
2323         (install-lib-nosubdir): Change V to lib-version.
2324
2325 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2326
2327         [BZ #14252]
2328         * powerpc32/power6/wcschr.c: New file.
2329         * powerpc32/power6/wcscpy.c: New file.
2330         * powerpc32/power6/wcsrchr.c: New file.
2331         * powerpc64/power6/wcschr.c: New file.
2332         * powerpc64/power6/wcscpy.c: New file.
2333         * powerpc64/power6/wcsrchr.c: New file.
2334
2335 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2336
2337         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2338         (two_way_short_needle): Use it.
2339         * string/strstr.c (AVAILABLE1_USES_J): Define.
2340         * string/strcasestr.c: Likewise.
2341
2342         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2343         array references.
2344         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2345
2346         [BZ #11607]
2347         * NEWS: Add an entry.
2348         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2349         define their defaults.
2350         (two_way_short_needle): Detect end-of-string on-the-fly.
2351         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2352         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2353         * string/bug-strcasestr1.c: New test.
2354         * string/Makefile: Run it.
2355
2356 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2357
2358         [BZ #11607]
2359         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2360         the first character.
2361
2362 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2363
2364         * csu/elf-init.c (__libc_csu_irel): Function removed.
2365         * csu/libc-start.c (apply_irel): New function.
2366         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2367
2368 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2369
2370         * sysdeps/unix/sysv/linux/kernel-features.h
2371         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2372         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2373         <kernel-features.h>.
2374         [__NR_fadvise64_64]: Make code unconditional.
2375         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2376         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2377         !__NR_fadvise64_64)]: Likewise.
2378         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2379         !__NR_fadvise64_64))]: Likewise.
2380         [__NR_fadvise64]: Make code unconditional.
2381         [!__NR_fadvise64]: Remove conditional code.
2382         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2383         <kernel-features.h>.
2384         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2385         unconditional.
2386         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2387         conditional code.
2388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2389         not include <kernel-features.h>.
2390         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2391         unconditional.
2392         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2393         conditional code.
2394         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2395         include <kernel-features.h>.
2396         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2397         unconditional.
2398         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2399         conditional code.
2400
2401 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2402
2403         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2404         slight instruction rearrangements per scrollpipe analysis.
2405         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2406
2407 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2408
2409         * manual/syslog.texi (syslog; vsyslog, closelog):
2410         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2411         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2412
2413         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2414         DSOCAPS to match condition on defining it.
2415
2416 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2417
2418         * sysdeps/unix/sysv/linux/kernel-features.h
2419         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2421         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2422         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2424         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2425         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2427         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2428         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2429
2430         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2431         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2432
2433         * sysdeps/unix/sysv/linux/kernel-features.h
2434         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2435         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2436         unconditional.
2437         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2438         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2439         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2440         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2441         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2442         Make code unconditional.
2443         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2444         (__mmap64) [!__NR_mmap2]: Likewise.
2445         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2446         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2447         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2448         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2449         [__NR_mmap2]: Make code unconditional.
2450         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2451         (__mmap64) [!__NR_mmap2]: Likewise.
2452
2453 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2454
2455         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2456
2457 2012-08-18  Andreas Jaeger  <aj@suse.de>
2458
2459         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2460
2461 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2462
2463         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2464         * include/unistd.h (__have_sock_cloexec): Likewise.
2465         (__have_pipe2): Likewise.
2466         (__have_dup3): Likewise.
2467
2468 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2469
2470         [BZ #9685]
2471         * include/unistd.h (__have_pipe2): Change define into an extern int.
2472         (__have_dup3): Likewise.
2473         * socket/have_sock_cloexec.c: Include fcntl.h.
2474         (__have_pipe2): New variable.
2475         (__have_dup3): Likewise.
2476
2477 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2478
2479         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2480
2481 2012-08-17  Marek Polacek  <polacek@redhat.com>
2482
2483         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2484         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2485
2486 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2487
2488         * configure.in: Add AC_SUBST for sysheaders.
2489         * configure: Regenerated.
2490         * config.make.in (sysheaders): New substituted variable.
2491
2492         * sysdeps/unix/mkfifo.c: Moved ...
2493         * sysdeps/posix/mkfifo.c: ... here.
2494         * sysdeps/unix/mkfifoat.c: Moved ...
2495         * sysdeps/posix/mkfifoat.c: ... here.
2496
2497         * sysdeps/unix/utime.c: Moved ...
2498         * sysdeps/posix/utime.c: ... here.
2499
2500         * sysdeps/unix/time.c: Moved ...
2501         * sysdeps/posix/time.c: ... here.
2502         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2503         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2504
2505         * sysdeps/unix/nice.c: Moved ...
2506         * sysdeps/posix/nice.c: ... here.
2507
2508         * sysdeps/unix/alarm.c: Moved ...
2509         * sysdeps/posix/alarm.c: ... here.
2510
2511         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2512
2513 2012-08-17  Jeff Law <law@redhat.com>
2514
2515         * intl/Makefile (codeset_mo): New variable.
2516         ($(codeset_mo)): New target.
2517         (tst-codeset.out): Depend on that.  Remove explicit rule.
2518         (tst-gettext3.out, tst-gettext5.out): Likewise.
2519         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2520         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2521         * intl/tst-codeset.sh: Remove.
2522         * intl/tst-gettext3.sh: Likewise.
2523         * intl/tst-gettext5.sh: Likewise.
2524
2525 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2526
2527         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2528         * sysdeps/unix/syscalls.list: ... here.
2529
2530         * sysdeps/posix/getaddrinfo.c
2531         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2532         (gaiconf_init, gaiconf_reload): Use them.
2533         [!_STATBUF_ST_NSEC]
2534         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2535         Define using time_t rather than struct timespec.
2536
2537         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2538         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2539         Macros removed.
2540         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2541         [!NO_THREADS].
2542         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2543         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2544         Likewise.
2545
2546         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2547         __libc_cleanup_push argument.
2548
2549         * bits/param.h: New file.
2550         * misc/sys/param.h: New file.
2551         * include/sys/param.h: New file.
2552         * misc/Makefile (headers): Add bits/param.h.
2553         * sysdeps/generic/sys/param.h: File removed.
2554         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2555         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2556         * sysdeps/mach/hurd/bits/param.h: New file.
2557         * sysdeps/mach/hurd/sys/param.h: File removed.
2558
2559         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2560         last change.
2561
2562         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2563         [_IO_MTSAFE_IO].
2564         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2565         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2566         New macros.
2567
2568         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2569         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2570         rather than -D_IO_MTSAFE_IO conditionally.
2571         * stdio-common/Makefile (CPPFLAGS): Likewise.
2572         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2573         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2574         Use $(libio-mtsafe).
2575         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2576         of -D_IO_MTSAFE_IO.
2577         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2578         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2579         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2580         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2581         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2582         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2583         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2584         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2585         (CFLAGS-fread_u_chk.c): Likewise.
2586         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2587         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2588         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2589         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2590         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2591         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2592         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2593         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2594         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2595
2596         * libio/Makefile: Test [$(libc-reentrant) = yes]
2597         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2598
2599         * Makeconfig
2600         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2601         * sysdeps/pthread/configure: File removed.
2602         * sysdeps/pthread/Makeconfig: New file.
2603         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2604         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2605
2606 2012-08-16  Gary Benson  <gbenson@redhat.com>
2607
2608         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2609         unmapping the first object in a namespace.
2610
2611 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2612
2613         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2614         (__internal_setnetgrent): ... this.  Add internal_function to
2615         definition.  Add libc_hidden_def.
2616         (setnetgrent): Update caller.
2617         (internal_endnetgrent): Renamed to ...
2618         (__internal_endnetgrent): ... this.  Add internal_function to
2619         definition.  Add libc_hidden_def.
2620         (endnetgrent): Update caller.
2621         (internal_getnetgrent_r): Renamed to ...
2622         (__internal_getnetgrent_r): ... this.  Add internal_function to
2623         definition.  Add libc_hidden_def.
2624         (__getnetgrent_r): Update caller.
2625         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2626
2627 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2628
2629         * stdlib/longlong.h: Update from GCC.
2630
2631 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2632
2633         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2634         on _QL, which is set by umul_ppmm but never used.
2635         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2636         variables, which are set by GMP macros but never used.
2637         * stdio-common/_itowa.c (_itowa): Likewise.
2638         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2639         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2640
2641 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2642
2643         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2644         struct La_sh_regs is not constant.
2645         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2646         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2647         and struct La_sparc64_regs are not constant.
2648
2649 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2650
2651         * sysdeps/unix/sysv/linux/kernel-features.h
2652         (__ASSUME_POSIX_TIMERS): Remove.
2653         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2654         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2655         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2656         Make code unconditional.
2657         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2658         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2659         Make code unconditional.
2660         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2661         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2662         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2663         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2664         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2665         Make code unconditional.
2666         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2667         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2668         (__libc_missing_posix_timers): Remove.
2669
2670 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2671
2672         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2673         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2674
2675         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2676
2677         * elf/dl-sym.c: Include <stdlib.h>.
2678
2679         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2680         constants, which avoids warnings in 32-bit builds.
2681
2682         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2683         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2684
2685         * misc/lseek.c: File moved to ...
2686         * io/lseek.c: ... here.
2687
2688         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2689
2690         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2691         shifting LEN more than 31 bits at once.
2692
2693 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2694
2695         [BZ #14195]
2696         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2697         segmentation fault for a case of two empty input strings.
2698         * string/test-strncasecmp.c (check1): Renamed to...
2699         (bz12205): ...this.
2700         (bz14195): Add new testcase for two empty input strings and N > 0.
2701         (test_main): Call new testcase, adapt for renamed function.
2702
2703 2012-08-15  Andreas Jaeger  <aj@suse.de>
2704
2705         [BZ #14090]
2706         * crypt/md5test2.c: New test, based on test supplied by Serge
2707         Belyshev <belyshev@depni.sinp.msu.ru>.
2708         * crypt/Makefile (xtests): Add md5test-giant..
2709         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2710
2711 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2712
2713         [BZ #14090]
2714         * crypt/md5.c (md5_process_block): Don't assume the buffer
2715         length is less than 2**32.
2716         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2717         length is less than 2**64.
2718
2719 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2720
2721         * string/str-two-way.h: Include <sys/param.h>.
2722         (MAX): Macro removed.
2723
2724         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2725         Move #define and #undef of memmove to just before and after
2726         including <string.h>.
2727
2728         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2729         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2730         and after including <string.h>.  Move declarations of
2731         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2732         to before #include "string/memmove.c".
2733
2734         * include/dirent.h: Declare __getdirentries.
2735
2736         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2737         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2738
2739 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2740
2741         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2742         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2743         * sysdeps/i386/configure: Regenerated.
2744         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2745         STABS_CURRENT_FILE, and STABS_FUN.
2746         (END): Remove call to STABS_FUN_END.
2747         (STABS_CURRENT_FILE1): Delete.
2748         (STABS_CURRENT_FILE): Likewise.
2749         (STABS_FUN): Likewise.
2750         (STABS_FUN_END): Likewise.
2751         (STABS_FUN2): Likewise.
2752         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2753         * sysdeps/x86_64/configure: Regenerated.
2754
2755 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2756
2757         * elf/dl-open.c: Include <atomic.h>.
2758         * elf/dl-lookup.c: Likewise.
2759
2760 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2761
2762         * sysdeps/unix/sysv/linux/kernel-features.h
2763         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2764         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2765         unconditionally.
2766         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2767         unconditionally.
2768         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2769         condition on __ASSUME_CLONE_THREAD_FLAGS.
2770
2771 2012-08-14  Andreas Jaeger  <aj@suse.de>
2772
2773         * sysdeps/i386/fpu/libm-test-ulps: Update.
2774
2775 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2776
2777         * include/atomic.h (atomic_exchange_and_add): Split into ...
2778         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2779         New atomic macros.
2780
2781 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2782
2783         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2784
2785 2012-08-13  Jeff Law <law@redhat.com>
2786
2787         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2788         null byte in the output string.
2789
2790 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2791
2792         * sysdeps/unix/sysv/linux/kernel-features.h
2793         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2794         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2795         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2796         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2797         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2798         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2799         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2800
2801 2012-08-09  Jeff Law <law@redhat.com>
2802
2803         [BZ #13939]
2804         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2805         When avoid_arena is set, don't retry in the that arena.  Pick the
2806         next one, whatever it might be.
2807         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2808         (arena_lock): Pass in new parameter to arena_get2.
2809         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2810         arena_get2.
2811         (__libc_malloc): Unify retrying after main arena failure with
2812         __libc_memalign version.
2813         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2814
2815 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2816
2817         [BZ #14166]
2818         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2819         to __redirect_strstr.
2820         (__strstr_sse42): Use typeof __redirect_strstr.
2821         (__strstr_ia32): Likewise.
2822         (__libc_strstr): New prototype.
2823         (strstr): Renamed to ...
2824         (__libc_strstr): This.
2825         (strstr): New strong alias of __libc_strstr.
2826         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2827         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2828         __redirect_time.
2829         Include <time.h>.
2830         (__libc_time): New prototype.
2831         (time_ifunc): Replace time with __libc_time.
2832         (time): New strong alias and hidden definition of __libc_time.
2833         (__GI_time): Remove strong alias.
2834         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2835         Include <stddef.h>.
2836         (memmove): Redefined to __redirect_memmove.
2837         (__memmove_sse2): Use typeof __redirect_memmove.
2838         (__memmove_ssse3): Likewise.
2839         (__memmove_ssse3_back): Likewise.
2840         (__libc_memmove): New prototype.
2841         (memmove): Renamed to ...
2842         (__libc_memmove): This.
2843         (memmove): New strong alias of __libc_memmove.
2844
2845 2012-08-08  Mark Salter  <msalter@redhat.com>
2846
2847         * elf/elf.h
2848         (R_MN10300_TLS_GD): Define.
2849         (R_MN10300_TLS_LD): Likewise.
2850         (R_MN10300_TLS_LDO): Likewise.
2851         (R_MN10300_TLS_GOTIE): Likewise.
2852         (R_MN10300_TLS_IE): Likewise.
2853         (R_MN10300_TLS_LE): Likewise.
2854         (R_MN10300_TLS_DTPMOD): Likewise.
2855         (R_MN10300_TLS_DTPOFF): Likewise.
2856         (R_MN10300_TLS_TPOFF): Likewise.
2857         (R_MN10300_SYM_DIFF): Likewise.
2858         (R_MN10300_ALIGN): Likewise.
2859         (R_MN10300_NUM): Update.
2860
2861 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2862
2863         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2864         Remove.
2865
2866 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2867
2868         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2869
2870         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2871         sysdeps/unix -> sysdeps/posix move.
2872         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2873
2874 2012-08-07      Allan McRae     <allan@archlinux.org>
2875
2876         [BZ #14303]
2877         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2878         (SUNOS_CPP): Likewise.
2879         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2880         not found.
2881         (open_input): Call CPP using execvp.
2882
2883 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * sysdeps/unix/sysv/linux/kernel-features.h
2886         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2887         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2888         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2889         (__ASSUME_WAITID_SYSCALL): Likewise.
2890         * sysdeps/unix/sysv/linux/dl-execstack.c
2891         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2892         code unconditional.
2893         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2894         conditional code.
2895         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2896         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2897         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2898         code.
2899         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2900         unconditional.
2901         [__ASSUME_WAITID_SYSCALL]: Likewise.
2902         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2903
2904 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2905
2906         * sysdeps/unix/closedir.c: Renamed to ...
2907         * sysdeps/posix/closedir.c: ... here.
2908         * sysdeps/unix/dirfd.c: Renamed to ...
2909         * sysdeps/posix/dirfd.c: ... here.
2910         * sysdeps/unix/dirstream.h: Renamed to ...
2911         * sysdeps/posix/dirstream.h: ... here.
2912         * sysdeps/unix/fdopendir.c: Renamed to ...
2913         * sysdeps/posix/fdopendir.c: ... here.
2914         * sysdeps/unix/opendir.c: Renamed to ...
2915         * sysdeps/posix/opendir.c: ... here.
2916         * sysdeps/unix/readdir.c: Renamed to ...
2917         * sysdeps/posix/readdir.c: ... here.
2918         * sysdeps/unix/readdir_r.c: Renamed to ...
2919         * sysdeps/posix/readdir_r.c: ... here.
2920         * sysdeps/unix/rewinddir.c: Renamed to ...
2921         * sysdeps/posix/rewinddir.c: ... here.
2922         * sysdeps/unix/seekdir.c: Renamed to ...
2923         * sysdeps/posix/seekdir.c: ... here.
2924         * sysdeps/unix/telldir.c: Renamed to ...
2925         * sysdeps/posix/telldir.c: ... here.
2926         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2927         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2928         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2929         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2930
2931         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2932         * bits/fcntl.h: ... here.
2933
2934         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2935         not 0.
2936         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2937         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2938         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2939         (struct flock): Move l_start, l_len to the beginning.
2940         Use __pid_t for l_pid.
2941         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2942         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2943         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2944         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2945         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2946         [__USE_LARGEFILE64] (struct flock64): New type.
2947         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2948
2949         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2950         * bits/dirent.h: ... here.
2951
2952         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2953         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2954
2955 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2956
2957         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2958         Change from 2.6.0 to 2.6.16.
2959         * sysdeps/unix/sysv/linux/configure: Regenerated.
2960         * sysdeps/unix/sysv/linux/kernel-features.h
2961         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2962         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2963         version.
2964         (__ASSUME_UTIMES): Likewise.
2965         (__ASSUME_CLONE_STOPPED): Remove.
2966         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2967         architectures, not kernel version.
2968         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2969         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2970         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2971         (__ASSUME_WAITID_SYSCALL): Likewise.
2972         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2973         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2974         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2975         refer to older versions.
2976
2977 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2978
2979         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2980         Define alphasort64 as an alias.
2981         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2982         Define versionsort64 as an alias.
2983         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2984         Define scandir64 as an alias.
2985         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2986         Define scandirat64 as an alias.
2987         * dirent/alphasort64.c (alphasort64):
2988         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2989         * dirent/versionsort64.c: Likewise.
2990         * dirent/scandir64.c: Likewise.
2991         * dirent/scandirat64.c: Likewise.
2992         * sysdeps/wordsize-64/alphasort.c: File removed.
2993         * sysdeps/wordsize-64/alphasort64.c: File removed.
2994         * sysdeps/wordsize-64/scandir.c: File removed.
2995         * sysdeps/wordsize-64/scandir64.c: File removed.
2996         * sysdeps/wordsize-64/scandirat.c: File removed.
2997         * sysdeps/wordsize-64/scandirat64.c: File removed.
2998         * sysdeps/wordsize-64/versionsort.c: File removed.
2999         * sysdeps/wordsize-64/versionsort64.c: File removed.
3000         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3001         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3002         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3003         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3004         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3005         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3006         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3007         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3008
3009         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3010         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3011         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3012         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3013         [defined __arch64__ || defined __sparcv9]
3014         (__INO_T_MATCHES_INO64_T): New macro.
3015         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3016         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3017         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3018         * sysdeps/unix/sysv/linux/bits/dirent.h
3019         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3020         (_DIRENT_MATCHES_DIRENT64): New macro.
3021
3022         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3023         Define lockf64 as an alias.
3024         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3025         Define fseeko64 as an alias.
3026         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3027         Define ftello64 as an alias.
3028         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3029         Define _IO_fgetpos64 and fgetpos64 as aliases.
3030         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3031         Define _IO_fsetpos64 and fsetpos64 as aliases.
3032         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3033         Conditionalize body on this.
3034         * libio/fseeko64.c: Likewise.
3035         * libio/ftello64.c: Likewise.
3036         * libio/iofgetpos64.c: Likewise.
3037         * libio/iofsetpos64.c: Likewise.
3038         * sysdeps/wordsize-64/lockf.c: File removed.
3039         * sysdeps/wordsize-64/lockf64.c: File removed.
3040         * sysdeps/wordsize-64/fseeko.c: File removed.
3041         * sysdeps/wordsize-64/fseeko64.c: File removed.
3042         * sysdeps/wordsize-64/ftello.c: File removed.
3043         * sysdeps/wordsize-64/ftello64.c: File removed.
3044         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3045         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3046         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3047         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3048         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3049         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3050         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3051         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3052         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3053         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3054         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3055         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3056         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3057         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3058
3059         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3060         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3061         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3062         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3063         [defined __arch64__ || defined __sparcv9]
3064         (__OFF_T_MATCHES_OFF64_T): New macro.
3065         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3066         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3067         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3068         (__OFF_T_MATCHES_OFF64_T): New macro.
3069
3070 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3071
3072         * stdlib/secure-getenv.c (__secure_getenv): Replace
3073         GLIBC_2_16 with GLIBC_2_17.
3074
3075 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3076
3077         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3078         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3079
3080 2012-08-03  David S. Miller  <davem@davemloft.net>
3081
3082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3083
3084 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3085
3086         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3087         Remove.
3088         (__ASSUME_CORRECT_SI_PID): Likewise.
3089         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3090         (__ASSUME_TMPFS_NAME): Likewise.
3091         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3092         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3093         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3094         (HAVE_AUX_SECURE): Make definition unconditional.
3095         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3096         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3097
3098 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3099
3100         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3101         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3102         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3103         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3104         __eloop_threshold instead of SYMLOOP_MAX.
3105
3106         * sysdeps/generic/eloop-threshold.h: New file.
3107         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3108         of MAXSYMLINKS.
3109         * elf/chroot_canon.c (chroot_canon): Likewise.
3110
3111 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3112
3113         [BZ #13717]
3114         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3115         Change to 2.6.0 everywhere.
3116         * sysdeps/unix/sysv/linux/configure: Regenerated.
3117         * sysdeps/unix/sysv/linux/kernel-features.h
3118         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3119         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3120         kernel versions.
3121         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3122         (__ASSUME_FUTEX_REQUEUE): Remove.
3123         (__ASSUME_STATFS64): Define unconditionally.
3124         (__ASSUME_AT_SECURE): Likewise.
3125         (__ASSUME_CORRECT_SI_PID): Likewise.
3126         (__ASSUME_TGKILL): Define without depending on kernel version for
3127         i386.
3128         (__ASSUME_UTIMES): Likewise.
3129         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3130         kernel version.
3131         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3132         (__ASSUME_TMPFS_NAME): Likewise.
3133         * README: Update reference to Linux kernel versions.
3134
3135 2012-08-02  Marek Polacek  <polacek@redhat.com>
3136
3137         [BZ# 14150]
3138         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3139         libc_cv_asm_type_prefix with %.
3140         * configure: Regenerated.
3141         * include/libc-symbols.h: Remove comment about
3142         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3143         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3144         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3145         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3146         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3147         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3148         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3149         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3150         * elf/tst-unique2mod1.c: Likewise.
3151         * elf/tst-unique1mod2.c: Likewise.
3152         * elf/tst-unique1mod1.c: Likewise.
3153         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3154         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3155         Replace ASM_TYPE_DIRECTIVE with .type.
3156         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3157         * sysdeps/i386/sysdep.h: Likewise.
3158         * sysdeps/x86_64/sysdep.h: Likewise.
3159         * sysdeps/sh/sysdep.h: Likewise.
3160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3161         Do not define ASM_TYPE_DIRECTIVE.
3162         * sysdeps/powerpc/sysdep.h: Likewise.
3163         * sysdeps/powerpc/powerpc32/sysdep.h:
3164         Replace ASM_TYPE_DIRECTIVE with .type.
3165         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3166         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3167         * sysdeps/i386/fpu/e_powf.S: Likewise.
3168         * sysdeps/i386/fpu/e_expl.S: Likewise.
3169         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3170         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3171         * sysdeps/i386/fpu/e_pow.S: Likewise.
3172         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3173         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3174         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3175         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3176         * sysdeps/i386/fpu/e_log2.S: Likewise.
3177         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3178         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3179         * sysdeps/i386/fpu/e_powl.S: Likewise.
3180         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3181         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3182         * sysdeps/i386/fpu/e_logl.S: Likewise.
3183         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3184         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3185         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3186         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3187         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3188         * sysdeps/i386/fpu/e_log.S: Likewise.
3189         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3190         * sysdeps/i386/fpu/e_logf.S: Likewise.
3191         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3192         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3193         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3194         * sysdeps/i386/fpu/e_log10.S: Likewise.
3195         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3196         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3197         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3198         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3199         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3200         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3201         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3202         * sysdeps/i386/i686/strtok.S: Likewise.
3203         * sysdeps/i386/i386-mcount.S: Likewise.
3204         * sysdeps/i386/strtok.S: Likewise.
3205         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3206         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3207         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3208         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3209         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3210         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3211         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3212         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3213         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3214         * sysdeps/x86_64/_mcount.S: Likewise.
3215         * sysdeps/x86_64/strtok.S: Likewise.
3216         * sysdeps/sh/_mcount.S: Likewise.
3217
3218 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3219
3220         * libio/iofopen.c: Include <fcntl.h>.
3221         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3222         (_IO_fopen64, fopen64): Define as aliases.
3223         * libio/iofopen64.c: Include <fcntl.h>.
3224         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3225         Conditionalize body on this.
3226         * sysdeps/wordsize-64/iofopen.c: File removed.
3227         * sysdeps/wordsize-64/iofopen64.c: File removed.
3228
3229 2012-08-01  Marek Polacek  <polacek@redhat.com>
3230
3231         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3232         Use dlfcn directly instead of a variable.
3233         (binfmt-subdir): Do not define.
3234         (dlfcn): Likewise.
3235
3236 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3237
3238         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3239         Remove all definitions.
3240         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3241         <kernel-features.h>.
3242         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3243         (miss_F_GETOWN_EX): Remove all definitions.
3244         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3245         macro definition.
3246         [!__ASSUME_FCNTL64]: Remove conditional code.
3247         [__ASSUME_FCNTL64]: Make code unconditional.
3248         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3249         <kernel-features.h>.
3250         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3251         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3252         (lockf64) [__NR_fcntl64]: Make code unconditional.
3253         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3254
3255         * sysdeps/unix/sysv/linux/kernel-features.h
3256         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3257         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3258         Make code unconditional.
3259         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3260         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3262         [__NR_vfork]: Make code unconditional.
3263         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3264         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3266         [__NR_vfork]: Make code unconditional.
3267         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3268         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3269
3270 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3271
3272         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3273         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3274
3275         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3276         Define mkstemp64 as an alias.
3277         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3278         Define mkstemps64 as an alias.
3279         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3280         Define mkostemp64 as an alias.
3281         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3282         Define mkostemps64 as an alias.
3283         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3284         Conditionalize body on this.
3285         * misc/mkostemp64.c: Likewise.
3286         * misc/mkostemps64.c: Likewise.
3287         * misc/mkstemps64.c: Likewise.
3288         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3289         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3290         * sysdeps/wordsize-64/mkostemp.c: File removed.
3291         * sysdeps/wordsize-64/mkstemp.c: File removed.
3292         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3293         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3294         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3295         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3296
3297         [BZ #14138]
3298         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3299         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3300         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3301         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3302
3303         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3304         compat_symbol macros from <shlib-compat.h> rather than the underlying
3305         default_symbol_version and symbol_version macros, so that DEFAULT
3306         lines in shlib-versions are respected.
3307         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3308
3309 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3310
3311         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3312         Declare with warn_unused_result.
3313         (setgid, setregid, setegid, setresgid): Likewise.
3314         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3315         Likewise.
3316         * WUR-REPORT: Remove set*id functions.
3317
3318 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3319
3320         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3321
3322 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3323
3324         * include/sys/socket.h (__libc_accept, __libc_accept4):
3325         Add attribute_hidden.
3326         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3327
3328         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3329         use of PTR_MANGLE.
3330         * inet/getnetgrent_r.c (setup): Likewise.
3331
3332         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3333
3334 2012-07-31  David S. Miller  <davem@davemloft.net>
3335
3336         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3337
3338 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3339
3340         [BZ #13629]
3341         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3342         value between 1.0 and 2.0 and smaller part has absolute value less
3343         than 1.0.
3344         * math/s_clog10.c (__clog10): Likewise.
3345         * math/s_clog10f.c (__clog10f): Likewise.
3346         * math/s_clog10l.c (__clog10l): Likewise.
3347         * math/s_clogf.c (__clogf): Likewise.
3348         * math/s_clogl.c (__clogl): Likewise.
3349         * math/libm-test.inc (clog_test): Add more tests.
3350         (clog10_test): Likewise.
3351         * sysdeps/i386/fpu/libm-test-ulps: Update.
3352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3353
3354 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3355
3356         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3357         Exit with zero in case no suitable GID is found, and write a
3358         message to standard error.
3359
3360 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3361
3362         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3363         rather than to 1.
3364         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3365         (MAXPATHLEN): Removed.
3366         (NOGROUP, NODEV): New macros.
3367         (setbit, clrbit, isset, isclr): New macros.
3368         (howmany, roundup, powerof2): New macros.
3369         (DEV_BSIZE): New macro.
3370
3371         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3372         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3373
3374         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3375         definition on [!__NO_LONG_DOUBLE_MATH].
3376
3377         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3378         PTR_MANGLE and PTR_DEMANGLE.
3379
3380         * socket/accept4.c (accept4): Rename to __libc_accept4.
3381         Define accept4 as a weak alias.
3382
3383         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3384         on [_DIRENT_HAVE_D_TYPE].
3385         * io/ftw.c (ftw_dir): Likewise.
3386
3387         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3388
3389         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3390
3391         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3392         Use the BSD numbers rather than the arbitrary ones we had.
3393         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3394         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3395         (SIGXCPU, SIGXFSZ): New macros.
3396         (_NSIG): Now 32.
3397
3398         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3399         initializer on [_LIBC_REENTRANT].
3400
3401         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3402         definitions inside [_POSIX_MAPPED_FILES].
3403
3404         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3405
3406         * dirent/opendir.c: Include <fcntl.h>.
3407
3408         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3409         (__libc_getspecific): Likewise.
3410         (__libc_key_create): Likewise.
3411
3412         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3413         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3414         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3415         (tmpfile64): Define as alias.
3416         * sysdeps/wordsize-64/tmpfile.c: File removed.
3417         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3418         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3419         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3420
3421         * stdio-common/vfscanf.c: Include <stdbool.h>.
3422         * nss/makedb.c: Likewise.
3423         * stdio-common/_i18n_number.h: Likewise.
3424         * argp/argp-help.c: Likewise.
3425         * posix/wordexp.c: Likewise.
3426         * sysdeps/posix/spawni.c: Likewise.
3427         * nss/nss_files/files-initgroups.c: Likewise.
3428         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3429         * nss/nss_files/files-initgroups.c: Likewise.
3430         * nss/nss_db/db-netgrp.c: Likewise.
3431         * nss/nss_db/db-initgroups.c: Likewise.
3432         * io/fchmodat.c: Include <sys/stat.h>.
3433
3434         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3435         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3436
3437         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3438         [HAVE_MMAP].
3439
3440         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3441         Add multiple inclusion protection.
3442
3443 2012-07-27  David S. Miller  <davem@davemloft.net>
3444
3445         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3446
3447 2012-07-27  Gary Benson  <gbenson@redhat.com>
3448
3449         [BZ #14298]
3450         * elf/rtld.c: Include <stap-probe.h>.
3451         (dl_main): Added static probes "init_start" and "init_complete".
3452         * elf/dl-load.c: Include <stap-probe.h>.
3453         (lose): Take new parameter "nsid".
3454         Added static probe "map_failed".
3455         (_dl_map_object_from_fd): Pass namespace id to lose.
3456         Added static probe "map_start".
3457         (open_verify): Pass namespace id to lose.
3458         * elf/dl-open.c: Include <stap-probe.h>.
3459         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3460         and "reloc_complete".
3461         * elf/dl-close.c: Include <stap-probe.h>.
3462         (_dl_close_worker): Added static probes "unmap_start" and
3463         "unmap_complete".
3464         * elf/rtld-debugger-interface.txt: New file documenting the above.
3465
3466 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3467
3468         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3469         rather than a string variable.
3470         * sunrpc/rpc_main.c (h_output): Likewise.
3471         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3472
3473 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3474
3475         * inet/check_native.c: New file.
3476
3477 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3478
3479         [BZ #13629]
3480         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3481         if larger part has absolute value 1.0.
3482         * math/s_clog10.c (__clog10): Likewise.
3483         * math/s_clog10f.c (__clog10f): Likewise.
3484         * math/s_clog10l.c (__clog10l): Likewise.
3485         * math/s_clogf.c (__clogf): Likewise.
3486         * math/s_clogl.c (__clogl): Likewise.
3487         * math/libm-test.inc (clog_test): Add more tests.
3488         (clog10_test): Likewise.
3489         * sysdeps/i386/fpu/libm-test-ulps: Update.
3490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3491
3492         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3493         (pltexit): Likewise.
3494         (La_regs): Likewise.
3495         (La_retval): Likewise.
3496         (int_retval): Likewise.
3497         Update #error for removed macros to refer only to definitions in
3498         tst-audit.h.
3499         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3500         macro.
3501         (pltexit): Likewise.
3502         (La_regs): Likewise.
3503         (La_retval): Likewise.
3504         (int_retval): Likewise.
3505         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3506         macro.
3507         (pltexit): Likewise.
3508         (La_regs): Likewise.
3509         (La_retval): Likewise.
3510         (int_retval): Likewise.
3511         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3512         macro.
3513         (pltexit): Likewise.
3514         (La_regs): Likewise.
3515         (La_retval): Likewise.
3516         (int_retval): Likewise.
3517         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3518         macro.
3519         (pltexit): Likewise.
3520         (La_regs): Likewise.
3521         (La_retval): Likewise.
3522         (int_retval): Likewise.
3523         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3524         macro.
3525         (pltexit): Likewise.
3526         (La_regs): Likewise.
3527         (La_retval): Likewise.
3528         (int_retval): Likewise.
3529         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3530         macro.
3531         (pltexit): Likewise.
3532         (La_regs): Likewise.
3533         (La_retval): Likewise.
3534         (int_retval): Likewise.
3535         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3536         macro definitions in tst-audit.h.
3537         * sysdeps/i386/tst-audit.h: New file.
3538         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3539         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3540         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3541         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3542         * sysdeps/sh/tst-audit.h: Likewise.
3543         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3544         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3545         * sysdeps/x86_64/tst-audit.h: Likewise.
3546
3547 2012-07-26  Andreas Jaeger  <aj@suse.de>
3548
3549         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3550         ptrace.
3551
3552         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3553         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3554         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3555         PTRACE_O_MASK.
3556         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3557         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3558         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3559
3560         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3561         value.
3562
3563         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3564         _sigsys.
3565         (si_call_addr, si_syscall, si_arch): Define new macro.
3566         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3567         _sigsys.
3568         (si_call_addr, si_syscall, si_arch): Define new marcro.
3569         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3570         _sigsys.
3571         (si_call_addr, si_syscall, si_arch): Define new macro.
3572         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3573         _sigsys.
3574         (si_call_addr, si_syscall, si_arch): Define new macro.
3575
3576 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3577
3578         [BZ #13717]
3579         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3580         Change to 2.4.21 where previously 2.4.1.
3581         * sysdeps/unix/sysv/linux/configure: Regenerated.
3582         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3583         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3584         Linux kernel version.
3585         (__ASSUME_STD_AUXV): Remove.
3586         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3587         kernel version.
3588         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3589         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3590         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3591         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3592         (__ASSUME_NETLINK_SUPPORT): Likewise.
3593         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3594         (__no_netlink_support): Remove conditional definition.
3595         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3596         Remove.
3597         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3598         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3599         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3600         (if_nameindex_ioctl): Remove.
3601         (if_nameindex_netlink): Do not handle __no_netlink_support.
3602         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3603         code.
3604         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3605         Remove conditional code.
3606         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3607         code.
3608         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3609         unconditional.
3610         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3611         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3612         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3613         Remove.
3614         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3615         [!__ASSUME_STD_AUXV]: Remove conditional code.
3616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3617         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3618         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3620         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3621         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3622         code.
3623         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3625         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3626         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3627         conditional code.
3628         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3630         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3631         code.
3632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3633         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3634         conditional code.
3635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3636         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3637         code unconditional.
3638         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3639         conditional code.
3640         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3641         unconditional.
3642         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3643         conditional code.
3644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3645         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3646         unconditional.
3647         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3648         conditional code.
3649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3650         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3651         code unconditional.
3652         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3653         conditional code.
3654         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3655         unconditional.
3656         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3657         conditional code.
3658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3659         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3660         code unconditional.
3661         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3662         conditional code.
3663         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3664         unconditional.
3665         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3666         conditional code.
3667
3668 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3669
3670         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3671         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3672         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3673         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3674         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3675         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3676         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3677         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3678         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3679         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3680         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3681         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3682         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3683         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3684         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3685         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3686         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3687         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3688         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3689         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3690         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3691         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3692         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3693
3694 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3695
3696         * Versions.def: Add GLIBC_2.17.
3697         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3698         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3699         Introduce __libc_secure_getenv.
3700         * stdlib/Versions (2.17): Add secure_getenv
3701         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3702         * stdlib/secure-getenv.c: Rename __secure_getenv to
3703         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3704         symbol __secure_getenv for GLIBC_2.0.
3705         * stdlib/tst-secure-getenv.c: New.
3706         * stdlib/Makefile (tests): Add testcase.
3707         * manual/startup.texi (Environment Access): Document
3708         secure_getenv.
3709         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3710         __libc_secure_getenv.
3711         * inet/ruserpass.c (ruserpass): Likewise.
3712         * malloc/mtrace.c (mtrace): Likewise.
3713         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3714         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3715         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3716         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3717         HAVE_SECURE_GETENV.
3718         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3719         __secure_getenv to __libc_secure_getenv.
3720         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3722         Likewise.
3723         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3724         Likewise.
3725         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3726         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3727         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3728         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3729         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3730         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3731         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3732
3733 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3734
3735         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3736         (struct La_i86_retval): Likewise.
3737         (struct La_x86_64_regs): Likewise.
3738         (struct La_x86_64_retval): Likewise.
3739         (struct La_x32_regs): Likewise.
3740         (struct La_x32_retval): Likewise.
3741         (struct La_ppc32_regs): Likewise.
3742         (struct La_ppc32_retval): Likewise.
3743         (struct La_ppc64_regs): Likewise.
3744         (struct La_ppc64_retval): Likewise.
3745         (struct La_sh_regs): Likewise.
3746         (struct La_sh_retval): Likewise.
3747         (struct La_s390_32_regs): Likewise.
3748         (struct La_s390_32_retval): Likewise.
3749         (struct La_s390_64_regs): Likewise.
3750         (struct La_s390_64_retval): Likewise.
3751         (struct La_sparc32_regs): Likewise.
3752         (struct La_sparc32_retval): Likewise.
3753         (struct La_sparc64_regs): Likewise.
3754         (struct La_sparc64_retval): Likewise.
3755         (struct audit_ifaces): Remove architecture-specific pltenter and
3756         pltexit members.
3757         * sysdeps/i386/ldsodefs.h: New file.
3758         * sysdeps/powerpc/ldsodefs.h: Likewise.
3759         * sysdeps/s390/ldsodefs.h: Likewise.
3760         * sysdeps/sh/ldsodefs.h: Likewise.
3761         * sysdeps/sparc/ldsodefs.h: Likewise.
3762         * sysdeps/x86_64/ldsodefs.h: Likewise.
3763
3764 2012-07-25  Marek Polacek  <polacek@redhat.com>
3765
3766         [BZ #6808]
3767         * math/libm-test.inc (yn_test): Add another test.
3768         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3769         to ERANGE when the result is +-Inf.
3770         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3771         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3772         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3773         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3774
3775 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3776
3777         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3778         equal to 0.
3779         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3780         clock_t.
3781         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3782
3783 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3784
3785         * configure.in <sysdeps resolving>: Correct printing
3786         Implies_before.
3787         * configure: Regenerate.
3788
3789 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3790
3791         * math/w_ilogb.c: Include <limits.h>.
3792         * math/w_ilogbl.c: Likewise.
3793
3794 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3795
3796         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3797         va_copy.  Document allowing for unavailable va_copy only as
3798         pre-C99 compatibility.
3799         * manual/string.texi (Copying and Concatenation): Use va_copy
3800         instead of __va_copy in concat example.
3801
3802 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3803
3804         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3805         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3806         it if not null.
3807
3808         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3809         with O_NOLINK passed to __file_name_lookup.
3810
3811         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3812         with O_NOLINK passed to __file_name_lookup.
3813
3814         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3815         negative N or less than NGIDS.
3816
3817         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3818         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3819         enough.  Use memcpy instead of strncpy.
3820
3821 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3822
3823         * elf/Makefile (check-data): Remove.
3824         (localplt.data): New vpath directive.
3825         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3826         instead of $(check-data).
3827         * scripts/data/localplt-generic.data: Move to ...
3828         * sysdeps/generic/localplt.data: ... here.
3829         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3830         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3831         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3833         ... here.
3834         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3836         ... here.
3837         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3838         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3839         ... here.
3840         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3841         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3842         ... here.
3843         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3844         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3845         ... here.
3846         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3847         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3848         ... here.
3849
3850 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3851
3852         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3853         PPC32 and PPC64 files.
3854         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3855         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3856
3857 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3858
3859         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3860         __makecontext_ret to ...
3861         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3862         ... here and call exit if uc_link is NULL.  New file.
3863         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3864         __makecontext_ret.S.
3865         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3866         __makecontext_ret to ...
3867         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3868         ... here and call exit if uc_link is NULL.  New file.
3869         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3870         __makecontext_ret.S.
3871
3872 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3873
3874         * elf/elf.h (R_390_IRELATIVE): New definition.
3875         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3876         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3877         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3878         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3879         (elf_machine_lazy_rel): Likewise.
3880         * sysdeps/s390/dl-irel.h: New file.
3881         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3882         * sysdeps/s390/s390-64/memset.S: New asm code.
3883         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3884         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3885         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3886         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3887         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3888         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3889         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3890         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3891         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3892         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3893         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3894         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3895         * sysdeps/s390/s390-32/memset.S: New asm code.
3896         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3897
3898 2012-07-17  Marek Polacek  <polacek@redhat.com>
3899
3900         [BZ #14349]
3901         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3902         * sysdeps/s390/s390-64/configure.in: Likewise.
3903         * sysdeps/sparc/configure.in: Likewise.
3904         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3905         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3906         * sysdeps/i386/configure.in: Likewise.
3907         * sysdeps/x86_64/configure.in: Likewise.
3908         * sysdeps/sh/configure.in: Likewise.
3909         * sysdeps/s390/s390-32/configure: Regenerated.
3910         * sysdeps/s390/s390-64/configure: Likewise.
3911         * sysdeps/x86_64/configure: Likewise.
3912         * sysdeps/sh/configure: Likewise.
3913         * sysdeps/powerpc/powerpc64/configure: Likewise.
3914         * sysdeps/powerpc/powerpc32/configure: Likewise.
3915         * sysdeps/sparc/configure: Likwise.
3916         * sysdeps/i386/configure: Likewise.
3917
3918         * elf/dl-open.c: Comment fixes.
3919
3920 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3921
3922         * Makefile [CXX] (check-data): Remove.
3923         [CXX] (c++-types.data): New vpath directive.
3924         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3925         vpath.  Do not allow for C++ type data being missing.
3926         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3927         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3928         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3929         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3930         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3931         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3932         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3934         ... here.
3935         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3937         ... here.
3938         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3940         ... here.
3941         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3942         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3943         ... here.
3944         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3945         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3946         ... here.
3947         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3948         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3949         ... here.
3950         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3951         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3952         ... here.
3953         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3954         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3955
3956         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3957         definitions to architecture-specific files.
3958         (TLS_IE): Likewise.
3959         (TLS_LD): Likewise.
3960         (TLS_GD): Likewise.
3961         * sysdeps/i386/tls-macros.h: New file.
3962         * sysdeps/powerpc/tls-macros.h: Likewise.
3963         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3964         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3965         * sysdeps/sh/tls-macros.h: Likewise.
3966         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3967         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3968         * sysdeps/x86_64/tls-macros.h: Likewise.
3969
3970 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3971
3972         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3973         zero value for regular exit case.
3974
3975         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3976         (__start_context): Preserve zero value for regular exit case.
3977
3978 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3979             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3980
3981         * manual/setjmp.texi (setcontext): Clarify normal process
3982         termination when uc_link is the null pointer.
3983         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3984         exit call.
3985
3986 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3987
3988         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3989         preprocessor.  Test for each exception mask separately.
3990
3991 2012-07-16  Andreas Jaeger  <aj@suse.de>
3992
3993         * po/ru.po: Update from translation team.
3994
3995 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3996
3997         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3998         equal to 0.
3999         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4000         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4001         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4002         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4003         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4004
4005 2012-07-13  Andreas Jaeger  <aj@suse.de>
4006
4007         * po/fr.po: Update from translation team.
4008
4009 2012-07-12  Marek Polacek  <polacek@redhat.com>
4010
4011         [BZ #14173]
4012         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4013         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4014         loop condition.
4015
4016 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4017
4018         [BZ #13717]
4019         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4020         Change to 2.4.1 where previously 2.4.0.
4021         * sysdeps/unix/sysv/linux/configure: Regenerated.
4022         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4023         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4024         version.
4025         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4026         (__ASSUME_AT_CLKTCK): Remove.
4027         (__ASSUME_AT_PAGESIZE): Likewise.
4028         (__ASSUME_AT_XID): Likewise.
4029         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4030         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4031         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4032         unconditionally.
4033         (HAVE_AUX_PAGESIZE): Likewise.
4034         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4035         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4036         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4037
4038 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4039
4040         [BZ #14307]
4041         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4042         the temporary buffer used to invoke __gethostbyname2_r,
4043         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4044         host_data / struct gaih_addrtuple.
4045         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4046         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4047         header file nss/nsswitch.h.
4048         * nss/nsswitch.h (global scope): Add definition of implementation
4049         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4050         resolv/nss_dns/dns-host.c).
4051
4052 2012-07-11  Andreas Jaeger  <aj@suse.de>
4053
4054         * po/fr.po: Update from translation team.
4055
4056         * po/sv.po: Update from translation team
4057         * po/fr.po: Another update from translation team.
4058
4059 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4060
4061         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4062         for subnormals or multiply small sinh result by itself.
4063         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4064         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4065
4066 2012-07-11  David S. Miller  <davem@davemloft.net>
4067
4068         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4069
4070 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4071
4072         [BZ #14347]
4073         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4074         (INTERNAL_MARK): Shift it here.
4075
4076 2012-07-10  Marek Polacek  <polacek@redhat.com>
4077
4078         [BZ #14151]
4079         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4080         libc_cv_asm_global_directive with .globl.
4081         * configure: Regenerated.
4082         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4083         with .globl.
4084         * sysdeps/i386/configure: Regenerated.
4085         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4086         with .globl.
4087         * sysdeps/x86_64/configure: Regenerated.
4088         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4089         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4090         * elf/tst-unique2mod2.c: Likewise.
4091         * elf/tst-unique2mod1.c: Likewise.
4092         * elf/tst-unique1mod2.c: Likewise.
4093         * elf/tst-unique1mod1.c: Likewise.
4094         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4095         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4096         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4097         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4098         * sysdeps/mach/sysdep.h: Likewise.
4099         * sysdeps/i386/sysdep.h: Likewise.
4100         * sysdeps/i386/i386-mcount.S: Likewise.
4101         * sysdeps/x86_64/_mcount.S: Likewise.
4102         * sysdeps/x86_64/sysdep.h: Likewise.
4103         * sysdeps/sh/_mcount.S: Likewise.
4104         * sysdeps/sh/sysdep.h: Likewise.
4105         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4106         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4107         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4108         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4109         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4110         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4111         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4112         * locale/localeinfo.h: Likewise.
4113         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4114         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4115
4116 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4117
4118         [BZ #14336]
4119         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4120         system".
4121         * manual/message.texi (The Uniforum approach): Likewise.
4122         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4123         (glibc iconv Implementation): Likewise.
4124
4125 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4126
4127         [BZ #14337]
4128         * math/s_clog.c (__clog): Avoid scaling a value down where that
4129         could result in underflow.
4130         * math/s_clog10.c (__clog10): Likewise.
4131         * math/s_clog10f.c (__clog10f): Likewise.
4132         * math/s_clog10l.c (__clog10l): Likewise.
4133         * math/s_clogf.c (__clogf): Likewise.
4134         * math/s_clogl.c (__clogl): Likewise.
4135         * math/libm-test.inc (clog_test): Add more tests.
4136         (clog10_test): Likewise.
4137         * sysdeps/i386/fpu/libm-test-ulps: Update.
4138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4139
4140 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4141
4142         [BZ #14283]
4143         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4144         by 7 not 8 to examine high bit of fractional part.
4145
4146         [BZ #14042]
4147         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4148         for call to __mcount_internal.
4149         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4150         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4151         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4152
4153 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4154
4155         [BZ #14154]
4156         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4157         approximation for values within 0x1p-13f of an odd multiple of
4158         pi/4.
4159         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4160         exception.  Add more tests.
4161         * sysdeps/i386/fpu/libm-test-ulps: Update.
4162
4163         [BZ #6778]
4164         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4165         inputs and return -1 for them.  Do not check for +Inf in case not
4166         reachable for +Inf.
4167         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4168         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4169         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4170         and return -1 for them.  Do not check for +Inf in case not
4171         reachable for +Inf.
4172         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4173         define.
4174         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4175         and return -1 for them.  Do not check for +Inf in case not
4176         reachable for +Inf.
4177         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4178         spurious underflow.
4179         * sysdeps/i386/fpu/libm-test-ulps: Update.
4180         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4181
4182 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4183
4184         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4185
4186 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4187
4188         [BZ #14157]
4189         [BZ #14331]
4190         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4191         could result in spurious underflow.  Scale down values above
4192         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4193         * math/s_csqrtf.c (__csqrtf): Likewise.
4194         * math/s_csqrtl.c (__csqrtl): Likewise.
4195         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4196         spurious underflow.
4197         * sysdeps/i386/fpu/libm-test-ulps: Update.
4198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4199
4200 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4201
4202         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4203         xopen-msg.sed.
4204         * catgets/xopen-msg.awk: New file.
4205         * catgets/xopen-msg.sed: Removed.
4206
4207         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4208         po2text.sed.
4209         * intl/po2test.awk: New file.
4210         * intl/po2test.sed: Removed.
4211
4212 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4213
4214         [BZ #14328]
4215         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4216         or multiply small sinh result by itself.
4217         * math/s_ctanf.c (__ctanf): Likewise.
4218         * math/s_ctanh.c (__ctanh): Likewise.
4219         * math/s_ctanhf.c (__ctanhf): Likewise.
4220         * math/s_ctanhl.c (__ctanhl): Likewise.
4221         * math/s_ctanl.c (__ctanl): Likewise.
4222         * math/libm-test.inc (ctan_test_tonearest): New function.
4223         (ctan_test_towardzero): Likewise.
4224         (ctan_test_downward): Likewise.
4225         (ctan_test_upward): Likewise.
4226         (ctanh_test_tonearest): Likewise.
4227         (ctanh_test_towardzero): Likewise.
4228         (ctanh_test_downward): Likewise.
4229         (ctanh_test_upward): Likewise.
4230         (main): Call these new functions.
4231         * sysdeps/i386/fpu/libm-test-ulps: Update.
4232         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4233
4234 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4235
4236         * .gitignore: Delete /ports entry.
4237
4238 2012-07-03  Andreas Jaeger  <aj@suse.de>
4239
4240         * po/bg.po: Update from translation team.
4241         * po/cs.po: Likewise.
4242         * po/de.po: Likewise.
4243         * po/hr.po: Likewise.
4244         * po/nl.pl: Likewise.
4245         * po/pl.po: Likewise.
4246         * po/vi.po: Likewise.
4247
4248 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4249
4250         * Makeconfig [!+link] (+link-before-libc): New variable.
4251         [!+link] (+link-after-libc): Likewise.
4252         [!+link] (+link-tests): Likewise.
4253         [!+link] (+link): Define in terms of $(+link-before-libc) and
4254         $(+link-after-libc).
4255         [!+link-static] (+link-static-before-libc): New variable.
4256         [!+link-static] (+link-static-after-libc): Likewise.
4257         [!+link-static] (+link-static-tests): Likewise.
4258         [!+link-static] (+link-static): Define in terms of
4259         $(+link-static-before-libc) and $(+link-static-after-libc).
4260         [build-shared] (link-libc-before-gnulib): New variable.
4261         [build-shared] (link-libc-tests): Likewise.
4262         [build-shared] (link-libc): Define in terms of
4263         $(link-libc-before-gnulib).
4264         [!build-shared] (link-libc-tests): New variable.
4265         (link-libc-static-tests): New variable.
4266         [!gnulib] (gnulib-arch): New variable.
4267         [!gnulib] (gnulib-tests): Likewise.
4268         [!gnulib] (static-gnulib-arch): Likewise.
4269         [!gnulib] (static-gnulib-tests): Likewise.
4270         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4271         Define with "=" instead of ":=".
4272         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4273         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4274         * Rules (binaries-all-notests): New variable.
4275         (binaries-all-tests): Likewise.
4276         (binaries-static-notests): Likewise.
4277         (binaries-static-tests): Likewise.
4278         (binaries-all): Define using $(binaries-all-notests) and
4279         $(binaries-all-tests).
4280         (binaries-static): Define using $(binaries-static-notests) and
4281         $(binaries-static-tests).
4282         (binaries-shared-tests): New variable.
4283         (binaries-shared-notests): Likewise.
4284         (binaries-shared): Remove variable.
4285         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4286         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4287         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4288         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4289         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4290         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4291         * elf/Makefile (sln-modules): New variable.
4292         (extra-objs): Add $(sln-modules:=.o).
4293         (ldconfig-modules): Add static-stubs.
4294         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4295         * elf/static-stubs.c: New file.
4296
4297         [BZ #14283]
4298         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4299         by 7 not 8 to examine high bit of fractional part.  Use volatile
4300         variables when splitting into final array of floats if
4301         __FLT_EVAL_METHOD__ != 0.
4302         * math/libm-test.inc (cos_test): Add another test.
4303         (sin_test): Likewise.
4304         * sysdeps/i386/fpu/libm-test-ulps: Update.
4305
4306         [BZ #14273]
4307         * math/libm-test.inc (cosh_test): Add more tests.
4308
4309         * version.h (RELEASE): Set to "development".
4310         (VERSION): Set to "2.16.90".
4311
4312 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4313
4314         * NEWS: Update copyright. Remove last-updated date.
4315         Mention math library bug fixes and timezone data changes.
4316         * README: Mention GNU/Hurd, x32, and HPPA support status.
4317
4318 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4319
4320         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4321
4322 2012-06-27  Andreas Jaeger  <aj@suse.de>
4323
4324         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4325
4326 2012-06-25  Andreas Jaeger  <aj@suse.de>
4327
4328         * sysdeps/s390/fpu/libm-test-ulps: Update.
4329
4330 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4331             Thomas Schwinge  <thomas@codesourcery.com>
4332
4333         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4334         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4335         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4336         fanotify_mark.
4337
4338 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4339
4340         * sysdeps/mach/start.c: Remove file.
4341         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4342         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4343         * sysdeps/sh/init-first.c: Likewise.
4344
4345         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4346         registers for frame unwinding purposes, add CFI directives.
4347         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4348         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4349         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4350         Likewise.
4351
4352         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4353         __fortify_fail returning.
4354         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4355
4356         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4357         sysdeps/sh/____longjmp_chk.S.
4358         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4359         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4360         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4361         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4362
4363         * sysdeps/sh/abort-instr.h: New file.
4364         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4365         process in case exit returns.
4366
4367         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4368         initialize the GOT register before use.
4369
4370         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4371         calculation of ARGC > 4.
4372
4373         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4374         meaningful names to some local labels.
4375
4376 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4377             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4378
4379         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4380         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4381         (__arch_compare_and_exchange_val_16_acq): Likewise.
4382         (__arch_compare_and_exchange_val_32_acq): Likewise.
4383         (atomic_exchange_and_add): Fix gUSA sequence.
4384         (atomic_add): Likewise.
4385         (atomic_add_negative): Likewise.
4386         (atomic_add_zero): Likewise.
4387         (atomic_bit_test_set): Likewise.
4388
4389 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4390
4391         [BZ #13579]
4392         * include/link.h (struct link_map): Add l_free_initfini.
4393         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4394         l_initfini.
4395         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4396         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4397         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4398         set.
4399
4400 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4401
4402         * configure.in: Use AC_LANG_SOURCE.
4403         * configure: Regenerate.
4404
4405 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4406
4407         * configure.in (libc_cv_localstatedir): New substituted variable.
4408         * configure: Regenerated.
4409         * config.make.in (localstatedir): New variable, substituted from
4410         libc_cv_localstatedir.
4411         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4412         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4413         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4414         * sysdeps/gnu/configure: Regenerated.
4415
4416 2012-06-21  Jeff Law  <law@redhat.com>
4417
4418         [BZ #14277]
4419         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4420         free.  Simplify list management for _LIBC case.
4421
4422 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4423
4424         [BZ #14273]
4425         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4426         Clear sign bit of 64-bit integer value before comparing against
4427         overflow value.
4428
4429         * sysdeps/mach/configure: Regenerated.
4430
4431 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4432
4433         [BZ #14278]
4434         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4435
4436 2012-06-21  Jeff Law  <law@redhat.com>
4437
4438         [BZ #13882]
4439         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4440         uint16_t for elements in the "seen" array to avoid char overflows.
4441         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4442         * elf/dl-open.c (dl_open_worker): Likewise.
4443
4444 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4445
4446         * scripts/list-sources.sh: Scan PORTS for translations.
4447         * po/libc.pot: Regenerated.
4448
4449 2012-06-21  Andreas Jaeger  <aj@suse.de>
4450
4451         [BZ #12194]
4452         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4453         warning.
4454         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4455         * bits/byteswap-16.h (__bswap_16): Likewise.
4456         * bits/byteswap.h (__bswap_constant_16): Likewise.
4457
4458 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         [BZ #14117]
4461         * sysdeps/i386/fpu_control.h: Removed.
4462         * sysdeps/x86_64/fpu_control.h: Moved to ...
4463         * sysdeps/x86/fpu_control.h: Here.
4464
4465         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4466         (_FPU_SETCW): Likewise.
4467
4468 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4469
4470         [BZ #14117]
4471         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4472         * sysdeps/x86/fpu/bits/mathinline.h: This.
4473         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4474
4475         [BZ #14050]
4476         [BZ #14117]
4477         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4478         functions if __x86_64__ is defined.
4479
4480 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4481
4482         * string/endian.h: Add !__ASSEMBLER__ condition for including
4483         conversion interfaces.
4484
4485 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4486
4487         [BZ #14241]
4488         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4489         of ABS(x) in calculating zero to negative powers other than odd
4490         integers.
4491         * math/libm-test.inc (pow_test): Add more tests.
4492
4493 2012-06-15  Andreas Jaeger  <aj@suse.de>
4494
4495         * manual/contrib.texi (Contributors): Update entry of Liubov
4496         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4497         Machado Filho.
4498
4499 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4500
4501         * string/string.h: Add __wur to GNU version of strerror_r.
4502
4503 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4504
4505         [BZ #14229]
4506         * string/Makefile (tests): Add tst-strtok_r.
4507         * string/tst-strtok_r.c: New file.
4508         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4509         RAX_LP/RDX_LP on SAVE_PTR.
4510
4511 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4512
4513         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4514
4515 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4516
4517         * libm_test.inc (csqrt_test): Allow more spurious underflow
4518         exceptions.
4519         (j0_test): Likewise.
4520         (j1_test): Likewise.
4521         (y0_test): Likewise.
4522         (y1_test): Likewise.
4523
4524 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4525
4526         * po/Makefile (libc.pot): Use UTF-8 charset.
4527
4528 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4529
4530         [BZ #14210]
4531         Suppress sign-conversion warning from FD_SET.
4532         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4533         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4534         not unsigned long int.
4535         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4536
4537 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4538
4539         [BZ #14050]
4540         [BZ #14117]
4541         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4542         __extern_always_inline instead of __extern_inline.
4543         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4544         (__signbit): Likewise.
4545         (__signbitl): Support C++ namespace.
4546         (lrintf): New inline function.
4547         (lrint): Likewise.
4548         (llrintf): Likewise.
4549         (llrint): Likewise.
4550         (fmaxf): Likewise.
4551         (fmax): Likewise.
4552         (fminf): Likewise.
4553         (fmin): Likewise.
4554         (rint): Likewise.
4555         (rintf): Likewise.
4556         (ceil): Likewise.
4557         (ceilf): Likewise.
4558         (floor): Likewise.
4559         (floorf): Likewise.
4560         (nearbyint): Likewise.
4561         (nearbyintf): Likewise.
4562
4563 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4564
4565         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4566         non-default versions.
4567
4568 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4569
4570         [BZ #14218]
4571         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4572
4573 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4574
4575         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4576         (FE_UPWARD, FE_DOWNWARD): Don't define.
4577         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4578         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4579
4580         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4581         reading it.
4582         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4583         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4584
4585 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4586
4587         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4588         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4589         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4590         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4591
4592 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4593
4594         [BZ #14117]
4595         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4596         * sysdeps/i386/fpu/Implies: New file.
4597         * sysdeps/x86_64/fpu/Implies: Likewise.
4598         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4599         * sysdeps/x86/fpu/bits/fenv.h: This.
4600
4601         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4602         __SSE_MATH__.
4603
4604 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4605
4606         [BZ #14134]
4607         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4608         character 0xffff that matches the last element of the
4609         conversion table.
4610
4611 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4612
4613         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4614         fmodl commit.
4615
4616 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4617
4618         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4619         values higher than 25.6283.
4620
4621 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4622
4623         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4624         subnormal exponent extraction and add some __builtin_expect.
4625         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4626         Fix for subnormal mantissa calculation.
4627
4628 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4629
4630         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4631         cpu2 is -1 and errno is not ENOSYS.
4632
4633 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4634
4635         [BZ #14117]
4636         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4637         * sysdeps/x86/bits/string.h: This.
4638         * sysdeps/x86_64/bits/string.h: Removed.
4639
4640         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4641         if not compiling for x86-64, but compiling for >= i486.
4642
4643         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4644         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4645
4646         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4647         New macro from Linux kernel 3.4.0.
4648         (FP_XSTATE_MAGIC2): Likewise.
4649         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4650         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4651         (struct _fpx_sw_bytes): New struct.
4652         (struct _xsave_hdr): Likewise.
4653         (struct _ymmh_state): Likewise.
4654         (struct _xstate): Likewise.
4655
4656         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4657         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4658         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4659         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4660         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4661         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4662
4663         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4664         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4665         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4666         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4667         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4668         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4669
4670 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4671
4672         [BZ #13743]
4673         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4674         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4675         (sysdep_headers): Include sys/platform/ppc.h.
4676         * sysdeps/powerpc/test-gettimebase.c: Test for
4677         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4678         * manual/Makefile (appendices): Include platform.texi.
4679         * manual/contrib.texi (Contributors): Update @node pointers.
4680         * manual/maint.texi (Maintenance): Likewise.
4681         (Platform): New node.
4682         * manual/platform.texi: New file.  Document the new features.
4683
4684 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4685             Jakub Jelinek  <jakub@redhat.com>
4686
4687         [BZ #14188]
4688         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4689         where __builtin_expect is unavailable.
4690
4691 2012-06-03  David S. Miller  <davem@davemloft.net>
4692
4693         * stdlib/longlong.h: Updated from GCC.
4694
4695 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4696
4697         [BZ #14042]
4698         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4699         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4700         __mcount_internal.
4701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4702         (GLIBC_2.16): Likewise.
4703
4704 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4705
4706         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4707
4708 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4709
4710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4711         (default-abi): New variable.
4712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4713         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4714         variable.
4715         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4716         Likewise.
4717         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4718         Likewise.
4719         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4720         Likewise.
4721
4722         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4723         definition.  Document in comment.
4724
4725 2012-06-01  David S. Miller  <davem@davemloft.net>
4726
4727         * stdlib/longlong.h: Updated from GCC.
4728
4729 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4730
4731         [BZ #14117]
4732         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4733         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4734         sys/debugreg.h sys/io.h here.
4735         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4736         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4737         sys/io.h.
4738         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4739         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4740         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4741         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4742         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4743         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4744
4745         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4746         Define only if __x86_64__ is defined.
4747
4748 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4749
4750         [BZ #14048]
4751         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4752         Use int64_t for variable i.
4753         * math/libm-test.inc (fmod_test): Add more tests.
4754
4755         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4756         z computation is not scheduled after fetestexcept.
4757         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4758         Use math_force_eval instead of asm to ensure calculation scheduled
4759         before exception test.
4760         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4761         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4762
4763 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4764
4765         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4766         computation is not scheduled after fetestexcept.
4767
4768 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4769
4770         [BZ #14117]
4771         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4772         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4773
4774 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4775
4776         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4777         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4778
4779 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4780
4781         [BZ #14117]
4782         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4783         <bits/wordsize.h>.
4784         (__WCHAR_MIN): Support __WORDSIZE == 64.
4785         (__WCHAR_MAX): Likewise.
4786
4787         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4788         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4789
4790         [BZ #14183]
4791         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4792         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4793
4794         [BZ #14117]
4795         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4796         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4797
4798         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4799         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4800
4801         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4802         Defined to 1 if __x86_64__ isn't defined.
4803         (_STAT_VER_LINUX_OLD): New.
4804         (st_atime): Remove duplicate.
4805         (st_mtime): Likewise.
4806         (st_ctime): Likewise.
4807
4808 2012-05-31  David S. Miller  <davem@davemloft.net>
4809
4810         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4811         entries.
4812
4813 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4814
4815         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4816         gen-libm-test.pl.
4817
4818         [BZ #14132]
4819         * elf/dl-reloc.c: Include <_itoa.h>.
4820         (_dl_reloc_bad_type): Remove use of INTUSE.
4821         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4822         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4823         * stdio-common/psiginfo.c (psiginfo): Likewise.
4824         * stdio-common/psignal.c (psignal): Likewise.
4825         * string/strsignal.c (strsignal): Likewise.
4826         * include/signal.h (_sys_siglist): Declare hidden proto.
4827         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4828         INTVARDEF with libc_hidden_data_def.
4829         * stdio-common/itoa-udigits.c: Likewise.
4830         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4831         (_itoa_lower_digits_internal): Remove declaration.
4832         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4833         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4834         (_sys_sigabbrev_internal): Remove aliases.
4835         (_sys_siglist): Define hidden alias.
4836
4837 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4838
4839         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4840         bits/sysctl.h.
4841
4842 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4843
4844         [BZ #14117]
4845         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4846         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4847
4848         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4849         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4850         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4851         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4852         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4853         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4854
4855         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4856         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4857         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4858
4859         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4860         with __addr.
4861         (insw): Likewise.
4862         (insl): Likewise.
4863         (outsb): Likewise.
4864         (outsw): Likewise.
4865         (outsl): Likewise.
4866
4867         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4868         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4869         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4870
4871         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4872         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4873         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4874         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4875         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4876         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4877
4878         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4879         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4880
4881         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4882         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4883
4884         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4885         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4886         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4887
4888         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4889         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4890         to ...
4891         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4892
4893         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4894         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4895         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4896
4897         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4898         for x86-64.
4899         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4900
4901 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4902
4903         * math/math.h (M_El): Use two more decimal places.
4904         (M_LOG2El): Likewise.
4905         (M_LOG10El): Likewise.
4906         (M_LN2l): Likewise.
4907         (M_LN10l): Likewise.
4908         (M_PIl): Likewise.
4909         (M_PI_2l): Likewise.
4910         (M_PI_4l): Likewise.
4911         (M_1_PIl): Likewise.
4912         (M_2_PIl): Likewise.
4913         (M_2_SQRTPIl): Likewise.
4914         (M_SQRT2l): Likewise.
4915         (M_SQRT1_2l): Likewise.
4916
4917 2012-05-31  David S. Miller  <davem@davemloft.net>
4918
4919         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4920         values between float registers.
4921         * sysdeps/sparc/sparc64/memset.S: Likewise.
4922         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4923
4924 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4925
4926         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4927         -D_FORTIFY_SOURCE=1.
4928         (CPPFLAGS-tst-longjmp_chk.c): Define.
4929         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4930         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4931         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4932         CFLAGS-tst-wchar-h.c.
4933
4934 2012-05-31  Marek Polacek  <polacek@redhat.com>
4935
4936         [BZ #14132]
4937         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4938         __endmntent_internal): Remove declaration.
4939         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4940         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4941         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4942
4943 2012-05-30  David S. Miller  <davem@davemloft.net>
4944
4945         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4946         (___Q_simulate_exceptions): Use real FP ops rather than writing
4947         into the %fsr.
4948         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4949         Likewise.
4950
4951 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4952
4953         [BZ #14117]
4954         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4955         * sysdeps/x86/bits/xtitypes.h: This.
4956
4957         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4958         * sysdeps/x86/bits/wordsize.h: This.
4959
4960         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4961         * sysdeps/x86/bits/huge_vall.h: This.
4962
4963         * sysdeps/i386/bits/select.h: Removed.
4964         * sysdeps/x86_64/bits/select.h: Renamed to ...
4965         * sysdeps/x86/bits/select.h: This.
4966
4967         * sysdeps/i386/bits/setjmp.h: Removed.
4968         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4969         * sysdeps/x86/bits/setjmp.h: This.
4970
4971         * sysdeps/i386/bits/mathdef.h: Removed.
4972         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4973         * sysdeps/x86/bits/mathdef.h: This.
4974
4975 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4976
4977         [BZ #14132]
4978         * include/sys/socket.h (__connect_internal)
4979         (__libc_sa_len_internal): Remove declaration.
4980         (__connect, __libc_sa_len): Declare hidden_proto.
4981         (SA_LEN): Remove use of INTUSE.
4982         * socket/connect.c: Add libc_hidden_def.
4983         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4984         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4985         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4986         alias.
4987         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4988         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4989         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4990         of adding _internal alias.
4991
4992 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4993
4994         [BZ #14117]
4995         * sysdeps/i386/bits/link.h: Removed.
4996         * sysdeps/i386/bits/linkmap.h: Likewise.
4997         * sysdeps/x86_64/bits/link.h: Renamed to ...
4998         * sysdeps/x86/bits/link.h: This.
4999         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5000         * sysdeps/x86/bits/linkmap.h: This.
5001
5002         * sysdeps/i386/bits/endian.h: Removed.
5003         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5004         * sysdeps/x86/bits/endian.h: This.
5005
5006         * sysdeps/i386/bits/byteswap.h: Removed.
5007         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5008         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5009         * sysdeps/x86/bits/byteswap.h: This.
5010         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5011         * sysdeps/x86/bits/byteswap-16.h: This.
5012         * sysdeps/i386/Implies: Add x86.
5013         * sysdeps/x86_64/Implies: Likewise.
5014
5015 2012-05-30  David S. Miller  <davem@davemloft.net>
5016
5017         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5018         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5019         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5020         (FP_TRAPPING_EXCEPTIONS): Define.
5021         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5022         (FP_TRAPPING_EXCEPTIONS): Define.
5023         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5024         subnormals only when inexact has been signalled or underflow
5025         exceptions are enabled.
5026         (_FP_PACK_CANONICAL): Likewise.
5027
5028 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5029
5030         [BZ #14183]
5031         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5032         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5033
5034 2012-05-30  Richard Henderson  <rth@twiddle.net>
5035
5036         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5037         with #ifndef NOT_IN_libc.
5038
5039         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5040         marked to avoid plt entry.
5041
5042 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5043
5044         [BZ #14112]
5045         * Makeconfig (default-abi): New macro.
5046         (abi-includes): Likewise.
5047         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5048         $(abi-$(default-abi)-lib-soname) for soname if defined.
5049         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5050         abi-variants.
5051         * Makefile (installed-stubs): Likewise.
5052         * include/stubs-biarch.h: Removed.
5053         * scripts/lib-names.awk: Only handle one library at a time.
5054         * scripts/soversions.awk: Remove WORDSIZE support.
5055         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5056         entries.
5057         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5058         Removed.
5059         (syscall-list-default-condition): Likewise.
5060         (syscall-list-default-condition): Likewise.
5061         (syscall-list-includes): Likewise.
5062         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5063         syscall-list-* with abi-*.  Handle undefined abi-variants.
5064         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5065         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5066         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5067         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5068         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5069         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5070         Removed.
5071         (syscall-list-32-options): Likewise.
5072         (syscall-list-32-condition): Likewise.
5073         (syscall-list-64-options): Likewise.
5074         (syscall-list-64-condition): Likewise.
5075         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5076         macro.
5077         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5078         Renamed to ...
5079         (abi-*): This.
5080         (abi-64-ld-soname): New macro.
5081         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5082         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5083         Renamed to ...
5084         (abi-*): This.
5085         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5086         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5087
5088 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5089
5090         * sysdeps/unix/sysv/linux/kernel-features.h
5091         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5092         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5093         include <kernel-features.h>.
5094         [!__NR_ftruncate64]: Remove conditional code.
5095         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5096         [__NR_ftruncate64]: Make code unconditional.
5097         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5098         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5099         include <kernel-features.h>.
5100         [!__NR_ftruncate64]: Remove conditional code.
5101         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5102         [__NR_ftruncate64]: Make code unconditional.
5103         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5105         include <kernel-features.h>.
5106         [!__NR_ftruncate64]: Remove conditional code.
5107         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5108         [__NR_ftruncate64]: Make code unconditional.
5109         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5111         include <kernel-features.h>.
5112         [!__NR_ftruncate64]: Remove conditional code.
5113         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5114         [__NR_ftruncate64]: Make code unconditional.
5115         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5116
5117         * configure.in (libc_cv_fpie): Weaken to a compile test using
5118         LIBC_TRY_CC_OPTION.
5119         * configure: Regenerated.
5120
5121 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5122
5123         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5125         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5127         Refreshed.
5128         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5129         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5131         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5132         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5133         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5134         Refreshed.
5135
5136 2012-05-27  David S. Miller  <davem@davemloft.net>
5137
5138         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5139         (___Q_zero): New.
5140         (__Q_simulate_exceptions): Return void.  Change to simulate
5141         exceptions by writing into the %fsr.
5142         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5143         (__Qp_handle_exceptions): Likewise.
5144         (numbers): Delete.
5145         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5146         __Qp_handle_exceptions.
5147         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5148         __Qp_handle_exceptions.
5149         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5150         as unused and give dummy FP_RND_NEAREST initializer.
5151         (FP_INHIBIT_RESULTS): Define.
5152         (___Q_simulate_exceptions): Update declaration.
5153         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5154         formatting.
5155         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5156         as unused and give dummy FP_RND_NEAREST initializer.
5157         (__Qp_handle_exceptions): Update declaration.
5158         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5159         formatting.
5160
5161 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5162
5163         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5164         the temporary FPU control word.
5165         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5166         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5167         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5168         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5169         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5170         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5171         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5172         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5173         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5174         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5175         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5176
5177 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5178
5179         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5180         fields.
5181
5182 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5183
5184         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5185         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5186         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5187         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5188         Likewise.
5189         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5190         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5191         Likewise.
5192
5193 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5194
5195         * po/h.po: Update from translation team.
5196
5197 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5198
5199         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5200
5201         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5202         handling of denormals.
5203         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5204         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5205         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5206         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5207         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5208         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5209         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5210         Likewise.
5211
5212 2012-05-26  Marek Polacek  <polacek@redhat.com>
5213
5214         [BZ #14152]
5215         * math/libm-test.inc (fma_test): Don't always expect underflow
5216         exception.
5217
5218 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5219
5220         [BZ #12416]
5221         * elf/tst-execstack.c: Include stackinfo.h.
5222         (do_test): Adjust test case to ensure that pthread_getattr_np
5223         behaviour remains the same after marking stack executable.
5224
5225 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5226
5227         * sysdeps/unix/sysv/linux/kernel-features.h
5228         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5229         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5230         kernel-features.h.
5231         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5232         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5233         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5234         kernel-features.h.
5235         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5236         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5237
5238 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5239
5240         * configure.in: Define the default includes to being none.
5241         * configure: Regenerated.
5242
5243 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5244
5245         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5246         * sysdeps/x86_64/setjmp.S: Likewise.
5247         * sysdeps/i386/bsd-setjmp.S: Likewise.
5248         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5249         * sysdeps/i386/setjmp.S: Likewise.
5250         * sysdeps/i386/__longjmp.S: Likewise.
5251         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5252         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5253
5254         * include/stap-probe.h: New file.
5255         * configure.in: Handle --enable-systemtap.
5256         * configure: Regenerated.
5257         * config.h.in (USE_STAP_PROBE): New #undef.
5258         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5259         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5260         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5261
5262 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5263
5264         [BZ #13717]
5265         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5266         to 2.4.0 where earlier.
5267         * sysdeps/unix/sysv/linux/configure: Regenerated.
5268         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5269         <kernel-features.h>.
5270         [__ASSUME_32BITUIDS]: Make code unconditional.
5271         [!__ASSUME_32BITUIDS]: Remove conditional code.
5272         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5273         <kernel-features.h>.
5274         [__ASSUME_32BITUIDS]: Make code unconditional.
5275         [!__ASSUME_32BITUIDS]: Remove conditional code.
5276         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5277         [__ASSUME_32BITUIDS]: Make code unconditional.
5278         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5279         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.c: Do not include
5288         <kernel-features.h>.
5289         [__ASSUME_32BITUIDS]: Make code unconditional.
5290         [!__ASSUME_32BITUIDS]: Remove conditional code.
5291         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5292         <kernel-features.h>.
5293         [__ASSUME_32BITUIDS]: Make code unconditional.
5294         [!__ASSUME_32BITUIDS]: Remove conditional code.
5295         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5296         <kernel-features.h>.
5297         [__ASSUME_32BITUIDS]: Make code unconditional.
5298         [!__ASSUME_32BITUIDS]: Remove conditional code.
5299         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5300         <kernel-features.h>.
5301         [__ASSUME_32BITUIDS]: Make code unconditional.
5302         [!__ASSUME_32BITUIDS]: Remove conditional code.
5303         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5304         <kernel-features.h>.
5305         [__ASSUME_32BITUIDS]: Make code unconditional.
5306         [!__ASSUME_32BITUIDS]: Remove conditional code.
5307         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5308         <kernel-features.h>.
5309         [__ASSUME_32BITUIDS]: Make code unconditional.
5310         [!__ASSUME_32BITUIDS]: Remove conditional code.
5311         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5312         <kernel-features.h>.
5313         [__ASSUME_32BITUIDS]: Make code unconditional.
5314         [!__ASSUME_32BITUIDS]: Remove conditional code.
5315         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5316         <kernel-features.h>.
5317         [__ASSUME_32BITUIDS]: Make code unconditional.
5318         [!__ASSUME_32BITUIDS]: Remove conditional code.
5319         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5320         <kernel-features.h>.
5321         [__NR_setresgid] (__setresgid): Do not declare.
5322         [__ASSUME_32BITUIDS]: Make code unconditional.
5323         [!__ASSUME_32BITUIDS]: Remove conditional code.
5324         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5325         <kernel-features.h>.
5326         [__NR_setresuid] (__setresuid): Do not declare.
5327         [__ASSUME_32BITUIDS]: Make code unconditional.
5328         [!__ASSUME_32BITUIDS]: Remove conditional code.
5329         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/i386/setgid.c: Do not include
5338         <kernel-features.h>.
5339         [__ASSUME_32BITUIDS]: Make code unconditional.
5340         [!__ASSUME_32BITUIDS]: Remove conditional code.
5341         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5342         <kernel-features.h>.
5343         [__ASSUME_32BITUIDS]: Make code unconditional.
5344         [!__ASSUME_32BITUIDS]: Remove conditional code.
5345         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5346         <kernel-features.h>.
5347         [__ASSUME_32BITUIDS]: Make code unconditional.
5348         [!__ASSUME_32BITUIDS]: Remove conditional code.
5349         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5350         <kernel-features.h>.
5351         [__ASSUME_32BITUIDS]: Make code unconditional.
5352         [!__ASSUME_32BITUIDS]: Remove conditional code.
5353         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5354         <kernel-features.h>.
5355         [__ASSUME_32BITUIDS]: Make code unconditional.
5356         [!__ASSUME_32BITUIDS]: Remove conditional code.
5357         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5358         <kernel-features.h>.
5359         [__ASSUME_32BITUIDS]: Make code unconditional.
5360         [!__ASSUME_32BITUIDS]: Remove conditional code.
5361         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5362         <kernel-features.h>.
5363         [__ASSUME_32BITUIDS]: Make code unconditional.
5364         [!__ASSUME_32BITUIDS]: Remove conditional code.
5365         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5366         <kernel-features.h>.
5367         [__ASSUME_32BITUIDS]: Make code unconditional.
5368         [!__ASSUME_32BITUIDS]: Remove conditional code.
5369         * sysdeps/unix/sysv/linux/kernel-features.h
5370         (__ASSUME_SETRESUID_SYSCALL): Remove.
5371         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5372         (__ASSUME_32BITUIDS): Likewise.
5373         (__ASSUME_LDT_WORKS): Likewise.
5374         (__ASSUME_O_DIRECTORY): Likewise.
5375         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5376         architecture but not kernel version.
5377         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5378         (__ASSUME_MMAP2_SYSCALL): Likewise.
5379         (__ASSUME_STAT64_SYSCALL): Likewise.
5380         (__ASSUME_IPC64): Likewise.
5381         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5382         <kernel-features.h>.
5383         [__ASSUME_32BITUIDS]: Make code unconditional.
5384         [!__ASSUME_32BITUIDS]: Remove conditional code.
5385         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5386         <kernel-features.h>.
5387         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5388         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5389         132096]: Remove conditional code.
5390         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5391         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5392         <kernel-features.h>.
5393         [__ASSUME_32BITUIDS]: Make code unconditional.
5394         [!__ASSUME_32BITUIDS]: Remove conditional code.
5395         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5396         <kernel-features.h>.
5397         [__ASSUME_32BITUIDS]: Make code unconditional.
5398         [!__ASSUME_32BITUIDS]: Remove conditional code.
5399         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5400         <kernel-features.h>.
5401         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5402         unconditional.
5403         (__setresgid): Do not declare.
5404         [__ASSUME_32BITUIDS]: Make code unconditional.
5405         [!__ASSUME_32BITUIDS]: Remove conditional code.
5406         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5407         <kernel-features.h>.
5408         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5409         unconditional.
5410         (__setresuid): Do not declare.
5411         [__ASSUME_32BITUIDS]: Make code unconditional.
5412         [!__ASSUME_32BITUIDS]: Remove conditional code.
5413         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5414         <kernel-features.h>.
5415         [__ASSUME_32BITUIDS]: Make code unconditional.
5416         [!__ASSUME_32BITUIDS]: Remove conditional code.
5417         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5418         <kernel-features.h>.
5419         [__ASSUME_32BITUIDS]: Make code unconditional.
5420         [!__ASSUME_32BITUIDS]: Remove conditional code.
5421
5422 2012-05-25  Richard Henderson  <rth@twiddle.net>
5423
5424         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5425         dl_hwcap to ifunc resolver.
5426         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5427         elf_ifunc_invoke.
5428         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5429         dl_hwcap to ifunc resolver.
5430         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5431
5432 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5433
5434         [BZ #14153]
5435         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5436         for |x| <= 2**-26, not 2**-57.
5437         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5438         exception.
5439
5440 2012-05-24  Jeff Law  <law@redhat.com>
5441
5442         * stdio-common/Makefile (tests): Add bug25.
5443         * stdio-common/bug25.c: New test.
5444
5445 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5446
5447         [BZ #13576]
5448         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5449         multiple of MALLOC_ALIGNMENT in size.
5450         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5451
5452 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5453
5454         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5455         Require >= 256.
5456         (FILENAME_MAX): Use macro-int-constant.
5457         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5458         (_IOFBF): Use macro-int-constant.
5459         (_IOLBF): Likewise.
5460         (_IONBF): Likewise.
5461         (SEEK_CUR): Likewise.
5462         (SEEK_END): Likewise.
5463         (SEEK_SET): Likewise.
5464         (TMP_MAX): Likewise.
5465         (EOF): Use macro-int-constant.  Require < 0.
5466         (NULL): Use macro-constant.  Require == 0.
5467         (stdin): Require type to be FILE *.
5468         (stdout): Likewise.
5469         (stderr): Likewise.
5470         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5471         macro-int-constant.
5472         (EXIT_SUCCESS): Likewise.
5473         (NULL): Use macro-constant.  Require == 0.
5474         (RAND_MAX): Use macro-int-constant.
5475         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5476         [C99-based standards] (strtof): Require function.
5477         [C99-based standards] (strtold): Likewise.
5478         [C99-based standards] (strtoll): Likewise.
5479         [C99-based standards] (strtoull): Likewise.
5480         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5481         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5482         [ISO || ISO99 || ISO11] (math.h): Likewise.
5483         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5484         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5485         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5486
5487 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5488
5489         [BZ #14132]
5490         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5491         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5492         * intl/dgettext.c (DCGETTEXT): Likewise.
5493         * intl/gettext.c (DCGETTEXT): Likewise.
5494         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5495         * posix/regex_internal.h (gettext): Likewise.
5496         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5497         Remove declaration.
5498         * include/argz.h (__argz_count_internal)
5499         (__argz_stringify_internal): Remove declaration.
5500         (__argz_count, __argz_stringify): Declare hidden proto.
5501         * intl/dcgettext.c: Remove use of INTDEF.
5502         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5503         * string/argz-stringify.c: Likewise.
5504         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5505         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5506         Declare hidden proto.
5507         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5508         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5509         Declare hidden proto.
5510         * include/stdio.h (__asprintf_internal): Don't declare.
5511         (__asprintf): Don't define as macro.  Declare hidden proto.
5512         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5513         (__fsetlocking): Declare hidden proto.
5514         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5515         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5516         hidden proto.
5517         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5518         (_IO_setlinebuf): Remove use of INTUSE.
5519         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5520         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5521         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5522         Remove declaration.
5523         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5524         (_IO_do_flush): Remove use of INTUSE.
5525         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5526         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5527         (_IO_adjust_column, _IO_least_wmarker)
5528         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5529         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5530         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5531         (_IO_default_doallocate, _IO_wdefault_doallocate)
5532         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5533         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5534         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5535         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5536         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5537         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5538         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5539         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5540         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5541         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5542         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5543         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5544         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5545         proto.
5546         (_IO_flush_all_internal, _IO_adjust_column_internal)
5547         (_IO_default_uflow_internal, _IO_default_finish_internal)
5548         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5549         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5550         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5551         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5552         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5553         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5554         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5555         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5556         (_IO_file_close_internal, _IO_file_close_it_internal)
5557         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5558         (_IO_file_init_internal, _IO_file_attach_internal)
5559         (_IO_file_fopen_internal, _IO_file_read_internal)
5560         (_IO_file_sync_internal, _IO_file_seek_internal)
5561         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5562         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5563         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5564         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5565         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5566         (_IO_list_all_internal, _IO_link_in_internal)
5567         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5568         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5569         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5570         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5571         (_IO_do_write_internal, _IO_padn_internal)
5572         (_IO_getline_info_internal, _IO_getline_internal)
5573         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5574         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5575         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5576         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5577         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5578         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5579         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5580         with libc_hidden_ver, remove use of INTUSE.
5581         * libio/genops.c: Likewise.
5582         * libio/freopen.c: Likewise.
5583         * libio/freopen64.c: Likewise.
5584         * libio/iofclose.c: Likewise.
5585         * libio/iofdopen.c: Likewise.
5586         * libio/iofflush.c: Likewise.
5587         * libio/iofflush_u.c: Likewise.
5588         * libio/iofgets.c: Likewise.
5589         * libio/iofgets_u.c: Likewise.
5590         * libio/iofopen.c: Likewise.
5591         * libio/iofopncook.c: Likewise.
5592         * libio/iofread.c: Likewise.
5593         * libio/iofread_u.c: Likewise.
5594         * libio/ioftell.c: Likewise.
5595         * libio/iofwrite.c: Likewise.
5596         * libio/iogetline.c: Likewise.
5597         * libio/iogets.c: Likewise.
5598         * libio/iogetwline.c: Likewise.
5599         * libio/iopadn.c: Likewise.
5600         * libio/iopopen.c: Likewise.
5601         * libio/ioseekoff.c: Likewise.
5602         * libio/ioseekpos.c: Likewise.
5603         * libio/iosetbuffer.c: Likewise.
5604         * libio/iosetvbuf.c: Likewise.
5605         * libio/ioungetc.c: Likewise.
5606         * libio/ioungetwc.c: Likewise.
5607         * libio/iovdprintf.c: Likewise.
5608         * libio/iovsprintf.c: Likewise.
5609         * libio/iovsscanf.c: Likewise.
5610         * libio/memstream.c: Likewise.
5611         * libio/obprintf.c: Likewise.
5612         * libio/oldfileops.c: Likewise.
5613         * libio/oldiofclose.c: Likewise.
5614         * libio/oldiofdopen.c: Likewise.
5615         * libio/oldiofopen.c: Likewise.
5616         * libio/oldiopopen.c: Likewise.
5617         * libio/oldstdfiles.c: Likewise.
5618         * libio/putc.c: Likewise.
5619         * libio/setbuf.c: Likewise.
5620         * libio/setlinebuf.c: Likewise.
5621         * libio/stdfiles.c: Likewise.
5622         * libio/strops.c: Likewise.
5623         * libio/vasprintf.c: Likewise.
5624         * libio/vscanf.c: Likewise.
5625         * libio/vsnprintf.c: Likewise.
5626         * libio/vswprintf.c: Likewise.
5627         * libio/wfiledoalloc.c: Likewise.
5628         * libio/wfileops.c: Likewise.
5629         * libio/wgenops.c: Likewise.
5630         * libio/wmemstream.c: Likewise.
5631         * libio/wstrops.c: Likewise.
5632         * libio/__fpurge.c: Likewise.
5633         * libio/__fsetlocking.c: Likewise.
5634         * assert/assert.c: Likewise.
5635         * debug/fgets_chk.c: Likewise.
5636         * debug/fgets_u_chk.c: Likewise.
5637         * debug/fread_chk.c: Likewise.
5638         * debug/fread_u_chk.c: Likewise.
5639         * debug/gets_chk.c: Likewise.
5640         * debug/obprintf_chk.c: Likewise.
5641         * debug/vasprintf_chk.c: Likewise.
5642         * debug/vdprintf_chk.c: Likewise.
5643         * debug/vsnprintf_chk.c: Likewise.
5644         * debug/vsprintf_chk.c: Likewise.
5645         * malloc/mtrace.c: Likewise.
5646         * misc/error.c: Likewise.
5647         * misc/syslog.c: Likewise.
5648         * stdio-common/asprintf.c: Likewise.
5649         * stdio-common/fxprintf.c: Likewise.
5650         * stdio-common/getw.c: Likewise.
5651         * stdio-common/isoc99_fscanf.c: Likewise.
5652         * stdio-common/isoc99_scanf.c: Likewise.
5653         * stdio-common/isoc99_vfscanf.c: Likewise.
5654         * stdio-common/isoc99_vscanf.c: Likewise.
5655         * stdio-common/isoc99_vsscanf.c: Likewise.
5656         * stdio-common/printf-prs.c: Likewise.
5657         * stdio-common/printf_fp.c: Likewise.
5658         * stdio-common/printf_fphex.c: Likewise.
5659         * stdio-common/printf_size.c: Likewise.
5660         * stdio-common/putw.c: Likewise.
5661         * stdio-common/scanf.c: Likewise.
5662         * stdio-common/sprintf.c: Likewise.
5663         * stdio-common/tmpfile.c: Likewise.
5664         * stdio-common/vfprintf.c: Likewise.
5665         * stdio-common/vfscanf.c: Likewise.
5666         * stdlib/strfmon_l.c: Likewise.
5667         * sunrpc/openchild.c: Likewise.
5668         * sunrpc/xdr_stdio.c: Likewise.
5669         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5670         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5671
5672 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5673
5674         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5675
5676         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5677         in the third column, to generate for the shared library an IFUNC
5678         that uses _dl_vdso_vsym.
5679         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5680         * Makeconfig (object-suffixes-noshared): New variable.
5681
5682         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5683         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5684         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5685         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5686
5687         [BZ #14132]
5688         * include/sys/time.h (__gettimeofday): Remove macro.
5689         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5690         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5691         Remove INTDEF.
5692         (__gettimeofday): Add libc_hidden_def.
5693         (gettimeofday): Add libc_hidden_weak.
5694         * sysdeps/mach/gettimeofday.c: Likewise.
5695         * sysdeps/posix/gettimeofday.c: Likewise.
5696         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5697         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5698         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5699         (__gettimeofday_internal): Remove strong_alias.
5700         (__gettimeofday): Add libc_hidden_def.
5701         (gettimeofday): Add libc_hidden_weak.
5702         * sysdeps/unix/syscalls.list (gettimeofday):
5703         Remove __gettimeofday_internal alias.
5704
5705 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5706             H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         [BZ #12495]
5709         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5710         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5711         (largebin_index_32_big): New.
5712         (largebin_index): Use it for 16-byte alignment.
5713         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5714         correction with front_misalign.
5715
5716 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5717
5718         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5719         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5720         Likewise.
5721         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5722         Likewise.
5723         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5724         Likewise.
5725         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5726         Likewise.
5727         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5728         Likewise.
5729         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5730         Likewise.
5731         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5732         Likewise.
5733         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5734         Likewise.
5735         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5736         Likewise.
5737         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5738         Likewise.
5739         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5740         Likewise.
5741         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5742         Likewise.
5743
5744         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5745         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5746
5747 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5748
5749         [BZ #10846]
5750         [BZ #14036]
5751         * math/libm-test.inc (exp_test): Add test from bug 14036.
5752         (pow_test): Add test from bug 10846.
5753
5754         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5755         and other flags.
5756         (special_function): Do not include flags in test name.
5757         (parse_args): Likewise.
5758         * sysdeps/i386/fpu/libm-test-ulps: Update.
5759         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5760         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5761         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5762         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5763
5764         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5765         exceptions.
5766         * math/libm-test.inc ("Philosophy"): Update comment about
5767         exception testing.
5768         (UNDERFLOW_EXCEPTION): New macro.
5769         (UNDERFLOW_EXCEPTION_OK): Likewise.
5770         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5771         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5772         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5773         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5774         (INVALID_EXCEPTION_OK): Update value.
5775         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5776         (OVERFLOW_EXCEPTION_OK): Likewise.
5777         (IGNORE_ZERO_INF_SIGN): Likewise.
5778         (test_exceptions): Handle underflow exceptions.
5779         (acos_test): Update for underflow exception expectations.
5780         (cexp_test): Likewise.
5781         (clog_test): Likewise.
5782         (clog10_test): Likewise.
5783         (csqrt_test): Likewise.
5784         (ctan_test): Likewise.
5785         (ctanh_test): Likewise.
5786         (exp_test): Likewise.
5787         (exp10_test): Likewise.
5788         (exp2_test): Likewise.
5789         (expm1_test): Likewise.
5790         (fma_test): Likewise.
5791         (j0_test): Likewise.
5792         (jn_test): Likewise.
5793         (nexttoward_test): Likewise.
5794         (pow_test): Likewise.
5795         (scalbn_test): Likewise.
5796         (scalbln_test): Likewise.
5797         (tan_test): Likewise.
5798         (y1_test): Likewise.
5799         * sysdeps/i386/fpu/libm-test-ulps: Update.
5800         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5801
5802 2012-05-23  David S. Miller  <davem@davemloft.net>
5803
5804         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5805         (__libc_sigaction): Remove unused local variables.
5806
5807 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5808
5809         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5810
5811 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5812
5813         mktime: avoid signed integer overflow
5814         * time/mktime.c (__mktime_internal): Do not mishandle the case
5815         where diff == INT_MIN.
5816
5817         mktime: simplify computation of average
5818         * time/mktime.c (ranged_convert): Use new time_t_avg function
5819         instead of rolling our own (probably-slower) code.
5820
5821         mktime: do not assume signed right shift propagates sign bit
5822         * time/mktime.c (isdst_differ): New static function.
5823         (__mktime_internal): No need to normalize tm_isdst now.
5824         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5825         tm_isdst values.
5826
5827         mktime: merge another wrapv change from gnulib
5828         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5829         from some compilers.
5830
5831         mktime: remove incorrect attempt at unusual arithmetics
5832         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5833         The code didn't really work on such machines anyway.
5834         (TYPE_MINIMUM): Assume two's complement.
5835         (twos_complement_arithmetic): Verify that long_int and time_t
5836         are two's complement (or unsigned, in the latter case).
5837
5838         mktime: check signed shifts on long_int and time_t, too
5839         * time/mktime.c (SHR): Check that shifts work as desired
5840         on the types long_int and time_t too, as SHR is used on
5841         such types.
5842
5843         mktime: do not assume 'long' is wide enough
5844         * time/mktime.c (verify): Move decl up.
5845         (long_int): New type.
5846         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5847         to remove assumption in the code that 'long' is wide enough to
5848         store year values.  This assumption is not true on x32 and on
5849         some non-glibc platforms.
5850
5851         mktime: merge wrapv change from gnulib
5852         * time/mktime.c (WRAPV): New macro.
5853         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5854         (guess_time_tm, __mktime_internal): Do not assume that signed
5855         integer overflow wraps around; modern compilers generate code
5856         where this assumption is no longer valid.
5857
5858 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5859
5860         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5861         Replace "jmp L(pseudo_end)" with "ret".
5862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5863         Likewise.
5864
5865 2012-05-23  Andreas Jaeger  <aj@suse.de>
5866
5867         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5868         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5869
5870 2012-05-23  Andreas Jaeger  <aj@suse.de>
5871             Maximilian Attems  <max@stro.at>
5872
5873         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5874         New macros.
5875
5876 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5877
5878         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5879         code so that pseudo_end is just ret and the stack pointer is
5880         correct also for static library in error case.
5881
5882 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5883
5884         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5885         move to syscalls.list.
5886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5888         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5890
5891         * manual/install.texi (Running make install): Do not mention Linux
5892         kernel version for which pt_chown is not needed.
5893         (Linux): Do not mention problems with nscd with 2.0 kernels.
5894         * INSTALL: Regenerated.
5895
5896 2012-05-23  Andreas Jaeger  <aj@suse.de>
5897
5898         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5899         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5900         macro.
5901         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5902         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5903         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5904         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5905         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5906         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5907         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5908         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5909         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5910         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5911         * sysdeps/unix/sysv/linux/bits/in.h
5912         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5913
5914 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5915
5916         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5917         (PREPARE_VERSION): Just use assert instead, it will be elided
5918         under [NDEBUG] anyway.
5919
5920 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5921
5922         * sysdeps/unix/sysv/linux/Makefile: Include
5923         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5924         (sysdep_routines): Remove sysctl.
5925         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5926         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5927         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5928         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5929         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5930
5931 2012-05-22  Andreas Jaeger  <aj@suse.de>
5932
5933         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5934         that pseudo_end is just ret and the stack pointer is correct also
5935         for static library in error case.
5936
5937 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5938
5939         [BZ #14122]
5940         * nss/nsswitch.c (defconfig_entries): New variable.
5941         (__nss_database_lookup): Don't leak defconfig entries.
5942         (nss_parse_service_list): Don't leak on error paths.
5943         (free_database_entries): New function.
5944         (free_defconfig): New function.
5945         (free_mem): Move common code to free_database_entries.
5946
5947 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5948
5949         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5950         Add arch_prctl.
5951         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5952
5953         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5954         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5955         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5956         New macro.
5957         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5958         (INTERNAL_SYSCALL_TYPES): Likewise.
5959         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5960         (LOAD_REGS_TYPES_[1-6]): Likewise.
5961         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5962         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5963
5964 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5965
5966         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5967         copysignl for GLIBC_2_0.
5968         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5969         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5970         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5971         logbl for GLIBC_2_0.
5972         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5973         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5974
5975 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5976
5977         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5978         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5979
5980         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5981         Use "neg %eax".
5982
5983         * time/mktime.c: Update copyright years.
5984
5985 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         mktime: merge comment-quoting-style change from gnulib
5988         * time/mktime.c: Quote 'like this' in comments.
5989         The GNU coding standards suggest that we no longer quote `like this',
5990         as "`" and "'" are typically rendered asymmetrically nowadays.
5991         The typical gnulib style is to quote 'like this' when quoting
5992         code, and "like this" when quoting English.
5993
5994         * time/mktime.c (compile-command): Add "-I.".
5995
5996         mktime: merge mktime-internal.h change from gnulib
5997         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5998
5999         mktime: merge time_r change from gnulib
6000         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6001
6002         mktime: merge DEBUG change from gnulib
6003         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6004         case system <time.h> has a #define.
6005
6006         mktime: merge <sys/types.h> change from gnulib
6007         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6008         since <time.t> is now guaranteed to define time_t.
6009
6010         mktime: merge HAVE_CONFIG_H change from gnulib
6011         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6012
6013 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6014
6015         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6016         Use "neg %eax".
6017
6018         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6019         __rlim_t cast.
6020         (struct rusage): Use anonymous union to pad each field to
6021         __syscall_slong_t.
6022
6023 2012-05-21  David S. Miller  <davem@davemloft.net>
6024
6025         * Makefules (o-iterator): Remove .s cases.
6026         (compile-command.s): Delete.
6027         (COMPILE.s): Delete.
6028         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6029
6030 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6031
6032         * configure.in (libc_cv_predef_stack_protector): Only consider
6033         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6034         * configure: Regenerated.
6035
6036 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6037
6038         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6039         New macro.  Use R*LP on int and pointer.
6040         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6041         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6042         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6043         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6044
6045         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6046         [__WORDSIZE_TIME64_COMPAT32] instead of
6047         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6048         (struct utmp): Likewise.
6049         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6050         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6051         Renamed to ...
6052         (__WORDSIZE_TIME64_COMPAT32): This.
6053         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6054         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6055         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6056         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6057         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6058         (__WORDSIZE_TIME64_COMPAT32): New macro.
6059
6060 2012-05-21  Andreas Jaeger  <aj@suse.de>
6061
6062         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6063         only if [SHARED]. Add prototype for __wcschr_ia32.
6064
6065 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6066
6067         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6068         of %rbp unmolested in the jmp_buf while mangling the low bits.
6069         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6070         unmolested high bits of %rbp while demangling the low bits.
6071         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6072
6073 2012-05-21  Andreas Jaeger  <aj@suse.de>
6074
6075         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6076         * sunrpc/svc_simple.c: Use it for registerrpc.
6077         * sunrpc/xcrypt.c: Use it for passwd2des.
6078
6079         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6080
6081 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6082
6083         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6084         Don't define if [__SYSCALL_WORDSIZE != 32].
6085         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6086         New macro.
6087
6088 2012-05-21  Bruno Haible  <bruno@clisp.org>
6089             Andreas Jaeger  <aj@suse.de>
6090
6091         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6092         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6093         inptr and inend for must_buffer_ch.
6094         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6095         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6096         * stdio-common/Makefile (tests): Remove bug15.
6097         (bug15-ENV): Remove macro.
6098         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6099         anymore.
6100
6101 2012-05-19  Andreas Jaeger  <aj@suse.de>
6102             Roland McGrath  <roland@hack.frob.com>
6103
6104         * manual/contrib.texi: Completely rewritten. It contains now an
6105         alphabetical list of contributors and their contributions.
6106
6107 2012-05-21  Richard Henderson  <rth@twiddle.net>
6108
6109         * misc/getauxval.c (__getauxval): Use unsigned long int.
6110         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6111         (getauxval): Use unsigned long int.
6112
6113 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6114
6115         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6116
6117 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6118
6119         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6120         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6121         __alignof__ (long double).
6122
6123 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6124
6125         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6126
6127 2012-05-20  Richard Henderson  <rth@twiddle.net>
6128
6129         * misc/getauxval.c: New file.
6130         * misc/sys/auxv.h: New file.
6131         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6132         (routines): Add getauxval.
6133         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6134         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6135         * elf/dl-sysdep.c (_dl_auxv): Remove.
6136         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6137         * elf/dl-support.c (_dl_auxv): New variable.
6138         (_dl_aux_init): Initialize it.
6139         * manual/startup.texi (Auxiliary Vector): New node.
6140         * sysdeps/generic/bits/hwcap.h: New file.
6141         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6142         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6143         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6144         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6145         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6146         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6148         Update.
6149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6150         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6152         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6154         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6156         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6157
6158 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6159
6160         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6161
6162 2012-05-19  David S. Miller  <davem@davemloft.net>
6163
6164         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6165
6166 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6167
6168         [BZ #14123]
6169         * math/s_ccosh.c: Include <float.h>
6170         (__ccosh): Avoid internal overflow calculating sinh and cosh
6171         values before multiplying by sin and cos values.
6172         * math/s_ccoshf.c: Likewise.
6173         * math/s_ccoshl.c: Likewise.
6174         * math/s_csin.c: Likewise.
6175         * math/s_csinf.c: Likewise.
6176         * math/s_csinl.c: Likewise.
6177         * math/s_csinh.c: Likewise.
6178         * math/s_csinhf.c: Likewise.
6179         * math/s_csinhl.c: Likewise.
6180         * math/libm-test.inc (ccos_test): Add more tests.
6181         (ccosh_test): Likewise.
6182         (csin_test): Likewise.
6183         (csinh_test): Likewise.
6184         * sysdeps/i386/fpu/libm-test-ulps: Update.
6185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6186
6187 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6188
6189         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6190         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6191
6192         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6193
6194 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6195
6196         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6197         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6198         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6199         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6200         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6201         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6202         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6203         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6204         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6205         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6206         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6207         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6208         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6209         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6210         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6211         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6212         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6213         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6214         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6215         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6216         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6217         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6218         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6219         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6220         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6221         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6222         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6223         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6224         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6225         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6226         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6227
6228 2012-05-18  Andreas Jaeger  <aj@suse.de>
6229
6230         * csu/.gitignore: Delete.
6231
6232 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6235         (timex): Use __syscall_slong_t.
6236
6237 2012-05-18  Andreas Jaeger  <aj@suse.de>
6238             Carlos O'Donell  <carlos_odonell@mentor.com>
6239
6240         * manual/install.texi (Configuring and compiling): Update
6241         description about files modified in the source directory.
6242         * INSTALL: Regenerated.
6243
6244 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6247         value.  Use "or" to set return value to -1.
6248         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6249         negate return value.
6250
6251 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6252
6253         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6254         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6255         failure if the compiler has Graphite support disabled.
6256         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6257         Likewise.
6258         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6259         CFLAGS-memmove.c): Likewise.
6260         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6261         Likewise.
6262
6263 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6264
6265         * sysdeps/x86_64/x32/_itoa.h: New file.
6266
6267         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6268         getdents system call only if kernel and user dirents have the
6269         same d_ino and d_off.
6270
6271         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6272         LLONG_MAX != LONG_MAX.
6273         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6274         (_fitoa_word): Likewise.
6275
6276         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6277         years.
6278         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6279         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6280         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6281
6282         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6283         include <bits/wordsize.h>.  Check __x86_64__ instead of
6284         __WORDSIZE.
6285         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6286         if __x86_64__ is defined.  Use anonymous union on fpstate.
6287
6288         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6289         anonymous union.
6290
6291 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6292
6293         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6294         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6295         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6296         Refer to _rtld_local_ro instead of _rtld_global_ro.
6297         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6298         Likewise.
6299         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6300         Likewise.
6301         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6302         Likewise.
6303         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6304         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6305         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6306
6307         * sysdeps/powerpc/powerpc32/dl-machine.c
6308         (__elf_machine_runtime_setup) [PROF]: Don't reference
6309         _dl_prof_resolve.
6310
6311 2012-05-18  Andreas Jaeger  <aj@suse.de>
6312
6313         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6314         function only available for GCCs before 3.4 since GCC 3.4
6315         introduced a builtin.
6316         (lrint): Likewise.
6317         (llrintf): Likewise.
6318         (llrint): Likewise.
6319         (fmaxf): Likewise.
6320         (fmax): Likewise.
6321         (fminf): Likewise.
6322         (fmin): Likewise.
6323         (rint): Likewise.
6324         (rintf): Likewise.
6325         (nearbyint): Likewise.
6326         (nearbyintf): Likewise.
6327         (ceil): Likewise.
6328         (ceilf): Likewise.
6329         (floor): Likewise.
6330         (floorf): Likewise.
6331
6332 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6333
6334         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6335         on both fields and cast pointer to __syscall_ulong_t.
6336
6337         * bits/types.h (__fsword_t): New type.
6338         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6339         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6340         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6341         (__FSWORD_T_TYPE): Likewise.
6342         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6343         (__FSWORD_T_TYPE): Likewise.
6344         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6345         (__FSWORD_T_TYPE): Likewise.
6346         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6347         (__FSWORD_T_TYPE): Likewise.
6348         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6349         __SWORD_TYPE with __fsword_t.
6350         (statfs64): Likewise.
6351
6352 2012-05-17  David S. Miller  <davem@davemloft.net>
6353
6354         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6355
6356 2012-05-17  Andreas Jaeger  <aj@suse.de>
6357
6358         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6359         warning.
6360
6361 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6362
6363         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6364
6365 2012-05-17  Andreas Jaeger  <aj@suse.de>
6366
6367         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6368         when it is used.
6369
6370 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6371
6372         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6373
6374 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6375
6376         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6377         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6378
6379 2012-05-17  Andreas Jaeger  <aj@suse.de>
6380             Carlos O'Donell  <carlos_odonell@mentor.com>
6381
6382         [BZ #14059]
6383         * sysdeps/x86_64/multiarch/init-arch.h
6384         (bit_YMM_Usable): Rename to...
6385         (bit_AVX_Usable): ... this.
6386         (bit_FMA4_Usable): New macro.
6387         (bit_XMM_state): New macro.
6388         (bit_YMM_state): New macro.
6389         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6390         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6391         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6392         (CPUID_OSXSAVE): New macro.
6393         (CPUID_AVX): New macro.
6394         (CPUID_FMA4): New macro.
6395         (index_YMM_Usable): Rename to...
6396         (index_AVX_Usable): ... this.
6397         (HAS_AVX): Use HAS_ARCH_FEATURE.
6398         (HAS_FMA4): Likewise.
6399         (HAS_YMM_USABLE): Remove.
6400         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6401         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6402         are present.
6403         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6404         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6405         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6406         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6407         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6408
6409 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6410
6411         * math/libm-test.c: Support platforms without multiple rounding modes.
6412         * math/bug-nextafter.c: Support platforms without FP exceptions.
6413         * math/bug-nexttoward.c: Likewise.
6414         * math/test-fenv.c: Likewise.
6415         * math/test-misc.c: Likewise.
6416         * stdlib/bug-getcontext.c: Likewise.
6417
6418 2012-05-17  Andreas Jaeger  <aj@suse.de>
6419
6420         * manual/examples/search.c (critter_cmp): Change signature to
6421         avoid warnings.
6422         * manual/string.texi (Collation Functions): Likewise.
6423
6424 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6425
6426         * bits/types.h: Fold copyright years.
6427         * bits/typesizes.h: Likewise.
6428         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6429         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6430         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6431         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6432         * time/time.h: Likewise.
6433
6434 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6435
6436         [BZ #208]
6437         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6438         in instead of returning them.  Return void.
6439         (__libc_mallinfo): Accumulate over all arenas.
6440         (__malloc_stats): Adjust for change in int_mallinfo interface.
6441
6442 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6443
6444         [BZ #10375]
6445         * configure.in (NM): Add AC_CHECK_TOOL for it.
6446         (libc_extra_cflags): New substituted variable.
6447         Check for -fstack-protector being used implicitly.
6448         * configure: Regenerated.
6449         * config.make.in (config-extra-cflags): New variable,
6450         gets @libc_extra_cflags@.
6451         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6452
6453         [BZ #10375]
6454         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6455         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6456         * configure: Regenerated.
6457         * config.make.in (CPPUNDEFS): New substituted variable.
6458         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6459         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6460         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6461
6462 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6463
6464         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6465         (mq_attr): Use __syscall_slong_t.
6466
6467 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6468
6469         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6470         Check __x86_64__ instead of __WORDSIZE.
6471         (_STAT_VER_LINUX): Likewise.
6472         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6473         __syscall_ulong_t and __syscall_slong_t.
6474         (stat64): Likewise.
6475
6476 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6477
6478         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6479
6480 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6481
6482         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6483
6484 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6485
6486         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6487         __syscall_ulong_t.
6488
6489         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6490         include <bits/wordsize.h>.  Check __x86_64__ instead of
6491         __WORDSIZE.
6492         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6493         defined.
6494         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6495
6496         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6497         include <bits/wordsize.h>.  Check __x86_64__ instead of
6498         __WORDSIZE.
6499         (user_regs_struct): Use "__extension__ unsigned long long"
6500         instead of "unsigned long" if __x86_64__ is defined.
6501         (user): Likewise.  Pad after pointer field if __ILP32__ is
6502         defined.
6503
6504 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6505
6506         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6507         versions 5 to 9.
6508         * configure: Regenerated.
6509         * manual/install.texi (texinfo): Increase version requirement to
6510         4.5 or later.
6511         * INSTALL: Regenerated.
6512
6513         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6514
6515 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6516
6517         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6518
6519         * sysdeps/x86_64/x32/ffs.c: New file.
6520
6521         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6522         __syscall_ulong_t.
6523         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6524         defined.  Use __syscall_ulong_t.
6525         (shminfo): Use __syscall_ulong_t.
6526         (shm_info): Likewise.
6527
6528         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6529         __syscall_ulong_t.
6530
6531         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6532         <bits/wordsize.h>.
6533         (msgqnum_t): Use __syscall_ulong_t.
6534         (msglen_t): Likewise.
6535         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6536         __syscall_ulong_t.
6537
6538         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6539         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6540
6541         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6542
6543         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6544         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6545
6546         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6547         __syscall_slong_t.
6548
6549         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6550         include <bits/wordsize.h>.  Check __x86_64__ instead of
6551         __WORDSIZE.
6552
6553         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6554         "unsigned long long int" if __x86_64__ is defined.
6555         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6556
6557         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6558         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6559         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6560
6561         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6562         <stdint.h>.
6563         (GET_PC): Cast to uintptr_t first.
6564         (GET_FRAME): Likewise.
6565         (GET_STACK): Likewise.
6566
6567         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6568         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6569         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6570         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6571         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6572         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6573         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6574         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6575         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6576         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6577         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6578         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6579         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6580         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6581         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6582         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6583         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6584         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6585         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6586         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6587         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6588         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6589         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6590         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6591         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6592         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6593         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6594         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6595         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6596
6597 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6598
6599         * Makerules (+depfiles): Also collect depfiles from .oS in
6600         $(extra-objs).
6601         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6602         .oS, $(libnldbl-routines)).
6603
6604         * Makerules (native-compile-mkdep-flags): Define.
6605         * sunrpc/Makefile (extra-objs): Add $(addprefix
6606         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6607         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6608         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6609         calling $(make-target-directory).
6610
6611 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6612
6613         * bits/types.h (__snseconds_t): Removed.
6614         * time/time.h (struct timespec): Replace __snseconds_t with
6615         __syscall_slong_t.
6616         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6617         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6618         Likewise.
6619         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6620         (__SNSECONDS_T_TYPE): Likewise.
6621         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6622         (__SNSECONDS_T_TYPE): Likewise.
6623         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6624         (__SNSECONDS_T_TYPE): Likewise.
6625
6626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6627
6628         * sysdeps/mach/hurd/bits/typesizes.h
6629         (__SYSCALL_SLONG_TYPE): New macro.
6630         (__SYSCALL_ULONG_TYPE): Likewise.
6631
6632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6633
6634         * bits/types.h (__syscall_slong_t): New type.
6635         (__syscall_ulong_t): Likewise.
6636
6637         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6638         (__SYSCALL_ULONG_TYPE): Likewise.
6639         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6640         (__SYSCALL_SLONG_TYPE): Likewise.
6641         (__SYSCALL_ULONG_TYPE): Likewise.
6642         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6643         (__SYSCALL_SLONG_TYPE): Likewise.
6644         (__SYSCALL_ULONG_TYPE): Likewise.
6645         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6646         (__SYSCALL_SLONG_TYPE): Likewise.
6647         (__SYSCALL_ULONG_TYPE): Likewise.
6648
6649 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6650
6651         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6652         Add sigaltstack-offsets.sym.
6653         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6654         <sigaltstack-offsets.h>.
6655         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6656         longjmp_msg pointer.
6657         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6658         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6659         signal stack.
6660         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6661
6662 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6663
6664         * elf/stackguard-macros.h: Remove file.
6665         * sysdeps/generic/stackguard-macros.h: New file.
6666         * sysdeps/i386/stackguard-macros.h: Likewise.
6667         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6668         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6669         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6670         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6671         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6672         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6673         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6674         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6675         <elf/stackguard-macros.h>.
6676
6677         [BZ #14109]
6678         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6679         __aligned__ in attribute.
6680         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6681         (gregset_t): Likewise.
6682
6683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6684
6685         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6686         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6687         * sysdeps/x86_64/x32/Implies-after: New file.
6688
6689 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6690
6691         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6692         and access return value for _dl_profile_fixup.  Use R10_LP to
6693         load frame size.
6694
6695 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6696
6697         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6698
6699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6700
6701         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6702         * sysdeps/x86_64/x32/sysdep.h: New file.
6703
6704 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6705
6706         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6707         * sysdeps/x86_64/setjmp.S: Likewise.
6708
6709 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6710
6711         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6712         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6713         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6714         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6715         remove unused global constant.
6716
6717 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6718
6719         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6720         include of <not-cancel.h>.
6721
6722 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6723
6724         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6725
6726 2012-05-15  Jeff Law  <law@redhat.com>
6727             Andreas Jaeger  <aj@suse.de>
6728
6729         [BZ #13594]
6730         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6731         out from...
6732         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6733         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6734         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6735         code changing __hst_map_handle.map.
6736
6737 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6738
6739         * configure.in (sysnames): Look for Implies-before and Implies-after
6740         files.
6741         * configure: Regenerated.
6742
6743 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6744
6745         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6746         8-byte data alignment with LP_SIZE alignment.
6747
6748 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6749
6750         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6751         into R10_LP.
6752
6753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6754
6755         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6756
6757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6758
6759         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6760         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6761         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6762         Likewise.
6763         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6764
6765 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6766
6767         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6768         (stackinfo_sub_sp): Likewise.
6769
6770 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6771
6772         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6773         RAX_LP.
6774
6775 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6776
6777         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6778         into R*_LP.
6779
6780 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6781
6782         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6783         sizes into R*_LP.
6784
6785 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6786
6787         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6788
6789 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6790
6791         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6792         into R11_LP and load __x86_64_shared_cache_size_half into
6793         R8_LP.
6794
6795 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6796
6797         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6798         R8_LP.
6799
6800 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6801
6802         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6803         logb for POWER7.
6804         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6805         logbf for POWER7.
6806         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6807         logbl for POWER7.
6808         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6809         powerpc32/power7/fpu/s_logb.c via #include.
6810         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6811         powerpc32/power7/fpu/s_logbf.c via #include.
6812         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6813         powerpc32/power7/fpu/s_logbl.c via #include.
6814
6815 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6816
6817         * README.libm: Remove file.
6818
6819 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6820
6821         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6822         count for x32.  Use R*_LP and omit operand-size suffix.
6823
6824 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6825
6826         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6827         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6828         * sysdeps/x86_64/x32/shlib-versions: New file.
6829
6830 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6831
6832         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6833         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6834         Use _dl_fatal_printf instead.
6835
6836 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6837
6838         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6839         set if not set by the user.  Do not allow for being unset.
6840         * sysdeps/unix/sysv/linux/configure: Regenerated.
6841
6842 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6843
6844         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6845         the `q' suffix from lea and replace .quad with ASM_ADDR.
6846
6847 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6848
6849         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6850         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6851         instead of $17.
6852         (PTR_DEMANGLE): Likewise.
6853
6854 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6855
6856         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6857         (LP_OP): Likewise.
6858         (ASM_ADDR): Likewise.
6859         (RAX_LP): Likewise.
6860         (RBP_LP): Likewise.
6861         (RBX_LP): Likewise.
6862         (RCX_LP): Likewise.
6863         (RDI_LP): Likewise.
6864         (RSI_LP): Likewise.
6865         (RSP_LP): Likewise.
6866         (R8_LP): Likewise.
6867         (R9_LP): Likewise.
6868         (R10_LP): Likewise.
6869         (R10_LP): Likewise.
6870         (R11_LP): Likewise.
6871         (R12_LP): Likewise.
6872         (R13_LP): Likewise.
6873         (R14_LP): Likewise.
6874         (R15_LP): Likewise.
6875
6876 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6877
6878         * sysdeps/x86_64/x32/dl-machine.h: New file.
6879
6880 2012-05-14  Andreas Jaeger  <aj@suse.de>
6881
6882         * manual/Makefile (subdir): Remove export of subdir.
6883         (all): Remove target.
6884         (.PHONY): Remove all from list.
6885         (mkinstalldirs): Remove.
6886         (.PHONY): Remove installdirs from list.
6887         ($(inst_infodir)/libc.info): Use make-target-directory.
6888         (installdirs): Remove.
6889         (subdir_%): Remove.
6890         (glibc-targets): Remove.
6891         (lib): Remove.
6892         (stubs): Remove.
6893         ($(objpfx)stubs ../po/manual.pot): Remove.
6894         ($(objpfx)stamp%): Remove.
6895         (make-target-directory): Remove.
6896         (subdir_install): Remove.
6897         (routines): Remove.
6898         (aux): Remove.
6899         (sources): Remove.
6900         (objects): Remove.
6901         (headers): Remove.
6902
6903         [BZ #13750]
6904         * manual/.gitignore: Remove, it's not needed anymore.
6905         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6906         all files in it.
6907         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6908         directory.
6909         (texis): Renamed to $(objpfx)texis.
6910         (texis-path): New, contains path to generated files.
6911         (chapters.%): Use texis-path for complete path, add extra argument
6912         libc-texinfo.sh.
6913         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6914         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6915         (summary,texi, stamp-summary): Use complete path of
6916         files. Generate files in build dir.
6917         (dir-add.texi): Build in build dir.
6918         (libm-err.texi,stamp-libm-err): Likewise.
6919         (version.texi, stamp-version): Likewise.
6920         (.%c.texi): Likewise.
6921         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6922         (mostlyclean): Remove target.
6923         (realclean): Remove target.
6924         (generated): Add new variable with contents from mostlyclean and
6925         realclean, remove entries duplicated in common-mostlyclean, add
6926         stamp-libm-err and stamp-version.
6927         (generated-dirs): Add libc directory.
6928         ($(inst_infodir)/libc.info): Install files from build dir.
6929
6930         * manual/install.texi (Configuring and compiling): Adjust since
6931         the info files are not part of the tar ball anymore.
6932
6933 2012-05-14  Andreas Jaeger  <aj@suse.de>
6934
6935         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6936         variable.
6937
6938 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6939
6940         [BZ #13717]
6941         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6942         to 2.2.0 where earlier.
6943         * sysdeps/unix/sysv/linux/configure: Regenerated.
6944         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6945         Remove conditional code.
6946         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6947         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6948         Remove conditional code.
6949         [!__NR_lchown]: Likewise.
6950         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6951         [__NR_lchown]: Likewise.
6952         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6953         comment referencing __ASSUME_LCHOWN_SYSCALL.
6954         * sysdeps/unix/sysv/linux/i386/sigaction.c
6955         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6956         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6957         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6958         Remove conditional code.
6959         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6960         (__protocol_available): Remove #if 0 code.
6961         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6962         conditional code.
6963         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6964         * sysdeps/unix/sysv/linux/kernel-features.h
6965         (__ASSUME_GETCWD_SYSCALL): Don't define.
6966         (__ASSUME_REALTIME_SIGNALS): Likewise.
6967         (__ASSUME_PREAD_SYSCALL): Likewise.
6968         (__ASSUME_PWRITE_SYSCALL): Likewise.
6969         (__ASSUME_POLL_SYSCALL): Likewise.
6970         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6971         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6972         non-SPARC.
6973         (__ASSUME_SIOCGIFNAME): Don't define.
6974         (__ASSUME_MSG_NOSIGNAL): Likewise.
6975         (__ASSUME_SENDFILE): Define unconditionally.
6976         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6977         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6978         conditional code.
6979         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6980         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6981         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6982         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6983         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6984         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6985         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6987         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6988         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6990         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6991         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6993         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6994         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6996         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6997         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6999         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7000         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7002         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7003         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7005         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7006         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7008         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7009         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7010         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7011         Remove conditional code.
7012         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7013         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7014         Remove conditional code.
7015         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7016         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7017         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7018         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7019         Remove conditional code.
7020         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7021         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7022         Remove conditional code.
7023         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7024         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7025         Remove conditional code.
7026         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7027         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7028         Remove conditional code.
7029         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7030         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7031         Remove conditional code.
7032         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7033         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7034         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7035         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7036         * sysdeps/unix/sysv/linux/sigaction.c
7037         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7038         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7039         * sysdeps/unix/sysv/linux/sigpending.c
7040         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7041         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7042         * sysdeps/unix/sysv/linux/sigprocmask.c
7043         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7044         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7045         * sysdeps/unix/sysv/linux/sigsuspend.c
7046         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7047         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7048         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7049         (__libc_missing_rt_sigs): Remove.
7050         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7051         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7052         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7053         Remove conditional code.
7054         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7055         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7056         return 1.
7057         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7058         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7059         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7060         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7061
7062 2012-05-14  Andreas Jaeger  <aj@suse.de>
7063
7064         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7065         it's not used in glibc.
7066         (__coshm1): Likewise.
7067         (__acosh1p): Likewise.
7068         (__sgn): Likewise.
7069
7070         * manual/string.texi (Copying and Concatenation): Add missing
7071         variable in concat example.
7072         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7073
7074 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         [BZ #14103]
7077         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7078         __builtin_clzl with __builtin_clzll.
7079
7080 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7081
7082         [BZ #14104]
7083         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7084         libc_freeres_ptr.
7085
7086 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7087
7088         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7089         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7090         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7091         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7092
7093 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7094
7095         * NEWS: Update ia64 info.
7096
7097 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7098
7099         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7100         used as bcopy.
7101
7102 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7103
7104         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7105         * sysdeps/unix/syscalls.list (dup3): Likewise.
7106         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7107         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7108
7109 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7110
7111         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7112         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7113
7114 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7115
7116         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7117         thread pointer.
7118         (TLS_IE): Use mov/add instead of movq/addq to load thread
7119         pointer.
7120         (TLS_GD_PREFIX): New.
7121         (TLS_GD): Use it.
7122
7123 2012-05-11  David S. Miller  <davem@davemloft.net>
7124
7125         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7126         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7127         (_FPU_SETCW): Likewise.
7128
7129 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7130
7131         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7132         is 32-byte aligned.
7133
7134 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7135
7136         [BZ #11837]
7137         * iconvdata/gb18030.c: Update tables.
7138         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7139         characters specially.
7140         (BODY for TO_LOOP): Add encoding of missing ranges.
7141
7142 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7143
7144         [BZ #13673]
7145         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7146         * sysdeps/mach/hurd/dup3.c: Likewise.
7147         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7148         * sysdeps/powerpc/memmove.c:: Likewise.
7149
7150 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7151
7152         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7153         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7154
7155 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7156
7157         * elf/elf.h (R_X86_64_RELATIVE64): New.
7158         (R_X86_64_NUM): Updated.
7159         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7160         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7161         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7162         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7163         tst-quad1pie tst-quad2pie
7164         (modules-names): Add tst-quadmod1 tst-quadmod2.
7165         ($(objpfx)tst-quad1): New dependency.
7166         ($(objpfx)tst-quad2): Likewise.
7167         ($(objpfx)tst-quad1pie): Likewise.
7168         ($(objpfx)tst-quad2pie): Likewise.
7169         * sysdeps/x86_64/tst-quad1.c: New file.
7170         * sysdeps/x86_64/tst-quad1pie.c: New file.
7171         * sysdeps/x86_64/tst-quad2.c: Likewise.
7172         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7173         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7174         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7175         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7176         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7177
7178 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7179
7180         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7181         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7182         * streams/stropts.h (t_scalar_t): Define type.
7183
7184         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7185         (_PATH_PRESERVE): Set to "/var/lib".
7186         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7187
7188         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7189         instead of int.
7190
7191         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7192         if __dir_mkfile succeeded.
7193
7194         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7195         checking for _hurd_dtablesize.  Unlock it right after having
7196         finished _hurd_dtable allocation.
7197
7198 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7199
7200         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7201         * sysdeps/mach/hurd/configure: Regenerated.
7202         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7203         special-casing to...
7204         * sysdeps/gnu/configure.in: ... this new file.
7205         * sysdeps/unix/sysv/linux/configure: Regenerated.
7206         * sysdeps/gnu/configure: New generated file.
7207
7208         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7209         for Linux: use nsec instead of usec, as well as:
7210         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7211         members of type struct timespec.
7212         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7213         New macros.
7214         (struct stat64): Likewise.
7215         (_STATBUF_ST_NSEC): New macro.
7216         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7217
7218         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7219         __strtoul_internal rather than strtoul.
7220
7221 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7222
7223         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7224         and reject them.
7225
7226 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7227
7228         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7229         which preserves existing values.
7230         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7231
7232 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7233
7234         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7235         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7236         greater than FD_SETSIZE.
7237
7238 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7239
7240         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7241         allocated, call __vm_protect to finish enabling the existing space, and
7242         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7243         allocate the remainder.
7244
7245 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7246
7247         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7248         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7249
7250 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7251
7252         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7253         sysdeps/mach/hurd/readlink.c.
7254
7255         * posix/tst-sysconf.c (posix_options): Only use
7256         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7257         _POSIX_SYNCHRONIZED_IO when they are defined
7258         * sysdeps/mach/hurd/bits/posix_opt.h:
7259         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7260         (_XOPEN_REALTIME): Undefine macro.
7261         (_XOPEN_REALTIME_THREADS): Undefine macro.
7262         (_XOPEN_SHM): Undefine macro.
7263         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7264         macro to -1.
7265         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7266         macro to -1.
7267         (_POSIX_ASYNC_IO): Undefine macro.
7268         (_POSIX_PRIORITIZED_IO): Undefine macro.
7269         (_POSIX_SPIN_LOCKS): Define macro to -1.
7270
7271         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7272         SA_NODEFER, SA_RESETHAND.
7273         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7274         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7275         F_DUPFD_CLOEXEC.
7276
7277 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7278
7279         * elf/Makefile (pldd-modules): Define unconditionally.
7280
7281 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7282
7283         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7284
7285 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7286
7287         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7288         Return ENOENT when name is empty.
7289         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7290
7291 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7292
7293         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7294
7295         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7296
7297 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7298
7299         Fix mlock in all cases except non-readable pages.
7300         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7301         instead of VM_PROT_ALL as parameter to __vm_wire function.
7302
7303         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7304         (__mkdir): When path is `/', just fail with EEXIST.
7305         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7306
7307 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7308
7309         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7310         <sys/uio.h> (for writev).
7311         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7312         and <sys/param.h> (for MIN).
7313
7314 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7315
7316         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7317         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7318         if interrupted.
7319
7320 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7321
7322         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7323         Depend on against $(link-rpcuserlibs).
7324
7325 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7326
7327         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7328         (__libc_stack_end): Do not use attribute_relro.
7329         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7330         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7331         to libthread-provided value.
7332         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7333         attribute_relro.
7334
7335 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7336
7337         [BZ #3748]
7338         * bits/libc-lock.h (__libc_once_get): New macro.
7339         * sysdeps/mach/bits/libc-lock.h: Likewise.
7340         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7341         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7342         instead of using implementation details.
7343
7344         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7345         * libio/freopen.c: Likewise.
7346         * libio/freopen64.c: Likewise.
7347         * misc/syslog.c: Likewise.
7348         * nscd/connections.c: Likewise.
7349         * nscd/netgroupcache.c: Likewise.
7350         * sysdeps/posix/getcwd.c: Likewise.
7351
7352 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7353
7354         * math/w_ilogbf.c: Add #include <limits.h>.
7355
7356 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7357
7358         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7359         path instead of returning without unlocking.
7360
7361         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7362         immediate-write ioctls.
7363         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7364
7365 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7366
7367         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7368         __builtin_frame_address instead of making assumptions about the
7369         location of the return address relative to DATA.  Force early load of
7370         the return address.
7371         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7372         __builtin_frame_address.
7373
7374         dup3 for GNU Hurd.
7375         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7376         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7377         implement dup3 and do some further code clean-ups.
7378         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7379         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7380
7381 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7382
7383         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7384
7385         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7386         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7387         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7388         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7389         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7390         d->port.lock.
7391
7392         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7393         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7394         when handler == SIG_ERR, not when handler != SIG_ERR.
7395
7396 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7397
7398         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7399         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7400         definitions.
7401
7402         accept4 for GNU Hurd.
7403         * include/sys/socket.h (__libc_accept4): New prototype.
7404         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7405         to implement __libc_accept4.
7406         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7407         __libc_accept4.
7408         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7409
7410         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7411         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7412         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7413         signal-defines.sym.
7414
7415 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7416
7417         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7418
7419 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7420
7421         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7422         assertion on O_CLOEXEC flag.
7423         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7424         * hurd/intern-fd.c: Likewise.
7425         * hurd/port2fd.c: Likewise.
7426
7427 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7428
7429         [BZ #3906]
7430         * bits/in.h (IPV6_PKTINFO): Define new macro.
7431         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7432
7433 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7434
7435         [BZ #13954]
7436         [BZ #13955]
7437         [BZ #13956]
7438         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7439         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7440         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7441         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7442         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7443         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7444         * math/libm-test.inc (logb_test) : Additional logb tests.
7445
7446 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7447             Andreas Jaeger  <aj@suse.de>
7448
7449         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7450         * configure: Regenerated.
7451         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7452         * config.make.in (link-obsolete-rpc): New substituted variable.
7453         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7454         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7455         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7456         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7457         so that libc.a contains the symbols.
7458         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7459         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7460         * sunrpc/auth_none.c: Likewise.
7461         * sunrpc/auth_unix.c: Likewise.
7462         * sunrpc/authdes_prot.c: Likewise.
7463         * sunrpc/authuxprot.c: Likewise.
7464         * sunrpc/clnt_gen.c: Likewise.
7465         * sunrpc/clnt_perr.c: Likewise.
7466         * sunrpc/clnt_raw.c: Likewise.
7467         * sunrpc/clnt_simp.c: Likewise.
7468         * sunrpc/clnt_tcp.c: Likewise.
7469         * sunrpc/clnt_udp.c: Likewise.
7470         * sunrpc/clnt_unix.c: Likewise.
7471         * sunrpc/des_crypt.c: Likewise.
7472         * sunrpc/des_soft.c: Likewise.
7473         * sunrpc/get_myaddr.c: Likewise.
7474         * sunrpc/key_call.c: Likewise.
7475         * sunrpc/key_prot.c: Likewise.
7476         * sunrpc/netname.c: Likewise.
7477         * sunrpc/pm_getmaps.c: Likewise.
7478         * sunrpc/pm_getport.c: Likewise.
7479         * sunrpc/pmap_clnt.c: Likewise.
7480         * sunrpc/pmap_prot.c: Likewise.
7481         * sunrpc/pmap_prot2.c: Likewise.
7482         * sunrpc/pmap_rmt.c: Likewise.
7483         * sunrpc/publickey.c: Likewise.
7484         * sunrpc/rpc_cmsg.c: Likewise.
7485         * sunrpc/rpc_common.c: Likewise.
7486         * sunrpc/rpc_dtable.c: Likewise.
7487         * sunrpc/rpc_prot.c: Likewise.
7488         * sunrpc/rpc_thread.c: Likewise.
7489         * sunrpc/rtime.c: Likewise.
7490         * sunrpc/svc.c: Likewise.
7491         * sunrpc/svc_auth.c: Likewise.
7492         * sunrpc/svc_raw.c: Likewise.
7493         * sunrpc/svc_run.c: Likewise.
7494         * sunrpc/svc_tcp.c: Likewise.
7495         * sunrpc/svc_udp.c: Likewise.
7496         * sunrpc/svc_unix.c: Likewise.
7497         * sunrpc/svcauth_des.c: Likewise.
7498         * sunrpc/xcrypt.c: Likewise.
7499         * sunrpc/xdr.c: Likewise.
7500         * sunrpc/xdr_array.c: Likewise.
7501         * sunrpc/xdr_float.c: Likewise.
7502         * sunrpc/xdr_intXX_t.c: Likewise.
7503         * sunrpc/xdr_mem.c: Likewise.
7504         * sunrpc/xdr_rec.c: Likewise.
7505         * sunrpc/xdr_ref.c: Likewise.
7506         * sunrpc/xdr_sizeof.c: Likewise.
7507         * sunrpc/xdr_stdio.c: Likewise.
7508
7509 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7510
7511         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7512         change.  Update copyright years.
7513
7514 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7515
7516         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7517
7518 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7519             Joseph Myers  <joseph@codesourcery.com>
7520             Paul Pluzhnikov  <ppluzhnikov@google.com>
7521
7522         [BZ #14012]
7523         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7524         requiring rpcgen.
7525         [cross-compiling] (extra-libs): Likewise.
7526         [cross-compiling] (extra-libs-others): Likewise.
7527         [cross-compiling] (librpcsvc-routines): Likewise.
7528         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7529         [cross-compiling] (omit-deps): Likewise.
7530         (sunrpc-CPPFLAGS): New variable.
7531         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7532         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7533         (cross-rpcgen-objs): New variable.
7534         (extra-objs): Append $(cross-rpcgen-objs).
7535         ($(cross-rpcgen-objs)): New rule.
7536         ($(objpfx)cross-rpcgen): Likewise.
7537         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7538         comment.
7539         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7540         ($(objpfx)x%.stmp): Likewise.
7541         * sunrpc/proto.h [IS_IN_build] (_): Define.
7542         [IS_IN_build] (_libc_intl_domainname): Likewise.
7543
7544 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7545
7546         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7547         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7548         and R_X86_64_TPOFF64.
7549
7550 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7551
7552         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7553         sysdeps/unix/sysv/syscalls.list.
7554         (stime): Likewise.
7555         (utime): Likewise.
7556         * sysdeps/unix/sysv/syscalls.list: Remove file.
7557
7558 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7559
7560         [BZ #3440]
7561         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7562         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7563         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7564         (__LC_IDENTIFICATION): Make these macros useful in #if
7565         expressions, as required by C99.
7566
7567 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7568
7569         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7570         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7571         after this.
7572
7573 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7574
7575         * stdlib/longlong.h: Updated from GCC.
7576
7577 2012-05-09  Andreas Jaeger  <aj@suse.de>
7578
7579         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7580         default is first entry.
7581         (run_mode): Set type.
7582         (main): Remove informal message about syslog.
7583         (options): Fix typo.
7584
7585         [BZ #14053]
7586         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7587         to asm.
7588         (lrint): Likewise.
7589         (llrintf): Likewise.
7590         (llrint): Likewise.
7591         (rint): Likewise.
7592         (rintf): Likewise.
7593         (nearbyint): Likewise.
7594         (nearbyintf): Likewise.
7595
7596 2012-05-09  Andreas Jaeger  <aj@suse.de>
7597             Pedro Alves  <palves@redhat.com>
7598
7599         * nscd/nscd.c (run_mode): Use enum.
7600         (main): Cleanup coding style issue.
7601
7602 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7603             Andreas Jaeger  <aj@suse.de>
7604
7605         * nscd/nscd.c (go_background): Replaced with...
7606         (run_mode): ... this.
7607         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7608         (options): Add -F --foreground.
7609         (main): Implement it.
7610         (parse_opt): Parse it.
7611
7612 2012-05-09  Andreas Jaeger  <aj@suse.de>
7613
7614         [BZ #14083]
7615         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7616         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7617         -Wconversion warning.
7618         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7619         Likewise.
7620
7621 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7622
7623         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7624         == 0.
7625         (LC_ALL): Use macro-int-constant.
7626         (LC_COLLATE): Likewise.
7627         (LC_CTYPE): Likewise.
7628         (LC_MESSAGES): Likewise.
7629         (LC_MONETARY): Likewise.
7630         (LC_NUMERIC): Likewise.
7631         (LC_TIME): Likewise.
7632         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7633         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7634         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7635         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7636         Specify type.
7637         [C99-based standards] (float_t): Expect type.
7638         [C99-based standards] (double_t): Expect type.
7639         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7640         type.
7641         [C99-based standards] (HUGE_VALL): Likewise.
7642         [C99-based standards] (INFINITY): Likewise.
7643         [C99-based standards] (NAN): Likewise.
7644         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7645         [C99-based standards] (FP_NAN): Likewise.
7646         [C99-based standards] (FP_NORMAL): Likewise.
7647         [C99-based standards] (FP_SUBNORMAL): Likewise.
7648         [C99-based standards] (FP_ZERO): Likewise.
7649         [C99-based standards] (FP_FAST_FMA): Use
7650         optional-macro-int-constant.  Specify type.  Require == 1.
7651         [C99-based standards] (FP_FAST_FMAF): Likewise.
7652         [C99-based standards] (FP_FAST_FMAL): Likewise.
7653         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7654         [C99-based standards] (FP_ILOGBNAN): Likewise.
7655         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7656         Specify type.
7657         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7658         [C99-based standards] (math_errhandling): Specify type.
7659         [ISO99 || ISO11] (signgam): Do not allow.
7660         [non-C99-based standards] (copysignf): Do not allow.
7661         [non-C99-based standards] (exp2f): Likewise.
7662         [non-C99-based standards] (log2f): Likewise.
7663         [non-C99-based standards] (modff): Allow.
7664         [non-C99-based standards] (erff): Do not allow.
7665         [non-C99-based standards] (erfcf): Likewise.
7666         [non-C99-based standards] (gammaf): Likewise.
7667         [non-C99-based standards] (hypotf): Likewise.
7668         [non-C99-based standards] (j0f): Likewise.
7669         [non-C99-based standards] (j1f): Likewise.
7670         [non-C99-based standards] (jnf): Likewise.
7671         [non-C99-based standards] (lgammaf): Likewise.
7672         [non-C99-based standards] (tgammaf): Likewise.
7673         [non-C99-based standards] (y0f): Likewise.
7674         [non-C99-based standards] (y1f): Likewise.
7675         [non-C99-based standards] (ynf): Likewise.
7676         [non-C99-based standards] (isnanf): Likewise.
7677         [non-C99-based standards] (acoshf): Likewise.
7678         [non-C99-based standards] (asinhf): Likewise.
7679         [non-C99-based standards] (atanhf): Likewise.
7680         [non-C99-based standards] (cbrtf): Likewise.
7681         [non-C99-based standards] (expm1f): Likewise.
7682         [non-C99-based standards] (ilogbf): Likewise.
7683         [non-C99-based standards] (log1pf): Likewise.
7684         [non-C99-based standards] (logbf): Likewise.
7685         [non-C99-based standards] (nextafterf): Likewise.
7686         [non-C99-based standards] (remainderf): Likewise.
7687         [non-C99-based standards] (rintf): Likewise.
7688         [non-C99-based standards] (scalbf): Likewise.
7689         [non-C99-based standards] (copysignl): Likewise.
7690         [non-C99-based standards] (exp2l): Likewise.
7691         [non-C99-based standards] (log2l): Likewise.
7692         [non-C99-based standards] (modfl): Allow.
7693         [non-C99-based standards] (erfl): Do not allow.
7694         [non-C99-based standards] (erfcl): Likewise.
7695         [non-C99-based standards] (gammal): Likewise.
7696         [non-C99-based standards] (hypotl): Likewise.
7697         [non-C99-based standards] (j0l): Likewise.
7698         [non-C99-based standards] (j1l): Likewise.
7699         [non-C99-based standards] (jnl): Likewise.
7700         [non-C99-based standards] (lgammal): Likewise.
7701         [non-C99-based standards] (tgammal): Likewise.
7702         [non-C99-based standards] (y0l): Likewise.
7703         [non-C99-based standards] (y1l): Likewise.
7704         [non-C99-based standards] (ynl): Likewise.
7705         [non-C99-based standards] (isnanl): Likewise.
7706         [non-C99-based standards] (acoshl): Likewise.
7707         [non-C99-based standards] (asinhl): Likewise.
7708         [non-C99-based standards] (atanhl): Likewise.
7709         [non-C99-based standards] (cbrtl): Likewise.
7710         [non-C99-based standards] (expm1l): Likewise.
7711         [non-C99-based standards] (ilogbl): Likewise.
7712         [non-C99-based standards] (log1pl): Likewise.
7713         [non-C99-based standards] (logbl): Likewise.
7714         [non-C99-based standards] (nextafterl): Likewise.
7715         [non-C99-based standards] (remainderl): Likewise.
7716         [non-C99-based standards] (rintl): Likewise.
7717         [non-C99-based standards] (scalbl): Likewise.
7718         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7719         [non-C99-based standards] (FP_*): Do not allow.
7720         [C99-based standards] (FP_*): Change to
7721         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7722         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7723         allow.
7724         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7725         (SIG_ERR): Likewise.
7726         [X/Open-based standards] (SIG_HOLD): Likewise.
7727         (SIG_IGN): Likewise.
7728         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7729         positive value.
7730         (SIGFPE): Likewise.
7731         (SIGILL): Likewise.
7732         (SIGINT): Likewise.
7733         (SIGSEGV): Likewise.
7734         (SIGTER): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7743         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7748         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7753         [X/Open-based standards] (SIGTRAP): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7758         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7759         allow.
7760
7761 2012-05-08  Ian Wienand  <ianw@vmware.com>
7762
7763         [BZ #14080]
7764         * time/tzset.c (__tzset_parse_tz): Update default rules for
7765         daylight time changes in the Energy Policy Act of 2005.
7766
7767 2012-05-09  Andreas Jaeger  <aj@suse.de>
7768
7769         [BZ #13983]
7770         * elf/ldconfig.c (parse_conf): Change string to make clear that
7771         ldconfig only issued a warning if ld.so.conf does not exist.
7772
7773 2012-05-08  David S. Miller  <davem@davemloft.net>
7774
7775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7776         movxtod instead of popping the value on the stack.
7777
7778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7779
7780 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7781
7782         * config.h.in: Add HAVE_ARM_PCS_VFP.
7783
7784 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7785
7786         [BZ #13979]
7787         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7788         checking but the checks are disabled for any reason.
7789
7790 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7791
7792         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7793         and ELF64_R_TYPE with ELFW(R_TYPE).
7794
7795 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7796
7797         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7798         (ulimit): Likewise.
7799
7800         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7801         (settimeofday): Likewise.
7802
7803 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7804
7805         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7806         a struct th_u2 inside the union, and move tu_block/tu_code into
7807         a new th_u3 union of tu_block/tu_code inside of that.  Move
7808         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7809         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7810         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7811         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7812         (th_stuff): Change to th_u1.tu_stuff.
7813         (th_data): Define.
7814         (th_msg): Change to th_u1.th_u2.tu_data.
7815
7816 2012-05-07  David S. Miller  <davem@davemloft.net>
7817
7818         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7819
7820         [BZ #14074]
7821         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7822         (SETUP_PIC_REG): Use it.
7823         (SETUP_PIC_REG_LEAF): Use it.
7824
7825 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7826
7827         [BZ #13885]
7828         [BZ #13923]
7829         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7830         USE_AS_EXPM1L.
7831         (EXPL_FINITE): Likewise.
7832         (FLDLOG): Likewise.
7833         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7834         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7835         e_expl.S.
7836         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7837         USE_AS_EXPM1L.
7838         (EXPL_FINITE): Likewise.
7839         (FLDLOG): Likewise.
7840         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7841         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7842         e_expl.S.
7843         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7844         test of -max_value argument for long double.
7845         * sysdeps/i386/fpu/libm-test-ulps: Update.
7846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7847
7848 2012-05-06  David S. Miller  <davem@davemloft.net>
7849
7850         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7851         quad soft-float symbols whose references which are compiler
7852         generated.
7853         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7854
7855 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7856
7857         [BZ #13884]
7858         [BZ #13914]
7859         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7860         USE_AS_EXP10L.
7861         (EXPL_FINITE): Likewise.
7862         (FLDLOG): Likewise.
7863         (c0): Likewise.
7864         (c1): Likewise.
7865         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7866         Adjust comments for base varying.
7867         (__expl_finite): Change alias to EXPL_FINITE.
7868         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7869         e_expl.S.
7870         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7871         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7872         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7873         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7874         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7875         USE_AS_EXP10L.
7876         (EXPL_FINITE): Likewise.
7877         (FLDLOG): Likewise.
7878         (c0): Likewise.
7879         (c1): Likewise.
7880         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7881         Adjust comments for base varying.
7882         (__expl_finite): Change alias to EXPL_FINITE.
7883         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7884         tests for bugs.
7885         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7886
7887         [BZ #14064]
7888         * math/libm-test.inc (check_float_internal): Correct ulp
7889         calculation for subnormal expected results.
7890
7891 2012-05-06  Andreas Jaeger  <aj@suse.de>
7892
7893         * Makeconfig (+math-flags): New, set to -frounding-math.
7894         (+cflags): Add +math-flags so that all of glibc gets compiled with
7895         it.
7896
7897         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7898
7899 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7900
7901         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7902         Disable one test.
7903
7904         [BZ #13787]
7905         [BZ #13922]
7906         [BZ #14036]
7907         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7908         (__ieee754_expl): Allow for and saturate large arguments.
7909         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7910         (u_threshold): Likewise.
7911         (__exp): Call __ieee754_exp before checking for overflow and
7912         underflow.
7913         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7914         (u_threshold): Likewise.
7915         (__expf): Call __ieee754_expf before checking for overflow and
7916         underflow.
7917         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7918         (u_threshold): Likewise.
7919         (__expl): Call __ieee754_expl before checking for overflow and
7920         underflow.
7921         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7922         (__ieee754_expl): Allow for and saturate large arguments.
7923         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7924         missing overflow exception on overflow.
7925         (expm1_test): Do not allow missing overflow exception on overflow.
7926
7927         * sysdeps/i386/fpu/e_expl.c: Move to ...
7928         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7929         rather than using inline asm.
7930         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7931         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7932         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7933
7934         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7935         (nice): Likewise.
7936         (poll): Likewise.
7937         (signal): Likewise.
7938         (time): Likewise.
7939         (times): Likewise.
7940
7941 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7942
7943         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7944         sysdeps/unix/common/syscalls.list.
7945         (fchmod): Likewise.
7946         (fchown): Likewise.
7947         (ftruncate): Likewise.
7948         (getrusage): Likewise.
7949         (gettimeofday): Likewise.
7950         (setpgid): Likewise.
7951         (setregid): Likewise.
7952         (setreuid): Likewise.
7953         (sigaction): Likewise.
7954         (truncate): Likewise.
7955         (vhangup): Likewise.
7956         * sysdeps/unix/common/syscalls.list: Remove file.
7957         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7958         * sysdeps/unix/sysv/linux/Implies: Likewise.
7959
7960 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7961
7962         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7963         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7964         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7965         Moved to ...
7966         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7967         Here.
7968         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7969         to ...
7970         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7971         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7972         to ...
7973         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7974         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7975         to ...
7976         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7977         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7978         to ...
7979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7980         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7981         to ...
7982         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7983         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7984         to ...
7985         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7986         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7987         to ...
7988         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7989         Here.
7990         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7991         to ...
7992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7993         Here.
7994         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7995         to ...
7996         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7997         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7998         Moved to ...
7999         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8000         Here.
8001         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8002         to ...
8003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8004
8005 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8006
8007         * sysdeps/unix/common/bits/dirent.h: Remove file.
8008         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8009
8010         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8011         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8012         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8013         * sysdeps/unix/bsd/isatty.c: Likewise.
8014         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8015         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8016         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8017
8018 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8019
8020         [BZ #13563]
8021         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8022         long double comparison inaccuracies.
8023         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8024         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8025
8026 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8027
8028         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8029         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8030
8031 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8032
8033         [BZ #14049]
8034         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8035         nonzero digits before rounding a hex value.
8036         * stdlib/tst-strtod.c (tests): Add another test.
8037
8038 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8039
8040         * sysdeps/s390/fpu/libm-test-ulps: Update.
8041
8042 2012-05-03  Andreas Jaeger  <aj@suse.de>
8043
8044         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8045         does not get optimized out.
8046         (malloc_opt_barrier): New.
8047
8048 2012-05-03  Andreas Jaeger  <aj@suse.de>
8049             Roland McGrath  <roland@hack.frob.com>
8050
8051         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8052         intermediate file deletion.
8053         (generated): Add .symlist files.
8054
8055 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8056
8057         [BZ #13775]
8058         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8059         Redirect under this condition.
8060         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8061         [__USE_GNU] (__dprintf_chk): Not under this condition.
8062         [__USE_GNU] (__vdprintf_chk): Likewise.
8063         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8064         under this condition.
8065         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8066         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8067         [__USE_XOPEN2K8] (vdprintf): Likewise.
8068         [__USE_GNU] (__dprintf_chk): Not under this condition.
8069         [__USE_GNU] (__vdprintf_chk): Likewise.
8070         [__USE_GNU] (dprintf): Likewise.
8071         [__USE_GNU] (vdprintf): Likewise.
8072
8073 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8074
8075         * elf/Makefile (common-generated): Set this instead of generated for
8076         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8077         $(all-built-dso)-derived lists.
8078
8079 2012-05-03  Andreas Jaeger  <aj@suse.de>
8080
8081         * sysdeps/i386/fpu/libm-test-ulps: Update.
8082
8083         * FAQ: Removed.
8084         * FAQ.in: Likewise.
8085         * scripts/gen-FAQ.pl: Likewise.
8086         * manual/install.texi (Installation): Point to online location of
8087         FAQ.
8088         * Makefile (files-for-dist): Remove FAQ.
8089         (FAQ): Remove.
8090
8091 2012-05-02  Allan McRae  <allan@archlinux.org>
8092
8093         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8094         (LDFLAGS-reldepmod5.so): Likewise.
8095         (LDFLAGS-reldep6mod1.so): Likewise.
8096         (LDFLAGS-reldep6mod4.so): Likewise.
8097         (LDFLAGS-reldep8mod3.so): Likewise.
8098         (LDFLAGS-unload4mod1.so): Likewise.
8099         (LDFLAGS-unload4mod2.so): Likewise.
8100         (LDFLAGS-tst-initorder): Likewise.
8101         (LDFLAGS-tst-initordera2.so): Likewise.
8102         (LDFLAGS-tst-initordera3.so): Likewise.
8103         (LDFLAGS-tst-initordera4.so): Likewise.
8104         (LDFLAGS-tst-initorderb2.so): Likewise.
8105         (LDFLAGS-noload): Likewise.
8106         (LDFLAGS-next): Likewise.
8107         (LDFLAGS-order2mod1.so): Likewise.
8108         (LDFLAGS-order2mod2.so): Likewise.
8109         (LDFLAGS-tst-initorder2): Likewise.
8110         (LDFLAGS-tst-initorder2a.so): Likewise.
8111         (LDFLAGS-tst-initorder2b.so): Likewise.
8112         (LDFLAGS-tst-initorder2c.so): Likewise.
8113         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8114
8115 2012-05-02  David S. Miller  <davem@davemloft.net>
8116
8117         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8118
8119 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8120
8121         [BZ #14055]
8122         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8123
8124 2012-05-02  Andreas Jaeger  <aj@suse.de>
8125
8126         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8127         since we manipulate rounding mode.
8128         (CPPFLAGS-test-idouble.c): Likewise.
8129         (CPPFLAGS-test-ifloat.c): Likewise.
8130         (CFLAGS-test-ldouble.c): Likewise.
8131         (CFLAGS-test-double.c): Likewise.
8132         (CFLAGS-test-float.c): Likewise.
8133         (CFLAGS-test-misc.c): Likewise.
8134         (CFLAGS-test-test-fenv.c): Likewise.
8135
8136 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8137
8138         [BZ #2550]
8139         [BZ #2570]
8140         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8141         comparisons to determine direction to adjust input.
8142
8143 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8144
8145         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8146         output to the target.
8147
8148         * scripts/localplt.awk: New file.
8149         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8150         (check-localplt-CFLAGS): Variable removed.
8151         ($(all-built-dso:=.jmprel)): New static pattern rule.
8152         (generated): Add those targets.
8153         (localplt-built-dso): New variable.
8154         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8155
8156         * elf/check-localplt.c: File removed.
8157
8158         * scripts/check-execstack.awk: New file.
8159         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8160         (check-execstack-CFLAGS): Variable removed.
8161         ($(objpfx)check-execstack.h): Target removed.
8162         ($(objpfx)execstack-default): New target.
8163         (generated): Add that instead of check-execstack.h.
8164         ($(all-built-dso:=.phdr)): New static pattern rule.
8165         (generated): Add those targets.
8166         * elf/check-execstack.c: File removed.
8167
8168         * scripts/check-textrel.awk: New file.
8169         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8170         (check-textrel-CFLAGS): Variable removed.
8171         (all-built-dso): Use := to define.o
8172         ($(all-built-dso:=.dyn)): New static pattern rule.
8173         (generated): Add those targets.
8174         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8175         * config.make.in (READELF): New substituted variable.
8176         * elf/check-textrel.c: File removed.
8177
8178 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8179
8180         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8181         allow.
8182         * conform/data/ctype.h-data [C99-based standards] (isblank):
8183         Expect function.
8184         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8185         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8186         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8187         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8188         Specify type.  Require positive value.
8189         (EILSEQ): Likewise.
8190         (ERANGE): Likewise.
8191         [ISO || POSIX] (EILSEQ): Do not expect.
8192         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8193         Specify type.  Require positive value.
8194         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8205         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8206         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8207         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8208         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8209         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8210         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8211         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8212         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8213         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8214         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8215         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8216         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8217         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8218         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8219         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8220         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8221         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8222         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8223         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8224         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8225         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8226         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8227         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8228         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8229         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8230         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8231         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8232         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8233         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8234         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8235         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8236         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8237         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8238         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8239         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8240         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8241         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8242         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8243         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8244         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8245         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8246         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8247         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8248         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8249         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8250         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8251         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8252         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8253         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8254         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8255         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8256         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8257         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8258         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8259         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8260         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8261         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8262         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8263         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8264         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8265         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8266         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8267         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8268         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8269         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8270         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8271         Require >= 2.
8272         (FLT_ROUNDS): Expect as macro, not constant.
8273         (FLT_MANT_DIG): Use macro-int-constant.
8274         (DBL_MANT_DIG): Likewise.
8275         (LDBL_MANT_DIG): Likewise.
8276         (FLT_DIG): Likewise.
8277         (DBL_DIG): Likewise.
8278         (LDBL_DIG): Likewise.
8279         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8280         (DBL_MIN_EXP): Likewise.
8281         (LDBL_MIN_EXP): Likewise.
8282         (FLT_MAX_EXP): Use macro-int-constant.
8283         (DBL_MAX_EXP): Likewise.
8284         (LDBL_MAX_EXP): Likewise.
8285         (FLT_MAX_10_EXP): Likewise.
8286         (DBL_MAX_10_EXP): Likewise.
8287         (LDBL_MAX_10_EXP): Likewise.
8288         (FLT_MAX): Use macro-constant.
8289         (DBL_MAX): Likewise.
8290         (LDBL_MAX): Likewise.
8291         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8292         (DBL_EPSILON): Likewise.
8293         (LDBL_EPSILON): Likewise.
8294         (FLT_MIN): Likewise.
8295         (DBL_MIN): Likewise.
8296         (LDBL_MIN): Likewise.
8297         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8298         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8299         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8300         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8301         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8302         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8303         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8304         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8305         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8306         [ISO11] (FLT_TRUE_MIN): Likewise.
8307         [ISO11] (LDBL_TRUE_MIN): Likewise.
8308         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8309         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8310         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8311         (SCHAR_MAX): Likewise.
8312         (UCHAR_MAX): Likewise.
8313         (CHAR_MIN): Likewise.
8314         (CHAR_MAX): Likewise.
8315         (MB_LEN_MAX): Use macro-int-constant.
8316         (SHRT_MIN): Use macro-int-constant.  Specify type.
8317         (SHRT_MAX): Likewise.
8318         (USHRT_MAX): Likewise.
8319         (INT_MAX): Likewise.
8320         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8321         bound negative.
8322         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8323         bound with "U".
8324         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8325         bound with "L".
8326         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8327         bound negative.  Suffix upper bound with "L".
8328         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8329         bound with "UL".
8330         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8331         Specify type.
8332         [C99-based standards] (LLONG_MAX): Likewise.
8333         [C99-based standards] (ULLONG_MAX): Likewise.
8334         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8335         == 0.
8336         [ISO11] (max_align_t): Require type.
8337         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8338
8339         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8340         from $CFLAGS, without defining away __attribute__ calls.
8341         (checknamespace): Use $CFLAGS_namespace.
8342
8343         * conform/conformtest.pl (@keywords): Only include C99 keywords
8344         for standards based on C99 or C11.
8345
8346         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8347         Disable tests.
8348         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8349         UNIX98]: Likewise.
8350
8351         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8352         usability of symbols in #if.
8353
8354         * conform/conformtest.pl: If macro or constant types start
8355         "promoted:", expect the symbol to be of the following type
8356         promoted by the integer promotions.
8357
8358         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8359         in one place.  Also handle "macro-constant".
8360
8361         * conform/conformtest.pl: Only accept expected macro values with
8362         "==".  Parse all "macro" lines in one place.
8363         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8364
8365         * conform/conformtest.pl: Handle braced types on "constant" lines
8366         instead of handling "typed-constant".
8367         * conform/data/signal.h-data: Use "constant" instead of
8368         "typed-constant".
8369
8370         * conform/conformtest.pl: Handle "optional-" at start of lines in
8371         one place rather than duplicating several cases.  Handle each
8372         format of "macro" line with initial "optional-".
8373
8374         * conform/conformtest.pl: Only accept expected constant or
8375         optional-constant values with "==".  Parse all "constant" lines in
8376         one place.  Parse all "optional-constant" lines in one place.
8377         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8378         * conform/data/fmtmsg.h-data: Likewise.
8379         * conform/data/netinet/in.h-data: Likewise.
8380         * conform/data/tar.h-data: Likewise.
8381         * conform/data/limits.h-data: Use "==" form on "constant" and
8382         "optional-constant" lines.
8383
8384         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8385         Use -std=c99 for XOPEN2K.
8386         (@knownproblems): Remove.
8387         (newtoken): Don't check %isknown.
8388
8389         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8390         Do not expect macro.
8391         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8403         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8404         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8421         [XPG3] (acosh): Likewise.
8422         [XPG3] (asinh): Likewise.
8423         [XPG3] (atanh): Likewise.
8424         [XPG3] (cbrt): Likewise.
8425         [XPG3] (expm1): Likewise.
8426         [XPG3] (ilogb): Likewise.
8427         [XPG3] (log1p): Likewise.
8428         [XPG3] (logb): Likewise.
8429         [XPG3] (nextafter): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8432         [XPG3] (remainder): Likewise.
8433         [XPG3] (rint): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8441         [UNIX98 || XOPEN2K] (scalb): Expect.
8442         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8443         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8574         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8575         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8576         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8577         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8578         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8579
8580         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8581         _XOPEN_SOURCE_EXTENDED for XPG4.
8582
8583         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8584
8585         * Makeconfig (localtime): Remove variable.
8586         (inst_localtime-file): Likewise.
8587
8588 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8589
8590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8591         Update.
8592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8593         Update.
8594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8595         Update.
8596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8597         Update.
8598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8599         Update.
8600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8601         Update.
8602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8603         Update.
8604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8605         Update.
8606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8607         Update.
8608
8609 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8610
8611         [BZ #2550]
8612         [BZ #2570]
8613         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8614         comparisons to determine direction to adjust input.
8615         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8616         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8617         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8618         Likewise.
8619         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8620         Likewise.
8621         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8622         Likewise.
8623         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8624         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8625         Likewise.
8626         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8627         Likewise.
8628         * math/libm-test.inc (nexttoward_test): Add more tests.
8629
8630 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8631
8632         [BZ #14040]
8633         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8634         in version GLIBC_2.1, not GLIBC_2.0.
8635         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8636         Likewise.
8637
8638 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8639
8640         [BZ #13942]
8641         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8642         (1 - x) * (1 + x).
8643         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8644         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8645         * math/libm-test.inc (acos_test): Add more tests.
8646         (asin_test): Likewise.
8647         * sysdeps/i386/fpu/libm-test-ulps: Update.
8648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8649
8650         [BZ #14034]
8651         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8652         of square root.
8653         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8654         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8655         * math/libm-test.inc (acos_test_tonearest): New function.
8656         (acos_test_towardzero): Likewise.
8657         (acos_test_downward): Likewise.
8658         (acos_test_upward): Likewise.
8659         (asin_test_tonearest): Likewise.
8660         (asin_test_towardzero): Likewise.
8661         (asin_test_downward): Likewise.
8662         (asin_test_upward): Likewise.
8663         (main): Call the new functions.
8664         * sysdeps/i386/fpu/libm-test-ulps: Update.
8665         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8666
8667         [BZ #13884]
8668         [BZ #13924]
8669         * math/e_exp10.c: Include <float.h>.
8670         (__ieee754_exp10): Handle underflow here rather than multiplying
8671         large negative argument by M_LN10.
8672         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8673         of __ieee754_expf.
8674         * math/e_exp10l.c: Include <float.h>.
8675         (__ieee754_exp10l): Handle underflow here rather than multiplying
8676         large negative argument by M_LN10l.
8677         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8678         spurious overflow exception on underflow.
8679
8680 2012-04-29  Marek Polacek  <polacek@redhat.com>
8681
8682         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8683         (__fortify_function): New macro.
8684         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8685         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8686         __extern_always_inline.
8687         * libio/bits/stdio2.h: Likewise.
8688         * libio/bits/stdio.h: Likewise.
8689         * string/string.h: Likewise.
8690         * string/bits/string3.h: Likewise.
8691         * include/stdio.h: Likewise.
8692         * stdlib/bits/stdlib.h: Likewise.
8693         * stdlib/stdlib.h: Likewise.
8694         * rt/bits/mqueue2.h: Likewise.
8695         * rt/mqueue.h: Likewise.
8696         * posix/bits/unistd.h: Likewise.
8697         * posix/unistd.h: Likewise.
8698         * io/bits/poll2.h: Likewise.
8699         * io/bits/fcntl2.h: Likewise.
8700         * io/fcntl.h: Likewise.
8701         * io/sys/poll.h: Likewise.
8702         * misc/bits/syslog.h: Likewise.
8703         * misc/bits/syslog-ldbl.h: Likewise.
8704         * misc/sys/syslog.h: Likewise.
8705         * socket/bits/socket2.h: Likewise.
8706         * socket/sys/socket.h: Likewise.
8707         * debug/tst-chk1.c: Likewise.
8708         * wcsmbs/bits/wchar2.h: Likewise.
8709         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8710         * wcsmbs/wchar.h: Likewise.
8711
8712 2012-04-29  Andreas Jaeger  <aj@suse.de>
8713
8714         * Makerules (tests): Remove enable-check-abi protection.
8715         (check-abi-warn): Remove.
8716         (check-abi-%): Remove check-abi-warn usage.
8717
8718         * configure.in: Remove check-abi configure option.
8719         * configure: Regenerated.
8720         * config.make.in (enable-check-abi): Remove.
8721
8722 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8723
8724         [BZ #14033]
8725         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8726         double functions to double *_finite functions.
8727
8728         [BZ #13941]
8729         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8730         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8731         LDBL_MIN_EXP.
8732         * stdio-common/Makefile (tests): Add tst-sprintf3.
8733         * stdio-common/tst-sprintf3.c: New file.
8734
8735         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8736         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8737
8738 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8739
8740         * conform/conformtest.pl: Remove duplicate typed-constant
8741         handling.
8742
8743 2012-04-28  David S. Miller  <davem@davemloft.net>
8744
8745         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8746         (check-abi-%): Remove AWK script prerequisite and explicit
8747         abilist directory.
8748         (check-abi): Rewrite to just diff the symlist with the abilist.
8749         (config-tls, config-abi-config): Delete, no longer used.
8750         (update-abi-%): Remove AWK script and explicit abilist directory.
8751         (update-abi): Rewrite to simply compare and conditionally copy the
8752         symlist and the sysdep abilist file.  Remove update-abi-config
8753         checks.
8754         * abilist/ld.abilist: Remove.
8755         * abilist/libBrokenLocale.abilist: Remove.
8756         * abilist/libanl.abilist: Remove.
8757         * abilist/libcrypt.abilist: Remove.
8758         * abilist/libdl.abilist: Remove.
8759         * abilist/librt.abilist: Remove.
8760         * abilist/libthread_db.abilist: Remove.
8761         * abilist/libutil.abilist: Remove.
8762         * scripts/extract-abilist.awk: Remove.
8763         * scripts/merge-abilist.awk: Remove.
8764         * sysdeps/generic/libcidn.abilist: New file.
8765         * sysdeps/generic/libnss_compat.abilist: New file.
8766         * sysdeps/generic/libnss_db.abilist: New file.
8767         * sysdeps/generic/libnss_dns.abilist: New file.
8768         * sysdeps/generic/libnss_files.abilist: New file.
8769         * sysdeps/generic/libnss_hesiod.abilist: New file.
8770         * sysdeps/generic/libnss_nis.abilist: New file.
8771         * sysdeps/generic/libnss_nisplus.abilist: New file.
8772         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8773         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8774         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8775         file.
8776         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8777         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8778         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8779         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8780         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8781         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8782         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8783         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8784         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8785         file.
8786         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8787         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8788         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8789         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8790         file.
8791         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8792         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8793         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8794         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8795         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8796         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8797         file.
8798         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8799         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8800         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8801         file.
8802         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8803         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8804         New file.
8805         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8806         New file.
8807         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8808         New file.
8809         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8810         New file.
8811         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8812         New file.
8813         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8814         New file.
8815         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8816         New file.
8817         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8818         New file.
8819         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8820         New file.
8821         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8822         New file.
8823         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8824         New file.
8825         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8826         New file.
8827         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8828         New file.
8829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8830         file.
8831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8832         New file.
8833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8834         New file.
8835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8836         file.
8837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8838         New file.
8839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8840         New file.
8841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8842         file.
8843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8844         New file.
8845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8846         New file.
8847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8848         New file.
8849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8850         New file.
8851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8852         New file.
8853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8854         New file.
8855         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8856         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8857         file.
8858         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8859         New file.
8860         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8861         file.
8862         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8863         file.
8864         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8865         file.
8866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8867         file.
8868         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8869         file.
8870         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8871         New file.
8872         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8873         file.
8874         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8875         file.
8876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8877         New file.
8878         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8879         file.
8880         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8882         file.
8883         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8884         New file.
8885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8886         file.
8887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8888         file.
8889         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8890         file.
8891         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8892         file.
8893         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8894         file.
8895         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8896         New file.
8897         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8898         file.
8899         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8900         file.
8901         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8902         New file.
8903         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8904         file.
8905         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8906         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8907         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8908         file.
8909         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8910         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8911         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8912         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8913         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8914         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8915         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8916         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8917         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8918         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8919         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8920         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8921         file.
8922         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8923         New file.
8924         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8925         file.
8926         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8927         file.
8928         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8929         file.
8930         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8931         file.
8932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8933         file.
8934         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8935         New file.
8936         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8937         New file.
8938         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8939         file.
8940         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8941         New file.
8942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8943         file.
8944         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8945         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8946         file.
8947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8948         New file.
8949         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8950         file.
8951         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8952         file.
8953         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8954         file.
8955         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8956         file.
8957         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8958         file.
8959         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8960         New file.
8961         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8962         New file.
8963         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8964         file.
8965         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8966         New file.
8967         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8968         file.
8969
8970 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8971
8972         * conform/conformtest.pl: Fix typo in handling typed-constant from
8973         allow-header.
8974
8975 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8976
8977         * README: Cut down references to pre-2.6 Linux kernels and
8978         Linuxthreads.  Update lists of configurations in libc and ports
8979         and sort alphabetically.  Say "or newer" with Linux kernel version
8980         requirements.
8981
8982         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8983
8984 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8985
8986         [BZ #887]
8987         * math/libm-test.inc (logb_test_downward): New test to expose
8988         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8989         rounding mode.
8990
8991 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8992
8993         [BZ #14027]
8994         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8995         to be done.
8996         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8997         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8998
8999 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9000
9001         * sysdeps/unix/i386/brk.S: Remove file.
9002         * sysdeps/unix/i386/dl-brk.S: Likewise.
9003         * sysdeps/unix/i386/pipe.S: Likewise.
9004         * sysdeps/unix/i386/sigreturn.S: Likewise.
9005         * sysdeps/unix/i386/syscall.S: Likewise.
9006         * sysdeps/unix/i386/vfork.S: Likewise.
9007         * sysdeps/unix/i386/wait.S: Likewise.
9008
9009         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9010         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9011
9012         * configure.in (arm*-none*): Do not allow without
9013         --enable-hacker-mode.
9014         (netbsd*): Remove case setting base_os.
9015         (386bsd*): Likewise.
9016         (freebsd*): Likewise.
9017         (bsdi*): Likewise.
9018         (osf*): Likewise.
9019         (sunos*): Likewise.
9020         (ultrix*): Likewise.
9021         (newsos*): Likewise.
9022         (dynix*): Likewise.
9023         (*bsd*): Likewise.
9024         (sysv*): Likewise.
9025         (isc*): Likewise.
9026         (esix*): Likewise.
9027         (sco*): Likewise.
9028         (minix*): Likewise.
9029         (irix4*): Likewise.
9030         (irix6*): Likewise.
9031         (solaris[2-9]*): Likewise.
9032         (none): Likewise.
9033         * configure: Regenerated.
9034
9035 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9036
9037         [BZ #11521]
9038         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9039         overflow or cancellation in calculating denominator.
9040         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9041         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9042         down expression to avoid unexpected rounding in newer GCCs.
9043         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9044
9045 2012-04-26  David S. Miller  <davem@davemloft.net>
9046
9047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9048         long-double compat symbols.
9049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9054         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9059         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9060         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9062
9063 2012-04-25  David S. Miller  <davem@davemloft.net>
9064
9065         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9066         HWCAP_* values only after the memory barriers have been defined.
9067         (atomic_full_barrier): Define.
9068         (atomic_read_barrier): Define.
9069         (atomic_write_barrier): Define.
9070
9071 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9072
9073         * shlib-versions: Add libgcc_s version information.
9074         * sysdeps/generic/libgcc_s.h: Remove.
9075         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9076         libgcc_s.h.
9077         * sysdeps/gnu/unwind-resume.c: Likewise.
9078         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9079
9080 2012-04-25  David S. Miller  <davem@davemloft.net>
9081
9082         * sysdeps/unix/sparc/brk.S: Delete.
9083         * sysdeps/unix/sparc/dl-brk.S: Delete.
9084         * sysdeps/unix/sparc/pipe.S: Delete.
9085         * sysdeps/unix/sparc/sysdep.S: Delete.
9086         * sysdeps/unix/sparc/sysdep.h: Delete.
9087         * sysdeps/unix/sparc/vfork.S: Delete.
9088         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9089         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9090         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9091         ret_ERRVAL, r0, r1, MOVE): Define.
9092         (JUMPTARGET): Remove.
9093         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9094         sysdeps/unix/sparc/sysdep.h
9095         (ENTRY, END): Remove.
9096         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9097
9098 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9099
9100         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9101         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9102         -DIS_IN_build.
9103
9104         * timezone/README: Update upstream location and email address for
9105         tzcode and tzdata.
9106         * timezone/zdump.c: Update from tzcode 2012b.
9107         * timezone/zic.c: Likewise.
9108
9109         * configure.in (libc_cv_as_needed): Remove test.
9110         * configure: Regenerated.
9111         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9112         conditional definition.
9113         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9114         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9115         * config.make.in (have-as-needed): Remove variable.
9116
9117 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9118             Paul Pluzhnikov  <ppluzhnikov@google.com>
9119
9120         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9121         strings correctly.
9122
9123 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9124
9125         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9126         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9127         * sysdeps/sh/strlen.S: Likewise.
9128
9129 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9130
9131         * sysdeps/unix/fork.S: Remove file.
9132         * sysdeps/unix/i386/fork.S: Likewise.
9133         * sysdeps/unix/sparc/fork.S: Likewise.
9134
9135         * sysdeps/unix/system.c: Remove file.
9136         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9137
9138         * sysdeps/unix/getegid.S: Remove file.
9139         * sysdeps/unix/geteuid.S: Likewise.
9140
9141 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9142
9143         * scripts/check-localplt.awk: New file.
9144         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9145         of diff.
9146         * scripts/data/localplt-generic.data: Add a comment.
9147
9148         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9149         NODE when __dir_mkfile failed.
9150         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9151         Reported by Ludovic Courtès <ludo@gnu.org>.
9152
9153 2012-04-24  Andreas Jaeger  <aj@suse.de>
9154
9155         * Makerules (common-clean): Also remove gen-as-const-headers
9156         files.
9157
9158 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9159
9160         * Makerules (native-compile): Do not change working directory for
9161         build.  Use $(OUTPUT_OPTION) in command.
9162         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9163
9164 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9165
9166         [BZ #13886]
9167         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9168         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9169         * math/libm-test.inc (floor_test): Add more tests.
9170         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9171
9172 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9173
9174         * sysdeps/unix/getdents.c: Remove file.
9175         * sysdeps/unix/sysv/getdents.c: Likewise.
9176         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9177
9178         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9179         sysdeps/unix/mman/syscalls.list.
9180         (mmap): Likewise.
9181         (mprotect): Likewise.
9182         (msync): Likewise.
9183         (munmap): Likewise.
9184         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9185         * sysdeps/unix/mman/syscalls.list: Remove.
9186         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9187
9188         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9189         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9190         * configure: Regenerated.
9191         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9192         $(libgcc_s_suffix).
9193         * config.make.in (libgcc_s_suffix): Remove variable.
9194
9195 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9196
9197         * sysdeps/unix/sysv/gethostname.c: Move to ...
9198         * sysdeps/posix/gethostname.c: ... here.
9199
9200         * sysdeps/unix/execve.S: Remove file.
9201
9202         * sysdeps/unix/_exit.S: Remove file.
9203
9204 2012-04-23  Andreas Jaeger  <aj@suse.de>
9205
9206         [BZ #13739]
9207         * manual/Makefile: Remove make dist support, there's no
9208         need for a stand-alone documentation tar ball.
9209         (TEXI2DVI): Define always, it's not in Makeconfig.
9210         (dist): Removed.
9211         (tar-it): Removed.
9212         (edition): Removed.
9213         (glibc-doc-$(edition).tar): Removed
9214         (%.Z): Removed.
9215         (%.gz): Removed.
9216         (%.uu): Removed.
9217         (ETAGS): Remove, it's in Makeconfig.
9218         (move-if-change): Remove, it's in Makeconfig.
9219
9220 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9221
9222         [BZ #13970]
9223         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9224         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9225         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9226         (strtod_l, strtof_l, strtold_l): Remove __wur.
9227         It is not necessarily an error to ignore strtol's return value.
9228         One can reliably look at the stored endptr to decide whether
9229         the number had valid syntax.
9230
9231 2012-04-21  Andreas Jaeger  <aj@suse.de>
9232
9233         [BZ #13739]
9234         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9235
9236 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9237
9238         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9239         * sysdeps/unix/sysv/Versions: Remove file.
9240
9241 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9242
9243         [BZ #13927]
9244         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9245
9246 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9247
9248         [BZ #7064]
9249         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9250         version from __vm86.
9251
9252 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9253
9254         * sysdeps/unix/common/lxstat.c: Remove file.
9255         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9256
9257         * sysdeps/unix/sysv/Makefile: Remove file.
9258
9259         * sysdeps/unix/sysv/direct.h: Remove file.
9260
9261         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9262         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9263         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9264         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9265         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9266         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9267         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9268
9269         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9270
9271         * sysdeps/unix/xmknod.c: Remove file.
9272         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9273
9274         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9275
9276         * sysdeps/unix/sysv/i386/time.S: Remove file.
9277
9278         * sysdeps/unix/fxstat.c: Remove file.
9279         * sysdeps/unix/xstat.c: Likewise.
9280         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9281
9282         * sysdeps/unix/sysv/sigaction.c: Remove file.
9283
9284         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9285         (sysdep_headers): Remove variable.
9286         [termio.h not in sysdep_headers] (generated): Likewise.
9287         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9288         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9289         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9290         * sysdeps/unix/sysv/tcflow.c: Likewise.
9291         * sysdeps/unix/sysv/tcflush.c: Likewise.
9292         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9293         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9294         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9295         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9296         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9297
9298         * sysdeps/unix/siglist.c: Remove file.
9299
9300         * sysdeps/unix/getppid.S: Remove file.
9301
9302         * sysdeps/unix/mkdir.c: Remove file.
9303         * sysdeps/unix/rmdir.c: Likewise.
9304
9305 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9306
9307         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9308         ERR_MAX value.
9309         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9310         errlist-compat value.
9311
9312 2012-04-18  David S. Miller  <davem@davemloft.net>
9313
9314         * sysdeps/generic/memcopy.h (reg_char): Delete.
9315         * debug/strcat_chk.c: Use char, not reg_char.
9316         * debug/strcpy_chk.c: Likewise.
9317         * debug/strncat_chk.c: Likewise.
9318         * debug/strncpy_chk.c: Likewise.
9319         * string/memchr.c: Likewise.
9320         * string/memrchr.c: Likewise.
9321         * string/rawmemchr.c: Likewise.
9322         * string/strcat.c: Likewise.
9323         * string/strchr.c: Likewise.
9324         * string/strchrnul.c: Likewise.
9325         * string/strcmp.c: Likewise.
9326         * string/strcpy.c: Likewise.
9327         * string/strncat.c: Likewise.
9328         * string/strncmp.c: Likewise.
9329         * string/strncpy.c: Likewise.
9330
9331 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9332
9333         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9334         __builtin_memcopy is called when src and dest ranges are known to not
9335         overlap.
9336
9337 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9338
9339         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9340         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9341         fwd_align_merge macro call.
9342         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9343         bwd_align_merge macro call.
9344         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9345
9346 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9347
9348         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9349         bwd_align_merge macros.
9350         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9351         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9352         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9353
9354 2012-04-18  David S. Miller  <davem@davemloft.net>
9355
9356         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9357
9358 2012-04-18  Andreas Jaeger  <aj@suse.de>
9359
9360         [BZ# 6794]
9361         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9362         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9363         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9364
9365         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9366         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9367         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9368
9369         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9370         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9371         Adjust for changed ldbl-128 files.
9372
9373         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9374         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9375         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9376
9377 2012-04-17  David S. Miller  <davem@davemloft.net>
9378
9379         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9380
9381 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9382
9383         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9384         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9385         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9386         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9387         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9388         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9389
9390 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9391
9392         [BZ #6794]
9393         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9394         * math/libm-test.inc: Add ilogb errno and exception tests.
9395         * math/w_ilogb.c: New file: ilogb wrapper.
9396         * math/w_ilogbf.c: New file: ilogbf wrapper.
9397         * math/w_ilogbl.c: New file: ilogbl wrapper.
9398         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9399         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9400         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9401         exception being thrown with 0.0 as argument.
9402         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9403         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9404         exception being thrown with 0.0 as argument.
9405         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9406         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9407         exception being thrown with 0.0 as argument.
9408         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9409         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9410         exception being thrown with 0.0 as argument.
9411         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9412         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9413         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9414         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9415         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9416         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9417         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9418         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9419         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9420
9421 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9422
9423         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9424         with altivec.
9425
9426 2012-04-16  Marek Polacek  <polacek@redhat.com>
9427
9428         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9429
9430 2012-04-16  Marek Polacek  <polacek@redhat.com>
9431
9432         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9433         operands of fdivp instruction.
9434
9435 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9436
9437         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9438         * elf/tst-auditmod3b.c: Likewise.
9439         * elf/tst-auditmod4b.c: Likewise.
9440         * elf/tst-auditmod5b.c: Likewise.
9441         * elf/tst-auditmod6b.c: Likewise.
9442         * elf/tst-auditmod6c.c: Likewise.
9443         * elf/tst-auditmod7b.c: Likewise.
9444         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9445         * sysdeps/x86_64/preconfigure.in: Likewise.
9446         * sysdeps/x86_64/preconfigure: Regenerated.
9447
9448 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9449
9450         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9451         __ILP32__.
9452
9453 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9454
9455         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9456         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9457
9458 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9459
9460         [BZ #13973]
9461         * locale/iso-639.def: Fix gl language name. Spotted by
9462         Yaron Shahrabani.
9463
9464 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9465
9466         [BZ #2074]
9467         * libio/libio.h (__io_write_fn): Update comment.
9468
9469 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9470
9471         [BZ #2074]
9472         * stdio.texi (Hook Functions): The user provided writer function
9473         is not allowed to return -1.
9474
9475 2012-04-11  David S. Miller  <davem@davemloft.net>
9476
9477         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9478
9479 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9480
9481         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9482         Add a leading slash to rtkaio.
9483
9484 2012-04-11  Jim Meyering  <meyering@redhat.com>
9485
9486         [BZ #11959]
9487         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9488         It is not necessarily an error to ignore fwrite's return
9489         value.  One can reliably use ferror to test for errors after
9490         the fact.
9491
9492 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9493
9494         * bits/types.h (__snseconds_t): New type.
9495         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9496
9497         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9498         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9499         (__SNSECONDS_T_TYPE): Likewise.
9500         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9501         (__SNSECONDS_T_TYPE): Likewise.
9502         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9503         (__SNSECONDS_T_TYPE): Likewise.
9504
9505 2012-04-10  Andreas Jaeger  <aj@suse.de>
9506
9507         [BZ #2636]
9508         * manual/time.texi (Processor Time): Return type of times is
9509         elapsed real time since an arbitrary point in the past.
9510         (CPU Time): Move CLK_TCK from here...
9511         (Processor Time): ...to here.  Correct description.
9512         * manual/conf.texi (Constants for Sysconf): Correct description of
9513         _SC_CLK_TCK.
9514
9515 2012-04-10  David S. Miller  <davem@davemloft.net>
9516
9517         [BZ #13967]
9518         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9519         where the is a gap between DT_REL(A) and DT_JMPREL.
9520
9521 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9522
9523         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9524         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9525         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9526
9527 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9528
9529         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9530         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9531         (dl_main): Handle --inhibit-cache.
9532         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9533         _dl_inhibit_cache.
9534         * elf/dl-load.c (_dl_map_object): Use it.
9535         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9536
9537 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9538
9539         [BZ #13872]
9540         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9541         (__ieee754_powl): Saturate large exponents rather than testing for
9542         overflow of y*log2(x).
9543         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9544         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9545         exceptions.
9546
9547         [BZ #11521]
9548         * math/s_ctan.c: Include <float.h>.
9549         (__ctan): Avoid internal overflow or cancellation in calculating
9550         denominator.
9551         * math/s_ctanf.c: Likewise.
9552         * math/s_ctanl.c: Likewise.
9553         * math/s_ctanh.c: Likewise.
9554         * math/s_ctanhf.c: Likewise.
9555         * math/s_ctanhl.c: Likewise.
9556         * math/libm-test.inc (ctan_test): Add more tests.
9557         (ctanh_test): Likewise.
9558         * sysdeps/i386/fpu/libm-test-ulps: Update.
9559         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9560
9561 2012-04-09  Andreas Jaeger  <aj@suse.de>
9562
9563         [BZ #6894]
9564         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9565         is an optional BSD extension.
9566
9567         [BZ #10254]
9568         * manual/stdio.texi (Opening Streams): Document additional fopen
9569         parameters.
9570
9571 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9572
9573         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9574         %eax without telling the compiler.
9575
9576 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9577
9578         [BZ # 13963]
9579         * manual/install.texi: Use sourceware.org.
9580
9581 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9582
9583         [BZ #13873]
9584         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9585         (__ieee754_pow): Generate overflow and underflow using huge*huge
9586         and tiny*tiny rather than just returning constant infinity or zero
9587         for large exponents.
9588         * math/libm-test.inc (pow_test): Require overflow exceptions for
9589         applicable cases of large exponents.
9590
9591         [BZ #706]
9592         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9593         (__ieee754_pow): Use iterative multiplication algorithm only for
9594         integer exponents with absolute value below 1024.  Check for odd
9595         integer exponents when using algorithm for real exponents.
9596         * math/libm-test.inc (pow_test): Add more tests.
9597         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9598
9599 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9600
9601         [BZ #13705]
9602         * math/libm-test.inc (exp_test): Do not allow overflow exception
9603         on underflow test.
9604
9605 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9606
9607         [BZ #13705]
9608         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9609         instead of __kernel_standard_f.
9610
9611 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9612
9613         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9614         * sysdeps/x86_64/memset_chk.S: Likewise.
9615
9616 2012-04-08  Andreas Jaeger  <aj@suse.de>
9617
9618         [BZ #10153]
9619         * manual/startup.texi (Environment Access): Describe return value
9620         for putenv and setenv.
9621
9622         [BZ #6895]
9623         * manual/filesys.texi (Directory Entries): Add description for
9624         DT_LNK.
9625
9626         [BZ #6890]
9627         * manual/filesys.texi (Directory Entries): Clarify that it's file
9628         system not operating system in the description of DT_UNKNOWN.
9629
9630         [BZ #6578]
9631         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9632
9633 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9634
9635         [BZ #6649]
9636         * manual/llio.texi (Opening and Closing Files): Add cross
9637         reference to explain mode argument.
9638
9639 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9640
9641         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9642         * sysdeps/x86_64/memset_chk.S: Likewise.
9643
9644 2012-04-07  David S. Miller  <davem@davemloft.net>
9645
9646         * elf/elf.h (R_SPARC_WDISP10): Define.
9647         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9648         R_SPARC_SIZE32.
9649         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9650         R_SPARC_SIZE64 and R_SPARC_H34.
9651
9652 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9653
9654         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9655         conditions and remove no longer applicable assertion.
9656
9657 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9658
9659         * bits/byteswap.h: Include <features.h>.
9660         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9661         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9662
9663 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9664
9665         * bits/byteswap.h (__bswap_16): Removed.
9666         Include <bits/byteswap-16.h> to get __bswap_16.
9667         * sysdeps/i386/bits/byteswap.h: Likewise.
9668         * sysdeps/s390/bits/byteswap.h: Likewise.
9669         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9670         * bits/byteswap-16.h: New file.
9671         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9672         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9673         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9674         * string/Makefile (headers): Add bits/byteswap-16.h.
9675
9676 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9677
9678         [BZ #13895]
9679         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9680         extra indirection.
9681         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9682         * nss/tst-nss-static.c: New.
9683
9684 2012-04-06  Robert Millan  <rmh@gnu.org>
9685
9686         [BZ #6486]
9687         * manual/llio.texi (File Position Primitive): lseek
9688         refers to WHENCE when it really means OFFSET.
9689
9690 2012-04-06  Andreas Jaeger  <aj@suse.de>
9691
9692         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9693         strncmp declarations.
9694
9695         * abilist/libc.abilist: Add __poll and __ppoll.
9696
9697 2012-04-05  David S. Miller  <davem@davemloft.net>
9698
9699         * scripts/check-local-headers.sh: Accept a host triplet in the
9700         path matched by the exclude regexp.
9701
9702         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9703         definition.
9704         * sysdeps/powerpc/powerpc32/dl-machine.h
9705         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9706         * sysdeps/s390/s390-32/dl-machine.h
9707         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9708         * sysdeps/sparc/sparc32/dl-machine.h
9709         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9710         * sysdeps/sparc/sparc64/dl-machine.h
9711         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9712
9713         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9714         lazy binding.
9715         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9716         undefined symbol errors.
9717
9718         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9719         DT_NEEDED entries.
9720
9721 2012-04-05  Michael Matz  <matz@suse.de>
9722
9723         [BZ #13592]
9724         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9725
9726 2012-04-05  Andreas Jaeger  <aj@suse.de>
9727
9728         [BZ #13908]
9729         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9730         comment.
9731
9732 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9733
9734         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9735         which ROUND is no valid rounding mode.
9736
9737 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9738
9739         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9740         read again.
9741         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9742
9743 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9744
9745         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9746         an exception using FPU order intentionally.
9747
9748 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9749
9750         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9751         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9752         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9753         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9754
9755 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9756
9757         [BZ #12340]
9758         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9759         EINVAL when BUFLEN is too smal.
9760
9761 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9762
9763         [BZ #13553]
9764         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9765         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9766
9767 2012-04-03  Andreas Jaeger  <aj@suse.de>
9768
9769         [BZ #13938]
9770         * manual/setjmp.texi (System V contexts): Fix sentence.
9771
9772         [BZ #13926]
9773         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9774         New macro for this case.
9775         [!__GNUC__] (__bswap_64): New inline function for this case.
9776         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9777         * bits/byteswap.h: Likewise.
9778         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9779         ull, guard with __GLIBC_HAVE_LONG_LONG.
9780
9781         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9782         __GLIBC_HAVE_LONG_LONG.
9783
9784         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9785         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9786
9787 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9788
9789         [BZ #13691]
9790         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9791         inptr and inend, rather than using last_ch.
9792
9793 2012-04-02  David S. Miller  <davem@davemloft.net>
9794
9795         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9796         * stdio-common/printf-parse.h (read_int): Change return type to
9797         'int', return -1 on INT_MAX overflow.
9798         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9799         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9800         overflows INT_MAX.  Check for overflow of in-format-string precision
9801         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9802         SIZE_MAX not INT_MAX for integer overflow test.
9803         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9804         skip the construct in the format string but do not record anything.
9805         * stdio-common/bug22.c: Adjust to test both width/prevision
9806         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9807         explicitly for proper errno values.
9808
9809 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9810
9811         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9812         CHAR_MAX.
9813         * string/test-strcmp.c [! WIDE]: Likewise.
9814         * time/tst-mktime2.c: Likewise for INT_MAX.
9815         * string/test-string.h: #include <sys/param.h> for MIN.
9816
9817         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9818         * sysdeps/i386/init-first.c (init): Likewise.
9819         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9820         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9821         * sysdeps/sh/init-first.c (init): Likewise.
9822
9823 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9824
9825         * po/ru.po: Update from translation team.
9826         * po/vi.po: Likewise.
9827
9828 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9829
9830         * resolv/nss_dns/dns-host.c: Merge copyright years.
9831
9832 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9833
9834         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9835         Optimize memcpy with prefetch if
9836         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9837         src, dst pointers have unequal 16 byte alignments.
9838
9839 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9840
9841         [BZ #13928]
9842         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9843         from a CNAME entry and return the minimum ttl for the query.
9844         (gaih_getanswer_slice): Likewise.
9845
9846 2012-03-30  Jeff Law  <law@redhat.com>
9847
9848         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9849         due to long keys.
9850         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9851         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9852
9853         * resolv/nss_dns/dns-host.c: Update copyright year.
9854
9855 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9856
9857         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9858         requests to save a system call.  Fix check that all bytes are sent.
9859
9860         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9861         comments for sendmmsg.
9862
9863 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9864
9865         [BZ #13691]
9866         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9867         with only 1 character between 0x0041 and 0x01b0.
9868         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9869         * wcsmbs/tst-mbsnrtowcs.c: New file.
9870
9871 2012-03-29  David S. Miller  <davem@davemloft.net>
9872
9873         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9874         small copies by hand.
9875
9876 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9877
9878         [BZ #13761]
9879         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9880         _nss_compat_initgroups_dyn): Fall back to malloc/free
9881         for large group memberships.
9882
9883 2012-03-28  David S. Miller  <davem@davemloft.net>
9884
9885         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9886         that branches into memcpy.
9887         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9888         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9889         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9890         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9891         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9892         bits.
9893         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9894         implementation too.
9895         * sysdeps/sparc/mempcpy.S: New file.
9896
9897         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9898         the IFUNC routine in the libc case.
9899         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9900
9901         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9902         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9903         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9904         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9905         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9906         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9907         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9908         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9909
9910         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9911         loop to 256 bytes instead of 64 bytes and fix test signedness.
9912
9913         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9914         * sysdeps/sparc/sparc32/Makefile: rather than here...
9915         * sysdeps/sparc/sparc64/Makefile: and here.
9916
9917 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9918
9919         * malloc/mallocbug.c: Avoid warnings about unused variables.
9920
9921 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9922
9923         [BZ #13760]
9924         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9925         in the right place. Discard and retry query if response is
9926         larger than input buffer size.
9927
9928 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9929
9930         [BZ #369]
9931         [BZ #2678]
9932         [BZ #3866]
9933         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9934         x for large integer exponent.
9935         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9936         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9937         sign of result as needed afterwards.
9938         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9939         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9940         result for underflowing pow the same as for overflow.
9941         (__kernel_standard_l): Handle powl overflow and underflow here
9942         rather than calling __kernel_standard.
9943         * math/libm-test.inc (pow_test): Add more tests.
9944
9945         [BZ #3868]
9946         [BZ #13879]
9947         [BZ #13910]
9948         [BZ #13911]
9949         [BZ #13912]
9950         [BZ #13913]
9951         [BZ #13915]
9952         [BZ #13916]
9953         [BZ #13917]
9954         [BZ #13918]
9955         [BZ #13919]
9956         [BZ #13920]
9957         [BZ #13921]
9958         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9959         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9960         (__kernel_standard_l): New function.
9961         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9962         __kernel_standard.
9963         * math/w_acosl.c (__acosl): Likewise.
9964         * math/w_asinl.c (__asinl): Likewise.
9965         * math/w_atan2l.c (__atan2l): Likewise.
9966         * math/w_atanhl.c (__atanhl): Likewise.
9967         * math/w_coshl.c (__coshl): Likewise.
9968         * math/w_exp10l.c (__exp10l): Likewise.
9969         * math/w_exp2l.c (__exp2l): Likewise.
9970         * math/w_fmodl.c (__fmodl): Likewise.
9971         * math/w_hypotl.c (__hypotl): Likewise.
9972         * math/w_j0l.c (__j0l, __y0l): Likewise.
9973         * math/w_j1l.c (__j1l, __y1l): Likewise.
9974         * math/w_jnl.c (__jnl, __ynl): Likewise.
9975         * math/w_lgammal.c (__lgammal): Likewise.
9976         * math/w_log10l.c (__log10l): Likewise.
9977         * math/w_log2l.c (__log2l): Likewise.
9978         * math/w_logl.c (__logl): Likewise.
9979         * math/w_powl.c (__powl): Likewise.
9980         * math/w_remainderl.c (__remainderl): Likewise.
9981         * math/w_scalbl.c (sysv_scalbl): Likewise.
9982         * math/w_sinhl.c (__sinhl): Likewise.
9983         * math/w_sqrtl.c (__sqrtl): Likewise.
9984         * math/w_tgammal.c (__tgammal): Likewise.
9985         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9986         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9987         * math/libm-test.inc (acos_test): Add more tests.
9988         (acosh_test): Likewise.
9989         (asin_test): Likewise.
9990         (atanh_test): Likewise.
9991         (exp_test): Likewise.
9992         (exp10_test): Likewise.
9993         (exp2_test): Likewise.
9994         (expm1_test): Likewise.
9995         (lgamma_test): Likewise.
9996         (log_test): Likewise.
9997         (log10_test): Likewise.
9998         (log1p_test): Likewise.
9999         (log2_test): Likewise.
10000         (pow_test): Do not allow some spurious overflow exceptions.
10001         (sqrt_test): Add more tests.
10002         (tgamma_test): Likewise.
10003         (y0_test): Likewise.
10004         (y1_test): Likewise.
10005         (yn_test): Likewise.
10006
10007 2012-03-27  Anton Blanchard  <anton@samba.org>
10008
10009         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10010         MAP_HUGETLB.
10011         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10012         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10013         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10014
10015 2012-03-27  David S. Miller  <davem@davemloft.net>
10016
10017         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10018
10019         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10020         have-as-vis3 check.
10021
10022 2012-03-27  Andreas Jaeger  <aj@suse.de>
10023
10024         * sysdeps/x86_64/elf/configure.in: Moved to ...
10025         * sysdeps/x86_64/configure.in: ... here.
10026         * sysdeps/x86_64/elf/start.S: Moved to ...
10027         * sysdeps/x86_64/start.S: ... here.
10028         * sysdeps/x86_64/elf/configure: Delete.
10029
10030         * sysdeps/x86_64/configure.in: Merge contents from
10031         sysdeps/i386/configure.in (without i686 check).
10032
10033         * sysdeps/i386/elf/Versions: Merge into ...
10034         * sysdeps/i386/Versions: ... this.
10035         * sysdeps/i386/elf/Versions: Delete file.
10036         * sysdeps/i386/elf/start.S: Moved to ...
10037         * sysdeps/i386/start.S: ...here.
10038         * sysdeps/i386/elf/configure.in: Merge into...
10039         * sysdeps/i386/configure.in: ...here.
10040         * sysdeps/i386/elf/configure.in: Delete file.
10041         * sysdeps/i386/elf/configure: Delete file.
10042
10043         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10044         * debug/backtracesyms.c: ... here.
10045         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10046         * debug/backtracesymsfd.c: ... here.
10047         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10048         * sysdeps/generic/ifunc-sel.h: ... here.
10049
10050         * sysdeps/unix/i386/start.c: Delete file.
10051         * sysdeps/unix/sparc/start.c: Delete file.
10052         * sysdeps/unix/start.c: Delete file.
10053
10054         * sysdeps/sh/elf/configure.in: Moved to ...
10055         * sysdeps/sh/configure.in: ... here.
10056         * sysdeps/sh/elf/start.S: Moved to ...
10057         * sysdeps/sh/start.S: ... here.
10058         * sysdeps/sh/elf/configure: Delete file.
10059
10060         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10061         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10062         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10063         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10064         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10065         * sysdeps/powerpc/powerpc64/start.S: here.
10066         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10067         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10068         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10069         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10070         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10071
10072         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10073         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10074         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10075         * sysdeps/powerpc/powerpc32/start.S: ... here.
10076         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10077         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10078         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10079
10080         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10081         * sysdeps/powerpc/ifunc-sel.h: ... here.
10082         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10083         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10084
10085         * sysdeps/sparc/elf/configure.in: Moved to ...
10086         * sysdeps/sparc/configure.in: ... here.
10087         * sysdeps/sparc/elf/configure: Delete file.
10088         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10089         * sysdeps/sparc/sparc32/start.S: ... here.
10090         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10091         * sysdeps/sparc/sparc64/start.S: ... here.
10092         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10093         * sysdeps/sparc/sparc32/Makefile: ... this.
10094         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10095         * sysdeps/sparc/sparc64/Makefile: ... this.
10096
10097         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10098         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10099         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10100         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10101         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10102         * sysdeps/s390/s390-32/setjmp.S: ... here.
10103         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10104         * sysdeps/s390/s390-32/configure.in: ... here.
10105         * sysdeps/s390/s390-32/elf/configure: Delete file.
10106         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10107         * sysdeps/s390/s390-32/start.S: ... here.
10108
10109         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10110         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10111         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10112         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10113         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10114         * sysdeps/s390/s390-64/setjmp.S: ... here.
10115         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10116         * sysdeps/s390/s390-64/configure.in: ... here
10117         * sysdeps/s390/s390-64/elf/configure: Delete file.
10118         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10119         * sysdeps/s390/s390-64/start.S: ... here.
10120         * sysdeps/s390/s390-64/elf/configure: Delete.
10121
10122         * configure.in: Remove support for elf directories in sysdeps.
10123
10124         * configure: Regenerated.
10125         * sysdeps/i386/configure: Regenerated.
10126         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10127         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10128         * sysdeps/s390/s390-32/configure: Regenerated.
10129         * sysdeps/s390/s390-64/configure: Regenerated.
10130         * sysdeps/sh/configure: Regenerated.
10131         * sysdeps/sparc/configure: Regenerated.
10132         * sysdeps/x86_64/configure: Regenerated.
10133
10134 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10135
10136         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10137
10138         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10139         denormal result into account.
10140
10141 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10142
10143         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10144         Reported by Allan McRae <allan@archlinux.org>.
10145
10146 2012-03-23  Jeff Law  <law@redhat.com>
10147
10148         * nss/getnssent.c (__nss_getent): Fix typo.
10149
10150 2012-03-23  David S. Miller  <davem@davemloft.net>
10151
10152         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10153
10154 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10155
10156         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10157         to pad to uint64_t for each field.
10158         (dl_tls_index): Replace unsigned long with uint64_t.
10159
10160 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10161         Paul Pluzhnikov  <ppluzhnikov@google.com>
10162
10163         [BZ #6528]
10164         * grp/Makefile (otherlibs): Don't set it.
10165         * inet/Makefile (otherlibs): Likewise.
10166         * login/Makefile (otherlibs): Likewise.
10167         * nscd/Makefile (otherlibs): Likewise.
10168         * posix/Makefile (otherlibs): Likewise.
10169         * pwd/Makefile (otherlibs): Likewise.
10170         * rt/Makefile (otherlibs): Likewise.
10171         * sunrpc/Makefile (otherlibs): Likewise.
10172         * nss/Makefile (otherlibs): Likewise.
10173         Add libnss_files to routines and static-only-routines.
10174         ($(objpfx)getent): Remove rule.
10175         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10176         static-only-routines.
10177
10178 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10179
10180         [BZ #13892]
10181         * math/s_cexp.c: Include <float.h>.
10182         (__cexp): Handle exp result overflowing not necessarily
10183         overflowing both real and imaginary parts of result.
10184         * math/s_cexpf.c: Likewise.
10185         * math/s_cexpl.c: Likewise.
10186         * math/libm-test.inc (cexp_test): Add more tests.
10187         * sysdeps/i386/fpu/libm-test-ulps: Update.
10188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10189
10190 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10191
10192         * include/link.h (ELFW): New macro.
10193         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10194         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10195
10196 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10197
10198         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10199         with uint64_t.
10200
10201 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10202
10203         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10204         declaration.
10205         (struct La_x32_retval): Likewise.
10206
10207 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10208
10209         * sysdeps/x86_64/preconfigure.in: New file.
10210         * sysdeps/x86_64/preconfigure: New generated file.
10211
10212 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10213
10214         [BZ #13824]
10215         * math/e_exp2l.c: Include <float.h>.
10216         (__ieee754_exp2l): Handle overflow and underflow cases
10217         separately.  Only pass fractional part of argument to
10218         __ieee754_expl.
10219         * math/libm-test.inc (exp2_test): Add more tests.
10220
10221         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10222         negating x to take absolute value.
10223         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10224         Likewise.
10225         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10226         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10227         Likewise.
10228         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10229         computing low part if x was negated.
10230         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10231
10232 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10233
10234         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10235         la_x32_gnu_pltexit.
10236         (pltexit): Cast int_retval to ptrdiff_t.
10237         * elf/tst-auditmod3b.c: Likewise.
10238         * elf/tst-auditmod4b.c: Likewise.
10239         * elf/tst-auditmod5b.c: Likewise.
10240         * elf/tst-auditmod6b.c: Likewise.
10241         * elf/tst-auditmod6c.c: Likewise.
10242         * elf/tst-auditmod7b.c: Likewise.
10243
10244         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10245         and x32_gnu_pltexit.
10246
10247         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10248         __ELF_NATIVE_CLASS.
10249         (La_x32_regs): New macro.
10250         (La_x32_retval): Likewise.
10251         (la_x32_gnu_pltenter): New function prototype.
10252         (la_x32_gnu_pltexit): Likewise.
10253
10254 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10255
10256         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10257         exponent.
10258
10259         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10260
10261         * configure.in (libc_cv_cc_nofma): Check for option to disable
10262         generation of FMA instructions.
10263         * configure: Regenerate.
10264         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10265         * sysdeps/ieee754/dbl-64/Makefile: New file.
10266         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10267         Remove brandred-fma4.
10268         (CFLAGS-brandred-fma4.c): Remove.
10269         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10270         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10271         define.
10272         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10273         define.
10274
10275 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10276
10277         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10278         LLONG_MAX != LONG_MAX.
10279         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10280         (_fitoa_word): Likewise.
10281         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10282         LLONG_MAX != LONG_MAX.
10283         * stdio-common/_itowa.h: Include <_itoa.h>.
10284         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10285         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10286         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10287         only if not defined.
10288         (_ITOA_WORD_TYPE): Likewise.
10289         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10290         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10291
10292 2012-03-21  David S. Miller  <davem@davemloft.net>
10293
10294         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10295
10296 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10297
10298         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10299         of x86_64 when setting libc_cv_slibdir, libdir and
10300         libc_cv_localedir.
10301         * sysdeps/unix/sysv/linux/configure: Regenerated.
10302
10303 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10304
10305         * manual/lang.texi (Old Varargs): Remove section.
10306         (How Variadic): Update menu.
10307         (va_start): Do not mention varargs.h.
10308
10309 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10310             Joseph Myers  <joseph@codesourcery.com>
10311
10312         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10313         link test.
10314         * configure: Regenerated.
10315
10316 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10317
10318         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10319         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10320         conformtest.pl
10321
10322 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10323
10324         * NOTES: Remove.
10325         * Makefile (files-for-dist): Remove NOTES.
10326         (NOTES): Remove rule.
10327         * README: Don't refer to NOTES.
10328         * manual/creature.texi: Don't include macros.texi.
10329         * manual/intro.texi (creature.texi): Remove comment referring to
10330         NOTES.
10331
10332         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10333         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10334         * configure: Regenerated.
10335         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10336         LIBC_TRY_CC_OPTION.
10337         (libc_cv_as_i686): Likewise.
10338         (libc_cv_cc_avx): Likewise.
10339         (libc_cv_cc_sse2avx): Likewise.
10340         (libc_cv_cc_fma4): Likewise.
10341         (libc_cv_cc_novzeroupper): Likewise.
10342         * sysdeps/i386/configure: Regenerated.
10343
10344         [BZ #13883]
10345         * sysdeps/i386/fpu/s_cexp.S: Remove.
10346         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10347         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10348         * math/libm-test.inc (cexp_test): Add more tests.
10349         * sysdeps/i386/fpu/libm-test-ulps: Update.
10350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10351
10352 2012-03-21  Allan McRae  <allan@archlinux.org>
10353
10354         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10355
10356 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10357
10358         [BZ #13871]
10359         * math/w_exp2.c: Do not include <float.h>.
10360         (o_threshold, u_threshold): Remove.
10361         (__exp2): Calculate result before checking finiteness and calling
10362         __kernel_standard.
10363         * math/w_exp2f.c: Likewise.
10364         * math/w_exp2l.c: Likewise.
10365         * math/libm-test.inc (exp2_test): Require overflow exception for
10366         1e6 input.
10367
10368         [BZ #3866]
10369         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10370         range of signed 64-bit integers before using fistpll.  Remove
10371         checks for whether integers fit in mantissa bits.
10372         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10373         the range of signed 32-bit integers before using fistpl.  Remove
10374         checks for whether integers fit in mantissa bits.
10375         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10376         (__ieee754_powl): Test for y outside the range of signed 64-bit
10377         integers before using fistpll.  Reduce 64-bit values to 63-bit
10378         ones as needed.
10379         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10380         divide-by-zero is raised for zero to large negative powers.
10381         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10382         (__ieee754_powl): Test for y outside the range of signed 64-bit
10383         integers before using fistpll.  Reduce 64-bit values to 63-bit
10384         ones as needed.
10385         * math/libm-test.inc (pow_test): Add more tests.
10386
10387 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10388
10389         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10390         <stdio-common/_itoa.h>.
10391         * debug/segfault.c: Likewise.
10392         * elf/dl-cache.c: Likewise.
10393         * elf/dl-minimal.c: Likewise.
10394         * elf/dl-misc.c: Likewise.
10395         * elf/dl-sysdep.c: Likewise.
10396         * elf/dl-version.c: Likewise.
10397         * elf/rtld.c: Likewise.
10398         * hurd/hurdsock.c: Likewise.
10399         * hurd/lookup-retry.c: Likewise.
10400         * malloc/malloc.c: Likewise.
10401         * malloc/mtrace.c: Likewise.
10402         * nscd/nscd_getgr_r.c: Likewise.
10403         * nscd/nscd_getpw_r.c: Likewise.
10404         * nscd/nscd_getserv_r.c: Likewise.
10405         * posix/getopt_init.c: Likewise.
10406         * posix/wordexp.c: Likewise.
10407         * stdio-common/_itoa.c: Likewise.
10408         * stdio-common/printf_fphex.c: Likewise.
10409         * stdio-common/vfprintf.c: Likewise.
10410         * string/_strerror.c: Likewise.
10411         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10412         * sysdeps/i386/i686/hp-timing.h: Likewise.
10413         * sysdeps/mach/_strerror.c: Likewise.
10414         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10415         * sysdeps/mach/hurd/sethostid.c: Likewise.
10416         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10417         * sysdeps/mach/xpg-strerror.c: Likewise.
10418         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10419         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10420         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10421         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10422         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10423         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10424         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10425         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10426         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10427         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10428         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10429         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10430         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10431         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10432         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10433         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10434         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10435         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10436         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10437         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10438         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10439
10440         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10441
10442         * stdio-common/_itoa.h: Moved to ...
10443         * sysdeps/generic/_itoa.h: Here.
10444
10445         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10446
10447         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10448         instead of "_itoa.h" and "_itowa.h".
10449         * stdio-common/vfprintf.: Likewise.
10450
10451 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10452
10453         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10454         <bits/wordsize.h>.
10455         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10456         (__signbit): Likwise.
10457         (llrintf): Likwise.
10458         (llrint): Likwise.
10459
10460 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10461
10462         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10463         __WORDSIZE != 64.
10464
10465 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10466
10467         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10468         OVERFLOW_EXCEPTION_OK.
10469         * math/libm-test.inc ("Philosophy"): Update comment about
10470         exception testing.
10471         (OVERFLOW_EXCEPTION): Define.
10472         (OVERFLOW_EXCEPTION_OK): Likewise.
10473         (INVALID_EXCEPTION_OK): Renumber.
10474         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10475         (IGNORE_ZERO_INF_SIGN): Likewise.
10476         (test_exceptions): Handle FE_OVERFLOW.
10477         (exp10_test): Expect overflow exceptions.
10478         (exp2_test): Likewise.
10479         (expm1_test): Likewise.
10480         (nextafter_test): Likewise.
10481         (pow_test): Likewise.
10482         (scalbn_test): Likewise.
10483         (scalbln_test): Likewise.
10484
10485 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10486
10487         * sysdeps/x86_64/bits/atomic.h
10488         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10489         64bit integer.
10490         (atomic_exchange_acq): Likewise.
10491         (__arch_exchange_and_add_body): Likewise.
10492         (__arch_add_body): Likewise.
10493         (atomic_add_negative): Likewise.
10494         (atomic_add_zero): Likewise.
10495
10496 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10497
10498         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10499         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10500
10501 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10502
10503         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10504         Check __x86_64__ instead of __WORDSIZE.
10505
10506 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10507
10508         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10509
10510 2012-03-19  David S. Miller  <davem@davemloft.net>
10511
10512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10513
10514         * sysdeps/sparc/fpu/fenv_private.h: New file.
10515         * sysdeps/sparc/fpu/math_private.h: Use it.
10516         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10517         Remove.
10518         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10519         (libc_feholdexcept_setroundl): Remove.
10520         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10521         Remove.
10522         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10523         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10524
10525 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10526
10527         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10528         int64_t instead of long int.
10529         (INSERT_WORDS64): Likwise.
10530
10531 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10532
10533         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10534         _Unwind_GetCFA return to _Unwind_Ptr first.
10535
10536 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10537
10538         [BZ #13629]
10539         * math/s_clog.c: Include <float.h>.
10540         (__clog): Scale large or subnormal inputs.
10541         * math/s_clogf.c: Likewise.
10542         * math/s_clogl.c: Likewise.
10543         * math/s_clog10.c: Include <float.h>.
10544         (M_LOG10_2): Define.
10545         (__clog10): Scale large or subnormal inputs.
10546         * math/s_clog10f.c: Likewise.
10547         * math/s_clog10l.c: Likewise.
10548         * math/libm-test.inc (clog_test): Add more tests.
10549         (clog10_test): Likewise.
10550         * sysdeps/i386/fpu/libm-test-ulps: Update.
10551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10552
10553         [BZ #11451]
10554         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10555         x and y.
10556         * math/libm-test.inc (atan2_test): Add another test.
10557
10558         * Makerules (common-objdir-compile): Remove.
10559         * sysdeps/unix/Makefile (config-generated): Do not add
10560         $(unix-generated) to variable.
10561         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10562         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10563         Remove rule.
10564         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10565         Likewise.
10566         [generic bits/local_lim.h] (before-compile): Do not append to
10567         variable.
10568         [generic bits/local_lim.h] (common-generated): Likewise.
10569         [generic sys/param.h] (before-compile): Do not append to variable.
10570         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10571         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10572         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10573         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10574         include.
10575         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10576         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10577         [generic sys/param.h] ($(addprefix
10578         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10579         [generic sys/param.h] (common-generated): Do not append to
10580         variable.
10581         [generic sys/param.h] (sysdep_headers): Likewise.
10582         [generic bits/errno.h] (before-compile): Do not append to
10583         variable.
10584         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10585         rule.
10586         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10587         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10588         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10589         [generic bits/errno.h] (common-generated): Do not append to
10590         variable.
10591         [generic bits/ioctls.h] (before-compile): Do not append to
10592         variable.
10593         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10594         rule.
10595         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10596         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10597         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10598         rule.
10599         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10600         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10601         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10602         [generic bits/ioctls.h] (common-generated): Do not append to
10603         variable.
10604         [generic sys/syscall.h] (syscall.h): Remove variable.
10605         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10606         rule.
10607         [generic sys/syscall.h] (before-compile): Do not append to
10608         variable.
10609         [generic sys/syscall.h] (common-generated): Likewise.
10610         * sysdeps/unix/errnos-tmpl.c: Remove file.
10611         * sysdeps/unix/errnos.awk: Likewise.
10612         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10613         * sysdeps/unix/ioctls.awk: Likewise.
10614         * sysdeps/unix/mk-local_lim.c: Likewise.
10615         * sysdeps/unix/snarf-ioctls: Likewise.
10616
10617 2012-03-19  Richard Henderson  <rth@twiddle.net>
10618
10619         * sysdeps/i386/fpu/fenv_private.h: New file.
10620         * sysdeps/i386/fpu/math_private.h: Use it.
10621         (math_opt_barrier, math_force_eval): Remove.
10622         (libc_feholdexcept_setround_53bit): Remove.
10623         (libc_feupdateenv_53bit): Remove.
10624         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10625         (math_opt_barrier, math_force_eval): Remove.
10626         (libc_feholdexcept): Remove.
10627         (libc_feholdexcept_setround): Remove.
10628         (libc_fetestexcept, libc_fesetenv): Remove.
10629         (libc_feupdateenv_test): Remove.
10630         (libc_feupdateenv, libc_feholdsetround): Remove.
10631         (libc_feresetround): Remove.
10632
10633         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10634         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10635
10636         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10637         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10638         (libc_feupdateenv_testl): New.
10639         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10640         (libc_feupdateenv_testf): New.
10641         (libc_feupdateenv): Use libc_feupdateenv_test.
10642         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10643         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10644
10645         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10646         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10647         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10648         (libc_feresetround_noex): New.
10649         (libc_feresetround_noexf): New.
10650         (libc_feresetround_noexl): New.
10651         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10652         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10653         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10654         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10655         SET_RESTORE_ROUND.
10656         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10657         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10658         (__cos): Likewise.
10659         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10660         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10661         SET_RESTORE_ROUND_NOEX.
10662         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10663         SET_RESTORE_ROUND_NOEXF.
10664         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10665         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10666         (libc_feholdsetroundf): New.
10667         (libc_feresetround, libc_feresetroundf): New.
10668
10669         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10670         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10671         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10672
10673         * sysdeps/generic/math_private.h: Include <fenv.h>.
10674         (default_libc_feholdexcept): New.
10675         (default_libc_feholdexcept_setround): New.
10676         (default_libc_fesetenv, default_libc_feupdateenv): New.
10677         (libc_feholdexcept): Only define if undefined.
10678         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10679         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10680         (libc_feholdexcept_setroundl): Likewise.
10681         (libc_feholdexcept_setround_53bit): Likewise.
10682         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10683         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10684         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10685         (libc_feupdateenv_53bit): Likewise.
10686         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10687         (libc_feholdexcept): Convert from macro to inline function.
10688         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10689         (libc_fesetenv, libc_feupdateenv): Likewise.
10690
10691         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10692         not previously defined.
10693         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10694         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10695         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10696         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10697         * sysdeps/ieee754/flt-32/math_private.h: New file.
10698         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10699         math_private.h below SET_FLOAT_WORD.
10700         (__isnan, __isinf_ns, __finite): Remove.
10701         (__isnanf, __isinf_nsf, __finitef): Remove.
10702
10703 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10704
10705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10706
10707 2012-03-17  David S. Miller  <davem@davemloft.net>
10708
10709         [BZ #6471]
10710         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10711         for 2.16.
10712
10713 2012-03-16  David S. Miller  <davem@davemloft.net>
10714
10715         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10716         warnings.
10717
10718         [BZ #6471]
10719         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10720         properly.
10721         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10722         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10723         sysdep_routines when subdir is sysvipc.
10724         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10725         __getshmlba helper.
10726
10727         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10728
10729 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10730
10731         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10732         [__LP64__].
10733
10734 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10735
10736         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10737         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10738         (__lround): Renamed to ...
10739         (__llround): This.  Replace long int with long long int.
10740         Define lround functions as aliases of llround functions.
10741         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10742
10743 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10744
10745         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10746         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10747         adresses to uintptr_t.  Replace "long int" and "unsigned long
10748         int" with "greg_t" on va_arg.
10749
10750 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10751
10752         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10753         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10754
10755         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10756         Move e_machine check before EI_CLASS check.  Handle x32
10757         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10758         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10759         SKIP_EM_IA_64 and include
10760         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10761
10762         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10763         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10764         (add_system_dir): New macro.
10765
10766         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10767         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10768
10769 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10770
10771         [BZ #2551]
10772         [BZ #2552]
10773         [BZ #2553]
10774         [BZ #2554]
10775         [BZ #2562]
10776         [BZ #2563]
10777         [BZ #2565]
10778         [BZ #2566]
10779         [BZ #2576]
10780         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10781         (y0): Likewise.
10782         * math/w_j0f.c (j0f): Likewise.
10783         (y0f): Likewise.
10784         * math/w_j0l.c (__j0l): Likewise.
10785         (__y0l): Likewise.
10786         * math/w_j1.c (j1): Likewise.
10787         (y1): Likewise.
10788         * math/w_j1f.c (j1f): Likewise.
10789         (y1f): Likewise.
10790         * math/w_j1l.c (__j1l): Likewise.
10791         (__y1l): Likewise.
10792         * math/w_jn.c (jn): Likewise.
10793         (yn): Likewise.
10794         * math/w_jnf.c (jnf): Likewise.
10795         (ynf): Likewise.
10796         * math/w_jnl.c (__jnl): Likewise.
10797         (__ynl): Likewise.
10798         * math/libm-test.inc (j0_test): Add more tests.
10799         (j1_test): Likewise.
10800         (jn_test): Likewise.  Add trailing semicolon to existing test.
10801         (y0_test): Likewise.
10802         (y1_test): Likewise.
10803         * sysdeps/i386/fpu/libm-test-ulps: Update.
10804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10805
10806         [BZ #13851]
10807         [BZ #13854]
10808         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10809         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10810         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10811         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10812         (__tanl): Set errno for infinite argument.
10813         * sysdeps/i386/fpu/mptan.c: Remove.
10814         * sysdeps/i386/fpu/s_tan.S: Likewise.
10815         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10816         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10817         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10818         * math/libm-test.inc (tan_test): Add more tests and enable more
10819         tests for double and long double.
10820         * sysdeps/i386/fpu/libm-test-ulps: Update.
10821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10822
10823 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10824
10825         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10826         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10827
10828 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10829
10830         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10831         * configure.in: Use it for both main tree and add-ons.
10832         * configure: Regenerated.
10833
10834 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10835
10836         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10837
10838 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10839
10840         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10841         in comment.
10842
10843         [BZ #13851]
10844         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10845         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10846         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10847         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10849         infinite argument.
10850         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10851         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10852         != 0 for prec == 2.
10853         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10854         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10855         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10856         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10857         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10858         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10859         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10860         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10861         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10862         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10863         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10864         * math/libm-test.inc (cos_test): Add more tests and enable more
10865         tests for long double.
10866         (sin_test): Likewise.
10867         (sincos_test): Likewise.
10868         * sysdeps/i386/fpu/libm-test-ulps: Update.
10869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10870
10871 2012-03-16  David S. Miller  <davem@davemloft.net>
10872
10873         * sysdeps/sparc/fpu/math_private.h: New file.
10874
10875 2012-03-15  David S. Miller  <davem@davemloft.net>
10876
10877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10878         file.
10879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10881         file.
10882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10883         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10884         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10885         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10886         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10887         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10888         sysdep routines.
10889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10890
10891         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10892         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10893
10894         * sysdeps/sparc/sparc-ifunc.h: New file.
10895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10896         sparc-ifunc.h
10897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10899         Likewise.
10900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10901         Likewise.
10902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10906         Likewise.
10907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10912         Likewise.
10913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10914         Likewise.
10915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10919         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10920         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10921         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10922         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10923         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10924         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10925         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10926         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10927         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10928         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10929         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10930         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10931         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10932         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10933         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10934         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10935         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10936         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10937         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10938         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10939
10940 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10941
10942         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10943         scaling.
10944         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10945
10946 2012-03-15  Andreas Jaeger  <aj@suse.de>
10947
10948         [BZ #13852]
10949         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10950         ieee754/flt-32 implementation for sin, cos and sincos.
10951         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10952         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10953         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10954         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10955         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10956         ieee754/flt-32 implementation for tan.
10957
10958         * math/libm-test.inc (cos_test): Enable some large input tests for
10959         float as well
10960         (sin_test): Likewise.
10961         (sincos_test): Likewise.
10962         (tan_test): Add tests for large input.
10963
10964         * sysdeps/i386/fpu/libm-test-ulps: Update.
10965
10966 2012-03-15  Andreas Jaeger  <aj@suse.de>
10967
10968         [BZ #13658]
10969         * math/libm-test.inc (cos_test): Add more test cases.
10970         (sin_test): Likewise.
10971         (sincos_test): Likewise.
10972
10973 2012-03-15  Andreas Jaeger  <aj@suse.de>
10974
10975         [BZ #13837]
10976         * math/libm-test.inc (cos_test): Add a test case for large input
10977         value.
10978         (sin_test): Likewise.
10979         (sincos_test): Likewise.
10980
10981 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10982         Joseph Myers  <joseph@codesourcery.com>
10983
10984         [BZ #13658]
10985         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10986         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10987         * sysdeps/i386/fpu/branred.c: Likewise.
10988         * sysdeps/i386/fpu/dosincos.c: Likewise.
10989         * sysdeps/i386/fpu/mpa.c: Likewise.
10990         * sysdeps/i386/fpu/s_cos.S: Likewise.
10991         * sysdeps/i386/fpu/s_sin.S: Likewise.
10992         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10993         * sysdeps/i386/fpu/sincos32.c: Likewise.
10994
10995         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10996         Define.
10997         (libc_feupdateenv_53bit): Define.
10998         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10999         Define.
11000         (libc_feupdateenv_53bit): Define.
11001
11002         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11003         53 bit (without extend i386 double precision).
11004
11005         * math/libm-test.inc (sincos_test): Add tests for large input.
11006         (sin): Likewise.
11007         (cos): Likewise.
11008
11009         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11010
11011 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11012
11013         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11014
11015 2012-03-15  David S. Miller  <davem@davemloft.net>
11016
11017         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11018         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11019         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11020         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11021         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11022         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11024         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11025         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11026         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11027         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11028         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11029         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11030         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11031         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11033         file.
11034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11036         file.
11037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11039         file.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11042         file.
11043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11044         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11045         fmin/fmax sysdep routines.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11047
11048 2012-03-14  David S. Miller  <davem@davemloft.net>
11049
11050         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11051         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11052         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11053         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11054         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11055         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11056         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11057         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11058         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11059         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11060         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11061         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11062         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11063         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11064         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11065         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11066         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11067         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11068         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11069         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11070         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11071         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11072         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11073         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11074         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11075         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11076         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11077         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11078         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11079         routines.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11081         file.
11082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11084         file.
11085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11087         file.
11088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11090         file.
11091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11093         file.
11094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11096         file.
11097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11098         file.
11099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11100         file.
11101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11102         file.
11103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11104         New file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11106         file.
11107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11108         file.
11109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11111         file.
11112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11114         file.
11115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11117         file.
11118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11120         VIS3 routines.
11121
11122         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11123         New file.
11124
11125         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11126
11127         * sysdeps/sparc/configure.in: New file.
11128         * sysdeps/sparc/configure: Generate.
11129         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11130         * configure: Regenerate.
11131         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11132         * config.make.in (have-as-vis3): New.
11133         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11134         available use -Av9d instead of -Av9a.
11135         * sysdeps/sparc/sparc64/Makefile: Likewise.
11136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11138         New file.
11139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11140         file.
11141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11142         New file.
11143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11144         file.
11145         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11146         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11147         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11148         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11149         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11150
11151         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11152         fzeros/fnegs to load 0x80000000 into a float register instead of
11153         using the stack.
11154         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11155
11156 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11157
11158         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11159         bits/syscall.h.
11160         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11161         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11162         ($(inst_includedir)/bits/syscall.h): Remove rule.
11163         ($(objpfx)bits/syscall.d): Include instead of
11164         $(objpfx)syscall-list.d.
11165         (generated): Change syscall-list.h and syscall-list.d to
11166         bits/syscall.h and bits/syscall.d.
11167
11168 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11169
11170         [BZ #13846]
11171         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11172
11173 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11174
11175         [BZ #13841]
11176         * math/s_csqrt.c: Include <float.h>.
11177         (__csqrt): Scale large or subnormal inputs.
11178         * math/s_csqrtf.c: Likewise.
11179         * math/s_csqrtl.c: Likewise.
11180         * math/libm-test.inc (csqrt_test): Add more tests.
11181         * sysdeps/i386/fpu/libm-test-ulps: Update.
11182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11183
11184         [BZ #13840]
11185         * math/libm-test.inc (hypot_test): Add more tests.
11186
11187 2012-03-13  David S. Miller  <davem@davemloft.net>
11188
11189         [BZ #13840]
11190         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11191         double-precision for the calculation instead of scaling.
11192
11193 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11194
11195         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11196         manipulate bits before adding and subtracting TWO52[sx].
11197         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11198         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11199         Likewise.
11200         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11201
11202 2012-03-13  David S. Miller  <davem@davemloft.net>
11203
11204         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11205         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11206         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11207         rtld-global-offsets.h
11208         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11209
11210         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11211         large parameters.
11212
11213         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11214
11215         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11216         'err' in the ifdef scope in which it is actually used.
11217
11218         * nss/nss_db/db-init.c: Include string.h
11219
11220 2012-03-12  David S. Miller  <davem@davemloft.net>
11221
11222         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11223         masking out of the most significant byte of random value used.
11224         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11225         Fix coding style in previous change.
11226
11227         * sysdeps/unix/sysv/linux/kernel-features.h
11228         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11229         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11230         expression.
11231         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11232         later.
11233
11234 2012-03-11  David S. Miller  <davem@davemloft.net>
11235
11236         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11237         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11238         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11239         for 'resultvar' otherwise things get truncated on 64-bit.
11240
11241         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11242         Fix masking out of the most significant byte of random value used.
11243
11244         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11245
11246 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11247
11248         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11249
11250 2012-03-09  David S. Miller  <davem@davemloft.net>
11251
11252         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11253         variables with appropriate CPP guards.
11254         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11255         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11256         on resulting framesize and the management of the outregs buffer for pltexit.
11257         Preserve floating point return values across _dl_call_pltexit call.
11258         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11259         framesize and the management of the outregs buffer for pltexit.
11260         Preserve floating point return values across _dl_call_pltexit
11261         call.
11262         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11263         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11264         (print_exit): Fix format string for return register value.
11265
11266 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11267
11268         * sunrpc/Makefile (others): Add rpcgen.
11269         ($(objpfx)rpcgen): Remove special build rule and dependency on
11270         libc.
11271         * sunrpc/rpcgen.c: New file.
11272
11273 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11274
11275         [BZ #13673]
11276         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11277         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11278         * sysdeps/i386/crti.S: Likewise.
11279         * sysdeps/i386/crtn.S: Likewise.
11280         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11281         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11282         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11283         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11284         * sysdeps/sh/crti.S: Likewise.
11285         * sysdeps/sh/crtn.S: Likewise.
11286         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11287
11288         [BZ #13673]
11289         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11290         with URL.
11291         * locale/programs/locfile-kw.gperf: Likewise.
11292         * locale/programs/charmap-kw.h: Regenerated.
11293         * locale/programs/locfile-kw.h: Likewise.
11294
11295         [BZ #13673]
11296         * intl/plural.y: Replace FSF snail mail address with URL.
11297         * intl/plural.c: Regenerated.
11298
11299 2012-03-09  Richard Henderson  <rth@twiddle.net>
11300
11301         * include/math_private.h: Remove file.
11302         * math/math_private.h: Move file ...
11303         * sysdeps/generic/math_private.h: ... here.
11304
11305         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11306         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11307         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11308
11309         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11310         and <math_private.h>.
11311         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11312         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11313         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11314         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11315         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11355         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11356         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11357         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11358         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11359         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11360         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11361         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11362         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11363         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11364         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11365         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11366         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11367         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11368         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11369         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11370         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11371         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11372         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11373         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11374         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11375         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11376         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11377         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11378         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11379         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11394         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11395         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11396         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11397         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11398         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11399         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11401         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11402         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11403         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11404         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11405         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11406         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11407         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11408         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11409         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11410         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11411         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11412         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11413         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11414         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11415         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11416         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11417         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11418         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11419         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11420         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11421         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11422         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11423         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11424         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11425         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11426         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11427         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11428         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11429         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11430         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11431         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11432         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11433         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11434         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11435         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11436         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11437         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11438         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11439         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11440         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11441         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11442         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11443         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11444         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11445         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11446         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11447         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11448         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11449         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11450         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11451         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11452         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11453         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11454         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11455         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11456         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11457         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11458         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11459         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11460         * sysdeps/ieee754/k_standard.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11511         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11512         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11513         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11517         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11518         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11520         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11575         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11576         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11577         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11580         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11581         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11583         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11588         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11592         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11593         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11598         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11599         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11602         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11604         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11611         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11616         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11621         * sysdeps/ieee754/s_lib_version.c: Likewise.
11622         * sysdeps/ieee754/s_matherr.c: Likewise.
11623         * sysdeps/ieee754/s_signgam.c: Likewise.
11624         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11625         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11626         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11627         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11628         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11629         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11630         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11631         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11632         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11633         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11634         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11635         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11636         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11637         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11638         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11639         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11640         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11641         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11642         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11643         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11644         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11645
11646 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11647
11648         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11649         * sunrpc/rpc_main.c: Likewise.
11650         * sunrpc/rpc_svcout.c: Likewise.
11651
11652 2012-03-09  David S. Miller  <davem@davemloft.net>
11653
11654         * include/math_private.h: New file.
11655
11656 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11657
11658         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11659         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11660         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11661         from <bits/socket_type.h>.
11662         (enum __socket_type): Don't define here.
11663         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11664         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11665         bits/socket_type.h.
11666
11667         [BZ #13566]
11668         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11669         checking __USE_GNU.
11670
11671         * Makerules ($(inst_includedir)/%.h): New rule.
11672         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11673         (install-others): Remove variable setting.
11674         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11675
11676 2012-03-08  Richard Henderson  <rth@twiddle.net>
11677
11678         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11679         from macro to inline function; merge with the
11680         !__LIBC_INTERNAL_MATH_INLINES version.
11681         (__ieee754_sqrtf): Likewise.
11682
11683         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11684         to inline function.
11685         (__rintf, __floor, __floorf): Likewise.
11686
11687         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11688         macro to inline function.
11689         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11690
11691         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11692         not <math/math_private.h>.
11693
11694 2012-03-08  David S. Miller  <davem@davemloft.net>
11695
11696         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11697         copyright year.
11698         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11699
11700 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11701
11702         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11703         normalization.
11704         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11705         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11706
11707 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11708
11709         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11710         be defined individually, they must be defined as a block.  Define
11711         S for printing a string instead of hidint the different by using a
11712         macro for adding the 'l'.
11713         * stdio-common/tst-fphex-wide.c: Adjust.
11714
11715 2012-03-07  Marek Polacek  <polacek@redhat.com>
11716
11717         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11718
11719 2012-03-08  Marek Polacek  <polacek@redhat.com>
11720
11721         [BZ #13806]
11722         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11723         * stdio-common/tst-fphex.c: Define a few macros to make the
11724         test reusable.  Use them.
11725         * stdio-common/tst-fphex-wide.c: New file.
11726
11727 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11728
11729         [BZ #6911]
11730         * manual/macros.texi (gnusystems): New macro.
11731         (nongnusystems): Likewise.
11732         (gnulinuxhurdsystems): Likewise.
11733         (gnuhurdsystems): Likewise..
11734         (gnulinuxsystems): Likewise.
11735         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11736         variants of the GNU system, not "GNU system".
11737         * manual/conf.texi: Likewise.
11738         * manual/errno.texi: Likewise.  Update example of errno macro
11739         expansion.
11740         * manual/filesys.texi: Likewise.
11741         (getumask): Document as specific to GNU/Hurd.
11742         * manual/install.texi: Likewise.  Reword some references to
11743         GNU/Linux.
11744         * manual/intro.texi: Likewise.
11745         * manual/io.texi: Likewise.
11746         (File Name Portability): Detail which constraints are inapplicable
11747         to all GNU systems and which are only inapplicable to GNU/Hurd.
11748         * manual/job.texi: Likewise.
11749         * manual/llio.texi: Likewise.
11750         (O_NOCTTY): Document as present on GNU/Linux.
11751         * manual/maint.texi: Likewise.
11752         * manual/memory.texi: Likewise.
11753         * manual/pattern.texi: Likewise.
11754         * manual/pipe.texi: Likewise.
11755         * manual/process.texi: Likewise.
11756         * manual/resource.texi: Likewise.
11757         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11758         child on GNU/Hurd.
11759         * manual/setjmp.texi: Likewise.
11760         * manual/signal.texi: Likewise.
11761         * manual/startup.texi: Likewise.
11762         * manual/stdio.texi: Likewise.
11763         * manual/terminal.texi: Likewise.
11764         (ONLCR): Document as POSIX.
11765         (OXTABS): Document availability on GNU/Linux as XTABS.
11766         (ONOEOT): Document availability separately from other bits.
11767         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11768         * manual/time.texi: Likewise.
11769         * manual/users.texi: Likewise.
11770         * INSTALL: Regenerated.
11771         * sysdeps/gnu/errlist.c: Regenerated.
11772
11773         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11774         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11775         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11776         puts.
11777         * configure: Regenerated.
11778
11779 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11780
11781         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11782         default includes instead of AC_HEADER_CHECK.
11783         * sysdeps/i386/configure: Regenerated.
11784
11785         [BZ #10716]
11786         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11787         * math/s_cacoshf.c (__cacoshf): Likewise.
11788         * math/s_cacoshl.c (__cacoshl): Likewise.
11789         * math/s_casinh.c (__casinh): Set signs of result from argument.
11790         * math/s_casinhf.c (__casinhf): Likewise.
11791         * math/s_casinhl.c (__casinhl): Likewise.
11792         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11793         (casinh_test): Add more tests.
11794         * sysdeps/i386/fpu/libm-test-ulps: Update.
11795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11796
11797 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11798
11799         * po/zh_TW.po: Update from translation team.
11800
11801         * login/Makefile (distribute): Remove variable.
11802         * catgets/Makefile: Likewise.
11803         * mach/Makefile: Likewise.
11804         * malloc/Makefile: Likewise.
11805         * misc/Makefile: Likewise.
11806         * iconv/Makefile: Likewise.
11807         * nscd/Makefile: Likewise.
11808         * hurd/Makefile: Likewise.
11809         * manual/Makefile: Likewise.
11810         * locale/Makefile: Likewise.
11811         * intl/Makefile: Likewise.
11812         * conform/Makefile: Likewise.
11813         * nss/Makefile: Likewise.
11814         * time/Makefile: Likewise.
11815         * soft-fp/Makefile: Likewise.
11816         * dirent/Makefile: Likewise.
11817         * gmon/Makefile: Likewise.
11818         * po/Makefile: Likewise.
11819         * rt/Makefile: Likewise.
11820         * socket/Makefile: Likewise.
11821         * math/Makefile: Likewise.
11822         * signal/Makefile: Likewise.
11823         * debug/Makefile: Likewise.
11824         * elf/Makefile: Likewise.
11825         * timezone/Makefile: Likewise.
11826         * stdlib/Makefile: Likewise.
11827         * iconvdata/Makefile: Likewise.
11828         * sunrpc/Makefile: Likewise.
11829         * io/Makefile: Likewise.
11830         * argp/Makefile: Likewise.
11831         * inet/Makefile: Likewise.
11832         * hesiod/Makefile: Likewise.
11833         * grp/Makefile: Likewise.
11834         * csu/Makefile: Likewise.
11835         * wctype/Makefile: Likewise.
11836         * crypt/Makefile: Likewise.
11837         * libio/Makefile: Likewise.
11838         * string/Makefile: Likewise.
11839         * nis/Makefile: Likewise.
11840         * resolv/Makefile: Likewise.
11841         * stdio-common/Makefile: Likewise.
11842         * wcsmbs/Makefile: Likewise.
11843         * dlfcn/Makefile: Likewise.
11844         * posix/Makefile: Likewise.
11845
11846         [BZ #6959]
11847         * timezone/Makefile: Don't install timezone files, just the programs
11848         and scripts.
11849
11850 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11851
11852         * nss/databases.def: Add missing gshadow entry.
11853
11854         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11855
11856 2012-03-06  Marek Polacek  <polacek@redhat.com>
11857
11858         [BZ #13726]
11859         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11860         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11861         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11862         * stdio-common/tst-long-dbl-fphex.c: New file.
11863
11864 2012-03-06  David S. Miller  <davem@davemloft.net>
11865
11866         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11867         (set_obp_int): New function.
11868         (get_obp_int): New function.
11869         (__get_clockfreq_via_dev_openprom): Likewise.
11870         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11871         Avoid unused variable warnings on 'val' and use builtin_expect.
11872         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11873         __builtin_expect.
11874         (INLINE_CLONE_SYSCALL): Likewise.
11875
11876 2012-03-05  David S. Miller  <davem@davemloft.net>
11877
11878         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11879
11880 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11881
11882         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11883
11884         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11885         only for |x| >= 40.
11886         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11887
11888 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11889
11890         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11891         Replace gettimeofday with __vdso_gettimeofday.
11892
11893         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11894         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11895         __vdso_clock_gettime and __vdso_getcpu.
11896
11897         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11898         time with __vdso_time.
11899
11900 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11901
11902         * manual/lang.texi (size_t): Note types to which size_t may be
11903         equivalent with the GNU C Library, but do not describe when
11904         differences between them are significant.
11905
11906 2012-03-05  Andreas Jaeger  <aj@suse.de>
11907
11908         * sysdeps/i386/fpu/libm-test-ulps: Update.
11909
11910 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11911
11912         [BZ #3976]
11913         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11914         (__ieee754_pow): Save and restore rounding mode and use
11915         round-to-nearest for main computations.
11916         * math/libm-test.inc (pow_test_tonearest): New function.
11917         (pow_test_towardzero): Likewise.
11918         (pow_test_downward): Likewise.
11919         (pow_test_upward): Likewise.
11920         (main): Call the new functions.
11921         * sysdeps/i386/fpu/libm-test-ulps: Update.
11922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11923
11924         [BZ #3976]
11925         * math/libm-test.inc (cosh_test_tonearest): New function.
11926         (cosh_test_towardzero): Likewise.
11927         (cosh_test_downward): Likewise.
11928         (cosh_test_upward): Likewise.
11929         (sinh_test_tonearest): Likewise.
11930         (sinh_test_towardzero): Likewise.
11931         (sinh_test_downward): Likewise.
11932         (sinh_test_upward): Likewise.
11933         (main): Call the new functions.
11934         * sysdeps/i386/fpu/libm-test-ulps: Update.
11935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11936
11937 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11938
11939         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11940         default stack guard is set in last bytes.
11941         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11942
11943 2012-03-05  Kees Cook  <keescook@chromium.org>
11944
11945         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11946
11947         [BZ #13656]
11948         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11949         possibly allocate from heap instead of stack.
11950         * stdio-common/bug-vfprintf-nargs.c: New file.
11951         * stdio-common/Makefile (tests): Add nargs overflow test.
11952
11953 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11954
11955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11956
11957 2012-03-03  Marek Polacek  <polacek@redhat.com>
11958
11959         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11960         * math/math_private.h: Likewise.
11961         * stdlib/tst-strtod.c: Likewise.
11962         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11963         * sysdeps/x86_64/bits/atomic.h: Likewise.
11964
11965 2012-03-02  David S. Miller  <davem@davemloft.net>
11966
11967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11971         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11972         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11973         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11974         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11975
11976 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11977
11978         [BZ #13792]
11979         * manual/examples/README: New file, says the example source files
11980         can be used under GPL>=2.
11981         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11982         line containing just "*/".
11983         * manual/examples/add.c: Add copyright header (GPL>=2).
11984         * manual/examples/argp-ex1.c: Likewise.
11985         * manual/examples/argp-ex2.c: Likewise.
11986         * manual/examples/argp-ex3.c: Likewise.
11987         * manual/examples/argp-ex4.c: Likewise.
11988         * manual/examples/atexit.c: Likewise.
11989         * manual/examples/db.c: Likewise.
11990         * manual/examples/dir.c: Likewise.
11991         * manual/examples/dir2.c: Likewise.
11992         * manual/examples/execinfo.c: Likewise.
11993         * manual/examples/filecli.c: Likewise.
11994         * manual/examples/filesrv.c: Likewise.
11995         * manual/examples/fmtmsgexpl.c: Likewise.
11996         * manual/examples/genpass.c: Likewise.
11997         * manual/examples/inetcli.c: Likewise.
11998         * manual/examples/inetsrv.c: Likewise.
11999         * manual/examples/isockad.c: Likewise.
12000         * manual/examples/longopt.c: Likewise.
12001         * manual/examples/memopen.c: Likewise.
12002         * manual/examples/memstrm.c: Likewise.
12003         * manual/examples/mkfsock.c: Likewise.
12004         * manual/examples/mkisock.c: Likewise.
12005         * manual/examples/mygetpass.c: Likewise.
12006         * manual/examples/pipe.c: Likewise.
12007         * manual/examples/popen.c: Likewise.
12008         * manual/examples/rprintf.c: Likewise.
12009         * manual/examples/search.c: Likewise.
12010         * manual/examples/select.c: Likewise.
12011         * manual/examples/setjmp.c: Likewise.
12012         * manual/examples/sigh1.c: Likewise.
12013         * manual/examples/sigusr.c: Likewise.
12014         * manual/examples/stpcpy.c: Likewise.
12015         * manual/examples/strdupa.c: Likewise.
12016         * manual/examples/strftim.c: Likewise.
12017         * manual/examples/strncat.c: Likewise.
12018         * manual/examples/subopt.c: Likewise.
12019         * manual/examples/swapcontext.c: Likewise.
12020         * manual/examples/termios.c: Likewise.
12021         * manual/examples/testopt.c: Likewise.
12022         * manual/examples/testpass.c: Likewise.
12023         * manual/examples/timeval_subtract.c: Likewise.
12024
12025         [BZ #13792]
12026         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12027         function to ...
12028         * manual/timeval_subtract.c.texi: ... here, new file.
12029
12030 2012-03-02  David S. Miller  <davem@davemloft.net>
12031
12032         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12033
12034 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12035
12036         [BZ #3976]
12037         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12038         (__sin): Save and restore rounding mode and use round-to-nearest
12039         for all computations.
12040         (__cos): Save and restore rounding mode and use round-to-nearest
12041         for all computations.
12042         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12043         <fenv.h>.
12044         (tan): Save and restore rounding mode and use round-to-nearest for
12045         all computations.
12046         * math/libm-test.inc (cos_test_tonearest): New function.
12047         (cos_test_towardzero): Likewise.
12048         (cos_test_downward): Likewise.
12049         (cos_test_upward): Likewise.
12050         (sin_test_tonearest): Likewise.
12051         (sin_test_towardzero): Likewise.
12052         (sin_test_downward): Likewise.
12053         (sin_test_upward): Likewise.
12054         (tan_test_tonearest): Likewise.
12055         (tan_test_towardzero): Likewise.
12056         (tan_test_downward): Likewise.
12057         (tan_test_upward): Likewise.
12058         (main): Call the new functions.
12059         * sysdeps/i386/fpu/libm-test-ulps: Update.
12060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12061
12062         [BZ #10135]
12063         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12064         small n, then large n, before computing and testing k+n.
12065         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12066         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12067         Likewise.
12068         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12069         Likewise.
12070         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12071         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12072         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12073         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12074         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12075         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12076         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12077         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12078         * math/libm-test.inc (scalbn_test): Add more tests.
12079         (scalbln_test): Likewise.
12080
12081         * manual/filesys.texi (mode_t): Describe constraints on size and
12082         signedness, not exact equivalence to a particular type.
12083         (ino_t): Likewise.
12084         (ino64_t): Likewise.
12085         (dev_t): Likewise.
12086         (nlink_t): Likewise.
12087         (blkcnt_t): Likewise.
12088         (blkcnt64_t): Likewise.
12089         * manual/llio.texi (off_t): Likewise.
12090
12091         [BZ #3976]
12092         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12093         (__ieee754_exp): Save and restore rounding mode and use
12094         round-to-nearest for all computations.
12095         * math/libm-test.inc (exp_test_tonearest): New function.
12096         (exp_test_towardzero): Likewise.
12097         (exp_test_downward): Likewise.
12098         (exp_test_upward): Likewise.
12099         (main): Call the new functions.
12100         * sysdeps/i386/fpu/libm-test-ulps: Update.
12101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12102
12103 2012-03-01  Chris Demetriou  <cgd@google.com>
12104
12105         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12106         have predictable order.
12107
12108 2012-03-01  David S. Miller  <davem@davemloft.net>
12109
12110         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12111
12112         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12113         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12114         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12115         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12116
12117         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12118         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12119         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12121         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12122         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12123         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12124         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12125         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12126
12127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12128
12129         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12130         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12131         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12132
12133         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12134         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12135         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12136         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12137         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12138         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12139         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12140         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12141         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12142         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12143         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12144         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12145         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12146         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12147         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12148         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12149         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12150         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12151         * sysdeps/sparc/elf/configure: Regenerated.
12152
12153 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12154
12155         * configure.in (AS, LD): Require binutils 2.20 or later.
12156         * configure: Regenerated.
12157         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12158         as required minimum version.
12159         * INSTALL: Regenerated.
12160
12161         [BZ #2541]
12162         [BZ #4108]
12163         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12164         before squaring exponent.
12165         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12166         bottom long double and 27 bits of top long double before squaring
12167         exponent.
12168         * math/libm-test.inc (erfc_test): Add more tests.
12169         * sysdeps/i386/fpu/libm-test-ulps: Update.
12170         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12172
12173 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12174
12175         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12176         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12177         containing bit-fields.
12178         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12179         * soft-fp/single.h (_FP_UNION_S): Likewise.
12180         * soft-fp/double.h (_FP_UNION_D): Likewise.
12181
12182 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12183
12184         [BZ #13786]
12185         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12186         not include ../strcmp.S.
12187         [USE_AS_STRNCASECMP_L]: Likewise.
12188         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12189         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12190         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12191         (__strncasecmp_l_ia32): Define as alias to
12192         __strncasecmp_l_nonascii.
12193
12194         [BZ #5794]
12195         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12196         * sysdeps/i386/fpu/libm-test-ulps: Update.
12197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12198
12199         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12201
12202 2012-02-29  Jeff Law  <law@redhat.com>
12203
12204         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12205         out of bounds read.
12206
12207 2012-02-29  Marek Polacek  <polacek@redhat.com>
12208
12209         [BZ #13706]
12210         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12211         * elf/Makefile: Add rules to run tst-unused-dep.out.
12212
12213 2012-02-28  David S. Miller  <davem@davemloft.net>
12214
12215         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12216         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12217         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12218         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12219         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12220         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12221
12222 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12223
12224         * math/libm-test.inc (llround_test): Move one test from
12225         lround_test.  Use TEST_f_L in moved test.
12226         (lround_test): Move misplaced test to llround_test.  Add testcase
12227         from bug 2561.
12228
12229 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12230
12231         * sysdeps/x86_64/fpu/e_expf.S: New file.
12232         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12233
12234 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12235
12236         [BZ #13637]
12237         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12238         of remain_len that may cause incomplete multi-byte character and
12239         false match.
12240         * posix/bug-regex33.c: New file.
12241         * posix/Makefile (tests): Add bug-regex33.
12242
12243 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12244
12245         * manual/macros.texi: New file.
12246         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12247         * manual/libc.texinfo: Include macros.texi.
12248         * manual/creatute.texi: Likewise.
12249         * manual/install.texi: Likewise.
12250         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12251         @glibcadj{} in references to the GNU C Library.
12252         * manual/charset.texi: Likewise.
12253         * manual/conf.texi: Likewise.
12254         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12255         when not using those macros.
12256         * manual/creature.texi: Likewise.
12257         * manual/crypt.texi: Likewise.
12258         * manual/errno.texi: Likewise.
12259         * manual/filesys.texi: Likewise.
12260         * manual/header.texi: Likewise.
12261         * manual/install.texi: Likewise.
12262         * manual/intro.texi: Likewise.
12263         * manual/io.texi: Likewise.
12264         * manual/job.texi: Likewise.
12265         * manual/lang.texi: Likewise.
12266         * manual/libc.texiinfo: Likewise.
12267         * manual/llio.texi: Likewise.
12268         * manual/locale.texi: Likewise.
12269         * manual/maint.texi: Likewise.
12270         * manual/math.texi: Likewise.
12271         * manual/memory.texi: Likewise.
12272         * manual/message.texi: Likewise.
12273         * manual/nss.texi: Likewise.
12274         * manual/pattern.texi: Likewise.
12275         * manual/process.texi: Likewise.
12276         * manual/resource.texi: Likewise.
12277         * manual/search.texi: Likewise.
12278         * manual/setjmp.texi: Likewise.
12279         * manual/signal.texi: Likewise.
12280         * manual/socket.texi: Likewise.
12281         * manual/startup.texi: Likewise.
12282         * manual/stdio.texi: Likewise.
12283         * manual/string.texi: Likewise.
12284         * manual/sysinfo.texi: Likewise.
12285         * manual/syslog.texi: Likewise.
12286         * manual/terminal.texi: Likewise.
12287         * manual/time.texi: Likewise.
12288         * manual/users.texi: Likewise.
12289         * INSTALL: Regenerated.
12290         * NOTES: Regenerated.
12291         * sysdeps/gnu/errlist.c: Regenerated.
12292
12293 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12294
12295         * include/dirent.h: Include <dirstream.h> before
12296         <dirent/dirent.h>.
12297
12298 2012-02-28  David S. Miller  <davem@davemloft.net>
12299
12300         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12301         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12302         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12303         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12304
12305 2012-02-27  David S. Miller  <davem@davemloft.net>
12306
12307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12309         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12310         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12311
12312         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12313         frame pointer instead of stack pointer relative arg slot.
12314         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12315         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12316         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12317
12318 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12319
12320         [BZ #3992]
12321         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12322
12323 2012-02-27  David S. Miller  <davem@davemloft.net>
12324
12325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12329         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12330         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12331         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12332         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12333
12334 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12335
12336         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12337         later.  Allow versions 5-9.
12338         * configure: Regenerated.
12339         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12340         required minimum version and 4.6 as recommended version.  Do not
12341         mention bugs in GCC 2.7 and 2.8.
12342         * INSTALL: Regenerated.
12343
12344 2012-02-27  David S. Miller  <davem@davemloft.net>
12345
12346         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12347         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12349         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12350         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12351         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12352         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12353         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12354
12355         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12356         manipulate bits before adding and subtracting TWO112[sx].
12357         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12358
12359 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12360
12361         [BZ #13775]
12362         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12363         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12364         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12365         being in POSIX, because they are in 1003.1-2008.
12366
12367         * rt/tst-aio.c: Include <fcntl.h>.
12368         * rt/tst-aio7.c: Likewise.
12369         * rt/tst-aio64.c: Likewise.
12370
12371         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12372
12373 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12374
12375         * manual/install.texi (--with-headers): Describe headers as
12376         interface headers, not private headers.
12377         (Specific advice for GNU/Linux systems): Describe use of headers
12378         from "make headers_install", not private headers from older
12379         kernels.
12380         * INSTALL: Regenerated.
12381         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12382         Change to 2.6.19.
12383         * sysdeps/unix/sysv/linux/configure: Regenerated.
12384
12385         * manual/llio.texi (fclean): Remove documentation.
12386
12387         * manual/Makefile (libc-texi-generated): New variable.  Include
12388         version.texi.
12389         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12390         $(libc-texi-generated), not duplicated list of files.
12391         (version.texi, stamp-version): New rules.
12392         (realclean): Remove $(libc-texi-generated), not individual files
12393         from that list.  Do not remove dir-add.texinfo.
12394         * manual/libc.texinfo: Comment out uses of edition numbers and
12395         references to printed manual.  Remove last-updated dates.
12396         (EDITION): Comment out.
12397         (ISBN): Likewise.
12398         (VERSION, UPDATED): Remove.
12399         (version.texi): Include.
12400
12401 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12402
12403         * sysdeps/posix/spawni.c: Include <signal.h>.
12404         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12405         * sysdeps/pthread/aio_fsync.c: Likewise.
12406
12407 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12408
12409         * conform/Makefile (tests): Run only when not cross-compiling and
12410         when fast-check is not defined.
12411
12412         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12413         * conform/data/limits.h-data: Fixes for POSIX2008.
12414         * conform/run-conformtest.sh: Run all tests.
12415         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12416         headers.
12417         * include/bits/dlfcn.h: Likewise.
12418         * include/langinfo.h: Likewise.
12419         * include/monetary.h: Likewise.
12420         * include/sys/poll.h: Likewise.
12421
12422         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12423         for __USE_GNU.
12424         * posix/spawn.h: Define __need_sigset_t.
12425         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12426         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12427         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12428         to get sigevent_t only.
12429         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12430         only for __USE_GNU.
12431         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12432         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12433         process_vm_writev only for __USE_GNU.
12434         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12435
12436         * conform/Makefile: For now ignore errors from run-conformtest.
12437         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12438         POSIX to avoid namespace pollution.  Don't prepend headers.
12439         * conform/data/aio.h-data: Fixes for POSIX testing.
12440         * conform/data/fcntl.h-data: Likewise.
12441         * conform/data/glob.h-data: Likewise.
12442         * conform/data/grp.h-data: Likewise.
12443         * conform/data/pthread.h-data: Likewise.
12444         * conform/data/pwd.h-data: Likewise.
12445         * conform/data/signal.h-data: Likewise.
12446         * conform/data/spawn.h-data: Likewise.
12447         * conform/data/stdio.h-data: Likewise.
12448         * conform/data/stdlib.h-data: Likewise.
12449         * conform/data/stropts.h-data: Likewise.
12450         * conform/data/sys/mman.h-data: Likewise.
12451         * conform/data/sys/stat.h-data: Likewise.
12452         * conform/data/sys/types.h-data: Likewise.
12453         * conform/data/sys/wait.h-data: Likewise.
12454         * conform/data/time.h-data: Likewise.
12455         * conform/data/unistd.h-data: Likewise.
12456         * conform/data/utime.h-data: Likewise.
12457
12458         * io/sys/stat.h: fchmod was always in POSIX.
12459         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12460         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12461         * rt/aio.h: Define __need_timespec before including <time.h>.
12462         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12463         struct.  Add forward declaration of pthread_attr_t and use it in
12464         sigevent.
12465         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12466         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12467         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12468         always remove CLK_TCK definition.
12469
12470 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12471
12472         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12473
12474 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12475
12476         * conform/run-conformtest.sh: New file.
12477         * conform/Makefile: Run run-conformtest for tests.
12478         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12479         support.
12480
12481         * conform/data/uchar.h-data: New file.
12482         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12483         * conform/data/arpa/inet.h-data: Likewise.
12484         * conform/data/assert.h-data: Likewise.
12485         * conform/data/complex.h-data: Likewise.
12486         * conform/data/cpio.h-data: Likewise.
12487         * conform/data/ctype.h-data: Likewise.
12488         * conform/data/dirent.h-data: Likewise.
12489         * conform/data/dlfcn.h-data: Likewise.
12490         * conform/data/errno.h-data: Likewise.
12491         * conform/data/fcntl.h-data: Likewise.
12492         * conform/data/float.h-data: Likewise.
12493         * conform/data/fmtmsg.h-data: Likewise.
12494         * conform/data/fnmatch.h-data: Likewise.
12495         * conform/data/ftw.h-data: Likewise.
12496         * conform/data/glob.h-data: Likewise.
12497         * conform/data/grp.h-data: Likewise.
12498         * conform/data/iconv.h-data: Likewise.
12499         * conform/data/inttypes.h-data: Likewise.
12500         * conform/data/langinfo.h-data: Likewise.
12501         * conform/data/libgen.h-data: Likewise.
12502         * conform/data/limits.h-data: Likewise.
12503         * conform/data/locale.h-data: Likewise.
12504         * conform/data/math.h-data: Likewise.
12505         * conform/data/monetary.h-data: Likewise.
12506         * conform/data/mqueue.h-data: Likewise.
12507         * conform/data/ndbm.h-data: Likewise.
12508         * conform/data/net/if.h-data: Likewise.
12509         * conform/data/netdb.h-data: Likewise.
12510         * conform/data/netinet/in.h-data: Likewise.
12511         * conform/data/nl_types.h-data: Likewise.
12512         * conform/data/poll.h-data: Likewise.
12513         * conform/data/pthread.h-data: Likewise.
12514         * conform/data/pwd.h-data: Likewise.
12515         * conform/data/regex.h-data: Likewise.
12516         * conform/data/sched.h-data: Likewise.
12517         * conform/data/search.h-data: Likewise.
12518         * conform/data/semaphore.h-data: Likewise.
12519         * conform/data/setjmp.h-data: Likewise.
12520         * conform/data/signal.h-data: Likewise.
12521         * conform/data/spawn.h-data: Likewise.
12522         * conform/data/stdarg.h-data: Likewise.
12523         * conform/data/stdio.h-data: Likewise.
12524         * conform/data/stdlib.h-data: Likewise.
12525         * conform/data/string.h-data: Likewise.
12526         * conform/data/strings.h-data: Likewise.
12527         * conform/data/stropts.h-data: Likewise.
12528         * conform/data/sys/ipc.h-data: Likewise.
12529         * conform/data/sys/mman.h-data: Likewise.
12530         * conform/data/sys/msg.h-data: Likewise.
12531         * conform/data/sys/resource.h-data: Likewise.
12532         * conform/data/sys/select.h-data: Likewise.
12533         * conform/data/sys/sem.h-data: Likewise.
12534         * conform/data/sys/shm.h-data: Likewise.
12535         * conform/data/sys/socket.h-data: Likewise.
12536         * conform/data/sys/stat.h-data: Likewise.
12537         * conform/data/sys/statvfs.h-data: Likewise.
12538         * conform/data/sys/time.h-data: Likewise.
12539         * conform/data/sys/timeb.h-data: Likewise.
12540         * conform/data/sys/times.h-data: Likewise.
12541         * conform/data/sys/types.h-data: Likewise.
12542         * conform/data/sys/uio.h-data: Likewise.
12543         * conform/data/sys/un.h-data: Likewise.
12544         * conform/data/sys/utsname.h-data: Likewise.
12545         * conform/data/sys/wait.h-data: Likewise.
12546         * conform/data/syslog.h-data: Likewise.
12547         * conform/data/tar.h-data: Likewise.
12548         * conform/data/termios.h-data: Likewise.
12549         * conform/data/utime.h-data: Likewise.
12550         * conform/data/utmpx.h-data: Likewise.
12551         * conform/data/varargs.h-data: Likewise.
12552         * conform/data/wchar.h-data: Likewise.
12553         * conform/data/wctype.h-data: Likewise.
12554         * conform/data/wordexp.h-data: Likewise.
12555
12556         * include/stropts.h: New file.
12557         * include/uchar.h: New file.
12558         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12559         * include/assert.h: Likewise.
12560         * include/ctype.h: Likewise.
12561         * include/dirent.h: Likewise.
12562         * include/dlfcn.h: Likewise.
12563         * include/fcntl.h: Likewise.
12564         * include/fnmatch.h: Likewise.
12565         * include/glob.h: Likewise.
12566         * include/grp.h: Likewise.
12567         * include/libio.h: Likewise.
12568         * include/locale.h: Likewise.
12569         * include/math.h: Likewise.
12570         * include/net/if.h: Likewise.
12571         * include/netdb.h: Likewise.
12572         * include/netinet/in.h: Likewise.
12573         * include/pthread.h: Likewise.
12574         * include/pwd.h: Likewise.
12575         * include/regex.h: Likewise.
12576         * include/sched.h: Likewise.
12577         * include/search.h: Likewise.
12578         * include/setjmp.h: Likewise.
12579         * include/signal.h: Likewise.
12580         * include/stdio.h: Likewise.
12581         * include/stdlib.h: Likewise.
12582         * include/string.h: Likewise.
12583         * include/sys/cdefs.h: Likewise.
12584         * include/sys/mman.h: Likewise.
12585         * include/sys/msg.h: Likewise.
12586         * include/sys/resource.h: Likewise.
12587         * include/sys/select.h: Likewise.
12588         * include/sys/socket.h: Likewise.
12589         * include/sys/stat.h: Likewise.
12590         * include/sys/statvfs.h: Likewise.
12591         * include/sys/time.h: Likewise.
12592         * include/sys/times.h: Likewise.
12593         * include/sys/uio.h: Likewise.
12594         * include/sys/utsname.h: Likewise.
12595         * include/sys/wait.h: Likewise.
12596         * include/termios.h: Likewise.
12597         * include/time.h: Likewise.
12598         * include/ulimit.h: Likewise.
12599         * include/unistd.h: Likewise.
12600         * include/utime.h: Likewise.
12601         * include/wchar.h: Likewise.
12602         * include/wctype.h: Likewise.
12603         * include/wordexp.h: Likewise.
12604
12605         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12606
12607         * time/time.h: TIME_UTC must be a macro.
12608         Make timespec_get available for ISO C11 only as well.
12609
12610 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12611
12612         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12613         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12614
12615 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12616
12617         * configure.in: Use -o not -a in test for unsupported multi-arch.
12618
12619 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12620
12621         * manual/texinfo.tex: Update to version 2012-01-19.16.
12622
12623 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12624
12625         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12626
12627 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12628
12629         [BZ #13738]
12630         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12631         * manual/fdl-1.3.texi: New file.
12632         * manual/fdl-1.1.texi: File removed.
12633
12634         [BZ #13738]
12635         * manual/libc.texinfo (FDL_VERSION): New @set.
12636         Use it for mention of FDL in cover text.
12637         (Documentation License): Use it in @include file name.
12638
12639 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12640             Roland McGrath  <roland@hack.frob.com>
12641
12642         [BZ #5461]
12643         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12644         not LONG_LONG_MAX and LONG_LONG_MIN.
12645         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12646         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12647         name.
12648         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12649
12650 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12651
12652         [BZ #2547]
12653         [BZ #11365]
12654         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12655         manipulate bits before adding and subtracting TWO23[sx].
12656         * math/libm-test.inc (nearbyint_test): Add more tests.
12657
12658 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12659
12660         [BZ #2548]
12661         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12662         bits before adding and subtracting TWO23[sx].
12663         * math/libm-test.inc (rint_test): Add more tests.
12664         (rint_test_tonearest): Likewise.
12665         (rint_test_towardzero): Likewise.
12666         (rint_test_downward): Likewise.
12667         (rint_test_upward: Likewise.
12668
12669 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12670
12671         [BZ #10110]
12672         * include/stdc-predef.h: New file.  Extracted from features.h.
12673         * include/features.h: Include stdc-predef.h.
12674         * Makefile (headers): Add stdc-predef.h.
12675         * CONFORMANCE (Compiler limitations): Update.
12676
12677 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12678
12679         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12680
12681 2012-02-21  David S. Miller  <davem@davemloft.net>
12682
12683         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12684         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12685
12686 2012-02-20  David S. Miller  <davem@davemloft.net>
12687
12688         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12689         using a normal save/restore sequence, rather than allocating a
12690         dummy stack frame just to store a frame pointer and restore.
12691         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12692
12693 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12694
12695         * manual/install.texi: Fix stray word in line-wrapped comment.
12696
12697 2012-02-20  David S. Miller  <davem@davemloft.net>
12698
12699         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12700         both binutils and gcc support GOTDATA.
12701
12702         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12703         "rd %pc" in the PIC register setup sequences.
12704
12705         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12706         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12707         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12708         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12709         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12710         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12711         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12712         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12713         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12714         (SYSCALL_ERROR_HANDLER): Likewise.
12715         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12716         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12718         (SYSCALL_ERROR_HANDLER): Likewise.
12719
12720         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12721         (HAVE_GCC_GOTDATA): New.
12722         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12723         relocation support in both binutils and gcc.
12724         * sysdeps/sparc/elf/configure: Regenerate.
12725
12726         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12727         * sysdeps/sparc/sparc32/elf/configure: Delete.
12728         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12729         * sysdeps/sparc/sparc64/elf/configure: Delete.
12730         * sysdeps/sparc/elf/configure.in: New file.
12731         * sysdeps/sparc/elf/configure: Generate.
12732
12733         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12734         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12735         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12736         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12737         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12738
12739 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12740
12741         * manual/install.texi: Do not mention specific glibc version
12742         numbers.
12743         * manual/libc.texinfo (VERSION, UPDATED): Update.
12744         (@copying): Use @copyright{} and range of years.
12745
12746 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12747
12748         [BZ #13695]
12749         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12750         [crti.S not in sysdirs] (generated): Do not append.
12751         [crti.S not in sysdirs] (omit-deps): Likewise.
12752         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12753         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12754         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12755         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12756         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12757         Likewise.
12758         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12759         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12760         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12761         * csu/defs.awk: Remove file.
12762         * sysdeps/generic/initfini.c: Likewise.
12763         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12764         variable.
12765         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12766         Likewise.
12767
12768 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12769
12770         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12771         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12772         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12773         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12774         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12775         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12776         <bits/epoll.h>.
12777         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12778         (__EPOLL_PACKED): Define to empty if not defined by
12779         <bits/epoll.h>.
12780         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12781         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12782         bits/epoll.h.
12783
12784 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12785
12786         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12787         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12788         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12789         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12790         <bits/timerfd.h>.
12791         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12792         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12793         bits/timerfd.h.
12794
12795 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12796
12797         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12798         in C locale.
12799         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12800         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12801         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12803
12804 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12805
12806         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12807         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12808
12809 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12810
12811         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12812         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12813         defined.
12814         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12815         Likewise.
12816         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12817         entry for 2.16.
12818
12819 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12820
12821         * math/w_acos.c: Use non-signaling floating-point comparisons.
12822         * math/w_acosf.c: Likewise.
12823         * math/w_acosh.c: Likewise.
12824         * math/w_acoshf.c: Likewise.
12825         * math/w_acoshl.c: Likewise.
12826         * math/w_acosl.c: Likewise.
12827         * math/w_asin.c: Likewise.
12828         * math/w_asinf.c: Likewise.
12829         * math/w_asinl.c: Likewise.
12830         * math/w_atanh.c: Likewise.
12831         * math/w_atanhf.c: Likewise.
12832         * math/w_atanhl.c: Likewise.
12833         * math/w_exp2.c: Likewise.
12834         * math/w_exp2f.c: Likewise.
12835         * math/w_exp2l.c: Likewise.
12836         * math/w_j0.c: Likewise.
12837         * math/w_j0f.c: Likewise.
12838         * math/w_j0l.c: Likewise.
12839         * math/w_j1.c: Likewise.
12840         * math/w_j1f.c: Likewise.
12841         * math/w_j1l.c: Likewise.
12842         * math/w_jn.c: Likewise.
12843         * math/w_jnf.c: Likewise.
12844         * math/w_log.c: Likewise.
12845         * math/w_log10.c: Likewise.
12846         * math/w_log10f.c: Likewise.
12847         * math/w_log10l.c: Likewise.
12848         * math/w_log2.c: Likewise.
12849         * math/w_log2f.c: Likewise.
12850         * math/w_log2l.c: Likewise.
12851         * math/w_logf.c: Likewise.
12852         * math/w_logl.c: Likewise.
12853         * math/w_sqrt.c: Likewise.
12854         * math/w_sqrtf.c: Likewise.
12855         * math/w_sqrtl.c: Likewise.
12856         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12857         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12858         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12859         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12860         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12861
12862 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12863
12864         [BZ #9739]
12865         * manual/string.texi (strnlen): Use correct parameter name in
12866         equivalent expression.
12867
12868 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12869
12870         [BZ #11174]
12871         * manual/users.texi (seteuid): Consistently use neweuid for
12872         argument name.
12873
12874 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12875
12876         [BZ #13704]
12877         * manual/nss.texi (Services in the NSS configuration): Correct
12878         list of services in example configuration file.
12879
12880 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12881
12882         [BZ #11322]
12883         * manual/arith.texi: Remove statements about negative zero
12884         behaving identically to zero.
12885
12886 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12887
12888         [BZ #5993]
12889         * manual/install.texi: Do not document upgrading from libc5.
12890
12891 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12892
12893         [BZ #4596]
12894         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12895
12896 2012-02-18  David S. Miller  <davem@davemloft.net>
12897
12898         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12899         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12900         %o7 across the call.
12901         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12902         instead.
12903         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12904         SETUP_PIC_REG_LEAF.
12905         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12906         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12907         * sysdeps/sparc/crtn.S: Likewise.
12908
12909 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12910
12911         * aout/Makefile: Remove.
12912
12913 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12914
12915         [BZ #13058]
12916         * manual/examples/argp-ex1.c (main): Format definition in GNU
12917         style.
12918         * manual/examples/argp-ex2.c (main): Likewise.
12919         * manual/examples/argp-ex3.c (main): Likewise.
12920         * manual/examples/argp-ex4.c (main): Likewise.
12921         * manual/examples/longopt.c (main): Use new-style prototype
12922         definition.
12923         * manual/examples/strncat.c (main): Specify return type and use
12924         (void) for arguments.
12925         * manual/examples/subopt.c (main): Use char **argv argument.
12926
12927 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12928
12929         [BZ #5077]
12930         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12931         rounding modes.
12932
12933 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12934
12935         [BZ #6907]
12936         * manual/string.texi (strchr): Change when strchrnul is
12937         recommended.
12938
12939 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12940
12941         [BZ #174]
12942         * manual/locale.texi (setlocale): Document LOCPATH.
12943
12944 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12945
12946         [BZ #10210]
12947         * manual/process.texi (execle): Move @dots{} before last argument.
12948
12949 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12950
12951         [BZ #12047]
12952         * manual/charset.texi (Generic Charset Conversion): Fix typo
12953         (LC_TYPE -> LC_CTYPE).
12954
12955 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12956
12957         [BZ #5805]
12958         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12959         (scalbnf): Likewise.
12960         (scalbnl): Likewise.
12961         (scalbln): Likewise.
12962         (scalblnf): Likewise.
12963         (scalblnl): Likewise.
12964         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12965         (vwarnx): Likewise.
12966         (verr): Likewise.
12967         (verrx): Likewise.
12968         * manual/filesys.texi (telldir): Use braces around return type.
12969         * manual/llio.texi (mmap): Add space after comma.
12970         (mmap64): Likewise.
12971         * manual/math.texi (jn): Use @var{} on parameter names.
12972         (jnf): Likewise.
12973         (jnl): Likewise.
12974         (yn): Likewise.
12975         (ynf): Likewise.
12976         (ynl): Likewise.
12977         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12978         line.
12979         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12980         "...".
12981         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12982         (sched_get_priority_max): Likewise.
12983         * manual/signal.texi (sigvec): Add space after comma.
12984         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12985         names.
12986         (if_indextoname): Likewise.
12987         (if_freenameindex): Likewise.
12988         (sendto): Use ',' instead of '.' in prototype.
12989         * manual/startup.texi (syscall): Use @dots{} instead of literal
12990         "...".
12991         * manual/stdio.texi (__fpending): Separate initial words of
12992         paragraph from @deftypefun line.
12993         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12994         "...".
12995         (vsyslog): Use @var{} on parameter names.
12996         * manual/terminal.texi (stty): Use @var{} on parameter names.
12997         * manual/users.texi (getutmp): Use @var{} on parameter names.
12998         (getutmpx): Likewise.
12999
13000 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13001
13002         [BZ #6884]
13003         * manual/stdio.texi (fopen): Fix typos in description of
13004         ",ccs=STRING".
13005
13006 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13007
13008         [BZ #4026]
13009         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13010         get clock_id definition.
13011
13012 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13013
13014         [BZ #4822]
13015         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13016         (madvise): Cast every argument to void on its own.
13017
13018 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13019
13020         [BZ #9902]
13021         * manual/startup.texi (Exit Status): Fix typo.
13022
13023 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13024
13025         [BZ #10140]
13026         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13027         * manual/examples/argp-ex2.c: Likewise.
13028         * manual/examples/argp-ex3.c: Likewise.
13029
13030 2012-02-16  Richard Henderson  <rth@redhat.com>
13031
13032         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13033         * sysdeps/s390/s390-32/initfini.c: Remove.
13034         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13035         * sysdeps/s390/s390-64/initfini.c: Remove.
13036
13037 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13038
13039         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13040         compiler output for sysdeps/generic/initfini.c.
13041         * sysdeps/sh/elf/initfini.c: Remove file.
13042
13043 2012-02-16  David S. Miller  <davem@davemloft.net>
13044
13045         [BZ #11494]
13046         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13047
13048         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13049         * sysdeps/sparc/crti.S: New file.
13050         * sysdeps/sparc/crtn.S: New file.
13051         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13052         * sysdeps/sparc/sparc64/Makefile: Likewise.
13053
13054 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13055
13056         [BZ #3335]
13057         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13058
13059 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13060
13061         [BZ #4822]
13062         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13063
13064         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13065         (write, read, close): Likewise.
13066         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13067
13068 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13069
13070         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13071         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13072         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13073         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13074         <bits/signalfd.h>.
13075         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13076         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13077         bits/signalfd.h.
13078
13079 2012-02-14  Marek Polacek  <polacek@redhat.com>
13080
13081         * sysdeps/x86_64/crti.S: New file.
13082         * sysdeps/x86_64/crtn.S: New file.
13083         * sysdeps/x86_64/elf/initfini.c: Remove file.
13084
13085 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13086
13087         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13088         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13089         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13090         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13091         <bits/inotify.h>.
13092         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13093         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13094         bits/inotify.h.
13095
13096 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13097
13098         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13099         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13100         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13101         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13102         <bits/eventfd.h>.
13103         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13104         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13105         bits/eventfd.h.
13106
13107 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13108
13109         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13110         __feraiseexcept instead of feraiseexcept.
13111
13112         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13113         nanosleep invocations.
13114         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13115         strings, and add error checking for a nanosleep invocations.
13116
13117 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13118
13119         Replace FSF snail mail address with URLs, as per GNU coding standards.
13120         Most of the snail mail addresses were wrong anyway, and omitting
13121         them makes the source code easier to maintain.  Almost all of the
13122         changes are to license notices and to locale LC_IDENTIFICATION
13123         addresses, except for this one:
13124         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13125         not its snail mail address.
13126
13127 2012-02-09  Richard Henderson  <rth@twiddle.net>
13128
13129         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13130         of kernel-features.h.
13131
13132         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13133
13134 2012-02-08  Marek Polacek  <polacek@redhat.com>
13135
13136         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13137         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13138         * sysdeps/gnu/_G_config.h: Likewise.
13139         * sysdeps/generic/_G_config.h: Likewise.
13140
13141 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13142
13143         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13144         tests.
13145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13146
13147         * sysdeps/powerpc/powerpc32/crti.S: New file.
13148         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13149         * sysdeps/powerpc/powerpc64/crti.S: New file.
13150         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13151
13152         * Makeconfig (have-initfini): Don't set.
13153         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13154         * configure.in (nopic_initfini): Don't substitute.
13155         * config.h.in (HAVE_INITFINI): Don't #undef.
13156         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13157         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13158
13159 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13160
13161         Support crti.S and crtn.S provided directly by architectures.
13162         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13163         [crti.S in sysdirs] (omit-deps): Likewise.
13164         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13165         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13166         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13167         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13168         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13169         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13170         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13171         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13172         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13173         compiler output for sysdeps/generic/initfini.c.
13174         * sysdeps/i386/elf/Makefile: Remove file.
13175         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13176
13177 2012-02-07  Marek Polacek  <polacek@redhat.com>
13178
13179         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13180         * sysdeps/gnu/_G_config.h: Likewise.
13181         * sysdeps/mach/hurd/_G_config.h: Likewise.
13182
13183 2012-02-07  Marek Polacek  <polacek@redhat.com>
13184
13185         * math/Makefile (tests): Add tst-CMPLX2.
13186         * math/tst-CMPLX2.c: New file.
13187
13188 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13189
13190         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13191
13192         * math/libm-test.inc (jn_test): Add missing L suffix.
13193
13194 2012-02-06  Marek Polacek  <polacek@redhat.com>
13195
13196         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13197         * sysdeps/i386/fpu/e_powf.S: Likewise.
13198         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13199         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13200         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13201         * sysdeps/i386/fpu/e_pow.S: Likewise.
13202         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13203         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13204         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13205         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13206         * sysdeps/i386/fpu/e_log2.S: Likewise.
13207         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13208         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13209         * sysdeps/i386/fpu/e_powl.S: Likewise.
13210         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13211         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13212         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13213         * sysdeps/i386/fpu/e_logl.S: Likewise.
13214         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13215         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13216         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13217         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13218         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13219         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13220         * sysdeps/i386/fpu/e_log.S: Likewise.
13221         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13222         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13223         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13224         * sysdeps/i386/fpu/e_logf.S: Likewise.
13225         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13226         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13227         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13228         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13229         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13230         * sysdeps/i386/fpu/e_log10.S: Likewise.
13231         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13232         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13233         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13234         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13235         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13236         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13237         * sysdeps/i386/asm-syntax.h: Likewise.
13238         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13239         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13240         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13241         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13242         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13243         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13244         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13245         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13246         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13247         * sysdeps/powerpc/sysdep.h: Likewise.
13248         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13249         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13250
13251 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13252
13253         [BZ #411]
13254         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13255
13256 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13257
13258         * sysdeps/i386/sysdep.h: Include <features.h>.
13259         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13260         version.
13261
13262 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13263
13264         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13265         Define.
13266         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13267         LOAD_PIC_REG_STR.
13268
13269 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13270
13271         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13272         (SETUP_PIC_REG): Use GET_PC_THUNK.
13273         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13274         macro.
13275
13276 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13277
13278         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13279         for non-PIC compilation.
13280         (SETUP_PIC_REG): Add .p2align directive.
13281         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13282         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13283         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13284         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13285         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13286         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13287         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13288         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13289         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13290         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13291         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13292         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13293         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13294         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13295         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13296         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13297         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13298         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13299         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13300         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13301         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13302         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13303         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13304         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13305         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13306         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13307         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13308         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13309         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13310         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13311         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13312         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13313         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13314         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13315         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13316         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13317         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13318         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13319         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13320         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13321         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13322
13323 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13324
13325         * math/tst-CMPLX.c: Include <stdio.h>.
13326
13327 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13328
13329         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13330         float.
13331         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13332         * sysdeps/sparc/bits/mathdef.h: Likewise.
13333
13334 2012-01-31  Marek Polacek  <polacek@redhat.com>
13335
13336         * libio/libio.h: Don't define _PARAMS.
13337         * locale/programs/config.h: Don't define PARAMS.
13338         * stdlib/strtol_l.c: Likewise.
13339         (__strtol_l): Remove PARAMS from the prototype.
13340
13341 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13342
13343         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13344         names.  Just use the correct names.  Remove unnecessary wrapper
13345         functions.
13346         * malloc/arena.c: Likewise.
13347         * malloc/hooks.c: Likewise.
13348
13349         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13350         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13351         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13352
13353 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13354
13355         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13356         into tail calls.
13357         (update_get_addr): New function.
13358         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13359         GET_ADDR_MODULE parameter.
13360
13361 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13362
13363         * crypt/cert.c: Remove __STDC__ conditionals.
13364         * crypt/crypt-entry.c: Likewise.
13365         * crypt/crypt_util.c: Likewise.
13366         * libio/filedoalloc.c: Likewise.
13367         * libio/fileops.c: Likewise.
13368         * libio/genops.c: Likewise.
13369         * libio/iofclose.c: Likewise.
13370         * libio/iofdopen.c: Likewise.
13371         * libio/iofopen.c: Likewise.
13372         * libio/iofopen64.c: Likewise.
13373         * libio/iogetdelim.c: Likewise.
13374         * libio/iopopen.c: Likewise.
13375         * libio/obprintf.c: Likewise.
13376         * libio/oldfileops.c: Likewise.
13377         * libio/oldiofclose.c: Likewise.
13378         * libio/oldiofdopen.c: Likewise.
13379         * libio/oldiofopen.c: Likewise.
13380         * libio/oldiopopen.c: Likewise.
13381         * libio/wfiledoalloc.c: Likewise.
13382         * libio/wgenops.c: Likewise.
13383         * locale/programs/xmalloc.c: Likewise.
13384         * misc/syslog.c: Likewise.
13385         * stdio-common/xbug.c: Likewise.
13386         * string/memchr.c: Likewise.
13387         * string/memcmp.c: Likewise.
13388         * string/memrchr.c: Likewise.
13389         * string/rawmemchr.c: Likewise.
13390         * sysdeps/posix/getcwd.c: Likewise.
13391         * time/strftime_l.c: Likewise.
13392
13393 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13394
13395         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13396         * config.make.in (config-cflags-sse2avx): Define.
13397         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13398         Fix typo.
13399
13400 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13401
13402         * scripts/config.guess: Update from upstream config git repository.
13403         * scripts/config.sub: Likewise.
13404
13405 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13406
13407         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13408         (EM_NUM): Update.
13409         (R_TILEPRO_*, R_TILEGX_*): New macros.
13410
13411         * scripts/firstversions.awk: Fix bug in version range handling.
13412
13413         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13414
13415         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13416
13417         * include/sys/epoll.h: New file.
13418         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13419         libc_hidden_def.
13420
13421 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13422
13423         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13424         Avoid unnecessary __WORDSIZE == 64 test.
13425         (fmaxf): Use VEX format if possible.
13426         (fmax): Likewise.
13427         (fminf): Likewise.
13428         (fmin): Likewise.
13429
13430         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13431         * math/math_private.h: Remove libc_fegetround* and
13432         libc_fesetround*.
13433         * sysdeps/i386/configure.in: Check for -msse2avx.
13434         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13435         also if SSE2AVX is defined.
13436         Remove libc_fegetround* and libc_fesetround*.
13437         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13438         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13439         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13440         of HAS_YMM_USABLE.
13441         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13442         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13443         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13444         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13445         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13446
13447         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13448
13449 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13450
13451         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13452         size is not set.
13453         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13454
13455 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13456
13457         [BZ #13618]
13458         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13459         relocation.
13460         * Makeconfig (libm): Define.
13461         * elf/Makefile: Add rules to build and run tst-relsort1.
13462         * elf/tst-relsort1.c: New file.
13463         * elf/tst-relsort1mod1.c: New file.
13464         * elf/tst-relsort1mod2.c: New file.
13465
13466 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13467
13468         * math/s_ldexp.c: Remove __STDC__ conditionals.
13469         * math/s_ldexpf.c: Likewise.
13470         * math/s_ldexpl.c: Likewise.
13471         * math/s_nextafter.c: Likewise.
13472         * math/s_nexttowardf.c: Likewise.
13473         * math/s_significand.c: Likewise.
13474         * math/s_significandf.c: Likewise.
13475         * math/s_significandl.c: Likewise.
13476         * math/w_jnl.c: Likewise.
13477         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13478         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13479         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13480         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13481         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13482         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13483         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13484         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13485         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13486         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13487         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13488         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13489         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13490         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13491         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13492         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13493         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13494         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13495         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13496         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13497         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13498         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13499         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13500         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13501         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13502         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13503         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13504         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13505         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13506         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13507         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13508         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13509         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13510         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13511         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13512         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13513         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13514         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13515         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13516         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13517         * sysdeps/ieee754/k_standard.c: Likewise.
13518         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13521         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13522         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13525         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13527         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13529         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13530         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13531         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13532         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13533         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13534         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13535         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13536         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13537         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13538         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13539         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13540         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13541         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13542         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13543         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13545         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13546         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13547         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13548         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13549         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13550         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13551         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13552         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13553         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13554         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13555         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13556         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13557         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13558         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13559         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13560         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13561         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13562         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13563         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13564         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13565         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13566         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13567         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13568         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13569         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13570         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13571         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13572         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13573         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13574         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13575         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13576         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13577         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13578         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13579         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13580         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13581         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13582         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13583         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13584         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13585         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13586         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13587         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13588         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13589         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13590         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13591         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13592         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13593         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13594         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13595         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13596         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13597         * sysdeps/ieee754/s_matherr.c: Likewise.
13598         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13599         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13600         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13601         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13602
13603 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13604
13605         * crypt/md5.h: Remove __STDC__ conditionals.
13606         * libio/libioP.h: Likewise.
13607         * locale/programs/config.h: Likewise.
13608         * sysdeps/generic/sysdep.h: Likewise.
13609         * sysdeps/i386/asm-syntax.h: Likewise.
13610         * sysdeps/s390/asm-syntax.h: Likewise.
13611         * sysdeps/unix/sysdep.h: Likewise.
13612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13614
13615 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13616
13617         * libio/libio.h: Remove __STDC__ conditionals.
13618         * malloc/obstack.h: Likewise.
13619         * math/complex.h: Likewise.
13620         * math/math.h: Likewise.
13621         * sysdeps/generic/_G_config.h: Likewise.
13622         * sysdeps/gnu/_G_config.h: Likewise.
13623         * sysdeps/mach/hurd/_G_config.h: Likewise.
13624         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13625         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13626         * sysdeps/sparc/bits/mathdef.h: Likewise.
13627
13628 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13629
13630         [BZ #13583]
13631         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13632         Clean up HAS_* macros.
13633         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13634         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13635         possible.
13636         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13637         HAS_AVX.
13638         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13639         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13640         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13641         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13642         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13643
13644 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13645
13646         * elf/tst-unique3.cc (gets): Remove declaration.
13647         * elf/tst-unique3lib.cc (gets): Likewise.
13648         * elf/tst-unique3lib2.cc (gets): Likewise.
13649         * elf/tst-unique4.cc (gets): Likewise.
13650
13651 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13652
13653         * include/stdio.h: Add C++ protection.  Add gets declarations and
13654         definitions.
13655         * debug/tst-chk1.c: Don't declare gets here.
13656         * stdio-common/tst-gets.c: Likewise.
13657
13658 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13659
13660         * posix/glob: Remove directory.
13661
13662 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13663
13664         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13665
13666 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13667
13668         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13669         of the non-standard EPFNOSUPPORT.
13670
13671 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13672
13673         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13674         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13675         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13676
13677 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13678
13679         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13680
13681 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13682
13683         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13684         transient errors.
13685         * nscd/grpcache.c (cache_addgr): Likewise.
13686         * nscd/hstcache.c (cache_addhst): Likewise.
13687         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13688         * nscd/pwdcache.c (cache_addpw): Likewise.
13689         * nscd/servicescache.c (cache_addserv): Likewise.
13690
13691 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13692
13693         * malloc/malloc.c: Various cleanups.
13694         * malloc/hooks.c: Likewise.
13695
13696         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13697         * stdlib/bug-fmtmsg1.c: New file.
13698
13699         * stdlib/fmtmsg.c (init): Add missing unlock.
13700         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13701
13702 2012-01-12  Marek Polacek  <polacek@redhat.com>
13703
13704         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13705         and _GNU_SOURCE.
13706
13707 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13708
13709         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13710         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13711         macro to ensure uniqueness of label name.
13712         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13713         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13714
13715 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13716
13717         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13718
13719         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13720         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13721         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13722         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13723
13724 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13725
13726         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13727
13728         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13729         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13730         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13731
13732         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13733
13734         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13735         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13736         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13737         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13738
13739         * math/bits/math-finite.h: Add ldexp support.
13740
13741 2012-01-10  Marek Polacek  <polacek@redhat.com>
13742
13743         * locale/programs/localedef.h (show_archive_content): Add noreturn
13744         attribute.
13745
13746 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13747
13748         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13749
13750 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13751
13752         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13753
13754         * io/Makefile (headers): Add bits/poll2.h.
13755
13756 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13757
13758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13759         typo #include statement.
13760
13761 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13762
13763         * include/sys/cdefs.h: Define __attribute_alloc_size.
13764         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13765         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13766         * elf/pldd.c: Likewise.
13767         * iconv/iconv_charmap.c: Likewise.
13768         * iconv/iconvconfig.c: Likewise.
13769         * iconv/strtab.c: Likewise.
13770         * locale/programs/locale.c: Likewise.
13771         * locale/programs/localedef.h: Likewise.
13772         * locale/programs/simple-hash.c: Likewise.
13773         * nscd/nscd.h: Likewise.
13774         * nss/makedb.c: Likewise.
13775         * sysdeps/generic/ldconfig.h: Likewise.
13776         * locale/programs/localedef.c: Remove xmalloc prototype.
13777         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13778
13779 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13780
13781         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13782         appropriate.
13783
13784 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13785
13786         * math/Makefile (tests): Add tst-CMPLX.
13787         * math/tst-CMPLX.c: New file.
13788
13789         * math/complex.h (CMPLXL): Fix typo.
13790
13791         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13792         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13793         GLIBC_2.16.
13794         * debug/tst-chk1.c: Add poll and ppoll tests.
13795         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13796         * include/sys/poll.h: Add hidden proto for ppoll.
13797         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13798         * sysdeps/mach/hurd/ppoll.c: Likewise.
13799         * io/ppoll.c: Likewise.
13800         * debug/poll_chk.c: New file.
13801         * debug/ppoll_chk.c: New file.
13802         * include/bits/poll2.h: New file.
13803         * io/bits/poll2.h: New file.
13804
13805         [BZ #1350]
13806         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13807
13808         * configure.in: static is always set to yes.  Remove.
13809         * config.make.in: Don't set build-static.
13810         * Makeconfig: Remove use of build-static.
13811         * dlfcn/Makefile: Likewise.
13812         * elf/Makefile: Likewise.
13813         * math/Makefile: Likewise.
13814         * misc/Makefile: Likewise.
13815         * nptl/Makefile: Likewise.
13816         * sysdeps/mach/hurd/Makefile: Likewise.
13817
13818         * configure.in: PWD_P is not used anymore.
13819         * config.make.in: Remove PWD_P entry.
13820
13821         * configure.in: Remove last remnants of RANLIB.
13822         No need to check for signed size_t anymore.
13823         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13824         and IA-64.
13825         Remove __builtin_expect test because we require at least gcc 3.4.
13826         * aclocal.m4: Likewise.
13827
13828         * wcsmbs/mbrtoc16.c: Implement using towc function.
13829         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13830         * wcsmbs/wcsmbsload.c: Likewise.
13831         * iconv/gconv_simple.c: Likewise.
13832         * iconv/gconv_int.h: Likewise.
13833         * iconv/gconv_builtin.h: Likewise.
13834         * iconv/iconv_prog.c: Remove CHAR16 handling.
13835
13836         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13837
13838         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13839
13840         * configure.in: Remove --with-elf and --enable-bounded options.
13841         Dont set base_machine for ia64.  More non-ELF conditions removed.
13842         Remove testing and setting of leading underscore information.
13843         * config.make.in (build-bounded): Set to no.
13844         * config.h.in: Remove NO_UNDERSCORES entry.
13845         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13846         them.
13847         * csu/start.c: Remove !NO_UNDERSCORE code.
13848         * locale/localeinfo.h: Likewise.
13849         * sysdeps/generic/machine-gmon.h: Likewise.
13850         * sysdeps/generic/sysdep.h: Likewise.
13851         * sysdeps/i386/sysdep.h: Likewise.
13852         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13853         * sysdeps/mach/sysdep.h: Likewise.
13854         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13855         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13856         * sysdeps/sh/sysdep.h: Likewise.
13857         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13858         * sysdeps/unix/i386/sysdep.S: Likewise.
13859         * sysdeps/unix/sparc/start.c: Likewise.
13860         * sysdeps/unix/sparc/sysdep.S: Likewise.
13861         * sysdeps/unix/sparc/sysdep.h: Likewise.
13862         * sysdeps/unix/start.c: Likewise.
13863         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13864         * sysdeps/x86_64/sysdep.h: Likewise.
13865
13866 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13867
13868         [BZ #13553]
13869         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13870         for non-gcc.
13871         * argp/argp-fmtstream.h: Use const instead __const.
13872         * argp/argp.h: Likewise.
13873         * assert/assert.h: Likewise.
13874         * bits/fenv.h: Likewise.
13875         * bits/sched.h: Likewise.
13876         * bits/sigset.h: Likewise.
13877         * bits/sigthread.h: Likewise.
13878         * catgets/nl_types.h: Likewise.
13879         * conform/data/pthread.h-data: Likewise.
13880         * crypt/crypt-private.h: Likewise.
13881         * crypt/crypt.h: Likewise.
13882         * crypt/crypt_util.c: Likewise.
13883         * ctype/ctype.h: Likewise.
13884         * debug/execinfo.h: Likewise.
13885         * debug/mbsnrtowcs_chk.c: Likewise.
13886         * debug/mbsrtowcs_chk.c: Likewise.
13887         * debug/wcsnrtombs_chk.c: Likewise.
13888         * debug/wcsrtombs_chk.c: Likewise.
13889         * debug/wcstombs_chk.c: Likewise.
13890         * dirent/dirent.h: Likewise.
13891         * dlfcn/dlfcn.h: Likewise.
13892         * elf/neededtest4.c: Likewise.
13893         * grp/grp.h: Likewise.
13894         * gshadow/gshadow.h: Likewise.
13895         * iconv/gconv.h: Likewise.
13896         * iconv/gconv_int.h: Likewise.
13897         * iconv/gconv_simple.c: Likewise.
13898         * iconv/iconv.h: Likewise.
13899         * iconv/loop.c: Likewise.
13900         * iconv/skeleton.c: Likewise.
13901         * include/aio.h: Likewise.
13902         * include/aliases.h: Likewise.
13903         * include/argz.h: Likewise.
13904         * include/arpa/inet.h: Likewise.
13905         * include/assert.h: Likewise.
13906         * include/dirent.h: Likewise.
13907         * include/dlfcn.h: Likewise.
13908         * include/execinfo.h: Likewise.
13909         * include/fcntl.h: Likewise.
13910         * include/fenv.h: Likewise.
13911         * include/glob.h: Likewise.
13912         * include/grp.h: Likewise.
13913         * include/libintl.h: Likewise.
13914         * include/mntent.h: Likewise.
13915         * include/netdb.h: Likewise.
13916         * include/pwd.h: Likewise.
13917         * include/rpc/netdb.h: Likewise.
13918         * include/sched.h: Likewise.
13919         * include/search.h: Likewise.
13920         * include/shadow.h: Likewise.
13921         * include/signal.h: Likewise.
13922         * include/stdio.h: Likewise.
13923         * include/stdlib.h: Likewise.
13924         * include/string.h: Likewise.
13925         * include/sys/socket.h: Likewise.
13926         * include/sys/stat.h: Likewise.
13927         * include/sys/statfs.h: Likewise.
13928         * include/sys/statvfs.h: Likewise.
13929         * include/sys/syslog.h: Likewise.
13930         * include/sys/time.h: Likewise.
13931         * include/sys/uio.h: Likewise.
13932         * include/time.h: Likewise.
13933         * include/unistd.h: Likewise.
13934         * include/utmp.h: Likewise.
13935         * include/wchar.h: Likewise.
13936         * include/wctype.h: Likewise.
13937         * inet/aliases.h: Likewise.
13938         * inet/arpa/inet.h: Likewise.
13939         * inet/netinet/ether.h: Likewise.
13940         * inet/netinet/in.h: Likewise.
13941         * intl/libintl.h: Likewise.
13942         * io/bits/fcntl2.h: Likewise.
13943         * io/fcntl.h: Likewise.
13944         * io/ftw.h: Likewise.
13945         * io/sys/poll.h: Likewise.
13946         * io/sys/stat.h: Likewise.
13947         * io/sys/statfs.h: Likewise.
13948         * io/sys/statvfs.h: Likewise.
13949         * io/utime.h: Likewise.
13950         * libio/bits/stdio.h: Likewise.
13951         * libio/bits/stdio2.h: Likewise.
13952         * libio/libio.h: Likewise.
13953         * libio/libioP.h: Likewise.
13954         * libio/stdio.h: Likewise.
13955         * locale/lc-ctype.c: Likewise.
13956         * locale/locale.h: Likewise.
13957         * login/utmp.h: Likewise.
13958         * malloc/arena.c: Likewise.
13959         * malloc/malloc.c: Likewise.
13960         * malloc/malloc.h: Likewise.
13961         * malloc/mcheck.c: Likewise.
13962         * malloc/mtrace.c: Likewise.
13963         * math/bits/mathcalls.h: Likewise.
13964         * math/fenv.h: Likewise.
13965         * math/math_private.h: Likewise.
13966         * misc/bits/error.h: Likewise.
13967         * misc/bits/syslog.h: Likewise.
13968         * misc/err.h: Likewise.
13969         * misc/error.h: Likewise.
13970         * misc/fstab.h: Likewise.
13971         * misc/mntent.h: Likewise.
13972         * misc/regexp.h: Likewise.
13973         * misc/search.h: Likewise.
13974         * misc/sgtty.h: Likewise.
13975         * misc/sys/mman.h: Likewise.
13976         * misc/sys/syslog.h: Likewise.
13977         * misc/sys/uio.h: Likewise.
13978         * misc/sys/xattr.h: Likewise.
13979         * misc/ttyent.h: Likewise.
13980         * nis/rpcsvc/ypclnt.h: Likewise.
13981         * nss/nss.h: Likewise.
13982         * posix/bits/unistd.h: Likewise.
13983         * posix/fnmatch.h: Likewise.
13984         * posix/glob.h: Likewise.
13985         * posix/sched.h: Likewise.
13986         * posix/spawn.h: Likewise.
13987         * posix/sys/wait.h: Likewise.
13988         * posix/unistd.h: Likewise.
13989         * posix/wordexp.h: Likewise.
13990         * pwd/pwd.h: Likewise.
13991         * resolv/netdb.h: Likewise.
13992         * resource/sys/resource.h: Likewise.
13993         * rt/aio.h: Likewise.
13994         * rt/bits/mqueue2.h: Likewise.
13995         * rt/mqueue.h: Likewise.
13996         * shadow/shadow.h: Likewise.
13997         * signal/signal.h: Likewise.
13998         * socket/send.c: Likewise.
13999         * socket/sendto.c: Likewise.
14000         * socket/sys/socket.h: Likewise.
14001         * stdio-common/printf.h: Likewise.
14002         * stdlib/bits/stdlib.h: Likewise.
14003         * stdlib/fmtmsg.h: Likewise.
14004         * stdlib/monetary.h: Likewise.
14005         * stdlib/stdlib.h: Likewise.
14006         * stdlib/ucontext.h: Likewise.
14007         * streams/stropts.h: Likewise.
14008         * string/argz.h: Likewise.
14009         * string/bits/string2.h: Likewise.
14010         * string/string.h: Likewise.
14011         * string/strings.h: Likewise.
14012         * sunrpc/rpc/auth.h: Likewise.
14013         * sunrpc/rpc/auth_des.h: Likewise.
14014         * sunrpc/rpc/clnt.h: Likewise.
14015         * sunrpc/rpc/netdb.h: Likewise.
14016         * sunrpc/rpc/pmap_clnt.h: Likewise.
14017         * sunrpc/rpc/xdr.h: Likewise.
14018         * sysdeps/generic/inttypes.h: Likewise.
14019         * sysdeps/generic/net/if.h: Likewise.
14020         * sysdeps/generic/sys/swap.h: Likewise.
14021         * sysdeps/gnu/net/if.h: Likewise.
14022         * sysdeps/gnu/utmpx.h: Likewise.
14023         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14024         * sysdeps/i386/i486/bits/string.h: Likewise.
14025         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14026         * sysdeps/s390/bits/string.h: Likewise.
14027         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14028         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14029         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14030         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14031         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14032         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14033         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14034         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14035         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14036         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14037         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14038         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14039         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14040         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14041         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14042         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14043         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14044         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14045         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14046         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14047         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14048         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14049         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14050         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14051         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14052         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14053         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14054         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14055         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14056         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14057         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14058         * sysvipc/sys/ipc.h: Likewise.
14059         * sysvipc/sys/msg.h: Likewise.
14060         * sysvipc/sys/sem.h: Likewise.
14061         * sysvipc/sys/shm.h: Likewise.
14062         * termios/termios.h: Likewise.
14063         * time/sys/time.h: Likewise.
14064         * time/time.h: Likewise.
14065         * wcsmbs/bits/wchar2.h: Likewise.
14066         * wcsmbs/uchar.h: Likewise.
14067         * wcsmbs/wchar.h: Likewise.
14068         * wctype/wctype.h: Likewise.
14069
14070         [BZ #13551]
14071         * Makeconfig: Remove all but ELF support including AIX support.
14072         * Makerules: Likewise.
14073         * config.h.in: Likewise.
14074         * config.make.in: Likewise.
14075         * configure: Likewise.
14076         * configure.in: Likewise.
14077         * csu/Makefile: Likewise.
14078         * csu/version.c: Likewise.
14079         * debug/Makefile: Likewise.
14080         * dlfcn/Makefile: Likewise.
14081         * elf/Makefile: Likewise.
14082         * extra-lib.mk: Likewise.
14083         * iconv/Makefile: Likewise.
14084         * include/libc-symbols.h: Likewise.
14085         * include/shlib-compat.h: Likewise.
14086         * resolv/Makefile: Likewise.
14087         * resolv/res_libc.c: Likewise.
14088         * rt/Makefile: Likewise.
14089         * sysdeps/i386/asm-syntax.h: Likewise.
14090         * sysdeps/i386/sysdep.h: Likewise.
14091         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14092         * sysdeps/mach/sysdep.h: Likewise.
14093         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14094         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14095         * sysdeps/s390/asm-syntax.h: Likewise.
14096         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14097         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14098         * sysdeps/sh/sysdep.h: Likewise.
14099         * sysdeps/unix/sparc/sysdep.h: Likewise.
14100         * sysdeps/wordsize-32/divdi3.c: Likewise.
14101         * sysdeps/x86_64/sysdep.h: Likewise.
14102
14103         * argp/Versions: Remove _argp_unlock_xxx.
14104
14105         [BZ #13559]
14106         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14107         * abilist/libBrokenLocale.abilist: Likewise.
14108         * abilist/libanl.abilist: Likewise.
14109         * abilist/libc.abilist: Likewise.
14110         * abilist/libcrypt.abilist: Likewise.
14111         * abilist/libdl.abilist: Likewise.
14112         * abilist/libm.abilist: Likewise.
14113         * abilist/libnsl.abilist: Likewise.
14114         * abilist/libpthread.abilist: Likewise.
14115         * abilist/libresolv.abilist: Likewise.
14116         * abilist/librt.abilist: Likewise.
14117         * abilist/libthread_db.abilist: Likewise.
14118         * abilist/libutil.abilist: Likewise.
14119         * abilist/libnss_db.abilist: New file.
14120
14121         * scripts/abilist.awk: Add support for indirect functions.
14122
14123         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14124
14125         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14126
14127         * shlib-versions: Remove entries for ports architectures.
14128
14129         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14130         files in ports.
14131         * elf/stackguard-macros.h: Remove support for IA-64.
14132         * elf/tst-auditmod1.c: Likewise.
14133         * sysdeps/generic/ldsodefs.h: Likewise.
14134
14135         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14136         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14137         configure files.
14138
14139         [BZ #13552]
14140         * configure.in: Remove --enable-omitfp support.
14141         * FAQ.in: Adjust.
14142         * config.make.in: Likewise.
14143         * Makeconfig: Likewise.
14144         * manual/install.texi: Likewise.
14145
14146         In case anyone cares, the IA-64 architecture could move to ports.
14147         * sysdeps/ia64/*: Removed.
14148         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14149         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14150
14151         [BZ #13555]
14152         * configure.in: Remove entries for unsupported architectures.
14153
14154         [BZ #13533]
14155         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14156         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14157         routines.
14158         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14159         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14160         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14161         fall back to using wcrtomb.
14162         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14163         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14164         renaming.
14165         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14166         * wcsmbs/tst-c16c32-1.c: New file.
14167
14168         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14169         local variable.
14170
14171         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14172
14173         * elf/tst-unique3.cc: Add explicit declaration of gets.
14174         * elf/tst-unique3lib.cc: Likewise.
14175         * elf/tst-unique3lib2.cc: Likewise.
14176         * elf/tst-unique4.cc: Likewise.
14177
14178         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14179
14180 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14181
14182         [BZ #13566]
14183         * assert/assert.h (static_assert): Don't define for C++.
14184         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14185         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14186
14187 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14188
14189         * iconv/loop.c (single loop): Fix assertion in storing of
14190         remaining bytes.
14191
14192         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14193
14194 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14195
14196         * posix/getconf.c: Update copyright year.
14197         * nss/getent.c: Likewise.
14198         * nss/makedb.c: Likewise.
14199         * iconv/iconvconfig.c: Likewise.
14200         * iconv/iconv_prog.c: Likewise.
14201         * elf/ldconfig.c: Likewise.
14202         * elf/pldd.c: Likewise.
14203         * elf/sotruss.ksh: Likewise.
14204         * catgets/gencat.c: Likewise.
14205         * csu/version.c: Likewise.
14206         * elf/ldd.bash.in: Likewise.
14207         * elf/sprof.c (print_version): Likewise.
14208         * locale/programs/locale.c: Likewise.
14209         * locale/programs/localedef.c: Likewise.
14210         * login/programs/pt_chown.c: Likewise.
14211         * nscd/nscd.c (print_version): Likewise.
14212         * debug/xtrace.sh: Likewise.
14213         * malloc/memusage.sh: Likewise.
14214         * malloc/mtrace.pl: Likewise.
14215         * debug/catchsegv.sh: Likewise.
14216
14217 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14218
14219         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14220         pure attribute.
14221
14222 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14223
14224         [BZ #13533]
14225         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14226         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14227         transformations.
14228         * iconv/gconv_int.h: Likewise.
14229         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14230         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14231         from libc for GLIBC_2.16.
14232         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14233         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14234         * wcsmbs/uchar.h: Really define mbstate_t.
14235         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14236         * wcsmbs/c16rtomb.c: New file.
14237         * wcsmbs/mbrtoc16.c: New file.
14238         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14239         for C/POSIX locale.
14240         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14241         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14242
14243         * wcsmbs/wchar.h: Add missing __restrict.
14244
14245 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14246
14247         [BZ #13532]
14248         * time/Makefile (routines): Add timespec_get.
14249         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14250         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14251         timespec for ISO C11.
14252         * time/timespec_get.c: New file.
14253         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14254         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14255
14256         [BZ #13531]
14257         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14258         * stdlib/stdlib.h: Declare aligned_alloc.
14259         * Versions.def: Add GLIBC_2.16 for libc.
14260         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14261
14262         [BZ 13527]
14263         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14264         ISO C11.
14265
14266         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14267         code.
14268
14269         [BZ #13528]
14270         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14271
14272         [BZ #13529]
14273         * assert/assert.h (static_assert): Define.
14274
14275         * version.h: Update for 2.16 development version.
14276
14277         [BZ #13526]
14278         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14279         _ISOC11_SOURCE.
14280
14281         * version.h (RELEASE): Bump for 2.15 release.
14282         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14283
14284         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14285         Patch by Marek Polacek <mpolacek@redhat.com>.
14286
14287         * bits/byteswap.h: Protect long long constants with __extension__.
14288         * sysdeps/i386/bits/byteswap.h: Likewise.
14289         * sysdeps/ia64/bits/byteswap.h: Likewise.
14290         * sysdeps/s390/bits/byteswap.h: Likewise.
14291         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14292
14293 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14294
14295         [BZ #13540]
14296         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14297         destination buffer.
14298         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14299
14300 2011-12-23  Marek Polacek  <polacek@redhat.com>
14301
14302         * elf/dl-addr.c (determine_info): Add inline keyword.
14303         * elf/tst-auditmod4b.c (check_avx): Likewise.
14304         * elf/tst-auditmod6b.c (check_avx): Likewise.
14305         * elf/tst-auditmod6c.c (check_avx): Likewise.
14306         * elf/tst-auditmod7b.c (check_avx): Likewise.
14307
14308 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14309
14310         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14311         !__SSE_MATH__.
14312
14313 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14314
14315         [BZ #13540]
14316         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14317         processing for last bytes.
14318
14319 2011-08-06  Bruno Haible  <bruno@clisp.org>
14320
14321         [BZ #13061]
14322         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14323         U+0385, not to U+1FEE.
14324
14325         [BZ #13062]
14326         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14327         entry for U+00A5 U+0301.
14328
14329 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14330
14331         [BZ #13166]
14332         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14333         buffer for the output is too small.
14334
14335         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14336         optimization.
14337
14338         [BZ #13185]
14339         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14340         SSE flags if possible.
14341
14342 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14343
14344         [BZ #13540]
14345         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14346         processing for last bytes.
14347
14348 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14349
14350         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14351         (syscall-list-default-options, syscall-list-default-condition)
14352         (syscall-list-includes): Define.
14353         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14354         list of ABIs and options and #if conditions for each ABI.  Do not
14355         handle common syscalls between ABIs specially.
14356         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14357         Remove.
14358         (syscall-list-variants, syscall-list-32bit-options)
14359         (syscall-list-32bit-condition, syscall-list-64bit-options)
14360         (syscall-list-64bit-condition): Define.
14361         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14362         (syscall-list-variants, syscall-list-32bit-options)
14363         (syscall-list-32bit-condition, syscall-list-64bit-options)
14364         (syscall-list-64bit-condition): Define.
14365         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14366         Remove.
14367         (syscall-list-variants, syscall-list-32bit-options)
14368         (syscall-list-32bit-condition, syscall-list-64bit-options)
14369         (syscall-list-64bit-condition): Define.
14370         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14371         Remove.
14372         (syscall-list-variants, syscall-list-32bit-options)
14373         (syscall-list-32bit-condition, syscall-list-64bit-options)
14374         (syscall-list-64bit-condition): Define.
14375
14376 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14377
14378         * locale/iso-639.def: Add brx entry.
14379
14380         [BZ #13328]
14381         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14382         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14383
14384         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14385         __feraiseexcept_renamed.
14386
14387 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14388
14389         [BZ #13538]
14390         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14391         EPOLLET with unsigned values.
14392         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14393         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14394
14395         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14396         to large cancellation.
14397         * math/s_cacoshf.c: Likewise.
14398         * math/s_cacoshl.c: Likewise.
14399
14400 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14401
14402         [BZ #13305]
14403         [BZ #12786]
14404         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14405         * math/s_cacoshf.c: Likewise.
14406         * math/s_cacoshl.c: Likewise.
14407
14408 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14409
14410         [BZ #13439]
14411         * iconv/gconv.h: Define __GCONV_SWAP.
14412         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14413         * iconvdata/utf-16.c: Likewise.
14414         * iconvdata/utf-32.c: Likewise.
14415
14416 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14417
14418         [BZ #13524]
14419         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14420         numerator after shifting it by one limb.
14421
14422 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14423
14424         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14425         under [__USE_EXTERN_INLINES].
14426
14427 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14428
14429         [BZ #13446]
14430         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14431
14432 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14433
14434         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14435         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14436         optimized code.
14437         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14438         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14439         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14440         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14441         for strncasecmp/strncasecmp_l compilation.
14442         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14443         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14444
14445 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14446
14447         [BZ #13484]
14448         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14449         of __asm__.
14450
14451 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14452
14453         [BZ #13506]
14454         * time/tzfile.c (__tzfile_read): Check values from file header.
14455
14456 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14457
14458         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14459         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14460         * powerpc/powerpc32/dl-start.S: Likewise.
14461         * powerpc/powerpc32/elf/start.S: Likewise.
14462         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14463         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14464         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14465         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14466         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14467         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14468         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14469         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14470         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14471         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14472         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14473         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14474         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14475         * powerpc/powerpc32/memset.S: Likewise.
14476         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14477         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14478         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14479         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14480         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14481         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14482         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14483         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14484         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14485         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14486         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14487         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14488         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14489
14490 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14491
14492         * math/libm-test.inc: Added more nearbyint tests.
14493         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14494         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14495         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14496         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14497
14498 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14499
14500         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14501         FD_CLOEXEC.
14502
14503 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14504
14505         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14506         Add wcscpy-ssse3 wcscpy-c.
14507         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14508         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14509         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14510         * sysdeps/x86_64/wcschr.S: New file.
14511         * sysdeps/x86_64/wcsrchr.S: New file.
14512         * string/test-strcmp.c: Remove checking of wcscmp function for
14513         wrong alignments.
14514         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14515         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14516         wcsrchr-sse2 wcsrchr-c.
14517         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14518         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14519         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14520         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14521         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14522         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14523         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14524         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14525         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14526         * wcsmbc/wcschr.c (WCSCHR): New macro.
14527
14528 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14529
14530         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14531         * wcsmbs/test-wcsrchr.c: New file.
14532         * string/test-strrchr.c: Add wcsrchr support.
14533         (WIDE): New macro.
14534         * wcsmbs/test-wcscpy.c: New file.
14535         * string/test-strcpy.c: Add wcscpy support.
14536         (WIDE): New macro.
14537
14538 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14539
14540         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14541         the inner loop.
14542
14543 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14544
14545         [BZ #13472]
14546         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14547
14548 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14549
14550         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14551         Minor optimizations.
14552
14553         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14554         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14555         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14556
14557 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14558
14559         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14560         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14561         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14562         for gcc to avoid warnings.
14563         * inet/Makefile (tests): Add tst-checks.
14564         * inet/tst-checks.c: New file.
14565
14566         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14567         warning.
14568
14569         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14570         __wmemcmp_sse2.
14571
14572         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14573         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14574
14575         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14576
14577 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14578
14579         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14580         problem.
14581
14582         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14583
14584 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14585
14586         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14587         conditional on GCC version.
14588         (__arch_compare_and_exchange_val_8_acq)
14589         (__arch_compare_and_exchange_val_16_acq)
14590         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14591         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14592         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14593
14594 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14595
14596         * sysdeps/sh/backtrace.c: New file.
14597
14598 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14599
14600         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14601         parenthesis.
14602
14603 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14604
14605         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14606         falling back to utime.
14607
14608 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14609
14610         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14611         expectations for float.
14612
14613 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14614
14615         * locale/weight.h (findidx): Add parameter len.
14616         * locale/weightwc.h (findidx): Likewise.
14617         * posix/fnmatch_loop.c (FCT): Adjust caller.
14618         * posix/regcomp.c (build_equiv_class): Likewise.
14619         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14620         * posix/regexec.c (check_node_accept_bytes): Likewise.
14621         * string/strcoll_l.c (STRCOLL): Likewise.
14622         * string/strxfrm_l.c (STRXFRM): Likewise.
14623
14624 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14625
14626         * Makefile.in: Remove CVSOPT handling.
14627         * configure.in: Remove use of AC_REVISION.
14628         * iconvdata/Makefile (distribute): No need to filter out CVS.
14629         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14630         handling.
14631
14632 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14633
14634         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14635         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14636         [USE_AS_STRNCASECMP_L]: Likewise.
14637         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14638         NO_TLS_DIRECT_SEG_REFS.
14639         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14640         Fix argument offsets for non-PIC.
14641         [USE_AS_STRNCASECMP_L]: Likewise.
14642         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14643         NO_TLS_DIRECT_SEG_REFS.
14644
14645 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14646
14647         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14648         O_CLOEXEC.
14649         * locale/loadlocale.c (_nl_load_locale): Likewise.
14650
14651 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14652
14653         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14654         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14655         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14656         (SYSCALL_GETTIME): Set errno on error.
14657
14658         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14659         count references to noai6ai_cached.
14660
14661 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14662
14663         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14664
14665         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14666         FD_CLOEXEC for /proc/self/maps.
14667
14668         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14669         FD_CLOEXEC for /proc/meminfo.
14670
14671         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14672         gai.conf.
14673
14674         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14675         FD_CLOEXEC for given file.
14676
14677         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14678
14679         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14680         FD_CLOEXEC for /etc/hosts.
14681         (_gethtent): Likewise.
14682
14683         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14684
14685         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14686         cancellation and set FD_CLOEXEC for /etc/netgroup.
14687
14688         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14689         reading /etc/publickey.
14690
14691         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14692         allow cancellation when reading /etc/group.
14693
14694         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14695         cancellation.
14696         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14697
14698         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14699         when using data file.
14700
14701         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14702
14703         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14704         (write_nis_obj): Use "c" and "e" in fopen.
14705
14706         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14707
14708         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14709
14710         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14711
14712         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14713
14714         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14715         locale.alias.
14716
14717         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14718
14719         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14720
14721         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14722
14723         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14724         file parsing and set FD_CLOEXEC.
14725
14726 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14727
14728         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14729
14730 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14731
14732         * malloc/arena.c (arena_get2): Don't call reused_arena when
14733         _int_new_arena failed.
14734
14735 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14736
14737         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14738         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14739         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14740         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14741         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14742         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14743         to compile strcasecmp and strncasecmp.
14744         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14745         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14746
14747         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14748
14749 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14750
14751         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14752         locale-defines.sym to gen-as-const-headers.
14753         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14754         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14755         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14756         to compile strcasecmp and strncasecmp.
14757         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14758         strcasecmp_l and strncasecmp_l.
14759         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14760         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14761         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14762         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14763         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14764         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14765         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14766         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14767         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14768         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14769         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14770
14771 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14772
14773         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14774         result of SYSDEP_GETTIME_CPU to retval.
14775         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14776         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14777
14778         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14779         variable.
14780
14781         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14782         mantissa words.
14783         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14784
14785         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14786         from unused variable.
14787
14788         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14789         DWARF definitions.
14790         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14791         for assembling.
14792
14793         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14794         over namespaces.
14795
14796         * sunrpc/rpc_prot.c (rejected): Fix case value.
14797
14798         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14799         unsigned long long int to avoid warnings in shift.
14800
14801         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14802         of use of trans.
14803         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14804         variable tmp.
14805
14806         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14807         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14808         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14809
14810         * nis/nis_table.c (nis_list): Use variable of correct type for
14811         result of __follow_path call.
14812
14813 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14814
14815         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14816         of math functions ceil, trunc, floor, round, and sqrt, when
14817         avaliable on the platform.
14818         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14819         name clash.
14820         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14821         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14822         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14823
14824 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14825
14826         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14827         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14828
14829 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14830
14831         * include/unistd.h: Fix __readlink return type.
14832         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14833
14834 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14835
14836         * stdlib/ucontext.h: Undo last change for makecontext.
14837
14838 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14839
14840         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14841
14842         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14843         * setjmp/setjmp.h: Mark functions as non-leaf.
14844         * setjmp/bits/setjmp2.h: Likewise.
14845         * stdlib/ucontext.h: Likewise.
14846
14847 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14848
14849         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14850         (reused_arena): Don't check arena limit.
14851         (arena_get2): Atomically check arena limit.
14852
14853 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14854
14855         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14856         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14857
14858         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14859         instructions.
14860
14861 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14862
14863         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14864         handler when locking.
14865
14866         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14867         Fix size of allocated buffer.
14868
14869 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14870
14871         [BZ #10103]
14872         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14873         declarations for long double functions.
14874         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14875
14876         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14877
14878 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14879
14880         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14881         installed.
14882
14883         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14884         is disabled.
14885
14886 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14887
14888         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14889
14890 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14891
14892         * include/alloca.h (stackinfo_alloca_round): Define.
14893         (extend_alloca): Use it.
14894         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14895         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14896         here.
14897
14898         * scripts/check-local-headers.sh: Ignore libaudit.h.
14899
14900         * nscd/Makefile (extra-objs): Make recursively expanded.
14901
14902 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14903
14904         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14905         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14906
14907         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14908         * posix/tst-rfc3484-2.c: Likewise.
14909         * posix/tst-rfc3484-3.c: Likewise.
14910
14911         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14912         process_vm_writev.
14913         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14914         process_vm_writev.
14915         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14916         process_vm_writev from libc using GLIBC_2.15 version.
14917
14918         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14919
14920 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14921
14922         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14923         stack usage.
14924
14925 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14926
14927         [BZ #13367]
14928         * nss/getent.c (initgroups_keys): Show error message in case no group
14929         names are given.
14930
14931         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14932         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14933         __bump_nl_timestamp.
14934         * nscd/connections (nscd_init): When host database is served open
14935         netlink socket and request notification about configuration changes.
14936         (main_loop_poll): Track netlink file descriptor and bump timestamp
14937         in case data becomes available.
14938         (main_loop_epoll): Likewise.
14939         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14940         (database_pers_head): Add extra_data fileds.
14941         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14942         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14943         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14944         Adjust caller.
14945         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14946         in6ai data, call __free_in6ai.
14947         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14948         Add -DHAVE_NETLINK.
14949         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14950         interface information.  Reuse previous data if netlink timestamp
14951         is not changed.
14952         (__bump_nl_timestamp): New function.
14953         (__free_in6ai): New function.
14954
14955 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14956
14957         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14958         close_not_cancel_no_status here.
14959         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14960
14961 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14962
14963         [BZ #13276]
14964         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14965         return value.
14966
14967         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14968         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14969         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14970
14971 2011-07-03  Andreas Jaeger  <aj@suse.de>
14972
14973         [BZ #10709]
14974         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14975         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14976         * math/libm-test.inc (sin_test): Add test case.
14977
14978 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14979
14980         [BZ #13337]
14981         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14982         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14983
14984         * elf/chroot_canon.c (chroot_canon): Cleanups.
14985
14986         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14987
14988         [BZ #13335]
14989         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14990         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14991
14992         * string/test-strchr.c: Make usable for strchrnul testing.
14993         * string/test-strchrnul.c: New file.
14994         * string/Makefile (strop-tests): Add strchrnul.
14995
14996         * po/it.po: Update from translation team.
14997         * po/es.po: Likewise.
14998
14999 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15000
15001         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15002         the three constants needed as parameters.  Drop the others.
15003         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15004         __m128i_strloadu_tolower.
15005         Create and initialize variable zero and use it in all the places
15006         where _mm_setzero_si128 was used.
15007
15008         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15009         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15010         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15011         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15012         anymore.
15013         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15014         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15015         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15016         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15017         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15018         __mpranred, __mptan.
15019         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15020         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15021         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15022         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15023         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15024         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15025         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15026         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15027         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15028
15029 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15030
15031         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15032         redefine if SHARED.
15033         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15034
15035         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15036         wide char related routines to wcsmbs subdir.
15037
15038 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15039
15040         [BZ #13344]
15041         * misc/sys/cdefs.h (__THROWNL): Define.
15042         * posix/unistd.h: Use __THREADNL instead of __THREAD
15043         for memory synchronization functions.
15044
15045 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15046
15047         [BZ #13349]
15048         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15049         doesn't exist.
15050         * manual/stdio.texi (Obstack Streams): Node removed.
15051
15052 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15053
15054         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15055         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15056         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15057
15058         * math/math_private.h (math_force_eval): Allow non-addressable
15059         arguments.
15060         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15061
15062 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15063
15064         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15065         file is not needed.
15066
15067         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15068         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15069         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15070         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15071         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15072         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15073         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15074         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15075         Add AVX variants.
15076         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15077         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15078         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15079         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15080         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15081         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15082         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15083         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15084         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15085         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15086         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15087         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15088         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15089         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15090         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15091         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15092         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15093         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15094         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15095
15096         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15097         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15098
15099         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15100         place.  Use VEX encoding when compiling for AVX.
15101
15102 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15103
15104         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15105         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15106
15107         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15108
15109 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15110
15111         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15112         useless if() expression.
15113         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15114         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15115         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15116         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15117         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15118         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15119         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15120         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15121         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15122         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15123         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15124         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15125         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15126         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15127         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15128         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15129         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15130         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15131         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15132
15133         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15134
15135 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15136
15137         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15138         condition.
15139         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15140
15141 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15142
15143         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15144         .text section.  Avoid duplicate constants.
15145         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15146         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15147         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15148         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15149         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15150         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15151         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15152         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15153         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15154         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15155         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15156         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15157         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15159         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15160         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15162         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15163         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15164         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15165         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15166         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15167         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15168         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15169         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15170         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15171         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15172         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15173         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15174         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15175         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15176         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15177         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15178         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15179         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15180         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15181         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15182         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15183         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15184         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15185         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15186         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15187         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15188         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15189         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15190
15191 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15192
15193         * sysdeps/x86_64/dla.h: Move to ...
15194         * sysdeps/x86_64/fpu/dla.h: ...here.
15195         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15196         situations.  Use __builtin_fma only for gcc 4.6 and up.
15197
15198         * config.make.in: Add have-mfma4 entry.
15199         * configure.in: Substitute libc_cv_cc_fma4.
15200         * math/Makefile (dbl-only-routines): Add sincostab.
15201         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15202         Use __sincostab not sincos.
15203         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15204         name is a macro.
15205         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15206         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15207         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15208         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15209         using __copysign.
15210         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15211         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15212         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15213         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15214         and __inv.
15215         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15216         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15217         __copysign.
15218         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15219         define aliases when function name is a macro.
15220         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15221         sysdeps/ieee754/dbl-64/sincos.tbl.
15222         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15223         fma4-enabled routines.
15224         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15225         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15226         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15227         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15228         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15229         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15230         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15231         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15232         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15233         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15234         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15235         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15236         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15237         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15238         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15239         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15240         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15241         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15242         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15243         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15244         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15245         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15246         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15247         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15248         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15249         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15250         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15251         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15252         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15253         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15254
15255         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15256         rename.
15257         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15258         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15259         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15260         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15261         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15262         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15263         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15264         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15265
15266 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15267
15268         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15269
15270 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15271
15272         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15273
15274         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15275         prediction.
15276         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15277
15278         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15279         Remove unused variable magic_bits.
15280         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15281
15282         * string/strnlen.c: Define and use STRNLEN macro.
15283         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15284         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15285         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15286         * wcsmbs/wcslen.c: Define and use WCSLEN.
15287         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15288         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15289         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15290         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15291         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15292         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15293         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15294
15295 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15296
15297         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15298         strnlen-sse2-no-bsf.
15299         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15300         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15301         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15302         Add strnlen support.
15303         (USE_AS_STRNLEN): New macro.
15304         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15305         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15306         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15307         * sysdeps/x86_64/wcslen.S: New file.
15308
15309 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15310
15311         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15312         XMM-moves are used for copying on small sizes.
15313
15314 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15315
15316         * wcsmbs/Makefile (strop-tests): Add wcschr.
15317         * wcsmbs/test-wcschr.c: New file.
15318         * string/test-strchr.c: Update.
15319         Add wcschr support.
15320         (WIDE): New macro.
15321
15322 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15323
15324         * wcsmbs/Makefile (strop-tests): Add wcslen.
15325         * wcsmbs/test-wcslen.c: New file.
15326         * string/test-strlen.c: Update.
15327         Add wcslen support.
15328         (WIDE): New macro.
15329
15330 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15331
15332         * po/it.po: Update from translation team.
15333
15334 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15335
15336         * sysdeps/x86_64/wcscmp.S: Update.
15337         Fix wrong comparison semantics.
15338         wcscmp shall use signed comparison not unsigned.
15339         Don't use substraction to avoid overflow bug.
15340         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15341         * wcsmbc/wcscmp.c: Likewise.
15342         * string/test-strcmp.c: Likewise.
15343         Add new tests to check cases with negative values.
15344
15345 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15346
15347         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15348         * sysdeps/x86_64/dla.h: ...here.  New file.
15349         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15350         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15351         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15352         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15353         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15354         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15355         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15356         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15357         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15358
15359 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15360
15361         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15362         __ynl_finite aliases.
15363
15364 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15365
15366         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15367
15368         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15369         define DLA_FMA.
15370         [DLA_FMA] (EMULV): Use DLA_FMA.
15371         [DLA_FMA] (MUL12): Use EMULV.
15372         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15373         that are not needed.
15374         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15375         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15376         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15377         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15378         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15379         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15380         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15381
15382 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15383
15384         * math/s_nan.c: Undef __nan.
15385         * math/s_nanf.c: Undef __nanf.
15386         * math/s_nanl.c: Undef __nanl.
15387         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15388         "math_private.h".
15389
15390 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15391
15392         * math/s_catan.c: Add branch predictions.
15393         * math/s_catanf.c: Likewise.
15394         * math/s_catanh.c: Likewise.
15395         * math/s_catanhf.c: Likewise.
15396         * math/s_catanhl.c: Likewise.
15397         * math/s_catanl.c: Likewise.
15398         * math/s_cexp.c: Likewise.
15399         * math/s_cexpf.c: Likewise.
15400         * math/s_cexpl.c: Likewise.
15401         * math/s_clog.c: Likewise.
15402         * math/s_clog10.c: Likewise.
15403         * math/s_clog10f.c: Likewise.
15404         * math/s_clog10l.c: Likewise.
15405         * math/s_clogf.c: Likewise.
15406         * math/s_clogl.c: Likewise.
15407         * math/s_csqrt.c: Likewise.
15408         * math/s_csqrtf.c: Likewise.
15409         * math/s_csqrtl.c: Likewise.
15410         * math/s_ctanf.c: Likewise.
15411         * math/s_ctanh.c: Likewise.
15412         * math/s_ctanhf.c: Likewise.
15413         * math/s_ctanhl.c: Likewise.
15414         * math/s_ctanl.c: Likewise.
15415
15416         * math/math_private.h: Define __nan, __nanf, __nanl.
15417         * math/s_cacosh.c: Include <math_private.h>.
15418         * math/s_cacoshl.c: Likewise.
15419         * math/s_casinh.c: Likewise.
15420         * math/s_casinhf.c: Likewise.
15421         * math/s_casinhl.c: Likewise.
15422         * math/s_ccos.c: Rely entire on ccosh.
15423         * math/s_ccosf.c: Rely entire on ccoshf.
15424         * math/s_ccosl.c: Rely entirely on ccoshl.
15425         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15426         Remove tests for FE_INVALID.
15427         * math/s_ccoshf.c: Likewise.
15428         * math/s_ccoshl.c: Likewise.
15429         * math/s_csin.c: Likewise.
15430         * math/s_csinf.c: Likewise.
15431         * math/s_csinh.c Likewise.
15432         * math/s_csinhf.c: Likewise.
15433         * math/s_csinhl.c: Likewise.
15434         * math/s_csinl.c: Likewise.
15435         * math/s_ctan.c: Likewise.
15436         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15437         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15438         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15439
15440 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15441
15442         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15443         compilation problems.
15444
15445         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15446         __builtin_expect.
15447
15448 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15449
15450         * sysdeps/i386/configure.in: Test for -mfma4 option.
15451         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15452         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15453         COMMON_CPUID_INDEX_80000001.
15454         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15455         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15456         use it if FMA3 is not supported.
15457         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15458
15459         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15460         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15461
15462 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15463
15464         [BZ #12892]
15465         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15466         it would create a cycle with a link time dependency.
15467
15468 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15469
15470         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15471         instruction.
15472         * string/Makefile (strop-tests): Add rawmemchr.
15473         * string/test-rawmemchr.c: New file.
15474
15475         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15476         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15477         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15478         when compiling str{,n}casecmp and when AVX is available.  Hook up
15479         new optimized code in initializers.
15480
15481 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15482
15483         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15484         __feraiseexcept instead of feraiseexcept.
15485
15486 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15487
15488         * math/math_private.h: Define defaults for libc_fetestexcept and
15489         libc_feupdateenv.
15490         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15491         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15492         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15493         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15494         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15495         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15496         libc_fetestexcept and libc_feupdateenv.
15497
15498         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15499         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15500         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15501         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15502         libc_feholdexcept_setround.
15503
15504         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15505         Add s_nearbyint-c and s_nearbyintf-c.
15506         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15507         nearbyintf inlines.
15508         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15509         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15510         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15511         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15512
15513         * math/math_private.h: Define defaults for libc_fegetround,
15514         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15515         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15516         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15517         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15518         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15519         standard functions.
15520         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15521         Remove comments and hacks for old compiler versions.
15522         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15523         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15524         libc_feholdexceptl.
15525
15526 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15527
15528         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15529         (__feraiseexcept_renamed): Add __NTH.
15530         (feraiseexcept): Add __NTH.  Rename local variables to fix
15531         namespace violations.
15532
15533 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15534
15535         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15536
15537         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15538
15539         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15540         recently added interfaces.
15541         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15542
15543         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15544         about macro parameter expansion.
15545
15546         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15547         __NO_MATH_INLINES is defined.  Cleanups.
15548
15549         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15550         and __floorf is target has SSE4.1.
15551         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15552         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15553         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15554         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15555
15556         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15557         name.
15558         (floorf): Likewise.
15559
15560         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15561
15562 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15563
15564         * misc/sys/cdefs.h: Fix last change.
15565
15566         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15567         database lookup.
15568
15569 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15570
15571         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15572
15573         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15574         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15575         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15576         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15577         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15578         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15579         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15580         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15581         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15582         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15583         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15584         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15585         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15586         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15587         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15588         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15589         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15590         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15591         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15592         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15593         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15594         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15595
15596         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15597         ceil, ceilf, floor, floorf.
15598
15599         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15600         Perform IRELATIVE relocations last.
15601
15602         * elf/do-rel.h: Add another parameter nrelative, replacing the
15603         local variable with the same name.  Change name of the function
15604         to end in Rel or Rela (uppercase).
15605         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15606         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15607         elf_dynamic_do_##reloc function.
15608
15609 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15610
15611         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15612         is sufficient, at least on modern CPUs.
15613
15614         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15615
15616         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15617         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15618
15619         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15620         __expl_finite.
15621         * math/bits/math-finite.h: Add entries for exp.
15622         * math/e_expl.c: Add __*_finite alias.
15623         * sysdeps/i386/fpu/e_exp.S: Likewise.
15624         * sysdeps/i386/fpu/e_expf.S: Likewise.
15625         * sysdeps/i386/fpu/e_expl.c: Likewise.
15626         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15627         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15628         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15629         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15630         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15631         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15632         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15633
15634         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15635         is sufficient, at least on modern CPUs.
15636
15637         * ctype/ctype-info.c (__ctype_init): Define.
15638         * include/ctype.h (__ctype_init): Declare.
15639         (__ctype_b_loc): The variable is always initialized.
15640         (__ctype_toupper_loc): Likewise.
15641         (__ctype_tolower_loc): Likewise.
15642         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15643         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15644
15645 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15646
15647         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15648
15649         * configure.in: Also look in $cxxmachine/include for C++ system
15650         headers.
15651
15652 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15653
15654         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15655         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15656         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15657         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15658         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15659         (USE_AS_WMEMCMP): New macro.
15660         Fixing indents.
15661         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15662         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15663         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15664         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15665         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15666         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15667         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15668         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15669         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15670         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15671         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15672         (USE_AS_WMEMCMP): New macro.
15673         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15674         * sysdeps/string/test-memcmp.c: Update.
15675         Fix simple_wmemcmp.
15676         Add new tests.
15677         * wcsmbs/wmemcmp.c: Update.
15678         (WMEMCMP): New macro.
15679         Fix overflow bug.
15680
15681 2011-10-12  Andreas Jaeger  <aj@suse.de>
15682
15683         [BZ #13268]
15684         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15685
15686 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15687
15688         * libio/iofwide.c (do_length): Avoid warning.
15689
15690         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15691
15692 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15693
15694         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15695
15696         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15697         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15698         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15699         * sysdeps/i386/i686/fpu/e_log.S: New file.
15700         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15701         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15702
15703         * ctype/ctype.h: Add support for inlined isXXX functions when
15704         compiling C++ code.
15705
15706 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15707
15708         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15709
15710         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15711
15712 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15713
15714         [BZ #13291]
15715         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15716
15717 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15718
15719         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15720         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15721         feraiseexcept.
15722
15723         * sysdeps/x86_64/memrchr.S: Check for zero size.
15724
15725         * string/stratcliff.c: Add memrchr tests.
15726
15727 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15728
15729         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15730         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15731         rawmemchr-sse2 rawmemchr-sse2-bsf.
15732         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15733         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15734         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15735         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15736         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15737         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15738         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15739         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15740         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15741         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15742         * string/memrchr.c (MEMRCHR): New macro.
15743
15744 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15745
15746         Add integration with gcc's -ffinite-math-only and optimize wrapper
15747         functions in libm.
15748         * Versions.def: Define GLIBC_2.15 version for libm.
15749         * math/Makefile (headers): Add bits/math-finite.h.
15750         * math/bits/math-finite.h: New file.
15751         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15752         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15753         * math/e_acoshl.c: Add __*_finite alias.
15754         * math/e_acosl.c: Likewise.
15755         * math/e_asinl.c: Likewise.
15756         * math/e_atan2l.c: Likewise.
15757         * math/e_atanhl.c: Likewise.
15758         * math/e_coshl.c: Likewise.
15759         * math/e_exp10.c: Likewise.
15760         * math/e_exp10f.c: Likewise.
15761         * math/e_exp10l.c: Likewise.
15762         * math/e_exp2l.c: Likewise.
15763         * math/e_fmodl.c: Likewise.
15764         * math/e_gammal_r.c: Likewise.
15765         * math/e_hypotl.c: Likewise.
15766         * math/e_j0l.c: Likewise.
15767         * math/e_j1l.c: Likewise.
15768         * math/e_jnl.c: Likewise.
15769         * math/e_lgammal_r.c: Likewise.
15770         * math/e_log10l.c: Likewise.
15771         * math/e_log2l.c: Likewise.
15772         * math/e_logl.c: Likewise.
15773         * math/e_powl.c: Likewise.
15774         * math/e_sinhl.c: Likewise.
15775         * math/e_sqrtl.c: Likewise.
15776         * math/e_scalb.c: Completely rewritten and optimized.
15777         * math/e_scalbf.c: Likewise.
15778         * math/e_scalbl.c: Likewise.
15779         * math/w_acos.c: Likewise.
15780         * math/w_acosf.c: Likewise.
15781         * math/w_acosl.c: Likewise.
15782         * math/w_acosh.c: Likewise.
15783         * math/w_acoshf.c: Likewise.
15784         * math/w_acoshl.c: Likewise.
15785         * math/w_asin.c: Likewise.
15786         * math/w_asinf.c: Likewise.
15787         * math/w_asinl.c: Likewise.
15788         * math/w_atan2.c: Likewise.
15789         * math/w_atan2f.c: Likewise.
15790         * math/w_atan2l.c: Likewise.
15791         * math/w_atanh.c: Likewise.
15792         * math/w_atanhf.c: Likewise.
15793         * math/w_atanhl.c: Likewise.
15794         * math/w_exp10.c: Likewise.
15795         * math/w_exp10f.c: Likewise.
15796         * math/w_exp10l.c: Likewise.
15797         * math/w_fmod.c: Likewise.
15798         * math/w_fmodf.c: Likewise.
15799         * math/w_fmodl.c: Likewise.
15800         * math/w_j0.c: Likewise.
15801         * math/w_j0f.c: Likewise.
15802         * math/w_j0l.c: Likewise.
15803         * math/w_j1.c: Likewise.
15804         * math/w_j1f.c: Likewise.
15805         * math/w_j1l.c: Likewise.
15806         * math/w_jn.c: Likewise.
15807         * math/w_jnf.c: Likewise.
15808         * math/w_log.c: Likewise.
15809         * math/w_logf.c: Likewise.
15810         * math/w_logl.c: Likewise.
15811         * math/w_log10.c: Likewise.
15812         * math/w_log10f.c: Likewise.
15813         * math/w_log10l.c: Likewise.
15814         * math/w_log2.c: Likewise.
15815         * math/w_log2f.c: Likewise.
15816         * math/w_log2l.c: Likewise.
15817         * math/w_pow.c: Likewise.
15818         * math/w_powf.c: Likewise.
15819         * math/w_powl.c: Likewise.
15820         * math/w_remainder.c: Likewise.
15821         * math/w_remainderf.c: Likewise.
15822         * math/w_remainderl.c: Likewise.
15823         * math/w_scalb.c: Likewise.
15824         * math/w_scalbf.c: Likewise.
15825         * math/w_scalbl.c: Likewise.
15826         * math/w_sqrt.c: Likewise.
15827         * math/w_sqrtf.c: Likewise.
15828         * math/w_sqrtl.c: Likewise.
15829         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15830         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15831         used.
15832         * math/math_private.h: Declare __kernel_standard_f.
15833         * math/w_cosh.c: Remove cruft and optimize a bit.
15834         * math/w_coshf.c: Likewise.
15835         * math/w_coshl.c: Likewise.
15836         * math/w_exp2.c: Likewise.
15837         * math/w_exp2f.c: Likewise.
15838         * math/w_exp2l.c: Likewise.
15839         * math/w_hypot.c: Likewise.
15840         * math/w_hypotf.c: Likewise.
15841         * math/w_hypotl.c: Likewise.
15842         * math/w_lgamma.c: Likewise.
15843         * math/w_lgamma_r.c: Likewise.
15844         * math/w_lgammaf.c: Likewise.
15845         * math/w_lgammaf_r.c: Likewise.
15846         * math/w_lgammal.c: Likewise.
15847         * math/w_lgammal_r.c: Likewise.
15848         * math/w_sinh.c: Likewise.
15849         * math/w_sinhf.c: Likewise.
15850         * math/w_sinhl.c: Likewise.
15851         * math/w_tgamma.c: Likewise.
15852         * math/w_tgammaf.c: Likewise.
15853         * math/w_tgammal.c: Likewise.
15854         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15855         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15856         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15857         Minor optimizations.  Pretty printing.  Remove cruft.
15858         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15859         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15860         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15861         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15862         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15863         * sysdeps/i386/fpu/e_asin.S: Likewise.
15864         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15865         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15866         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15867         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15868         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15869         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15870         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15871         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15872         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15873         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15874         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15875         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15876         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15877         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15878         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15879         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15880         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15881         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15882         * sysdeps/i386/fpu/e_log.S: Likewise.
15883         * sysdeps/i386/fpu/e_log10.S: Likewise.
15884         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15885         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15886         * sysdeps/i386/fpu/e_log2.S: Likewise.
15887         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15888         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15889         * sysdeps/i386/fpu/e_logf.S: Likewise.
15890         * sysdeps/i386/fpu/e_logl.S: Likewise.
15891         * sysdeps/i386/fpu/e_pow.S: Likewise.
15892         * sysdeps/i386/fpu/e_powf.S: Likewise.
15893         * sysdeps/i386/fpu/e_powl.S: Likewise.
15894         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15895         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15896         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15897         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15898         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15899         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15900         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15901         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15902         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15903         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15904         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15905         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15906         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15907         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15908         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15909         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15910         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15911         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15912         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15913         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15914         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15915         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15916         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15917         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15918         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15919         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15920         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15921         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15922         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15923         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15924         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15925         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15926         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15927         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15928         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15929         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15930         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15931         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15932         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15933         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15934         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15935         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15936         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15937         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15938         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15939         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15940         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15941         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15942         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15943         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15944         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15945         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15946         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15947         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15948         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15949         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15950         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15951         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15952         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15953         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15954         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15955         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15956         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15957         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15958         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15959         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15960         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15961         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15962         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15963         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15964         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15965         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15966         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15967         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15968         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15969         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15970         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15971         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15972         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15973         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15974         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15975         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15976         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15977         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15978         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15979         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15980         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15981         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15982         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15983         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15984         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15985         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15986         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15987         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15988         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15989         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15990         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15991         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15992         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15993         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15994         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15995         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15996         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15997         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15998         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15999         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16000         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16001         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16002         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16003         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16004         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16005         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16006         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16007         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16008         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16009         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16010         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16011         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16012         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16013         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16014         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16015         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16016         (__isnanf): Likewise.
16017         (__isinf_ns): Likewise.
16018         (__isinf_nsf): Likewise.
16019         (__finite): Likewise.
16020         (__finitef): Likewise.
16021         (__ieee754_sqrt): Define as macro.
16022         (__ieee754_sqrtf): Define as macro.
16023         (__ieee754_sqrtl): Define as macro.
16024         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16025         inlined copy.
16026         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16027         __FINITE_MATH_ONLY__ consistent.
16028         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16029
16030 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16031
16032         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16033         of rawmemchr.
16034
16035         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16036
16037 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16038
16039         * po/ja.po: Update from translation team.
16040
16041 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16042
16043         * locale/programs/locarchive.c (prepare_address_space): New function.
16044         (create_archive, enlarge_archive, open_archive): Use it.
16045
16046         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16047         inside [SHARED], where it is used.
16048
16049         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16050
16051         * nss/getent.c (netgroup_keys): Remove unused variable.
16052         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16053
16054 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16055
16056         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16057         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16058         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16059         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16060         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16061         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16062         * math/Makefile (libm-calls): Add s_isinf_ns.
16063         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16064         * math/multc3.c: Likewise.
16065         * math/s_casin.c: Likewise.
16066         * math/s_casinf.c: Likewise.
16067         * math/s_casinl.c: Likewise.
16068         * math/s_ccos.c: Likewise.
16069         * math/s_ccosf.c: Likewise.
16070         * math/s_ccosl.c: Likewise.
16071         * math/s_ctan.c: Likewise.
16072         * math/s_ctanf.c: Likewise.
16073         * math/s_ctanh.c: Likewise.
16074         * math/s_ctanhf.c: Likewise.
16075         * math/s_ctanhl.c: Likewise.
16076         * math/s_ctanl.c: Likewise.
16077         * math/w_fmod.c: Likewise.
16078         * math/w_fmodf.c: Likewise.
16079         * math/w_fmodl.c: Likewise.
16080         * math/w_remainder.c: Likewise.
16081         * math/w_remainderf.c: Likewise.
16082         * math/w_remainderl.c: Likewise.
16083         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16084         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16085         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16086         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16087         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16088         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16089         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16090         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16091
16092         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16093         of the number.
16094         * stdio-common/printf_fphex.c: Likewise.
16095         * stdio-common/printf_size.c: Likewise.
16096
16097         * math/e_exp10.c: Include math_private.h using <...> not "...".
16098         * math/e_exp10f.c: Likewise.
16099         * math/e_exp10l.c: Likewise.
16100         * math/e_exp2l.c: Likewise.
16101         * math/e_j0l.c: Likewise.
16102         * math/e_j1l.c: Likewise.
16103         * math/e_jnl.c: Likewise.
16104         * math/e_lgammal_r.c: Likewise.
16105         * math/e_rem_pio2l.c: Likewise.
16106         * math/e_scalb.c: Likewise.
16107         * math/e_scalbf.c: Likewise.
16108         * math/e_scalbl.c: Likewise.
16109         * math/k_cosl.c: Likewise.
16110         * math/k_sinl.c: Likewise.
16111         * math/k_tanl.c: Likewise.
16112         * math/s_cacoshf.c: Likewise.
16113         * math/s_catan.c: Likewise.
16114         * math/s_catanf.c: Likewise.
16115         * math/s_catanh.c: Likewise.
16116         * math/s_catanhf.c: Likewise.
16117         * math/s_catanhl.c: Likewise.
16118         * math/s_catanl.c: Likewise.
16119         * math/s_ccosh.c: Likewise.
16120         * math/s_ccoshf.c: Likewise.
16121         * math/s_ccoshl.c: Likewise.
16122         * math/s_cexp.c: Likewise.
16123         * math/s_cexpf.c: Likewise.
16124         * math/s_cexpl.c: Likewise.
16125         * math/s_clog.c: Likewise.
16126         * math/s_clog10.c: Likewise.
16127         * math/s_clog10f.c: Likewise.
16128         * math/s_clog10l.c: Likewise.
16129         * math/s_clogf.c: Likewise.
16130         * math/s_clogl.c: Likewise.
16131         * math/s_csin.c: Likewise.
16132         * math/s_csinf.c: Likewise.
16133         * math/s_csinh.c: Likewise.
16134         * math/s_csinhf.c: Likewise.
16135         * math/s_csinhl.c: Likewise.
16136         * math/s_csinl.c: Likewise.
16137         * math/s_csqrt.c: Likewise.
16138         * math/s_csqrtf.c: Likewise.
16139         * math/s_csqrtl.c: Likewise.
16140         * math/s_ctan.c: Likewise.
16141         * math/s_ctanf.c: Likewise.
16142         * math/s_ctanh.c: Likewise.
16143         * math/s_ctanhf.c: Likewise.
16144         * math/s_ctanhl.c: Likewise.
16145         * math/s_ctanl.c: Likewise.
16146         * math/s_ldexp.c: Likewise.
16147         * math/s_ldexpf.c: Likewise.
16148         * math/s_ldexpl.c: Likewise.
16149         * math/s_significand.c: Likewise.
16150         * math/s_significandf.c: Likewise.
16151         * math/s_significandl.c: Likewise.
16152         * math/w_acos.c: Likewise.
16153         * math/w_acosf.c: Likewise.
16154         * math/w_acosh.c: Likewise.
16155         * math/w_acoshf.c: Likewise.
16156         * math/w_acoshl.c: Likewise.
16157         * math/w_acosl.c: Likewise.
16158         * math/w_asin.c: Likewise.
16159         * math/w_asinf.c: Likewise.
16160         * math/w_asinl.c: Likewise.
16161         * math/w_atan2.c: Likewise.
16162         * math/w_atan2f.c: Likewise.
16163         * math/w_atan2l.c: Likewise.
16164         * math/w_atanh.c: Likewise.
16165         * math/w_atanhf.c: Likewise.
16166         * math/w_atanhl.c: Likewise.
16167         * math/w_cosh.c: Likewise.
16168         * math/w_coshf.c: Likewise.
16169         * math/w_coshl.c: Likewise.
16170         * math/w_dremf.c: Likewise.
16171         * math/w_exp10.c: Likewise.
16172         * math/w_exp10f.c: Likewise.
16173         * math/w_exp10l.c: Likewise.
16174         * math/w_exp2.c: Likewise.
16175         * math/w_exp2f.c: Likewise.
16176         * math/w_fmod.c: Likewise.
16177         * math/w_fmodf.c: Likewise.
16178         * math/w_fmodl.c: Likewise.
16179         * math/w_hypot.c: Likewise.
16180         * math/w_hypotf.c: Likewise.
16181         * math/w_hypotl.c: Likewise.
16182         * math/w_j0.c: Likewise.
16183         * math/w_j0f.c: Likewise.
16184         * math/w_j0l.c: Likewise.
16185         * math/w_j1.c: Likewise.
16186         * math/w_j1f.c: Likewise.
16187         * math/w_j1l.c: Likewise.
16188         * math/w_jn.c: Likewise.
16189         * math/w_jnf.c: Likewise.
16190         * math/w_jnl.c: Likewise.
16191         * math/w_lgamma.c: Likewise.
16192         * math/w_lgamma_r.c: Likewise.
16193         * math/w_lgammaf.c: Likewise.
16194         * math/w_lgammaf_r.c: Likewise.
16195         * math/w_lgammal.c: Likewise.
16196         * math/w_lgammal_r.c: Likewise.
16197         * math/w_log.c: Likewise.
16198         * math/w_log10.c: Likewise.
16199         * math/w_log10f.c: Likewise.
16200         * math/w_log10l.c: Likewise.
16201         * math/w_log2.c: Likewise.
16202         * math/w_log2f.c: Likewise.
16203         * math/w_log2l.c: Likewise.
16204         * math/w_logf.c: Likewise.
16205         * math/w_logl.c: Likewise.
16206         * math/w_pow.c: Likewise.
16207         * math/w_powf.c: Likewise.
16208         * math/w_powl.c: Likewise.
16209         * math/w_remainder.c: Likewise.
16210         * math/w_remainderf.c: Likewise.
16211         * math/w_remainderl.c: Likewise.
16212         * math/w_scalb.c: Likewise.
16213         * math/w_scalbf.c: Likewise.
16214         * math/w_scalbl.c: Likewise.
16215         * math/w_sinh.c: Likewise.
16216         * math/w_sinhf.c: Likewise.
16217         * math/w_sinhl.c: Likewise.
16218         * math/w_sqrt.c: Likewise.
16219         * math/w_sqrtf.c: Likewise.
16220         * math/w_sqrtl.c: Likewise.
16221         * math/w_tgamma.c: Likewise.
16222         * math/w_tgammaf.c: Likewise.
16223         * math/w_tgammal.c: Likewise.
16224
16225         * po/ja.po: Update from translation team.
16226
16227 2011-09-29  Andreas Jaeger  <aj@suse.de>
16228
16229         [BZ #13179]
16230         * sunrpc/netname.c (netname2host): Fix logic.
16231
16232         [BZ #6779]
16233         [BZ #6783]
16234         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16235         correctly.
16236         * math/w_remainder.c (__remainder): Likewise.
16237         * math/w_remainderf.c (__remainderf): Likewise.
16238         * math/libm-test.inc (remainder_test): Add test cases.
16239
16240 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16241
16242         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16243         sdiv_qrnnd.
16244
16245 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16246
16247         * string/test-memcmp.c: Avoid unncessary #defines.
16248         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16249
16250 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16251
16252         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16253         Use new sse2 version for core i3 - i7 as it's faster
16254         than sse42 version.
16255         (bit_Prefer_PMINUB_for_stringop): New.
16256         * sysdeps/x86_64/rawmemchr.S: Update.
16257         Replace with faster SSE2 version.
16258         * sysdeps/x86_64/memrchr.S: New file.
16259         * sysdeps/x86_64/memchr.S: Update.
16260         Replace with faster SSE2 version.
16261
16262 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16263
16264         * elf/dl-load.c (lose): Add cast to avoid warning.
16265
16266 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16267
16268         * po/ca.po: Update from translation team.
16269
16270         * inet/getnetgrent_r.c: Hook up nscd.
16271         * nscd/Makefile (routines): Add nscd_netgroup.
16272         (nscd-modules): Add netgroupcache.
16273         (CFLAGS-netgroupcache.c): Define.
16274         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16275         (cache_search): Add const to second parameter.
16276         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16277         INNETGR.
16278         (dbs): Add netgrdb entry.
16279         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16280         (verify_persistent_db): Handle netgrdb.
16281         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16282         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16283         GETFDNETGR.
16284         (netgroup_response_header): Define.
16285         (innetgroup_response_header): Define.
16286         (datahead): Add netgroup_response_header and innetgroup_response_header
16287         elements.
16288         * nscd/nscd.conf: Add entries for netgroup cache.
16289         * nscd/nscd.h (dbtype): Add netgrdb.
16290         (_PATH_NSCD_NETGROUP_DB): Define.
16291         (netgroup_iov_disabled): Declare.
16292         (xmalloc, xcalloc, xrealloc): Move declarations here.
16293         (cache_search): Adjust prototype.
16294         Add netgroup-related prototypes.
16295         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16296         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16297         (__nscd_innetgr): Declare.
16298         * nscd/selinux.c (perms): Use access_vector_t as element type and
16299         add netgroup-related initializers.
16300         * nscd/netgroupcache.c: New file.
16301         * nscd/nscd_netgroup.c: New file.
16302         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16303         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16304         For four parameters use innetgr.
16305         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16306         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16307         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16308         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16309
16310         * nscd/connections.c (register_traced_file): Don't register file
16311         for disabled databases.
16312
16313 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16314
16315         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16316
16317         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16318         from tree and freeing node.
16319
16320 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16321
16322         * nss/nsswitch.c (__nss_database_lookup): Handle
16323         nss_parse_service_list out of memory case.
16324
16325 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16326
16327         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16328         out of memory case.
16329
16330 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16331
16332         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16333         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16334         pass it down.
16335         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16336         elf_machine_rela, elf_machine_lazy_rel.
16337         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16338         (ELF_DYNAMIC_DO_REL): Likewise.
16339         (ELF_DYNAMIC_DO_RELA): Likewise.
16340         (ELF_DYNAMIC_RELOCATE): Likewise.
16341         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16342         to ELF_DYNAMIC_DO_REL.
16343         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16344         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16345         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16346         elf_machine_rela.
16347         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16348         skip_ifunc, don't call ifunc function if non-zero.
16349         (elf_machine_rela): Likewise.
16350         (elf_machine_lazy_rel): Likewise.
16351         (elf_machine_lazy_rela): Likewise.
16352         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16353         (elf_machine_lazy_rel): Likewise.
16354         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16355         Likewise.
16356         (elf_machine_lazy_rel): Likewise.
16357         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16358         Likewise.
16359         (elf_machine_lazy_rel): Likewise.
16360         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16361         (elf_machine_lazy_rel): Likewise.
16362         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16363         (elf_machine_lazy_rel): Likewise.
16364         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16365         (elf_machine_lazy_rel): Likewise.
16366         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16367         (elf_machine_lazy_rel): Likewise.
16368         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16369         (elf_machine_lazy_rel): Likewise.
16370         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16371         (elf_machine_lazy_rel): Likewise.
16372
16373 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16374
16375         * nss/nss_files/files-init.c (_nss_files_init): Use static
16376         initialization for all the *_traced_file variables.
16377
16378 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16379
16380         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16381
16382 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16383
16384         [BZ #13226]
16385         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16386
16387 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16388
16389         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16390         Reread the line before reparsing it.
16391
16392 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16393
16394         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16395
16396 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16397             Maxim Kuvyrkov  <maxim@codesourcery.com>
16398             Joseph Myers  <joseph@codesourcery.com>
16399
16400         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16401         if needed for __stack_chk_guard.
16402
16403 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16404
16405         * sysdeps/posix/spawni.c (script_execute): Always define it.
16406         It will be optimized away if unused.
16407         (maybe_script_execute): New function.
16408         (__spawni): Call it.
16409
16410         * Makerules: Don't include tls.make.
16411         (config-tls): Always set to thread.
16412         * tls.make.c: File removed.
16413
16414 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16415
16416         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16417         * config.make.in (CPPFLAGS-config): New substituted variable.
16418
16419 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16420
16421         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16422
16423         [BZ #13192]
16424         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16425         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16426
16427 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16428
16429         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16430         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16431         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16432         (CALL_FAIL): Likewise.
16433         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16434         (CALL_FAIL): Macro removed.
16435         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16436
16437 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16438
16439         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16440         for __FINITE_MATH_ONLY__ == 1.
16441
16442 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16443
16444         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16445         __ieee754_sqrt instead of sqrt.
16446         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16447         __ieee754_sqrtf instead of sqrtf.
16448         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16449         __floorf instead of floorf.
16450         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16451         __floorf, __truncf instead of floorf, truncf.
16452
16453 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16454
16455         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16456
16457         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16458         __extern_always_inline.
16459         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16460         32-bit.
16461
16462 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16463
16464         * elf/rtld.c (dl_main): Also relocate in dependency order when
16465         doing symbol dependency testing.
16466
16467 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16468
16469         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16470         Always define `refsym'.
16471
16472 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16473
16474         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16475         (__FD_ELT): Renamed from __FDELT.
16476         * misc/bits/select2.h (__FD_ELT): Likewise.
16477         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16478         __FD_MASK instead of __FDELT, __FDMASK.
16479         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16480         Likewise.
16481         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16482         Likewise.
16483
16484         * elf/Makefile (gen-ldd): Fix pattern.
16485
16486         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16487         (init_tls): Likewise.
16488
16489 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16490
16491         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16492
16493 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16494
16495         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16496         `struct cmsghdr *' instead of `void *'.
16497         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16498         Likewise.
16499
16500 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16501
16502         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16503         if non-absolute.
16504         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16505         ldd_rewrite_script.
16506
16507 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16508
16509         * configure.in: Remove --with-tls option.
16510         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16511         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16512         out in case it is missing.
16513         * sysdeps/ia64/elf/configure.in: Likewise.
16514         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16515         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16516         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16517         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16518         * sysdeps/sh/elf/configure.in: Likewise.
16519         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16520         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16521         * sysdeps/x86_64/elf/configure.in: Likewise.
16522         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16523         * sysdeps/mach/hurd/tls.h: Likewise.
16524
16525         [BZ #13067]
16526         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16527
16528         [BZ #13090]
16529         * configure.in: Fix use of AC_INIT.
16530
16531         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16532
16533 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16534
16535         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16536         __set_errno.
16537         * malloc/hooks.c: Likewise.
16538
16539         [BZ #11929]
16540         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16541         variables statically.
16542         (narenas): Initialize.
16543         (list_lock): Initialize.
16544         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16545         initializtion of main_arena and list_lock.  Small cleanups.
16546         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16547         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16548         Add initializers to main_arena and mp_.
16549         (malloc_state): Remove pagesize member.  Change all users to use
16550         GLRO(dl_pagesize).
16551
16552         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16553         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16554         is always initialized.
16555
16556         * malloc/malloc.c: Removed unused configurations and dead code.
16557         * malloc/arena.c: Likewise.
16558         * malloc/hooks.c: Likewise.
16559         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16560
16561         * include/tls.h: Removed.  USE___THREAD must always be defined.
16562         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16563         * elf/dl-libc.c: Likewise.
16564         * elf/dl-tsd.c: Likewise.
16565         * include/errno.h: Likewise.
16566         * include/netdb.h: Likewise.
16567         * include/resolv.h: Likewise.
16568         * inet/herrno-loc.c: Likewise.
16569         * inet/herrno.c: Likewise.
16570         * malloc/arena.c: Likewise.
16571         * malloc/hooks.c: Likewise.
16572         * malloc/malloc.c: Likewise.
16573         * resolv/res-state.c: Likewise.
16574         * resolv/res_libc.c: Likewise.
16575         * sysdeps/i386/dl-machine.h: Likewise.
16576         * sysdeps/ia64/dl-machine.h: Likewise.
16577         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16578         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16579         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16580         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16581         * sysdeps/sh/dl-machine.h: Likewise.
16582         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16583         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16584         * sysdeps/unix/i386/sysdep.S: Likewise.
16585         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16586         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16587         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16588         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16589         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16590         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16591         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16592         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16593         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16594         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16595         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16596         * sysdeps/x86_64/dl-machine.h: Likewise.
16597         * tls.make.c: Likewise.
16598
16599         * configure.in: Remove --with-__thread option.  Make tests for
16600         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16601         tls_model attribute fail if no support is available.  Remove
16602         USE_IN_LIBIO.
16603         * Makeconfig: Adjust for dropped configure option.  All features are
16604         now mandatory.
16605         * Makerules: Likewise.
16606         * Versions.def: Likewise.
16607         * argp/argp-fmtstream.c: Likewise.
16608         * argp/argp-fmtstream.h: Likewise.
16609         * argp/argp-help.c: Likewise.
16610         * assert/assert.c: Likewise.
16611         * config.h.in: Likewise.
16612         * config.make.in: Likewise.
16613         * configure: Likewise.
16614         * configure.in: Likewise.
16615         * csu/Versions: Likewise.
16616         * csu/init.c: Likewise.
16617         * elf/tst-audit2.c: Likewise.
16618         * elf/tst-tls10.c: Likewise.
16619         * elf/tst-tls10.h: Likewise.
16620         * elf/tst-tls11.c: Likewise.
16621         * elf/tst-tls12.c: Likewise.
16622         * elf/tst-tls14.c: Likewise.
16623         * elf/tst-tlsmod11.c: Likewise.
16624         * elf/tst-tlsmod12.c: Likewise.
16625         * elf/tst-tlsmod13.c: Likewise.
16626         * elf/tst-tlsmod13a.c: Likewise.
16627         * elf/tst-tlsmod14a.c: Likewise.
16628         * elf/tst-tlsmod15b.c: Likewise.
16629         * elf/tst-tlsmod16a.c: Likewise.
16630         * elf/tst-tlsmod16b.c: Likewise.
16631         * elf/tst-tlsmod7.c: Likewise.
16632         * elf/tst-tlsmod8.c: Likewise.
16633         * elf/tst-tlsmod9.c: Likewise.
16634         * gmon/gmon.c: Likewise.
16635         * grp/fgetgrent_r.c: Likewise.
16636         * grp/putgrent.c: Likewise.
16637         * hurd/fopenport.c: Likewise.
16638         * include/libc-symbols.h: Likewise.
16639         * include/tls.h: Likewise.
16640         * intl/gettextP.h: Likewise.
16641         * intl/loadinfo.h: Likewise.
16642         * locale/global-locale.c: Likewise.
16643         * locale/localeinfo.h: Likewise.
16644         * mach/devstream.c: Likewise.
16645         * malloc/arena.c: Likewise.
16646         * malloc/set-freeres.c: Likewise.
16647         * misc/err.c: Likewise.
16648         * misc/getttyent.c: Likewise.
16649         * misc/mntent_r.c: Likewise.
16650         * posix/getopt.c: Likewise.
16651         * posix/wordexp.c: Likewise.
16652         * pwd/fgetpwent_r.c: Likewise.
16653         * resolv/Versions: Likewise.
16654         * resolv/res_hconf.c: Likewise.
16655         * shadow/fgetspent_r.c: Likewise.
16656         * shadow/putspent.c: Likewise.
16657         * stdio-common/printf_fphex.c: Likewise.
16658         * stdio-common/tmpfile.c: Likewise.
16659         * stdlib/abort.c: Likewise.
16660         * stdlib/fmtmsg.c: Likewise.
16661         * sunrpc/auth_unix.c: Likewise.
16662         * sunrpc/clnt_perr.c: Likewise.
16663         * sunrpc/clnt_tcp.c: Likewise.
16664         * sunrpc/clnt_udp.c: Likewise.
16665         * sunrpc/clnt_unix.c: Likewise.
16666         * sunrpc/openchild.c: Likewise.
16667         * sunrpc/svc_simple.c: Likewise.
16668         * sunrpc/svc_tcp.c: Likewise.
16669         * sunrpc/svc_udp.c: Likewise.
16670         * sunrpc/svc_unix.c: Likewise.
16671         * sunrpc/xdr.c: Likewise.
16672         * sunrpc/xdr_array.c: Likewise.
16673         * sunrpc/xdr_rec.c: Likewise.
16674         * sunrpc/xdr_ref.c: Likewise.
16675         * sunrpc/xdr_stdio.c: Likewise.
16676
16677 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16678
16679         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16680
16681 2011-07-03  Andreas Jaeger  <aj@suse.de>
16682
16683         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16684         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16685         regenerate with gen-libm-tests.pl.
16686
16687 2010-05-12  Petr Baudis  <pasky@suse.cz>
16688
16689         [BZ #11589]
16690         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16691         around j0() zero points by switching to j1().
16692         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16693         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16694         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16695         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16696
16697 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16698
16699         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16700         instead of 0.
16701         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16702         instead of 0.                              .
16703         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16704         Patch in part by Pavel Roskin <proski@gnu.org>.
16705
16706         [BZ #13138]
16707         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16708         realloc.
16709         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16710         Free memory block if necessary.
16711
16712         [BZ #12847]
16713         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16714         be NULL.  Don't lock in this case.
16715
16716 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16717
16718         * elf/elf.h (ELFOSABI_GNU): New macro.
16719         (ELFOSABI_LINUX): Define to that.
16720
16721 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16722
16723         * string/strncat.c (strncat): Undef the symbol in case it has been
16724         defined in bits/string.h.
16725
16726 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16727
16728         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16729
16730         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16731         link map.
16732
16733 2011-08-17  Andreas Jaeger  <aj@suse.de>
16734
16735         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16736
16737 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16738             Ian Lance Taylor  <iant@google.com>
16739
16740         * math/libm-test.inc (lround_test): New testcase.
16741         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16742
16743 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16744
16745         * Makefile: Remove support for automatic cvs check-ins.
16746         * Makerules: Likewise.
16747         * config.make.in: Likewise.
16748         * configure.in: Likewise.
16749         * intl/Makefile: Likewise.
16750         * locale/Makefile: Likewise.
16751         * po/Makefile: Likewise.
16752         * posix/Makefile: Likewise.
16753         * sysdeps/gnu/Makefile: Likewise.
16754         * sysdeps/mach/hurd/Makefile: Likewise.
16755         * sysdeps/sparc/sparc32/Makefile: Likewise.
16756
16757         [BZ #13118]
16758         * posix/Makefile (bug-regex32-ENV): Define.
16759         Patch by John Stanley <jpsinthemix@verizon.net>.
16760
16761         * misc/Makefile (headers): Add bits/select2.h.
16762         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16763         * misc/bits/select2.h: New file.
16764         * include/bits/select2.h: New file.
16765         * debug/Makefile (routines): Add fdelt_chk.
16766         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16767         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16768         FD_ISSET.
16769         * debug/fdelt_chk.c: New file.
16770
16771         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16772         * wcsmbs/test-wmemcmp.c: Likewise.
16773         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16774         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16775
16776 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16777
16778         * string/Makefile (strop-tests): Add memcmp.
16779         * string/test-wmemcmp.c: New file.
16780         * string/test-memcmp.c: Add wmemcmp support.
16781
16782 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16783
16784         [BZ #13153]
16785         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16786         2011-07-19 change.
16787
16788         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16789         garbage value in a __mach_port_mod_refs call in the cases of the
16790         task-self and thread-self ports.
16791
16792 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16793
16794         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16795
16796 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16797
16798         * elf/dl-load.c (lose): Check for non-null L.
16799
16800 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16801
16802         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16803
16804         * elf/dl-libc.c (dlerror_run): Pass back error code from
16805         dl_catch_error.
16806
16807         [BZ #13123]
16808         * elf/dl-load.c (lose): Free l_origin if it is valid.
16809
16810         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16811         names.
16812         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16813         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16814         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16815         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16816         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16817         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16818
16819 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16820
16821         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16822         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16823         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16824         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16825         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16826         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16827         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16828         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16829         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16830         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16831
16832 2011-08-15  Alan Modra  <amodra@gmail.com>
16833
16834         [BZ #13092]
16835         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16836         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16837         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16838         ppc_mcount to static-only-routines.
16839         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16840         __mcount_internal.
16841         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16842         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16843
16844 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16845
16846         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16847         for finite and infinity parameters.
16848
16849 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16850
16851         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16852         and add nop instructions for throughput optimization.
16853         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16854
16855 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16856
16857         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16858         aligned copy for power7 with vector-scalar instructions.
16859         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16860
16861 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16862
16863         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16864         AVX check.
16865
16866 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16867
16868         [BZ #13144]
16869         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16870         last change.
16871
16872 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16873
16874         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16875         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16876         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16877         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16878         clock_gettime.
16879
16880 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16881
16882         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16883         Forgot to demangle the pointer.
16884
16885         * sysdeps/i386/sysdep.h: Define atom_text_section.
16886         * sysdeps/x86_64/sysdep.h: Likewise.
16887         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16888         section with atom_text_section.
16889         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16890         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16891         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16892         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16893         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16894
16895         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16896         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16897         already be defined.  Change to take two parameters and don't assign
16898         result to variable.  Adjust all users.
16899         Define INTERNAL_GETTIME if not already defined.
16900         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16901         call.
16902         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16903         HAVE_CLOCK_GETTIME_VSYSCALL.
16904         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16905
16906         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16907         gettimeofday vsyscall, just use time.
16908
16909 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16910
16911         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16912         <errno.h>.
16913
16914 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16915
16916         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16917         syscall on x86-64.
16918         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16919         syscall.
16920         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16921         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16922         syscall if possible.
16923
16924 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16925
16926         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16927         e_ident.  Don't pass to find_mapsXX.
16928         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16929
16930 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16931
16932         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16933         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16934         * sysdeps/x86_64/multiarch/strchr.S: Update.
16935         Check bit_slow_BSF bit.
16936         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16937         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16938         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16939
16940 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16941
16942         [BZ #13134]
16943         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16944         before glibc 2.15.
16945         (tryshell): Define.
16946         (__spawni): Change last parameter to be flag.  Test
16947         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16948         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16949         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16950         * posix/spawni.c: Likewise.
16951         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16952         * posix/spawnp.c: Likewise.  Change normal version to use
16953         SPAWN_XFLAGS_USE_PATH.
16954         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16955         SPAWN_XFLAGS_TRY_SHELL.
16956
16957         [BZ #13150]
16958         * posix/glob.h: Remove gcc 1.x support.
16959
16960         [BZ #13068]
16961         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16962
16963 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16964
16965         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16966         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16967         strrchr-sse2-bsf
16968         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16969         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16970         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16971         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16972         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16973         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16974
16975 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16976
16977         * sysdeps/x86_64/wcscmp.S: New file.
16978
16979         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16980         wcscmp-c wcscmp-sse2
16981         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16982         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16983         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16984         * wcsmbs/wcscmp.c: Allow renaming.
16985
16986 2011-09-05  David S. Miller  <davem@davemloft.net>
16987
16988         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16989         stack slot, rather than the struct return pointer slot.
16990         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16991         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16993         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16994
16995 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16996
16997         * po/ja.po: Update from translation team.
16998
16999         [BZ #13144]
17000         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17001         kernel in 64-bit binaries.
17002
17003 2011-09-01  David S. Miller  <davem@davemloft.net>
17004
17005         * elf/elf.h (HWCAP_SPARC_*): Move to..
17006         * sysdeps/sparc/sysdep.h: this new file and add new values.
17007         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17008         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17009         _DL_HWCAP_COUNT to 24.
17010         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17011         entries.
17012         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17013         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17014         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17015         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17016         instead of magic constants.
17017         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17018
17019 2011-08-31  David S. Miller  <davem@davemloft.net>
17020
17021         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17022         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17023         Reimplement to do errno handling inline.
17024         (SYSCALL_ERROR_HANDLER): New macro.
17025         (__SYSCALL_STRING): Do not do errno handling in asm.
17026         (__CLONE_SYSCALL_STRING): Delete.
17027         (__INTERNAL_SYSCALL_STRING): Delete.
17028         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17029         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17030         (PSEUDO): Reimplement to do errno handling inline.
17031         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17032         (SYSCALL_ERROR_HANDLER): New macro.
17033         (__SYSCALL_STRING): Do not do errno handling in asm.
17034         (__CLONE_SYSCALL_STRING): Delete.
17035         (__INTERNAL_SYSCALL_STRING): Delete.
17036         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17037         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17038         i386.
17039         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17040         (inline_syscall*): Add 'err' argument.
17041         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17042         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17043         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17044         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17045
17046         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17047         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17048
17049 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17050
17051         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17052
17053 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17054
17055         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17056         directive.
17057
17058 2011-08-24  David S. Miller  <davem@davemloft.net>
17059
17060         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17061
17062 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17063
17064         * elf/Makefile: Add rules to build and run unload8 test.
17065         * elf/unload8.c: New file.
17066         * elf/unload8mod1.c: New file.
17067         * elf/unload8mod1x.c: New file.
17068         * elf/unload8mod2.c: New file.
17069         * elf/unload8mod3.c: New file.
17070
17071         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17072         it wasn't used.
17073
17074 2011-08-23  David S. Miller  <davem@davemloft.net>
17075
17076         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17077         subtract stack bias.
17078         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17079         %sp not %fp in calculations.
17080         (_JMPBUF_UNWINDS_ADJ): Likewise.
17081
17082         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17083         (aio_suspend): Call it to force an exception region around the
17084         AIO_MISC_WAIT() invocation.
17085
17086 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17087
17088         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17089         backslash.
17090
17091 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17092
17093         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17094         protection macro.
17095         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17096         and <dl-machine.h>.
17097         (Elf64_FuncDesc): Remove.
17098
17099 2011-08-22  David S. Miller  <davem@davemloft.net>
17100
17101         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17102         sigaltstack check, add missing cfi directives.
17103         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17104         missing cfi directives, and sigaltstack handling.
17105
17106 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17107
17108         [BZ #11724]
17109         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17110         object is seen twice.
17111         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17112
17113         * elf/Makefile (distribute): Add tst-initorder2.c.
17114         (tests): Add tst-initorder2.
17115         (modules-names): Add tst-initorder2a tst-initorder2b
17116         tst-initorder2c tst-initorder2d.  Add rules to build them.
17117         ($(objpfx)tst-initorder2.out): New rule.
17118         * elf/tst-initorder2.c: New file.
17119         * elf/tst-initorder2.exp: New file.
17120
17121 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17122
17123         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17124
17125         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17126         dependencies back to end of function.
17127
17128         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17129         $(elfobjdir)/ld.so.
17130
17131 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17132
17133         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17134         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17135         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17136         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17137         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17138         of __vdso_gettimeofday.
17139         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17140         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17141         attribute_hidden.
17142         (_libc_vdso_platform_setup): Remove initialization of
17143         __vdso_gettimeofday and __vdso_time.
17144
17145 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17146
17147         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17148         and fgetc_unlocked.
17149         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17150         getc_unlocked.
17151
17152         * elf/dl-open.c (add_to_global): Report additions to the global scope
17153         for LD_DEBUG=scopes.
17154         (dl_open_worker): Also print scope of newly loaded dependencies.
17155         (_dl_show_scope): Indicate if there is no scope.
17156
17157         [BZ #13114]
17158         * stdio-common/Makefile (tests): Add bug24.
17159         * stdio-common/bug24.c: New file.
17160
17161 2011-08-19  Andreas Jaeger  <aj@suse.de>
17162
17163         [BZ #13114]
17164         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17165         non-existant file when using close-on-exec mode.
17166
17167 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17168
17169         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17170         the very first instruction.
17171
17172         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17173         the CFI state in the end.
17174         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17175         inclusion of dl-trampoline.h.
17176         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17177
17178 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17179
17180         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17181         expectations for long double.
17182
17183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17184         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17185
17186 2011-08-14  David S. Miller  <davem@davemloft.net>
17187
17188         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17189         artificual limit depends upon the system page size.
17190
17191 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17192
17193         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17194         * resolv/Makefile: Define CFLAGS-libresolv.
17195
17196 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17197
17198         * nss/makedb.c (compute_tables): Make variables used in nested
17199         function static.
17200
17201 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17202
17203         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17204         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17205         if buffer was too small.
17206
17207         * elf/pldd.c (main): Attach to all threads in the process.
17208         Rewrite /proc handling to use *at functions.
17209
17210 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17211
17212         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17213         specifies first scope to show.
17214         (dl_open_worker): Update callers.  Move printing scope of new
17215         object to before the relocation.
17216         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17217         * sysdeps/generic/ldsodefs.h: Update declaration.
17218
17219         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17220         string for the scope number.
17221
17222 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17223
17224         * nscd/servicescache.c (cache_addserv): Make sure written is always
17225         initialized.
17226
17227 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17228
17229         * sysdeps/i386/i486/bits/atomic.h
17230         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17231         statement expression, so as to suppress "set but not used" warning.
17232         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17233
17234         * string/strncat.c (STRNCAT): Use prototype definition.
17235
17236         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17237         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17238         -Iprograms here.
17239         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17240         (localedef-modules): Add localedef.
17241         (locale-modules): Add locale.
17242
17243         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17244         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17245         to avoid a warning.
17246
17247 2011-08-14  David S. Miller  <davem@davemloft.net>
17248
17249         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17250         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17251
17252 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17253
17254         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17255         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17256         * elf/rtld.c (dl_main): Set l_name of vDSO.
17257         Call _dl_show_scope when DL_DEBUG_SCOPES.
17258         (process_dl_debug): Recognize scopes flag and also set it for all.
17259         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17260         Declare _dl_show_scope.
17261
17262         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17263         (do_dlopen): Pass caller_dlopen to dl_open.
17264         (__libc_dlopen_mode): Initialize caller_dlopen.
17265
17266         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17267         of libc.  Make tolower call locale-independent.  Optimize a bit by
17268         using isdigit instead of isalnum.
17269         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17270
17271 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17272
17273         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17274         was a dependency or dynamically loaded.
17275
17276 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17277
17278         * intl/l10nflist.c: Allow architecture-specific pop function.
17279         * sysdeps/x86_64/l10nflist.c: New file.
17280
17281         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17282         classification.
17283
17284 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17285
17286         * include/dirent.h: Add libc_hidden_proto for scandirat and
17287         scandirat64.  Don't declare __scandirat64.
17288         * dirent/scandirat.c: Add libc_hidden_def.
17289         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17290         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17291
17292 2011-08-10  David S. Miller  <davem@davemloft.net>
17293
17294         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17295         enum.
17296         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17297         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17298         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17299
17300 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17301
17302         * Versions.def [libc]: Add GLIBC_2.15.
17303         * dirent/Makefile (routines): Add scandirat and scandirat64.
17304         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17305         GLIBC_2.15.
17306         * dirent/dirent.h: Declare scandirat and scandirat64.
17307         * dirent/scandirat.c: New file.
17308         * dirent/scandirat64.c: New file.
17309         * sysdeps/wordsize-64/scandirat.c: New file.
17310         * sysdeps/wordsize-64/scandirat64.c: New file.
17311         * dirent/opendir.c: Define opendirat.
17312         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17313         using scandirat.
17314         * dirent/scandir64.c: Adjust for scandir.c change.
17315         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17316         __scandirat64, and __scandir_cancel_handler.
17317         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17318         additional parameter and use openat instead of open (outside of ld.so).
17319         Add new __opendir as wrapper around __opendirat.
17320         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17321         here without requiring old scandirat implementation.
17322
17323 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17324
17325         * dirent/scandir.c (cancel_handler): Renamed to
17326         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17327         defined.  Adjust users.
17328         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17329         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17330
17331 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17332
17333         * string/test-string.h (IMPL): Use __STRING to expand name and then
17334         stringify it.
17335
17336         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17337         of cleanups.
17338
17339 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17340
17341         * string/Makefile: Update.
17342         (strop-tests): Append strncat.
17343         * string/test-wcscmp.c: New file.
17344         New comprehensive test for wcscmp.
17345         * string/test-strcmp.c: Update.
17346         (WIDE): New define.
17347
17348 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17349
17350         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17351         line.
17352
17353 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17354
17355         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17356         encoding to ACE if AI_IDN.
17357
17358 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17359
17360         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17361         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17362
17363 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17364
17365         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17366         Fix overflow bug in strncat.
17367         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17368
17369         * string/test-strncat.c: Update.
17370         Add new tests for checking overflow bugs.
17371
17372 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17373
17374         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17375         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17376         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17377         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17378         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17379         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17380         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17381         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17382         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17383
17384         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17385         (USE_AS_STRCAT): Define.
17386         Add strcat and strncat support.
17387         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17388
17389 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17390
17391         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17392         __n bigger than INT_MAX+1.
17393         (__strncmp_g): Likewise.
17394
17395 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17396
17397         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17398         * libio/stido.h: Likewise.
17399
17400         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17401         (AF_NFC): Define.
17402         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17403         (AF_NFC): Define.
17404
17405         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17406         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17407         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17408         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17409         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17410
17411         [BZ #13021]
17412         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17413         installed.
17414
17415         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17416         typo.
17417         (_dl_x86_64_save_sse): Likewise.
17418
17419 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17420
17421         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17422         OSXSAVE.
17423         (_dl_x86_64_save_sse): Likewise.
17424
17425         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17426
17427         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17428
17429 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17430
17431         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17432         change.
17433         (_dl_x86_64_save_sse): Use correct AVX check.
17434
17435 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17436
17437         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17438         bug in strncpy/strncat.
17439         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17440
17441 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17442
17443         * string/tester.c (test_strcat): Add tests for different alignments
17444         of source and destination.
17445         (test_strncat): Likewise.
17446
17447 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17448
17449         [BZ #12852]
17450         * posix/glob.c (glob): Check passed in values before using them in
17451         expressions to avoid some overflows.
17452         (glob_in_dir): Likewise.
17453
17454         [BZ #13007]
17455         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17456         check for AVX enablement so that we don't crash with old kernels and
17457         new hardware.
17458         * elf/tst-audit4.c: Add same checks here.
17459         * elf/tst-audit6.c: Likewise.
17460
17461         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17462
17463 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17464
17465         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17466
17467 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17468
17469         * po/cs.po: Update from translation team.
17470         * po/bg.po: Likewise.
17471
17472 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17473
17474         * misc/sys/cdefs.h: Add support for const attribute.
17475         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17476         to gnu_dev_{major,minor,makedev} functions.
17477
17478 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17479
17480         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17481
17482 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17483
17484         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17485         strlen results.
17486
17487 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17488
17489         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17490         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17491         register in order to avoid conflicts with the soft frame pointer
17492         being held in r11 when necessary.
17493         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17494         (INTERNAL_VSYSCALL_NCS): Likewise.
17495
17496 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17497
17498         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17499         * elf/dl-fini.c (_dl_fini): Adjust caller.
17500         * elf/dl-close.c (_dl_close_worker): Likewise.
17501         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17502
17503 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17504
17505         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17506         "aux_cache->nlibs < 0".
17507
17508         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17509         in the reload-count case.
17510
17511 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17512
17513         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17514         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17515         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17516         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17517         * sysdeps/x86_64/multiarch/strcat.S: New file.
17518         * sysdeps/x86_64/multiarch/strncat.S: New file.
17519         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17520         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17521         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17522         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17523         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17524         (USE_AS_STRCAT): Define.
17525         Add strcat and strncat support.
17526         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17527         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17528         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17529         * string/strncat.c: Update.
17530         (USE_AS_STRNCAT): Define.
17531         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17532         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17533         and i7.
17534         * sysdeps/x86_64/multiarch/init-arch.h
17535         (bit_Prefer_PMINUB_for_stringop): New.
17536         (index_Prefer_PMINUB_for_stringop): Likewise.
17537         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17538         bit_Prefer_PMINUB_for_stringop.
17539
17540 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17541
17542         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17543         buffer64.
17544         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17545         of casting of buffer.
17546         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17547         buffer32 and buffer64.
17548         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17549         writes instead of casting of buffer.
17550         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17551         buffer32.
17552         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17553         casting of buffer.
17554
17555 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17556
17557         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17558
17559 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17560
17561         * nscd/nscd.c (termination_handler): Don't do anything for a database
17562         if it has not yet been initialized.
17563
17564 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17565
17566         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17567
17568 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17569
17570         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17571
17572 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17573
17574         * po/nl.po: Update from translation team.
17575         * po/sv.po: Likewise.
17576
17577 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17578
17579         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17580         now disallowed by GCC.
17581
17582         * configure.in (use-default-link): Default to yes if a test -shared
17583         link meets our qualifications.
17584         * configure: Regenerated.
17585
17586         * config.make.in (output-format): New variable.
17587         * configure.in: Check for ld --print-output-format support.
17588         * configure: Regenerated.
17589         * Makerules ($(common-objpfx)format.lds)
17590         [$(output-format) != unknown]: Just use $(output-format),
17591         instead of the linker-script munging.
17592
17593 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17594
17595         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17596         of $(common-objpfx)shlib.lds.
17597         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17598
17599         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17600         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17601
17602         * configure.in (-z relro check): Adjust test code to add a large
17603         writable data section after it.
17604         * configure: Regenerated.
17605
17606 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17607
17608         * configure.in (-z relro check): Fix test code to make the variable
17609         truly const.
17610         * configure: Regenerated.
17611
17612 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17613
17614         * nscd/nscd.h (struct traced_file): Define.
17615         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17616         elements.  Add traced_files.
17617         (inotify_fd): Declare.
17618         (register_traced_file): Declare.
17619         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17620         (inotify_fd): Export.
17621         (resolv_conf_descr): Remove.
17622         (nscd_init): Move inotify descriptor creation to main.
17623         Don't register files for notification here.
17624         (register_traced_file): New function.
17625         (invalidate_cache): Don't use reset_res to determine whether to call
17626         res_init, go through the list of registered files.
17627         (main_loop_poll): The inotify descriptors are now stored in the
17628         structures for the traced files.
17629         (main_loop_epoll): Likewise
17630         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17631         to __nss_disable_nscd.
17632         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17633         for a database anymore.  Check the records for all the registered
17634         files instead.
17635         * nss/Makefile (libnss_files-routines): Add files-init.
17636         (libnss_db-routines): Add db-init.
17637         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17638         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17639         * nss/nss_db/db-init.c: New file.
17640         * nss/nss_files/files-init.c: New file.
17641         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17642         __nss_lookup_function.
17643         (__nss_lookup_function): Call nss_load_library.
17644         (nss_load_all_libraries): New function.
17645         (__nss_disable_nscd): Take parameter with callback function for files
17646         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17647         used for the cached services.
17648         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17649         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17650         options for features to all the files in nscd.
17651
17652         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17653
17654 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17655
17656         * csu/elf-init.c (__libc_csu_init): Comment typo.
17657
17658 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17659
17660         * po/pl.po: Update from translation team.
17661         * po/ja.po: Likewise.
17662         * po/ru.po: Likewise.
17663         * po/ko.po: Likewise.
17664         * po/fr.po: Likewise.
17665
17666 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17667
17668         * configure.in (.ctors/.dtors header and trailer check):
17669         Use an empirical test on a built program.
17670         * configure: Regenerated.
17671
17672         * configure.in (-z relro check): Use an empirical test on a built DSO.
17673         Detect, but do not require, on ia64.
17674         * configure: Regenerated.
17675
17676         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17677         Update tests that use readelf to use $READELF instead.
17678         * configure: Regenerated.
17679
17680 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17681
17682         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17683         if the result is not used.
17684
17685 2011-07-05  Andreas Jaeger  <aj@suse.de>
17686
17687         [BZ#9696]
17688         * stdlib/tst-strtod.c: Add testcase.
17689
17690 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17691
17692         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17693         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17694         The latter has a higher limit.  Take additional parameter to pass to
17695         the new function.
17696         (__pathconf): Pass file to __statfs_link_max.
17697         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17698         __statfs_link_max.
17699         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17700         __statfs_link_max.
17701
17702         [BZ #12868]
17703         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17704         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17705         Handle Lustre.
17706         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17707         (__statfs_filesize_max): Likewise.
17708         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17709
17710 2011-07-05  Andreas Jaeger  <aj@suse.de>
17711
17712         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17713
17714 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17715
17716         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17717         `status' variable.
17718         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17719         Likewise.
17720
17721 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17722
17723         * Makefile (strop-tests): Add strncat.
17724         * string/test-strncat.c: New file.
17725
17726 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17727
17728         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17729
17730 2011-06-21  Andreas Jaeger  <aj@suse.de>
17731
17732         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17733         Copy rule from iconvdata/Makefile.
17734
17735 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17736
17737         [BZ #12922]
17738         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17739         but no long options are defined, just return 'W'.
17740
17741 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17742
17743         [BZ #9696]
17744         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17745
17746 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17747
17748         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17749         netgroups to read.
17750         (innetgr): Likewise.
17751
17752 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17753
17754         * config.make.in (install_root): Default to $(DESTDIR).
17755
17756 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17757
17758         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17759
17760 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17761
17762         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17763
17764         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17765         containing directory rather than embedding absolute directory names.
17766
17767         * scripts/check-local-headers.sh: Rewritten using awk.
17768         Match by word, not by line.  Print error messages for matches.
17769         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17770
17771         * Makerules [shlib-lds-flags empty]:
17772         ($(common-objpfx)libc_pic.opts): New target.
17773         ($(common-objpfx)libc_pic.os.clean): New target.
17774         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17775
17776         * config.make.in (OBJCOPY): New variable.
17777         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17778         * configure: Regenerated.
17779
17780         * config.make.in (use-default-link): New variable.
17781         * configure.in (use_default_link): Grok --with-default-link to set it.
17782         * configure: Regenerated.
17783         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17784         (shlib-lds, shlib-lds-flags): Define to empty.
17785
17786         * Makerules (shlib-lds): New variable.
17787         (shlib-lds-flags): New variable.
17788         (build-shlib, build-moduile, build-module-asneeded): Use it.
17789         ($(common-objpfx)libc.so): Use $(shlib-lds).
17790         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17791         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17792
17793         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17794         DT_FLAGS/DT_FLAGS_1 with zero flags.
17795
17796         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17797         linker script munging.
17798
17799 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17800
17801         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17802         as 128-bit value.
17803         * crypt/sha512.c (sha512_process_block): Perform total addition using
17804         128-bit if possible.
17805         (__sha512_finish_ctx): Likewise.
17806         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17807         as 64-bit value.
17808         * crypt/sha256.c (SWAP64): Define.
17809         (sha256_process_block): Perform total addition using 64-bit if
17810         possible.
17811         (__sha256_finish_ctx): Likewise.
17812
17813 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17814
17815         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17816         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17817         * nscd/hstcache.c (cache_addhst): Likewise.
17818         * nscd/grpcache.c (cache_addgr): Likewise.
17819         * nscd/aicache.c (addhstaiX): Likewise
17820         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17821
17822 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17823
17824         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17825         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17826         * nscd/hstcache.c (cache_addhst): Likewise.
17827         * nscd/grpcache.c (cache_addgr): Likewise.
17828         * nscd/aicache.c (addhstaiX): Likewise
17829
17830 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17831
17832         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17833         domain only when needed.
17834
17835 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17836
17837         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17838         is always restored.
17839
17840 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17841
17842         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17843         are re-adding the entry.
17844         * nscd/servicescache.c (cache_addserv): Likewise.
17845
17846 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17847
17848         * sysdeps/generic/dl-irel.h: fix protection against multiple
17849         inclusions.
17850         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17851
17852 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17853
17854         [BZ #12935]
17855         * malloc/memusage.sh: Fix quoting in message.
17856         * debug/xtrace.sh: Likewise.
17857
17858         * configure.in: Remove support for --experimental-malloc option, make
17859         it the default.
17860         * config.make.in: Likewise.
17861         * malloc/Makefile: Likewise.
17862
17863 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17864
17865         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17866         two-byte characters.
17867
17868 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17869
17870         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17871         AC_CACHE_CHECK invocation.
17872         * configure: Regenerated.
17873
17874         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17875
17876 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17877
17878         [BZ #12350]
17879         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17880         bit from old_res_options.
17881
17882         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17883
17884         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17885         value type for setfct.
17886
17887 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17888
17889         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17890         __gettimeofday instead of gettimeofday.
17891
17892 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17893
17894         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17895
17896 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17897
17898         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17899
17900         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17901         info.
17902
17903 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17904
17905         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17906         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17907         strcpy-sse2-unaligned strncpy-sse2-unaligned
17908         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17909         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17910         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17911         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17912         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17913         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17914         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17915         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17916         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17917         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17918         (STRCPY): Support SSE2 and SSSE3 versions.
17919
17920 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17921
17922         [BZ #12874]
17923         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17924         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17925         kernels which artificially limit size of requests.
17926
17927 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17928
17929         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17930         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17931         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17932         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17933         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17934         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17935         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17936         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17937         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17938         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17939         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17940         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17941         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17942         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17943         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17944         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17945         Enable unaligned load optimization for Intel Core i3, i5 and i7
17946         processors.
17947         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17948         Define.
17949         (index_Fast_Unaligned_Load): Define.
17950         (HAS_FAST_UNALIGNED_LOAD): Define.
17951
17952 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17953
17954         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17955
17956 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17957
17958         [BZ #12907]
17959         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17960         until it is clear that the information is realy needed.
17961         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17962
17963 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17964
17965         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17966
17967 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17968
17969         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17970         /sys/devices/system/cpu/online if it is usable.
17971
17972         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17973         reading the information from the /proc filesystem to once a second.
17974
17975 2011-06-21  Andreas Jaeger  <aj@suse.de>
17976
17977         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17978         NULL after inclusion of kernel headers.
17979
17980 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17981
17982         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17983         calls to internal_setent.
17984
17985         [BZ #12885]
17986         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17987         addresses using gethostbyname4_r ignore IPv4 addresses.
17988
17989         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17990         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17991
17992         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17993
17994 2011-06-20  David S. Miller  <davem@davemloft.net>
17995
17996         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17997         inclusions.
17998         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17999
18000         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18001         (elf_irel): Use it.
18002         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18003         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18004         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18005         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18006         * sysdeps/x86_64/dl-irel.h: Likewise.
18007
18008         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18009         * elf/dl-sym.c: Likewise.
18010
18011 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18012
18013         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18014         need to dereference resplen2.
18015
18016 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18017
18018         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18019
18020 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18021
18022         * Makeconfig: Define vardbdir and inst_vardbdir.
18023         * nss/Makefile: Add rules to install db-Makefile.
18024
18025         * nss/nss_db/db-XXX.c: Cleanup.
18026
18027         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18028         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18029         GLIBC_PRIVATE.
18030         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18031         * nss/makedb.c: Implement -g option to specify that value strings
18032         are generated and should not be added to table iterated over for
18033         get*ent calls.
18034         * nss/nss_db/db-initgroups.c: New file.
18035
18036         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18037         interface.
18038
18039         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18040         (internal_getgrouplist): Adjust to name change.
18041         Update use_initgroups_entry if this is not the first call.
18042         * nss/databases.def: Add initgroups entry.
18043
18044         * nss/makedb.c (compute_tables): Check result of multiple hash table
18045         sizes to minimize maximum chain length.
18046
18047 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18048
18049         * Versions.def: Add entry for libnss_db.
18050         * shlib-versions: Likewise.
18051         * nss/Makefile: Add rules to build libnss_db.
18052         * nss/Versions: Add libnss_db information.  Organize libnss_files
18053         entries better.
18054         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18055         makedb progra.  Some minor improvements to generate smaller files.
18056         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18057         here from...
18058         * nss/makedb.c: ...here.
18059         Improve database format to be smaller and require less memory at
18060         runtime.
18061         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18062         db anymore.
18063         * nss/nss_db/db-netgrp.c: Likewise.
18064         * nss/nss_db/db-open.c: Likewise.
18065         * nss/nss_files/flies-XXX.x: Adjust comments.
18066         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18067         * nss/nss_files/files-grp.c: Likewise.
18068         * nss/nss_files/files-hosts.c: Likewise.
18069         * nss/nss_files/files-network.c: Likewise.
18070         * nss/nss_files/files-proto.c: Likewise.
18071         * nss/nss_files/files-pwd.c: Likewise.
18072         * nss/nss_files/files-rpc.c: Likewise.
18073         * nss/nss_files/files-service.c: Likewise.
18074         * nss/nss_files/files-sgrp.c: Likewise.
18075         * nss/nss_files/files-spwd.c: Likewise.
18076         * nss/nss_db/db-alias.c: Removed.
18077         * nss/nss_db/dummy-db.h: Removed.
18078
18079 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18080
18081         * nss/makedb.c: Rewritten to not use database library.
18082         * nss/Makefile: Update to build new makedb program.
18083
18084 2011-06-14  Andreas Jaeger  <aj@suse.de>
18085
18086         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18087         memset declaration.
18088
18089 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18090
18091         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18092         tmpbuf.
18093
18094 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18095
18096         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18097         * elf/Makefile ($(objpfx)ld.so): Likewise.
18098
18099         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18100         Don't list ld.so twice in dependencies.
18101
18102         * posix/bug-regex31.c: Include <stdlib.h>.
18103
18104         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18105
18106         * nis/nss_compat/compat-spwd.c
18107         (getspent_next_nss_netgr): Remove unused variable.
18108         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18109
18110         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18111         nonmembers" output to use the right array.
18112
18113         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18114
18115         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18116
18117         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18118         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18119         * catgets/gencat.c (read_input_file): Likewise.
18120         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18121
18122         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18123         variable definition inside #if's controlling its use.
18124
18125         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18126
18127         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18128
18129         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18130
18131         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18132         unreachable code.
18133
18134         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18135
18136         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18137         * configure: Regenerated.
18138
18139         * Makerules: Revert last change.
18140         * elf/Makefile: Likewise.
18141
18142 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18143
18144         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18145         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18146         (reloc-link): Likewise.
18147
18148 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18149
18150         * elf/Makefile: Add rules to build pldd.
18151         * elf/pldd.c: New file.
18152         * elf/pldd-xx.c: New file.
18153
18154 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18155
18156         * version.h: Update for 2.15 development version.
18157
18158 2011-06-07  David S. Miller  <davem@davemloft.net>
18159
18160         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18161         ifuncs.
18162         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18163         elf_machine_lazy_rel): Likewise.
18164         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18165         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18166         elf_machine_lazy_rel): Likewise.
18167         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18168         dl_hwcap via passed in argument.
18169         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18170         Likewise.
18171
18172 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18173
18174         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18175
18176 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18177
18178         [BZ #12849]
18179         * manual/fdl-1.1.texi: New file, verbatim from:
18180         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18181         * manual/lgpl-2.1.texi: New file, verbatim from:
18182         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18183         * manual/Makefile (licenses): New variable, list those new file names.
18184         (texis): Use it.
18185         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18186
18187         * manual/fdl.texi: File removed.
18188         * manual/lesser.texi: File removed.
18189         * manual/libc.texinfo (Copying, Documentation License):
18190         Use new @include file names, put @appendix directive before @include.
18191
18192 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18193
18194         [BZ #12841]
18195         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18196         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18197         (mq_open): Add __NTH.
18198
18199 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18200
18201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18202         Assume Intel Core i3/i5/i7 processor if AVX is available.
18203
18204 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18205
18206         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18207         typo.
18208
18209 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18210
18211         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18212         memory.  Use alloca_account.  Fix memory leak when retrying.
18213
18214 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18215
18216         * version.h (RELEASE): Bump for 2.14 release.
18217         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18218
18219         * config.make.in (RANLIB): Remove entry.
18220
18221 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18222
18223         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18224         (libc.pot): Work around missing support for .ksh extension in xgettext.
18225
18226         [BZ #12684]
18227         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18228         if both request failed.
18229         (send_dg): In case of server errors clear resplen or *resplen2.
18230
18231         [BZ #12454]
18232         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18233         when there are multiple maps.
18234         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18235         (_dl_fini): Remove test here.
18236
18237         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18238
18239 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18240
18241         [BZ #12350]
18242         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18243         bit from old_res_options.
18244         (gaih_inet): Likewise.
18245
18246         [BZ #11099]
18247         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18248         as signed.
18249
18250         * resolv/res_init.c (res_setoptions): Make the code more compact.
18251
18252         [BZ #11558]
18253         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18254         set RES_USEVC.
18255
18256         [BZ #11634]
18257         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18258
18259         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18260
18261         [BZ #11781]
18262         * malloc/malloc.h: Declare malloc hook variables as volatile.
18263
18264         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18265         in last patch.
18266
18267         [BZ #11799]
18268         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18269         raise in the comment.
18270         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18271         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18272         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18273
18274 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18275
18276         [BZ #12811]
18277         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18278         grow the buffers more if it already has to be sufficient.
18279         (build_wcs_upper_buffer): Likewise.
18280         * posix/regexec.c (check_matching): Likewise.
18281         (clean_state_log_if_needed): Likewise.
18282         (extend_buffers): Don't enlarge buffers beyond size of the input
18283         buffer.
18284         Patches mostly by Emil Wojak <emil@wojak.eu>.
18285         * posix/bug-regex32.c: New file.
18286         * posix/Makefile (tests): Add bug-regex32.
18287
18288         * locale/findlocale.c (_nl_find_locale): Return right away if
18289         _nl_explode_name failed.
18290         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18291
18292         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18293
18294         * debug/xtrace.sh: Unify messages.
18295         * malloc/memusage.sh: Likewise.
18296
18297         [BZ #12813]
18298         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18299         time symbol from vDSO.  Substitute with vsyscall if not available.
18300         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18301         __vdso_time.
18302
18303         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18304         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18305         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18306         Add sendmmsg and internal_sendmmsg.
18307         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18308         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18309         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18310
18311         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18312         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18313         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18314
18315 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18316
18317         [BZ #12813]
18318         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18319         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18320         available.
18321         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18322         __vdso_getcpu.
18323
18324         [BZ #12814]
18325         * iconvdata/Makefile (tests): Add bug-iconv9.
18326         * iconvdata/bug-iconv9.c: New file.
18327
18328 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18329
18330         [BZ #12814]
18331         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18332
18333 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18334
18335         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18336         (struct user_regs_struct): Change intcs field back to cs.
18337
18338 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18339
18340         * po/ja.po: Update from translation team.
18341
18342 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18343
18344         [BZ #12795]
18345         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18346         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18347
18348 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18349
18350         * stdlib/longlong.h: Update from GCC.
18351
18352 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18353
18354         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18355         parameter name.
18356         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18357         Add parameter name.
18358         (__sysconf): Pass it down.
18359
18360 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18361
18362         [BZ #12671]
18363         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18364         some situations.
18365         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18366         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18367         add in in __libc_use_alloca calls.  Adjust callers.
18368         (glob): Use malloc in some situations.
18369
18370         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18371         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18372         pltexit.
18373
18374 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18375
18376         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18377         and CLOCK_BOOTTIME_ALARM.
18378
18379         [BZ #12782]
18380         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18381         is returned.
18382
18383         * string/_strerror.c (__strerror_r): Print negative errors as signed
18384         numbers.
18385
18386         [BZ #12777]
18387         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18388         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18389         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18390
18391         * configure.in: Fix typo in redirection and correct removal of test
18392         files in two cases.
18393
18394         [BZ #12788]
18395         * locale/setlocale.c (new_composite_name): Fix test to check for
18396         identical name of all categories.
18397
18398         [BZ #12792]
18399         * libio/filedoalloc.c (local_isatty): New function.
18400         (_IO_file_doallocate): Use local_isatty.
18401         * stdio-common/perror.c (perror): In case a new stream is used
18402         forward the stream error.
18403         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18404         error flag.
18405
18406 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18407
18408         [BZ #11869]
18409         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18410         alloca.
18411         * include/alloca.h (extend_alloca_account): Define.
18412
18413         [BZ #11857]
18414         * posix/regex.h: Fix comments with documentation of user-accessible
18415         fields after compilation and describe correct free'ing of pattern
18416         after re_compile_pattern.
18417         Patch by Reuben Thomas <rrt@sc3d.org>.
18418
18419 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18420
18421         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18422         and -mno-altivec to prevent the compiler from using Altivec and/or
18423         VSX instructions when the corresponding registers are not available.
18424
18425 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18426
18427         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18428
18429 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18430
18431         * libio/freopen.c (freopen): Use __dup2, not dup2.
18432         * libio/freopen64.c (freopen64): Likewise.
18433
18434 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18435
18436         [BZ #12775]
18437         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18438         * math/Makefile (tests): Add test-powl.
18439         (CFLAGS-test-powl.c): Define.
18440         * math/test-powl.c: New file.
18441
18442 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18443
18444         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18445
18446 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18447
18448         [BZ #11837]
18449         * iconvdata/gb18030.c: Update to GB18020-2005.
18450
18451 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18452
18453         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18454         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18455         Patch by Aharon Robbins <arnold@skeeve.com>.
18456
18457         [BZ #11892]
18458         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18459         on the stack.
18460
18461         [BZ #11895]
18462         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18463         through underflows.
18464
18465         [BZ #12766]
18466         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18467         point to strings before performing equality test for error_one_per_line
18468         mode.
18469
18470         [BZ #11697]
18471         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18472
18473         [BZ #11820]
18474         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18475         (struct user_fpregs_struct): Avoid __uint*_t types.
18476
18477         [BZ #6420]
18478         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18479         symbol info.  Use it instead of calling _dl_addr locally.
18480         (lock_and_info): New function.
18481         (tr_freehook): Call lock_and_info and pass symbol info as additional
18482         parameter to tr_where.
18483         (tr_mallochook): Likewise.
18484         (tr_reallochook): Likewise.
18485         (tr_memalignhook): Likewise.
18486
18487         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18488         used and couldn't be at all thread-safe.
18489
18490 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18491
18492         * libio/freopen.c (freopen): Don't close old file descriptor
18493         before the new one is opened.  Instead dup the new file descriptor
18494         to the old one after the new stream is created.
18495         * libio/freopen64.c (freopen64): Likewise.
18496         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18497         * libio/fileops.c (_IO_new_file_close_it): Handle new
18498         _IO_FLAGS2_NOCLOSE flag.
18499         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18500         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18501         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18502         _IO_FLAGS2_NOCLOSE flag.
18503         * include/unistd.h: Add hidden_proto for dup3.
18504         Define __have_dup3.
18505         * io/dup3.c: Define hidden symbol.
18506         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18507
18508         [BZ #7101]
18509         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18510         when an incomplete long option is used.
18511         * posix/tst-getopt_long1.c: New file.
18512         * posix/Makefile (tests): Add tst-getopt_long1.
18513
18514         [BZ #10138]
18515         * scripts/config.guess: Update from autoconf-2.68.
18516         * scripts/config.sub: Likewise.
18517
18518         [BZ #10157]
18519         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18520         tests into ...
18521         (has_cpuclock): ...this.  New function.
18522         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18523         macro here based on has_cpuclock code.
18524
18525         [BZ #10149]
18526         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18527         First byte (not low byte) is now always NUL.
18528         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18529
18530         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18531         Use non-cancelable interfaces.
18532
18533         [BZ #9809]
18534         * locale/iso-639.def: Add entry for Sorani.
18535
18536         [BZ #11901]
18537         * include/stdlib.h: Move include protection to the right place.
18538         Define abort_msg_s.  Declare __abort_msg with it.
18539         * stdlib/abort.c (__abort_msg): Adjust type.
18540         * assert/assert.c (__assert_fail_base): New function.  Majority
18541         of code from __assert_fail.  Allocate memory for __abort_msg with
18542         mmap.
18543         (__assert_fail): Now call __assert_fail_base.
18544         * assert/assert-perr.c: Remove bulk of implementation.  Use
18545         __assert_fail_base.
18546         * include/assert.hL Declare __assert_fail_base.
18547         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18548         mmap.
18549         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18550
18551 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18552
18553         [BZ #11952]
18554         [BZ #12453]
18555         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18556         until all modules are registered in the DTV.
18557         * elf/Makefile: Add rules to build and run tst-tls19.
18558         * elf/tst-tls19.c: New file.
18559         * elf/tst-tls19mod1.c: New file.
18560         * elf/tst-tls19mod2.c: New file.
18561         * elf/tst-tls19mod3.c: New file.
18562         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18563
18564         [BZ #12083]
18565         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18566         correctly.
18567
18568         [BZ #12601]
18569         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18570         two-byte sequence errors.
18571         * iconvdata/Makefile (tests): Add bug-iconv8.
18572         * iconvdata/bug-iconv8.c: New file.
18573
18574         [BZ #12626]
18575         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18576         buf2 definition.
18577
18578         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18579
18580         [BZ #12432]
18581         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18582         (dummy_getcfa): New function.
18583         (init): Get _Unwind_GetCFA address, use dummy if not found.
18584         (backtrace_helper): In recursion check, also check whether CFA changes.
18585         (__backtrace): Completely initialize arg.
18586
18587         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18588         storing incomplete byte sequence in state object.  Avoid testing for
18589         guaranteed too small input if we know there is enough data available.
18590
18591 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18592
18593         * Makeconfig (+link-pie): Indent.
18594         * Rules (binaries-pie): Define if $(have-fpie) and
18595         $(build-shared).
18596         (binaries-shared): Also filter out $(binaries-pie).
18597         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18598         * nscd/Makefile (others-pie): Add nscd.
18599         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18600         ($(objpfx)nscd): Remove command override.
18601         * login/Makefile (others-pie): Add pt_chown.
18602         ($(objpfx)pt_chown): Remove command override.
18603         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18604         remove command overrides.
18605
18606 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18607
18608         * libio/tst_putwc.c: Fix error messages.
18609
18610         [BZ #12724]
18611         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18612         currently writing and seek to current position when not.
18613         * libio/Makefile (tests): Add bug-fclose1.
18614         * libio/bug-fclose1.c: New file.
18615
18616 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18617
18618         [BZ #12511]
18619         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18620         don't set DF_1_NODELETE here.
18621         (do_lookup_x): When entering new entry test for copy relocation
18622         and if necessary set DF_1_NODELETE flag.
18623         * elf/tst-unique4.cc: New file.
18624         * elf/tst-unique4.h: New file.
18625         * elf/tst-unique4lib.cc: New file.
18626         * elf/Makefile: Add rules to build and run tst-unique4.
18627         Patch by Piotr Bury <pbury@goahead.com>.
18628
18629 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18630
18631         [BZ #12052]
18632         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18633
18634         [BZ #12625]
18635         * misc/mntent_r.c (addmntent): Flush the stream after the output
18636
18637         [BZ #12393]
18638         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18639         (is_trusted_path_normalize): Skip initial colon.  Append slash
18640         to empty buffer.  Duplicate is_trusted_path code but allow
18641         constructed patch to be prefix.
18642         (is_dst): Allow $ORIGIN followed by /.
18643         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18644         Correct testing of result of is_trusted_path_normalize
18645         (decompose_rpath): Fix warning.
18646
18647 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18648
18649         [BZ #11257]
18650         * grp/initgroups.c (internal_getgrouplist): When we found the service
18651         list through the initgroups entry in nsswitch.conf do not always
18652         continue on a successful lookup.  Don't always use the
18653         __nss_group_database value if it is set.
18654         * nss/nsswitch.conf (initgroups): Change action for successful db
18655         lookup to continue for compatibility.
18656
18657 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18658
18659         [BZ #11532]
18660         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18661         and CP774 modules.
18662         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18663         and CP774 modules.
18664         * iconvdata/tst-tables.sh: Likewise.
18665         * iconvdata/cp770.c: New file.
18666         * iconvdata/cp771.c: New file.
18667         * iconvdata/cp772.c: New file.
18668         * iconvdata/cp773.c: New file.
18669         * iconvdata/cp774.c: New file.
18670         * iconvdata/testdata/CP770: New file.
18671         * iconvdata/testdata/CP770..UTF8: New file.
18672         * iconvdata/testdata/CP771: New file.
18673         * iconvdata/testdata/CP771..UTF8: New file.
18674         * iconvdata/testdata/CP772: New file.
18675         * iconvdata/testdata/CP772..UTF8: New file.
18676         * iconvdata/testdata/CP773: New file.
18677         * iconvdata/testdata/CP773..UTF8: New file.
18678         * iconvdata/testdata/CP774: New file.
18679         * iconvdata/testdata/CP774..UTF8: New file.
18680
18681         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18682         END CHARMAP line.
18683         * iconvdata/gen-8bit-gap.sh: Likewise.
18684         * iconvdata/gen-8bit.sh: Likewise.
18685
18686         * locale/iso-639.def: Add ary entry.
18687
18688         [BZ #11258]
18689         * locale/C-translit.h.in: Add U20A1 transliteration.
18690
18691         [BZ #12178]
18692         * locale/iso-639.def: Add wae entry.
18693         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18694
18695         [BZ #12545]
18696         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18697         for n.
18698
18699         [BZ #12711]
18700         * locale/C-translit.h.in: Add entry for U20B9.
18701         Patch by pravin.d.s@gmail.com.
18702
18703 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18704
18705         [BZ #12713]
18706         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18707         ENAMETOOLONG use generic getcwd.
18708         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18709         in rtld.  Use *stat64.
18710         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18711         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18712         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18713         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18714         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18715         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18716         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18717         __fstatat64 macros.
18718         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18719         * dirent/rewinddir.c: Add libc_hidden_def.
18720         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18721         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18722
18723         * include/dirent.h (__alloc_dir): Add flags parameter.
18724         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18725         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18726         __alloc_dir.
18727         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18728         from fdopendir if O_CLOEXEC is already set.
18729
18730 2011-03-15  Alan Modra  <amodra@gmail.com>
18731
18732         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18733         l_tls_firstbyte_offset non-zero.  Save padding offset in
18734         l_tls_firstbyte_offset for later use.
18735         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18736         freeing static tls block.
18737
18738 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18739
18740         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18741         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18742         being defined by the kernel headers.
18743
18744 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18745
18746         [BZ #12734]
18747         * resolv/resolv.h: Define RES_NOTLDQUERY.
18748         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18749         no-tld-query and set RES_NOTLDQUERY.
18750         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18751         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18752         modern BIND to search name as TLD unless forbidden.
18753
18754 2011-05-07  Petr Baudis  <pasky@suse.cz>
18755             Ulrich Drepper  <drepper@gmail.com>
18756
18757         [BZ #12393]
18758         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18759         (is_trusted_path): ...to here.
18760         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18761         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18762         using is_trusted_path_normalize() in setuid scripts.
18763
18764 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18765
18766         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18767         __BEGIN/__END_DECLS.
18768
18769 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18770
18771         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18772         NSS_STATUS_NOTFOUND if no record was found.
18773
18774 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18775
18776         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18777         (headers-not-in-tirpc): Remove rpc/netdb.h
18778         * resolv/netdb.h: Revert last change.
18779
18780 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18781
18782         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18783         circular dependency between libgcc.a and libc.a.
18784
18785 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18786
18787         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18788         * nis/Makefile: Don't install rpcsvc/*.
18789         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18790         instead of <rpc/types.h>.
18791         (MAXHOSTNAMELEN): Define.
18792
18793 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18794
18795         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18796
18797 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18798
18799         [BZ #12714]
18800         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18801         gethostbyname4_r when IPv6 results are possible.
18802
18803 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18804
18805         [BZ #12723]
18806         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18807         _PC_PIPE_BUF handling.
18808
18809 2011-04-30  Bruno Haible  <bruno@clisp.org>
18810
18811         [BZ #12717]
18812         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18813         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18814         to 'int'.
18815         * inet/getnameinfo.c (getnameinfo): Likewise.
18816
18817 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18818
18819         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18820         to groups setting in database lookup.
18821         * nss/nsswitch.conf: Add initgroups entry.
18822
18823 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18824
18825         [BZ #12685]
18826         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18827         mode string.
18828         Patch by Eric Blake <eblake@redhat.com>.
18829
18830 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18831
18832         * sunrpc/Makefile (need-export-routines): Add svc_run.
18833         (routines): Remove svc_run.
18834         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18835         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18836         * sunrpc/svc_run.c (svc_run): Likewise.
18837         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18838
18839 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18840
18841         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18842         problem in reallocation in last patch.
18843
18844 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18845
18846         * sunrpc/Makefile: Move inclusion of Rules.
18847
18848 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18849
18850         * nss/nss_files/files-initgroups.c: New file.
18851         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18852         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18853         _nss_files_initgroups_dyn.
18854
18855 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18856
18857         * elf/elf.h (R_ARM_IRELATIVE): Define.
18858
18859 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18860
18861         * po/ru.po: Update from translation team.
18862
18863 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18864
18865         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18866         dependencies.
18867
18868 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18869
18870         [BZ #12653]
18871         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18872         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18873         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18874         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18875         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18876
18877 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18878
18879         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18880         differing bytes.
18881         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18882         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18883         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18884
18885 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18886
18887         [BZ #12420]
18888         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18889         storing it.
18890         * stdlib/bug-getcontext.c: New file.
18891         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18892
18893 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18894
18895         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18896         instructions into .machine "z9-109".
18897         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18898         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18899
18900 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18901
18902         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18903         between environment variables and auxiliary vector.
18904
18905 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18906
18907         * Makefile: Add rules to build linkobj/libc.so.
18908         * include/libc-symbols.h: Define libc_hidden_nolink.
18909         * include/rpc/auth.h: Mark functions which are to be hidden.
18910         * include/rpc/auth_des.h: Likewise.
18911         * include/rpc/auth_unix.h: Likewise.
18912         * include/rpc/clnt.h: Likewise.
18913         * include/rpc/des_crypt.h: Likewise.
18914         * include/rpc/key_prot.h: Likewise.
18915         * include/rpc/pmap_clnt.h: Likewise.
18916         * include/rpc/pmap_prot.h: Likewise.
18917         * include/rpc/pmap_rmt.h: Likewise.
18918         * include/rpc/rpc_msg.h: Likewise.
18919         * include/rpc/svc.h: Likewise.
18920         * include/rpc/svc_auth.h: Likewise.
18921         * include/rpc/xdr.h: Likewise.
18922         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18923         * nss/Makefile: Likewise.
18924         * sunrpc/Makefile: Don't install headers.  Build library with normal
18925         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18926         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18927         for the compat linking library.  Remove use of INTDEF/INTUSE.
18928         * sunrpc/auth_none.c: Likewise.
18929         * sunrpc/auth_unix.c: Likewise.
18930         * sunrpc/authdes_prot.c: Likewise.
18931         * sunrpc/authuxprot.c: Likewise.
18932         * sunrpc/clnt_gen.c: Likewise.
18933         * sunrpc/clnt_perr.c: Likewise.
18934         * sunrpc/clnt_raw.c: Likewise.
18935         * sunrpc/clnt_simp.c: Likewise.
18936         * sunrpc/clnt_tcp.c: Likewise.
18937         * sunrpc/clnt_udp.c: Likewise.
18938         * sunrpc/clnt_unix.c: Likewise.
18939         * sunrpc/des_crypt.c: Likewise.
18940         * sunrpc/des_soft.c: Likewise.
18941         * sunrpc/get_myaddr.c: Likewise.
18942         * sunrpc/key_call.c: Likewise.
18943         * sunrpc/key_prot.c: Likewise.
18944         * sunrpc/netname.c: Likewise.
18945         * sunrpc/pm_getmaps.c: Likewise.
18946         * sunrpc/pm_getport.c: Likewise.
18947         * sunrpc/pmap_clnt.c: Likewise.
18948         * sunrpc/pmap_prot.c: Likewise.
18949         * sunrpc/pmap_prot2.c: Likewise.
18950         * sunrpc/pmap_rmt.c: Likewise.
18951         * sunrpc/publickey.c: Likewise.
18952         * sunrpc/rpc_cmsg.c: Likewise.
18953         * sunrpc/rpc_common.c: Likewise.
18954         * sunrpc/rpc_dtable.c: Likewise.
18955         * sunrpc/rpc_prot.c: Likewise.
18956         * sunrpc/rpc_thread.c: Likewise.
18957         * sunrpc/rtime.c: Likewise.
18958         * sunrpc/svc.c: Likewise.
18959         * sunrpc/svc_auth.c: Likewise.
18960         * sunrpc/svc_authux.c: Likewise.
18961         * sunrpc/svc_raw.c: Likewise.
18962         * sunrpc/svc_run.c: Likewise.
18963         * sunrpc/svc_simple.c: Likewise.
18964         * sunrpc/svc_tcp.c: Likewise.
18965         * sunrpc/svc_udp.c: Likewise.
18966         * sunrpc/svc_unix.c: Likewise.
18967         * sunrpc/svcauth_des.c: Likewise.
18968         * sunrpc/xcrypt.c: Likewise.
18969         * sunrpc/xdr.c: Likewise.
18970         * sunrpc/xdr_array.c: Likewise.
18971         * sunrpc/xdr_float.c: Likewise.
18972         * sunrpc/xdr_intXX_t.c: Likewise.
18973         * sunrpc/xdr_mem.c: Likewise.
18974         * sunrpc/xdr_rec.c: Likewise.
18975         * sunrpc/xdr_ref.c: Likewise.
18976         * sunrpc/xdr_sizeof.c: Likewise.
18977         * sunrpc/xdr_stdio.c: Likewise.
18978
18979 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18980
18981         [BZ #12650]
18982         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18983         * sysdeps/ia64/dl-tls.h: Likewise.
18984         * sysdeps/powerpc/dl-tls.h: Likewise.
18985         * sysdeps/s390/dl-tls.h: Likewise.
18986         * sysdeps/sh/dl-tls.h: Likewise.
18987         * sysdeps/sparc/dl-tls.h: Likewise.
18988         * sysdeps/x86_64/dl-tls.h: Likewise.
18989         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18990
18991 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18992
18993         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18994         rpath element also skip the following colon.
18995         (expand_dynamic_string_token): Add is_path parameter and pass
18996         down to DL_DST_REQUIRED and _dl_dst_substitute.
18997         (decompose_rpath): Call expand_dynamic_string_token with
18998         non-zero is_path.  Ignore empty rpaths.
18999         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19000         with zero is_path.
19001
19002 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19003
19004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19005         Make cancelable.
19006
19007 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19008
19009         [BZ #12655]
19010         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19011         Patch by Filipe David Manana <fdmanana@apache.org>.
19012
19013 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19014
19015         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19016         Maintain aligned stack.
19017         (CHECK_RSP): Remove unused macro.
19018
19019 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19020
19021         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19022         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19023
19024 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19025
19026         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19027
19028         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19029
19030 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19031
19032         [BZ #12518]
19033         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19034         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19035         * sysdeps/x86_64/memmove.c: New file.
19036         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19037         (memcpy): Renamed to ...
19038         (__new_memcpy): This.
19039         (memcpy): Provide GLIBC_2_14 memcpy.
19040         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19041         (memcpy): Provide GLIBC_2_2_5 memcpy.
19042
19043 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19044
19045         [BZ #12631]
19046         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19047
19048 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19049
19050         * misc/syncfs.c: New file.
19051         * misc/Makefile (routines): Add syncfs.
19052         * posix/unistd.h: Declare syncfs.
19053         * sysdeps/unix/syscalls.list: Add syncfs.
19054
19055 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19056
19057         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19058         open_by_handle_at.
19059         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19060         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19061         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19062         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19063         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19064         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19065         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19066
19067 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19068
19069         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19070         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19071         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19072         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19073         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19074         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19075         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19076
19077         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19078         sync_file_range.c with -fexceptions.
19079         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19080         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19081         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19082         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19083         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19084         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19085         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19086         sync_file_range as cancellation point
19087         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19088         now a wrapper around __call_sync_file_range with cancellation handling.
19089         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19090         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19091         function name to __call_sync_file_range.
19092         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19093         Add call_sync_file_range.
19094
19095 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19096
19097         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19098         bits/timex.h.
19099
19100 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19101
19102         * iconv/iconv.h: Fix typo in comment.
19103         * io/fcntl.h: Likewise.
19104         * libio/stdio.h: Likewise.
19105         * posix/spawn.h: Likewise.
19106         * posix/unistd.h: Likewise.
19107         * stdlib/stdlib.h: Likewise.
19108         * time/time.h: Likewise.
19109         * wcsmbs/wchar.h: Likewise.
19110
19111         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19112         open_by_handle): Add.
19113         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19114         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19115         Augment a few comments.
19116         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19117         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19118         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19119         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19120         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19121         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19122         open_by_handle.
19123
19124         * io/fcntl.h (AT_EMPTY_PATH): Define.
19125
19126 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19127
19128         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19129         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19130         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19131         to...
19132         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19133         * Versions.def: Add GLIBC_2.14.
19134         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19135         Export.
19136
19137 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19138
19139         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19140         round counter.
19141         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19142
19143 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19144
19145         [BZ #12597]
19146         * string/test-strncmp.c (do_page_test): New function.
19147         (check2): Likewise.
19148         (test_main): Call check2.
19149         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19150
19151 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19152
19153         [BZ #12587]
19154         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19155         Handle cache information in CPU leaf 4.
19156         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19157
19158 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19159
19160         [BZ #12583]
19161         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19162         character representation.
19163         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19164
19165 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19166
19167         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19168         END(__isnan) to END(__isnanf) to match function entry point/label
19169         EALIGN(__isnanf,...).
19170
19171 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19172
19173         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19174
19175 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19176
19177         [BZ #12510]
19178         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19179         copy from the symbol referenced in the relocation to initialize the
19180         used variable.
19181         Patch by Piotr Bury <pbury@goahead.com>.
19182         * elf/Makefile: Add rules to build and tst-unique3.
19183         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19184         * elf/tst-unique3.cc: New file.
19185         * elf/tst-unique3.h: New file.
19186         * elf/tst-unique3lib.cc: New file.
19187         * elf/tst-unique3lib2.cc: New file.
19188
19189         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19190
19191 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19192
19193         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19194         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19195         to _start.
19196
19197 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19198
19199         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19200         to-be-loaded object along a path to loader is ld.so.
19201
19202 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19203             Ulrich Drepper  <drepper@gmail.com>
19204
19205         * sysdeps/x86_64/memset.S: After aligning destination, code
19206         branches to different locations depending on the value of
19207         misalignment, when multiarch is enabled. Fix this.
19208
19209 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19210
19211         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19212         Set _x86_64_preferred_memory_instruction for AMD processsors.
19213         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19214         Set bit_Prefer_SSE_for_memop for AMD processors.
19215
19216 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19217
19218         * libio/fmemopen.c (fmemopen): Optimize a bit.
19219
19220 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19221
19222         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19223
19224 2011-03-03  Roland McGrath  <roland@redhat.com>
19225
19226         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19227
19228 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19229
19230         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19231         __bzero_ultra1 instead of __memset_ultra1.
19232
19233 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19234             Ulrich Drepper  <drepper@gmail.com>
19235
19236         [BZ #12509]
19237         * include/link.h (struct link_map): Add l_orig_initfini.
19238         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19239         returning unsuccessfully.
19240         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19241         close of a file loaded at startup, restore the original l_initfini
19242         list.
19243         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19244         list, store the pointer.
19245         * elf/Makefile ($(objpfx)noload-mem): New rule.
19246         (noload-ENV): Define.
19247         (tests): Add $(objpfx)noload-mem.
19248         * elf/noload.c: Include <memcheck.h>.
19249         (main): Call mtrace.  Close all opened handles.
19250
19251 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19252
19253         [BZ #12454]
19254         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19255         dependencies are missing.
19256
19257 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19258
19259         Fix __if_freereq crash: Unlike the generic version which uses free,
19260         Hurd needs munmap.
19261         * sysdeps/mach/hurd/ifreq.h: New file.
19262
19263 2011-01-27  Petr Baudis  <pasky@suse.cz>
19264             Ulrich Drepper  <drepper@gmail.com>
19265
19266         [BZ 12445]#
19267         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19268         to extend_alloca().
19269         * stdio-common/bug23.c: New file.
19270         * stdio-common/Makefile (tests): Add bug23.
19271
19272 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19273             Ulrich Drepper  <drepper@gmail.com>
19274
19275         [BZ #12489]
19276         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19277         before performing relro protection.  At old place add assertion
19278         to make sure nothing changed.
19279
19280 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19281             Glauber de Oliveira Costa  <glommer@gmail.com>
19282
19283         * elf/elf.h: Add new ARM TLS relocs.
19284
19285 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19286
19287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19288         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19289         cast from r3.
19290         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19291         'tests' variable.
19292         * sysdeps/wordsize-64/tst-writev.c: New file.
19293
19294 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19295
19296         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19297         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19298         insns in _dl_start to prevent a TOC reference before relocs are
19299         resolved.
19300
19301 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19302
19303         [BZ #12469]
19304         * Makeconfig: Remove RANLIB definition.
19305         * Makerules: Don't use RANLIB.
19306         * aclocal.m4: Remove ranlib test.
19307         * configure.in: No need to check for ranlib.
19308         * elf/rtld-Rules: Don't use RANLIB.
19309
19310 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19311
19312         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19313         protection macro.
19314         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19315         inclusion protection macro.
19316
19317         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19318         SIGRTMIN and SIGRTMAX and print information in that case only when
19319         SIGRTMIN is defined.
19320
19321 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19322
19323         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19324         arginfo fn returning -1.
19325
19326         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19327         and thousands string is zero terminated.
19328
19329 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19330
19331         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19332         sysdeps/unix/sysv/linux/bits/socket.h.
19333
19334 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19335
19336         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19337         (__CPU_COUNT): Remove old macros.
19338         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19339         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19340         (__CPU_ALLOC, __CPU_FREE): Add macros.
19341         (__sched_cpualloc, __sched_cpufree): Add declarations.
19342
19343 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19344
19345         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19346         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19347         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19348         (readdhstai): Return value of addhstaiX call.
19349         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19350         (addgrbyX): Return value returned by cache_addgr.
19351         (readdgrbyname): Return value returned by addgrbyX.
19352         (readdgrbygid): Likewise.
19353         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19354         (addpwbyX): Return value returned by cache_addpw.
19355         (readdpwbyname): Return value returned by addhstbyX.
19356         (readdpwbyuid): Likewise.
19357         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19358         (addservbyX): Return value returned by cache_addserv.
19359         (readdservbyname): Return value returned by addservbyX:
19360         (readdservbyport): Likewise.
19361         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19362         (addhstbyX): Return value returned by cache_addhst.
19363         (readdhstbyname): Return value returned by addhstbyX.
19364         (readdhstbyaddr): Likewise.
19365         (readdhstbynamev6): Likewise.
19366         (readdhstbyaddrv6): Likewise.
19367         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19368         (readdinitgroups): Return value returned by addinitgroupsX.
19369         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19370         (prune_cache): Keep track of timeout value of re-added entries.
19371         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19372         * nscd/nscd.h: Adjust prototypes of readd* functions.
19373
19374 2011-02-04  Roland McGrath  <roland@redhat.com>
19375
19376         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19377         (nis_stats): Likewise.
19378         * nis/nis_modify.c (nis_modify): Likewise.
19379         * nis/nis_remove.c (nis_remove): Likewise.
19380         * nis/nis_add.c (nis_add): Likewise.
19381
19382         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19383
19384         * posix/fnmatch_loop.c: Add some consts.
19385
19386         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19387
19388 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19389
19390         [BZ #12460]
19391         * config.make.in (config-cflags-novzeroupper): Define.
19392         * configure.in: Substitute libc_cv_cc_novzeroupper.
19393         * elf/Makefile (AVX-CFLAGS): Define.
19394         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19395         (CFLAGS-tst-auditmod4a.c): Likewise.
19396         (CFLAGS-tst-auditmod4b.c): Likewise.
19397         (CFLAGS-tst-auditmod6b.c): Likewise.
19398         (CFLAGS-tst-auditmod6c.c): Likewise.
19399         (CFLAGS-tst-auditmod7b.c): Likewise.
19400         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19401
19402 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19403
19404         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19405         function to the callback.
19406         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19407
19408 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19409
19410         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19411         of errno.
19412
19413 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19414
19415         [BZ #11724]
19416         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19417         of constructors.
19418         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19419         of destructors.
19420         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19421
19422         [BZ #11724]
19423         * elf/Makefile: Add rules to build and run new test.
19424         * elf/tst-initorder.c: New file.
19425         * elf/tst-initorder.exp: New file.
19426         * elf/tst-initordera1.c: New file.
19427         * elf/tst-initordera2.c: New file.
19428         * elf/tst-initordera3.c: New file.
19429         * elf/tst-initordera4.c: New file.
19430         * elf/tst-initorderb1.c: New file.
19431         * elf/tst-initorderb2.c: New file.
19432         * elf/tst-order-a1.c: New file.
19433         * elf/tst-order-a2.c: New file.
19434         * elf/tst-order-a3.c: New file.
19435         * elf/tst-order-a4.c: New file.
19436         * elf/tst-order-b1.c: New file.
19437         * elf/tst-order-b2.c: New file.
19438         * elf/tst-order-main.c: New file.
19439         New test case by George Gensure <werkt0@gmail.com>.
19440
19441 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19442
19443         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19444         decoding ACE if AI_CANONIDN.
19445
19446 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19447
19448         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19449
19450 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19451
19452         * version.h (RELEASE): Bump for 2.13 release.
19453         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19454
19455         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19456
19457         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19458         MADV_NOHUGEPAGE.
19459         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19460         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19461         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19462         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19463         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19464         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19465
19466         * posix/getconf.c: Update copyright year.
19467         * catgets/gencat.c: Likewise.
19468         * csu/version.c: Likewise.
19469         * debug/catchsegv.sh: Likewise.
19470         * debug/xtrace.sh: Likewise.
19471         * elf/ldconfig.c: Likewise.
19472         * elf/ldd.bash.in: Likewise.
19473         * elf/sprof.c (print_version): Likewise.
19474         * iconv/iconv_prog.c: Likewise.
19475         * iconv/iconvconfig.c: Likewise.
19476         * locale/programs/locale.c: Likewise.
19477         * locale/programs/localedef.c: Likewise.
19478         * malloc/memusage.sh: Likewise.
19479         * malloc/mtrace.pl: Likewise.
19480         * nscd/nscd.c (print_version): Likewise.
19481         * nss/getent.c: Likewise.
19482
19483         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19484         PF_CAIF, and PF_ALG.
19485         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19486
19487 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19488
19489         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19490         (modules-names): Use them.
19491         (ifunc-test-modules, ifunc-pie-tests): Define.
19492         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19493         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19494         (test-extras): Likewise.
19495         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19496         $(compile-command.c).
19497         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19498         (all-built-dso): Define.
19499         (check-textrel.out, check-execstack.out): Depend on it.
19500
19501         * configure.in: Don't override --enable-multi-arch.
19502
19503 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19504
19505         [BZ #6812]
19506         * nscd/hstcache.c (tryagain): Define.
19507         (cache_addhst): Return tryagain not notfound for temporary errors.
19508         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19509         failed.
19510
19511 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19512
19513         [BZ #10563]
19514         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19515         to make the syscall.
19516         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19517
19518         [BZ #12378]
19519         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19520         and fall back to matching as normal character if the string ends before
19521         the matching ']' is found.  This is what POSIX requires.
19522         * posix/testfnm.c: Adjust test result.
19523         * posix/globtest.sh: Adjust test result.  Add new test.
19524         * posix/tst-fnmatch.input: Likewise.
19525         * posix/tst-fnmatch2.c: Add new test.
19526
19527 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19528
19529         * elf/Makefile (check-execstack): Revert last change.  Depend on
19530         check-execstack.h.
19531         (check-execstack.h): New target.
19532         (generated): Add check-execstack.h.
19533         * elf/check-execstack.c: Include "check-execstack.h".
19534         (main): Revert last change.
19535         (handle_file): Return zero if GNU_STACK is absent and
19536         DEFAULT_STACK_PERMS doesn't include PF_X.
19537
19538 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19539
19540         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19541         in child fails because the descriptor is already closed.
19542         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19543         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19544         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19545
19546         [BZ #12397]
19547         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19548         syscall.
19549
19550         [BZ #10484]
19551         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19552         temporary buffer used to handle multi lookups locally.
19553         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19554
19555 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19556
19557         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19558         loader is ld.so.
19559
19560 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19561
19562         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19563         alignment for SSE2.
19564
19565 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19566
19567         [BZ #12394]
19568         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19569         characters.  When rounding increased number of integer digits recompute
19570         number of groups.
19571         * stdio-common/tst-grouping.c: New file.
19572         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19573
19574 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19575
19576         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19577         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19578
19579         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19580         void.
19581         * bits/select.h: Likewise.
19582
19583 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19584
19585         * po/ja.po: Update from translation team.
19586
19587 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19588
19589         [BZ #11155]
19590         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19591         implementation just like for lxstat, fxstatat, et al.
19592
19593 2010-12-27  Jim Meyering  <meyering@redhat.com>
19594
19595         [BZ #12348]
19596         * posix/regexec.c (build_trtable): Return failure indication upon
19597         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19598
19599 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19600
19601         [BZ #12201]
19602         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19603         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19604         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19605         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19606
19607         [BZ #12207]
19608         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19609
19610         [BZ #12204]
19611         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19612         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19613
19614 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19615
19616         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19617         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19618         script has SORT_BY_INIT_PRIORITY.
19619         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19620         NO_CTORS_DTORS_SECTIONS is defined.
19621         * elf/soinit.c: Likewise.
19622         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19623         NO_CTORS_DTORS_SECTIONS is defined.
19624         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19625         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19626         * sysdeps/sh/init-first.c: Likewise.
19627         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19628
19629 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19630
19631         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19632         always use the slow path.
19633
19634 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19635
19636         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19637         similar rule which adds the sysdep directories to the header search in
19638         order to pick up the correct platform stackinfo.h.
19639         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19640         perform test if it is, otherwise return successfully without testing.
19641         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19642         DEFAULT_STACK_PERMS define in stackinfo.h.
19643         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19644         defined in stackinfo.h.
19645         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19646         DEFAULT_STACK_PERMS defined in stackinfo.h.
19647         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19648         * sysdeps/ia64/stackinfo.h: Likewise.
19649         * sysdeps/s390/stackinfo.h: Likewise.
19650         * sysdeps/sh/stackinfo.h: Likewise.
19651         * sysdeps/sparc/stackinfo.h: Likewise.
19652         * sysdeps/x86_64/stackinfo.h: Likewise.
19653         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19654         PF_X for powerpc64.  Retain PF_X for powerpc32.
19655
19656 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19657
19658         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19659         accurately.
19660         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19661         GETDENTS_64BIT_ALIGNED.
19662
19663 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19664
19665         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19666
19667 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19668
19669         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19670         _GNU_SOURCE.
19671
19672         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19673         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19674         Remove __restrict.
19675         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19676         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19677
19678 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19679
19680         [BZ #11655]
19681         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19682         are initialized.
19683
19684 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19685
19686         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19687
19688 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19689
19690         * po/it.po: Update from translation team.
19691
19692 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19693
19694         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19695         unused codes.
19696
19697 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19698
19699         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19700
19701 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19702
19703         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19704         specially.
19705         (gaih_getanswer_slice): Likewise.
19706
19707 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19708
19709         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19710
19711 2010-05-31  Petr Baudis  <pasky@suse.cz>
19712
19713         [BZ #11149]
19714         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19715         silently even in the chroot mode.
19716
19717 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19718
19719         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19720         last patch a bit.  Pretty printing
19721
19722 2010-05-31  Petr Baudis <pasky@suse.cz>
19723
19724         [BZ #10085]
19725         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19726         initialization of skip_initgroups_dyn.
19727
19728 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19729
19730         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19731         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19732
19733 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19734
19735         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19736
19737 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19738
19739         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19740         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19741         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19742         ($(objpfx)tst-fnmatch-mem): New rule.
19743         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19744         * posix/tst-fnmatch.c (main): Call mtrace.
19745
19746 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19747
19748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19749         Support Intel processor model 6 and model 0x2c.
19750
19751 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19752
19753         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19754           signed comparison.
19755
19756 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19757
19758         [BZ #12205]
19759         * string/test-strncasecmp.c (check_result): New function.
19760         (do_one_test): Use it.
19761         (check1): New function.
19762         (test_main): Use it.
19763         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19764         Support strcasecmp and strncasecmp.
19765
19766 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19767
19768         [BZ #12194]
19769         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19770         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19771
19772 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19773
19774         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19775         IFUNC support.
19776         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19777         memset-x86-64.
19778         * sysdeps/x86_64/multiarch/bzero.S: New file.
19779         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19780         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19781         * sysdeps/x86_64/multiarch/memset.S: New file.
19782         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19783         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19784         Set bit_Prefer_SSE_for_memop for Intel processors.
19785         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19786         Define.
19787         (index_Prefer_SSE_for_memop): Define.
19788         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19789
19790 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19791
19792         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19793         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19794
19795 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19796
19797         [BZ #12191]
19798         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19799         (__x86_64_raw_data_cache_size_half): Likewise.
19800         (__x86_64_raw_shared_cache_size): Likewise.
19801         (__x86_64_raw_shared_cache_size_half): Likewise.
19802
19803         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19804         (__x86_64_raw_data_cache_size_half): Likewise.
19805         (__x86_64_raw_shared_cache_size): Likewise.
19806         (__x86_64_raw_shared_cache_size_half): Likewise.
19807         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19808         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19809         and __x86_64_raw_shared_cache_size_half.  Round
19810         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19811         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19812         to multiple of 256 bytes.
19813
19814 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19815
19816         [BZ #12167]
19817         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19818         of inacessible symlinks.  Verify result of symlink before returning it.
19819         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19820         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19821
19822 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19823
19824         * math/math.h (isinf): Fix typo in comment.
19825
19826 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19827
19828         * po/da.po: Update from translation team.
19829
19830 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19831
19832         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19833         is added to the list.
19834
19835 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19836             Ulrich Drepper  <drepper@gmail.com>
19837
19838         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19839         the global list here.  Move code to...
19840         (_dl_add_to_namespace_list): ...here.  New function.
19841         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19842         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19843         * elf/dl-load.c (lose): Don't remove the element from the list.
19844         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19845         (_dl_map_object): Likewise.
19846
19847 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19848
19849         [BZ #12159]
19850         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19851         into all bytes of SSE register.
19852         Patch by Richard Li <richardpku@gmail.com>.
19853
19854 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19855
19856         [BZ #12140]
19857         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19858         perturbing.
19859
19860 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19861
19862         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19863         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19864         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19865         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19867         submachine.
19868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19869
19870 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19871
19872         * include/dlfcn.h (__RTLD_SECURE): Define.
19873         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19874         mode & __RTLD_SECURE instead.
19875         (open_path): Rename preloaded parameter to secure.
19876         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19877         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19878         * elf/dl-deps.c (openaux): Likewise.
19879         * elf/rtld.c (struct map_args): Remove is_preloaded.
19880         (map_doit): Don't use it.
19881         (dl_main): Likewise.
19882         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19883         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19884
19885 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19886
19887         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19888         (sysd-rules-targets): Remove duplicates.
19889         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19890         rtld-%.$o dependency.
19891
19892 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19893
19894         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19895         _dl_map_object do it.
19896
19897 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19898
19899         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19900         fast fma builtins, define the macros in the C99 standard.
19901         (FP_FAST_FMAF): Likewise.
19902         (FP_FAST_FMAL): Likewise.
19903         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19904
19905         * bits/mathdef.h: Update copyright year.
19906         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19907
19908 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19909
19910         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19911         builtins, define the macros in the C99 standard.
19912         (FP_FAST_FMAF): Likewise.
19913         (FP_FAST_FMAL): Likewise.
19914         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19915         multiply/add.
19916         (FP_FAST_FMAF): Likewise.
19917
19918 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19919
19920         [BZ #3268]
19921         * math/libm-test.inc (fma_test): Some new testcases.
19922         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19923         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19924         y and infinite z.  Do multiplication by C already in long double.
19925         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19926         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19927         y and infinite z.  Do bitwise or of inexact bit into u.d.
19928         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19929         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19930         * sysdeps/i386/fpu/s_fma.S: Removed.
19931         * sysdeps/i386/fpu/s_fmal.S: Removed.
19932
19933 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19934
19935         [BZ #3268]
19936         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19937         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19938         computation is not scheduled after fetestexcept.  Fix value
19939         of minimum denormal long double.
19940
19941 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19942
19943         [BZ #3268]
19944         * math/libm-test.inc (fma_test): Add some more tests.
19945         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19946         correctly.
19947
19948 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19949
19950         * scripts/data/localplt-s390-linux-gnu.data: New file.
19951         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19952
19953 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19954
19955         [BZ #3268]
19956         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19957         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19958         instead of dbl-64.
19959         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19960         inlines.
19961         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19962         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19963         if one of x and y is very large and the other is subnormal.
19964         * sysdeps/s390/fpu/s_fmaf.c: New file.
19965         * sysdeps/s390/fpu/s_fma.c: New file.
19966         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19967         * sysdeps/powerpc/fpu/s_fma.S: New file.
19968         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19969         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19970         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19971
19972 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19973
19974         [BZ #3268]
19975         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19976         fma tests.
19977         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19978         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19979         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19980         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19981         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19982         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19983         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19984
19985 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19986
19987         [BZ #12078]
19988         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19989         * posix/bug-regex31.input: Add test case.
19990
19991 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19992
19993         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19994         * posix/bug-regex31.input: New file.
19995
19996         [BZ #12078]
19997         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19998         (parse_sub_exp): Fix last change, use postorder.
19999
20000         * posix/bug-regex31.c: New file.
20001         * posix/Makefile: Add rules to build and run bug-regex31.
20002
20003         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20004
20005         [BZ #12078]
20006         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20007
20008         [BZ #12108]
20009         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20010         to have entries in sys_siglist.
20011
20012         [BZ #12093]
20013         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20014         be NULL.
20015
20016 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20017
20018         [BZ #3268]
20019         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20020         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20021         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20022         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20023         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20024         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20025         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20026         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20027         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20028         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20029         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20030         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20031         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20032         * math/ftestexcept.c (fetestexcept): Likewise.
20033         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20034         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20035         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20036         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20037         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20038         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20039         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20040
20041 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20042
20043         [BZ #12107]
20044         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20045         newline.
20046
20047 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20048
20049         * string/bug-strstr1.c: New file.
20050         * string/Makefile: Add rules to build and run bug-strstr1.
20051
20052 2010-10-05  Eric Blake  <eblake@redhat.com>
20053
20054         [BZ #12092]
20055         * string/str-two-way.h (two_way_long_needle): Always clear memory
20056         when skipping input due to the shift table.
20057
20058 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20059
20060         [BZ #12005]
20061         * malloc/mcheck.c: Handle large requests.
20062
20063         [BZ #12077]
20064         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20065         for strncmp and strncasecmp.
20066         * string/stratcliff.c: Add tests for strcmp and strncmp.
20067         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20068
20069 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20070
20071         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20072         __set_fpscr.
20073
20074 2010-09-30  Andreas Jaeger  <aj@suse.de>
20075
20076         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20077         (CGROUP_SUPER_MAGIC): Define.
20078         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20079         Handle btrfs and cgroup file systems.
20080         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20081         Likewise.
20082
20083 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20084
20085         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20086         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20087
20088 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20089
20090         [BZ #12067]
20091         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20092         trying to locate the ELF header.
20093
20094 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20095
20096         [BZ #11611]
20097         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20098         Mask out sign-bit copies when constructing f_fsid.
20099
20100 2010-09-24  Petr Baudis <pasky@suse.cz>
20101
20102         * debug/stack_chk_fail_local.c: Add missing licence exception.
20103         * debug/warning-nop.c: Likewise.
20104
20105 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20106
20107         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20108         implementing getdents64 using getdents syscall, set d_type if
20109         __ASSUME_GETDENTS32_D_TYPE.
20110
20111 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20112
20113         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20114         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20115
20116 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20117
20118         [BZ #12037]
20119         * posix/unistd.h: Undo change of feature selection for ftruncate from
20120         2010-01-11.
20121
20122 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20123
20124         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20125         detection.
20126
20127 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20128
20129         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20130         fanotify_mark.
20131         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20132
20133 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20134
20135         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20136         variables after CHECK_SP call.
20137         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20138
20139 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20140             Ulrich Drepper  <drepper@redhat.com>
20141
20142         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20143         re-relocationg ld.so.
20144         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20145         _dl_init_paths call.
20146         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20147         here anymore.
20148
20149 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20150
20151         * resolv/res_init.c (__res_vinit): Count the default server we added.
20152
20153 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20154             Ulrich Drepper  <drepper@redhat.com>
20155
20156         [BZ #11968]
20157         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20158         (____longjmp_chk): Use %ebx for saving value across system call.
20159         Add unwind info.
20160
20161 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20162
20163         * manual/Makefile: Don't mix pattern rules with normal rules.
20164
20165 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20166
20167         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20168         operation.
20169         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20170         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20171         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20172         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20173         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20174         Likewise.
20175
20176 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20177
20178         [BZ #11979]
20179         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20180         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20181
20182 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20183
20184         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20185         * sysdeps/x86_64/addmul_1.S: Likewise.
20186         * sysdeps/x86_64/lshift.S: Likewise.
20187         * sysdeps/x86_64/mul_1.S: Likewise.
20188         * sysdeps/x86_64/rshift.S: Likewise.
20189         * sysdeps/x86_64/sub_n.S: Likewise.
20190         * sysdeps/x86_64/submul_1.S: Likewise.
20191
20192 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20193
20194         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20195         Define __sched_param instead of SCHED_* and sched_param when
20196         <bits/sched.h> is included with __need_schedparam defined.
20197         * bits/sched.h [__need_schedparam]
20198         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20199         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20200         (__defined_schedparam): Define to 1.
20201         (__sched_param): New structure, identical to sched_param.
20202         (__need_schedparam): Undefine.
20203
20204 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20205
20206         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20207         (epoll_create1): Declare.
20208
20209         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20210
20211 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20212
20213         [BZ #7066]
20214         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20215         shifting retval into place.
20216
20217 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20218
20219         * nis/rpcsvc/nis.h: Update copyright notice.
20220         * nis/rpcsvc/nis.x: Likewise.
20221         * nis/rpcsvc/nis_callback.h: Likewise.
20222         * nis/rpcsvc/nis_callback.x: Likewise.
20223         * nis/rpcsvc/nis_object.x: Likewise.
20224         * nis/rpcsvc/nis_tags.h: Likewise.
20225         * nis/rpcsvc/yp.h: Likewise.
20226         * nis/rpcsvc/yp.x: Likewise.
20227         * nis/rpcsvc/ypupd.h: Likewise.
20228         * nis/yp_xdr.c: Likewise.
20229         * nis/ypupdate_xdr.c: Likewise.
20230
20231         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20232         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20233         (pmap_getport): Use __libc_rpc_getport.
20234         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20235         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20236         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20237
20238 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20239
20240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20241         fanotify_mark.
20242
20243 2010-08-27  Roland McGrath  <roland@redhat.com>
20244
20245         * sysdeps/i386/i686/multiarch/Makefile
20246         (CFLAGS-varshift.c): New variable.
20247
20248 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20249
20250         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20251         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20252
20253         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20254
20255         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20256
20257 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20258
20259         * sysdeps/x86_64/strlen.S: Unroll the loop.
20260         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20261         strlen-sse2 strlen-sse2-bsf.
20262         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20263         __strlen_no_bsf if bit_Slow_BSF is set.
20264         (__strlen_sse42): Removed.
20265         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20266         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20267
20268 2010-08-25  Roland McGrath  <roland@redhat.com>
20269
20270         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20271         * sysdeps/x86_64/multiarch/varshift.c: New file.
20272         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20273         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20274         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20275         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20276
20277 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20278
20279         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20280         strlen-sse2 strlen-sse2-bsf.
20281         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20282         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20283         (__strlen_sse2): Removed.
20284         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20285         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20286         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20287         bit_Slow_BSF for Atom.
20288         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20289         (index_Slow_BSF): Define.
20290         (HAS_SLOW_BSF): Define.
20291
20292 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20293
20294         [BZ #10851]
20295         * resolv/res_init.c (__res_vinit): When no server address at all
20296         is given default to loopback.
20297
20298 2010-08-24  Roland McGrath  <roland@redhat.com>
20299
20300         * configure.in: Remove config-name.h generation.
20301         * configure: Regenerated.
20302         * config-name.in: File removed.
20303         * scripts/config-uname.sh: New file.
20304         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20305         ($(objdir)config-name.h): New target.
20306
20307         * sunrpc/rpc_parse.h: Avoid nested comment.
20308
20309 2010-08-24  Richard Henderson  <rth@redhat.com>
20310             Ulrich Drepper  <drepper@redhat.com>
20311             H.J. Lu  <hongjiu.lu@intel.com>
20312
20313         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20314         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20315         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20316         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20317         _mm_alignr_epi8 with _mm_loadu_si128.
20318         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20319         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20320         (__m128i_shift_right): Removed.
20321         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20322         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20323         * sysdeps/x86_64/multiarch/varshift.h: New file.
20324         * sysdeps/x86_64/multiarch/varshift.S: New file.
20325
20326 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20327
20328         * configure.in: Move assembler checks to before sysdep dir checking.
20329
20330 2010-08-20  Petr Baudis  <pasky@suse.cz>
20331
20332         * LICENSES: Sync the sunrpc license.
20333
20334 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20335
20336         * sunrpc/auth_des.c: Update copyright notice once again.
20337         * sunrpc/auth_none.c: Likewise.
20338         * sunrpc/auth_unix.c: Likewise.
20339         * sunrpc/authdes_prot.c: Likewise.
20340         * sunrpc/authuxprot.c: Likewise.
20341         * sunrpc/bindrsvprt.c: Likewise.
20342         * sunrpc/clnt_gen.c: Likewise.
20343         * sunrpc/clnt_perr.c: Likewise.
20344         * sunrpc/clnt_raw.c: Likewise.
20345         * sunrpc/clnt_simp.c: Likewise.
20346         * sunrpc/clnt_tcp.c: Likewise.
20347         * sunrpc/clnt_udp.c: Likewise.
20348         * sunrpc/clnt_unix.c: Likewise.
20349         * sunrpc/des_crypt.c: Likewise.
20350         * sunrpc/des_soft.c: Likewise.
20351         * sunrpc/get_myaddr.c: Likewise.
20352         * sunrpc/getrpcport.c: Likewise.
20353         * sunrpc/key_call.c: Likewise.
20354         * sunrpc/key_prot.c: Likewise.
20355         * sunrpc/openchild.c: Likewise.
20356         * sunrpc/pm_getmaps.c: Likewise.
20357         * sunrpc/pm_getport.c: Likewise.
20358         * sunrpc/pmap_clnt.c: Likewise.
20359         * sunrpc/pmap_prot.c: Likewise.
20360         * sunrpc/pmap_prot2.c: Likewise.
20361         * sunrpc/pmap_rmt.c: Likewise.
20362         * sunrpc/rpc/auth.h: Likewise.
20363         * sunrpc/rpc/auth_unix.h: Likewise.
20364         * sunrpc/rpc/clnt.h: Likewise.
20365         * sunrpc/rpc/des_crypt.h: Likewise.
20366         * sunrpc/rpc/key_prot.h: Likewise.
20367         * sunrpc/rpc/netdb.h: Likewise.
20368         * sunrpc/rpc/pmap_clnt.h: Likewise.
20369         * sunrpc/rpc/pmap_prot.h: Likewise.
20370         * sunrpc/rpc/pmap_rmt.h: Likewise.
20371         * sunrpc/rpc/rpc.h: Likewise.
20372         * sunrpc/rpc/rpc_des.h: Likewise.
20373         * sunrpc/rpc/rpc_msg.h: Likewise.
20374         * sunrpc/rpc/svc.h: Likewise.
20375         * sunrpc/rpc/svc_auth.h: Likewise.
20376         * sunrpc/rpc/types.h: Likewise.
20377         * sunrpc/rpc/xdr.h: Likewise.
20378         * sunrpc/rpc_clntout.c: Likewise.
20379         * sunrpc/rpc_cmsg.c: Likewise.
20380         * sunrpc/rpc_common.c: Likewise.
20381         * sunrpc/rpc_cout.c: Likewise.
20382         * sunrpc/rpc_dtable.c: Likewise.
20383         * sunrpc/rpc_hout.c: Likewise.
20384         * sunrpc/rpc_main.c: Likewise.
20385         * sunrpc/rpc_parse.c: Likewise.
20386         * sunrpc/rpc_parse.h: Likewise.
20387         * sunrpc/rpc_prot.c: Likewise.
20388         * sunrpc/rpc_sample.c: Likewise.
20389         * sunrpc/rpc_scan.c: Likewise.
20390         * sunrpc/rpc_scan.h: Likewise.
20391         * sunrpc/rpc_svcout.c: Likewise.
20392         * sunrpc/rpc_tblout.c: Likewise.
20393         * sunrpc/rpc_util.c: Likewise.
20394         * sunrpc/rpc_util.h: Likewise.
20395         * sunrpc/rpcinfo.c: Likewise.
20396         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20397         * sunrpc/rpcsvc/key_prot.x: Likewise.
20398         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20399         * sunrpc/rpcsvc/mount.x: Likewise.
20400         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20401         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20402         * sunrpc/rpcsvc/rex.x: Likewise.
20403         * sunrpc/rpcsvc/rstat.x: Likewise.
20404         * sunrpc/rpcsvc/rusers.x: Likewise.
20405         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20406         * sunrpc/rpcsvc/spray.x: Likewise.
20407         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20408         * sunrpc/rtime.c: Likewise.
20409         * sunrpc/svc.c: Likewise.
20410         * sunrpc/svc_auth.c: Likewise.
20411         * sunrpc/svc_authux.c: Likewise.
20412         * sunrpc/svc_raw.c: Likewise.
20413         * sunrpc/svc_run.c: Likewise.
20414         * sunrpc/svc_simple.c: Likewise.
20415         * sunrpc/svc_tcp.c: Likewise.
20416         * sunrpc/svc_udp.c: Likewise.
20417         * sunrpc/svc_unix.c: Likewise.
20418         * sunrpc/svcauth_des.c: Likewise.
20419         * sunrpc/xcrypt.c: Likewise.
20420         * sunrpc/xdr.c: Likewise.
20421         * sunrpc/xdr_array.c: Likewise.
20422         * sunrpc/xdr_float.c: Likewise.
20423         * sunrpc/xdr_mem.c: Likewise.
20424         * sunrpc/xdr_rec.c: Likewise.
20425         * sunrpc/xdr_ref.c: Likewise.
20426         * sunrpc/xdr_sizeof.c: Likewise.
20427         * sunrpc/xdr_stdio.c: Likewise.
20428
20429         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20430         handling.
20431
20432 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20433
20434         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20435
20436 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20437
20438         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20439         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20440         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20441         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20442         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20443         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20444         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20445         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20446         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20447         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20448         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20449         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20450         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20451         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20452
20453 2010-07-26  Anton Blanchard  <anton@samba.org>
20454
20455         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20456         * malloc/arena.c (heap_trim): Likewise.
20457
20458 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20459
20460         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20461         here.  Not...
20462         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20463         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20464
20465 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20466
20467         * sysdeps/i386/elf/Makefile: New file.
20468
20469 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20470
20471         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20472         from fanotify_init.
20473         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20474         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20475
20476 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20477
20478         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20479         of strncasecmp_l.
20480         * sysdeps/multiarch/strcmp.S: Likewise.
20481
20482 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20483
20484         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20485         strncase_l-nonascii.
20486         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20487         Add strncase_l-ssse3.
20488         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20489         * sysdeps/x86_64/strcmp.S: Likewise.
20490         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20491         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20492         * sysdeps/x86_64/strncase.S: New file.
20493         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20494         * sysdeps/x86_64/strncase_l.S: New file.
20495         * string/Makefile (strop-tests): Add strncasecmp.
20496         * string/test-strncasecmp.c: New file.
20497
20498         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20499         warning.
20500
20501         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20502         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20503
20504 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20505
20506         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20507
20508 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20509
20510         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20511         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20512         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20513
20514 2010-05-01  Alan Modra  <amodra@gmail.com>
20515
20516         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20517         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20518         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20519         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20520         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20521         tidying.  Don't tail-call __sigjmp_save for static lib.
20522         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20523         save location.
20524         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20525         (CALL_MCOUNT): Add eh info, and nop after bl.
20526         (TAIL_CALL_SYSCALL_ERROR): New macro.
20527         (PSEUDO_RET): Use it.
20528         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20529         Correct save location of integer regs and cr.
20530         (_dl_profile_resolve): Correct cr save location.  Delete nops
20531         after bl when SHARED.  Reduce cfi size a little by better
20532         placement of cfi directives.
20533         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20534         make a stack frame.  Instead use parm save area as a temp.
20535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20536         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20538         Don't make a stack frame for parent, use parm save area.
20539         Increase child stack frame to 112 bytes.  Don't save unused reg,
20540         and adjust reg usage.  Set up cfi on error recovery and
20541         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20543         (__makecontext): Add dummy nop after jump to exit.
20544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20545         Use correct parm save area and cr save, reduce stack frame.
20546         Correct cfi for possible PSEUDO_RET frame setup.
20547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20548         Branch to local label emitted by PSEUDO_RET rather than
20549         __syscall_error.
20550
20551 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20552
20553         [BZ #11904]
20554         * locale/programs/locale.c (print_assignment): New function.
20555         (show_locale_vars): Use it.
20556
20557 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20558
20559         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20560         field.
20561         (struct statfs64): Likewise.
20562         (_STATFS_F_FLAGS): Define.
20563         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20564         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20565         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20566         (ST_VALID): Define locally.
20567         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20568         __statvfs_getflags, use the provided value.
20569         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20570         __ASSUME_STATFS_F_FLAGS.
20571
20572         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20573
20574         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20575         Add sys/fanotify.h.
20576         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20577         fanotify_mask for GLIBC_2.13.
20578         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20579         fanotify_init and fanotify_mark.
20580         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20581         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20582
20583         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20584         Add prlimit.
20585         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20586         prlimit64 for GLIBC_2.13.
20587         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20588         prlimit64.
20589         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20590         syscall.
20591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20592         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20593         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20594         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20595         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20596         add prlimit alias.
20597         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20598
20599         [BZ #11903]
20600         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20601         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20602
20603         * nss/Makefile: Add rules to build and run tst-nss-test1.
20604         * shlib-versions: Add entry for libnss_test1.
20605         * nss/nss_test1.c: New file.
20606         * nss/tst-nss-test1.c: New file.
20607
20608         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20609         (__nss_configure_lookup): Set appropriate entry in
20610         __nss_configure_lookup to true.
20611         * nss/nsswitch.h: Define enum with indeces of databases in
20612         databases and __nss_database_custom arrays.  Declare
20613         __nss_database_custom.
20614         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20615         to avoid using nscd when custom rules are installed.
20616         * nss/getXXbyYY_r.c: Likewise.
20617         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20618
20619         * nss/nss_files/files-parse.c: Whitespace fixes.
20620
20621 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20622
20623         [BZ #11883]
20624         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20625         * posix/fnmatch_loop.c: Likewise.
20626
20627 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20628
20629         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20630         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20631         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20632         * Versions.def [GLIBC_2.13]: Add.
20633
20634 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20635
20636         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20637         Also fail if tpwd after pwuid call is NULL.
20638
20639 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20640
20641         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20642         when converting to ms.
20643
20644 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20645
20646         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20647         EOPNOTSUPP errors with ENOTTY.
20648         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20649         EOPNOTSUPP errors with ENOTTY.
20650
20651 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20652
20653         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20654         Add strcasecmp_l-ssse3.
20655         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20656         strcasecmp.
20657         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20658         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20659         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20660
20661 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20662
20663         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20664
20665         * string/Makefile (strop-tests): Add strcasecmp.
20666         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20667         strcasecmp_l-nonascii.
20668         (gen-as-const-headers): Add locale-defines.sym.
20669         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20670         * sysdeps/x86_64/strcasecmp.S: New file.
20671         * sysdeps/x86_64/strcasecmp_l.S: New file.
20672         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20673         * sysdeps/x86_64/locale-defines.sym: New file.
20674         * string/test-strcasecmp.c: New file.
20675
20676         * string/test-strcasestr.c: Test both ends of the range of characters.
20677         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20678
20679 2010-07-29  Roland McGrath  <roland@redhat.com>
20680
20681         [BZ #11856]
20682         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20683
20684 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20685
20686         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20687         for ld.so.
20688
20689 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20690
20691         * manual/memory.texi (Malloc Tunable Parameters): Document
20692         M_PERTURB.
20693
20694 2010-07-26  Roland McGrath  <roland@redhat.com>
20695
20696         [BZ #11840]
20697         * configure.in (-fgnu89-inline check): Set and substitute
20698         gnu89_inline, not libc_cv_gnu89_inline.
20699         * configure: Regenerated.
20700         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20701
20702 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20703
20704         * string/test-strnlen.c: New file.
20705         * string/Makefile (strop-tests): Add strnlen.
20706         * string/tester.c (test_strnlen): Add a few more test cases.
20707         * string/tst-strlen.c: Better error reporting.
20708
20709         * sysdeps/x86_64/strnlen.S: New file.
20710
20711 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20712
20713         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20714         lower-latency instructions.
20715
20716 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20717
20718         * string/test-strcasestr.c: New file.
20719         * string/test-strstr.c: New file.
20720         * string/Makefile (strop-tests): Add strstr and strcasestr.
20721         * string/str-two-way.h: Don't undefine MAX.
20722         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20723
20724 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20725
20726         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20727         strcasestr-nonascii.
20728         (CFLAGS-strcasestr-nonascii.c): Define.
20729         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20730         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20731         Remove unused attribute.
20732
20733 2010-07-20  Roland McGrath  <roland@redhat.com>
20734
20735         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20736         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20737         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20738         like LD_HWCAP_MASK can disable hwcaps.
20739
20740 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20741
20742         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20743
20744 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20745
20746         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20747         call in strcasestr.
20748         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20749         __strcasestr_sse42_nonascii.
20750         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20751         strcasestr-nonascii.c.
20752         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20753
20754 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20755
20756         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20757         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20758         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20759         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20760
20761 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20762
20763         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20764         fcntl.
20765
20766 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20767
20768         [BZ #11577]
20769         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20770         dl_signal_cerror.
20771
20772 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20773
20774         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20775         _PC_PIPE_BUF using F_GETPIPE_SZ.
20776
20777 2010-07-05  Roland McGrath  <roland@redhat.com>
20778
20779         * manual/arith.texi (Rounding Functions): Fix rint description
20780         implicit in round description.
20781
20782 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20783
20784         * elf/Makefile: Fix linking for a few tests to make recent linker
20785         happy.
20786
20787 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20788
20789         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20790         $(common-objpfx)libc_nonshared.a.
20791
20792 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20793
20794         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20795         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20796         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20797         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20798         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20799         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20800         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20801         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20816         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20817         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20818         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20819         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20820         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20821         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20822         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20823         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20824         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20825         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20826         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20827         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20842
20843 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20844
20845         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20846         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20847         * string/memmove.c (memmove): Renamed to ...
20848         (MEMMOVE): ...this.  Default to memmove.
20849         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20850         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20851         (END_CHK): Define.
20852         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20853         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20854         mempcpy-ssse3-back memmove-ssse3-back.
20855         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20856         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20857         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20858         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20859         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20860         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20861         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20862         * sysdeps/x86_64/multiarch/memmove.c: New file.
20863         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20864         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20865         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20866         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20867         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20868         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20869         Define.
20870         (index_Fast_Copy_Backward): Define.
20871         (HAS_ARCH_FEATURE): Define.
20872         (HAS_FAST_REP_STRING): Define.
20873         (HAS_FAST_COPY_BACKWARD): Define.
20874
20875 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20876
20877         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20878         Restore proper fallback handling.
20879
20880 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20881
20882         [BZ #11701]
20883         * posix/group_member.c (__group_member): Correct checking loop.
20884
20885         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20886         OOM in getpwuid_r correctly.  Return error number when the caller
20887         should return, otherwise -1.
20888         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20889         call returning > 0 value.
20890         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20891
20892 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20893
20894         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20895         libc_nonshared.a from targets in modules-names.
20896
20897 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20898
20899         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20900         requires it.
20901
20902 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20903
20904         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20905         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20906         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20907         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20908
20909 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20910
20911         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20912
20913 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20914
20915         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20916         and F_GETPIPE_SZ.
20917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20918         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20919         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20920         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20921         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20922         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20923
20924 2010-06-14  Roland McGrath  <roland@redhat.com>
20925
20926         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20927
20928 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20929
20930         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20931         __REDIRECT followed by __THROW.
20932         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20933         * posix/getopt.h (getopt): Likewise.
20934
20935 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20936
20937         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20938         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20939         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20940         in AT_FLAGS.
20941         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20942         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20943
20944 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20945
20946         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20947
20948 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20949
20950         [BZ #11640]
20951         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20952         Properly check family and model.
20953
20954 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20955
20956         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20957
20958 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20959
20960         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20961
20962 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20963
20964         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20965         symbol reference.
20966
20967 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20968
20969         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20970         symbol reference.
20971
20972 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20973
20974         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20975         and internal_recvmmsg.
20976         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20977         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20978         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20979         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20980
20981         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20982         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20983         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20984
20985 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20986
20987         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20988
20989 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20990
20991         POWER7 optimizations.
20992         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20993         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20994
20995 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20996
20997         * version.h: Update for 2.13 development version.
20998
20999 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21000
21001         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21002         exceptions.  Return 0.
21003
21004 2010-05-07  Roland McGrath  <roland@redhat.com>
21005
21006         * elf/ldconfig.c (main): Add a const.
21007
21008 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21009
21010         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21011         (args_options): Add no-idn option.
21012         (ahosts_keys_int): Add idn_flags to ai_flags.
21013         (parse_option): Handle 'i' option to clear idn_flags.
21014
21015         * malloc/malloc.c (_int_free): Possible race in the most recently
21016         added check.  Only act on the data if no current modification
21017         happened.
21018
21019 See ChangeLog.17 for earlier changes.